
:root {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--canvas);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(23, 26, 25, .055) 50%, transparent calc(50% + .5px));
  pointer-events: none;
}
.auth-structure-line {
  position: fixed;
  inset: 0 auto 0 max(1rem, calc((100vw - 76rem) / 2));
  z-index: -1;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--signal); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.auth-shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
}
.brand-block {
  display: grid;
  grid-template-columns: minmax(12rem, .65fr) minmax(18rem, 1.35fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3rem, 8vw, 7rem);
}
.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: .7rem;
  align-self: start;
  padding-top: .55rem;
  border-top: 2px solid var(--ink);
}
.auth-beacon-dot {
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
}
.eyebrow, .panel-eyebrow {
  margin: 0;
  font: var(--type-label);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
}
.brand-block h1 {
  grid-column: 2;
  margin: 0;
  max-width: 14ch;
  font: var(--type-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.brand-block .lede {
  grid-column: 2;
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--graphite);
  font: var(--type-body-lg);
  text-wrap: pretty;
}

.auth-card-outer {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.auth-card-core {
  min-width: 0;
  border-left: 1px solid var(--rule);
  background: var(--paper);
}
.panel { padding: clamp(2rem, 5vw, 4.5rem); }
.panel-eyebrow { margin-bottom: 2rem; color: var(--signal); }
.brand-mark { display: block; width: 6rem; margin-bottom: 1.75rem; }
.brand-mark svg { width: 100%; height: auto; }
h2, h3, p { margin-top: 0; }
h2 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font: var(--type-h2);
  letter-spacing: -.025em;
  text-wrap: balance;
}
h3 { font: var(--type-h3); }
.muted, .fine-print {
  max-width: 60ch;
  color: var(--graphite);
  line-height: 1.65;
}
.fine-print { margin: 1rem 0 0; font-size: .78rem; }

.progress-steps {
  display: grid;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.progress-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .75rem;
  padding: .9rem 0;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule-subtle);
  font-size: .875rem;
}
.progress-steps li::before { content: "○"; font-family: var(--font-mono); }
.progress-steps li.current { color: var(--ink); font-weight: 600; }
.progress-steps li.current::before { color: var(--signal); content: "●"; }
.progress-steps li.complete::before { color: var(--positive); content: "✓"; }

label {
  display: block;
  margin: 1.5rem 0 .55rem;
  font: var(--type-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.input-row { display: flex; gap: .6rem; align-items: stretch; }
input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: .7rem .85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-active);
  border-radius: var(--radius-control);
}
button, .primary-button, .secondary-button, .text-button {
  min-height: var(--control-height);
  cursor: pointer;
}
.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: var(--radius-control);
  font-weight: 650;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-snappy), background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.primary-button { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.primary-button:hover { background: var(--signal); border-color: var(--signal); transform: translateY(-1px); }
.secondary-button { color: var(--ink); background: transparent; border: 1px solid var(--rule-active); }
.secondary-button:hover { border-color: var(--ink); background: #fff; }
.text-button { color: var(--graphite); background: transparent; border: 0; }
.text-button:hover { color: var(--ink); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.google-auth-btn {
  width: 100%;
  margin-top: 1.5rem;
  color: var(--ink);
  background: #fff;
  border-color: var(--rule-active);
}
.google-auth-btn:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.google-mark-svg { flex: 0 0 auto; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--rule-focus);
  outline-offset: var(--focus-ring-offset);
}
button:disabled { cursor: not-allowed; opacity: .52; }
.error-text {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  color: var(--critical);
  background: var(--critical-subtle);
  border-left: 3px solid var(--critical);
  font-size: .875rem;
}
.panel-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: start; }
.status-pill {
  padding: .35rem .55rem;
  color: var(--positive);
  background: var(--positive-subtle);
  font: var(--type-label);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.safe-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.safe-details div { min-width: 0; padding: 1rem .75rem 1rem 0; }
.safe-details div + div { padding-left: .75rem; border-left: 1px solid var(--rule); }
.safe-details dt { color: var(--graphite); font: var(--type-label); text-transform: uppercase; }
.safe-details dd { margin: .45rem 0 0; overflow-wrap: anywhere; font-weight: 650; }

/* ==========================================================================
   ADMIN — WORKSPACE ADMINISTRATION CONSOLE
   Full-width operational studio shell, 6 data ledgers, metric cards,
   and typed confirmation modal matching reference visuals 12 & 18–24.
   ========================================================================== */

body[data-page="admin"] {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--canvas);
  overflow-x: hidden;
}

body[data-page="admin"] .auth-structure-line,
body[data-page="admin"]::before {
  display: none;
}

/* TOPBAR */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1.5rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--ink-secondary);
  margin-left: 0.75rem;
}

.admin-dot-active {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  display: inline-block;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.admin-action-btn:hover {
  border-color: var(--ink);
  background: #ffffff;
  transform: translateY(-1px);
}

.admin-action-btn .action-icon {
  color: var(--graphite);
  flex-shrink: 0;
}

.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.6rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--rule);
}

.admin-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

.admin-avatar-details {
  display: flex;
  flex-direction: column;
}

.admin-avatar-name {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.2;
}

.admin-avatar-role {
  font-size: 0.72rem;
  color: var(--graphite);
  line-height: 1.2;
}

/* ROOT & WORKSPACE */
.admin-root {
  width: 100%;
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
}

.admin-workspace {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-canvas {
  width: min(100% - 3rem, 88rem);
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
  flex: 1;
}

/* HEADER ROW */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-header-left {
  flex: 1 1 320px;
}

.admin-eyebrow {
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-tracking);
  color: var(--graphite);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.admin-page-lede {
  font-size: 0.98rem;
  color: var(--graphite);
  line-height: 1.5;
  margin: 0;
  max-width: 48ch;
}

.admin-header-center {
  flex: 0 0 auto;
  align-self: center;
}

.admin-live-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 550;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
}

.admin-live-banner.live-error {
  background: var(--critical-subtle);
  border-color: var(--critical);
  color: var(--critical);
}

.live-check-svg {
  color: #16a34a;
  flex-shrink: 0;
}

.live-warn-icon {
  color: var(--critical);
  font-weight: 700;
  flex-shrink: 0;
}

.admin-header-right {
  flex: 0 0 auto;
}

.admin-account-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-inner);
  padding: 0.85rem 1.25rem;
  min-width: 230px;
  box-shadow: var(--shadow-xs);
}

.admin-account-card-title {
  font: var(--type-label);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--graphite);
  display: block;
  margin-bottom: 0.5rem;
}

.account-card-grid {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
}

.account-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.account-card-label {
  color: var(--graphite);
}

.account-card-value {
  font-weight: 650;
  color: var(--ink);
}

.status-active-val {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot-active {
  color: #16a34a;
  font-size: 0.7rem;
}

/* NAVIGATION TABS */
.admin-nav-bar {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.admin-tab-btn:hover {
  color: var(--ink);
}

.admin-tab-btn.active {
  color: var(--signal);
  font-weight: 600;
}

.admin-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--signal);
  border-radius: 2px 2px 0 0;
}

/* SUMMARY METRICS GRID */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.admin-metric-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.admin-metric-card:hover {
  border-color: var(--rule-active);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.metric-card-icon {
  color: var(--signal);
  display: flex;
  align-items: center;
}

.metric-card-label {
  font: var(--type-label);
  text-transform: uppercase;
  letter-spacing: var(--type-label-tracking);
  color: var(--graphite);
}

.metric-card-val {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
}

.metric-card-sub {
  font-size: 0.78rem;
  color: var(--graphite);
  line-height: 1.4;
}

/* LEDGER CARD */
.admin-ledger-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.admin-ledger-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
}

.ledger-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.ledger-subtitle {
  font-size: 0.85rem;
  color: var(--graphite);
  margin: 0;
}

.ledger-header-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--positive-subtle);
  color: var(--positive);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-dot-check {
  color: var(--positive);
  font-weight: 700;
}

/* LEDGER TABLE */
.admin-content {
  min-height: 200px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-thead {
  background: #faf8f5;
  border-bottom: 1px solid var(--rule);
}

.admin-th {
  padding: 0.85rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--graphite);
  white-space: nowrap;
  font-family: var(--font-body);
}

.admin-th-actions {
  text-align: right;
}

.admin-tr {
  border-bottom: 1px solid var(--rule-subtle);
  transition: background 0.12s;
}

.admin-tr:last-child {
  border-bottom: none;
}

.admin-tr:hover {
  background: #f8f6f0;
}

.admin-td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink);
  vertical-align: middle;
}

.td-actions {
  text-align: right;
}

.td-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--graphite);
}

.td-capitalize {
  text-transform: capitalize;
  font-weight: 550;
}

.td-date {
  font-size: 0.82rem;
  color: var(--graphite);
  white-space: nowrap;
}

.td-email {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--graphite);
}

.user-cell-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.project-cell-title {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.project-cell-sub {
  font-size: 0.78rem;
  color: var(--graphite);
  margin: 0;
}

.legacy-owner-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.legacy-owner-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.legacy-owner-badge {
  font-size: 0.72rem;
  color: var(--graphite);
}

.admin-role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.role-admin {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.role-user {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status-active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-active .status-dot {
  color: #16a34a;
}

.status-running {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-running .status-dot {
  color: #2563eb;
}

.status-suspended {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.status-suspended .status-dot {
  color: #94a3b8;
}

.status-paused {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-paused .status-dot {
  color: #d97706;
}

.status-failed {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-icon-check {
  color: #065f46;
  font-weight: 700;
  font-size: 0.8rem;
}

.status-icon-cross {
  color: #991b1b;
  font-weight: 700;
  font-size: 0.75rem;
}

.status-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.admin-row-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  text-decoration: none;
}

.btn-action-secondary:hover {
  border-color: var(--ink);
  background: var(--canvas-subtle);
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--signal);
  background: var(--signal-subtle);
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-action-primary:hover {
  background: var(--signal);
  color: #ffffff;
}

.btn-action-destructive {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-control);
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-action-destructive:hover {
  border-color: #dc2626;
  background: #fef2f2;
}

.btn-action-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* LEDGER FOOTER */
.admin-ledger-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf8f5;
}

.admin-item-count {
  font-size: 0.82rem;
  color: var(--graphite);
}

.admin-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  margin: 0 auto;
}

.admin-load-more-btn:hover {
  border-color: var(--ink);
  background: var(--canvas-subtle);
}

/* DELETION BOUNDARY BANNER */
.admin-deletion-banner {
  margin: 1.5rem 1.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-control);
  border: 1px solid #fecaca;
  background: #fef2f2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #991b1b;
}

.boundary-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.boundary-icon {
  flex-shrink: 0;
}

.boundary-pipe {
  color: #fca5a5;
  user-select: none;
}

.boundary-text {
  margin: 0;
  line-height: 1.4;
  color: #7f1d1d;
}

/* EMPTY STATE */
.admin-empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.admin-empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.admin-empty-desc {
  font-size: 0.85rem;
  color: var(--graphite);
  margin: 0;
}

/* ACTION CONFIRMATION MODAL */
.admin-confirm-dialog {
  max-width: 520px;
  width: min(100% - 2rem, 520px);
  border-radius: 12px;
  border: 1px solid var(--rule);
  padding: 0;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.admin-confirm-dialog::backdrop {
  backdrop-filter: blur(3px);
  background: rgba(23, 26, 25, 0.6);
}

.admin-modal-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf8f5;
}

.admin-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

.admin-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--graphite);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  line-height: 1;
}

.admin-modal-close-btn:hover {
  color: var(--ink);
  background: var(--canvas-subtle);
}

.admin-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff;
}

.admin-modal-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #faf8f5;
  border: 1px solid var(--rule);
}

.admin-modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-modal-icon-badge.icon-destructive {
  background: #fee2e2;
  color: #dc2626;
}

.admin-modal-icon-badge.icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.admin-modal-icon-badge.icon-accent {
  background: #eff6ff;
  color: #2563eb;
}

.admin-modal-action-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.modal-action-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.icon-destructive ~ .admin-modal-action-meta .modal-action-heading {
  color: #dc2626;
}

.modal-action-target {
  margin: 0;
  font-size: 0.85rem;
  color: var(--graphite);
}

.modal-action-target strong {
  color: var(--ink);
  font-weight: 650;
}

.modal-warning-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--graphite);
  margin: 0;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--graphite);
  margin: 0;
}

.modal-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule-active);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: #ffffff;
}

.modal-input:focus {
  border-color: var(--signal);
  outline: 2px solid var(--signal-glow);
}

.modal-security-footnote {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--graphite);
  margin-top: 0.25rem;
}

.admin-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #faf8f5;
}

.modal-btn-cancel {
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  border: 1px solid var(--rule-active);
  background: #ffffff;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}

.modal-btn-cancel:hover {
  border-color: var(--ink);
  background: var(--canvas-subtle);
}

.modal-btn-confirm {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.btn-confirm-destructive {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.btn-confirm-destructive:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-confirm-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
}

.btn-confirm-primary:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
}

/* ADMIN FOOTER */
.admin-footer {
  padding: 1.5rem clamp(1.5rem, 3.5vw, 3.5rem);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--graphite);
  background: var(--canvas);
  margin-top: auto;
}

.admin-footer-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-footer-left .footer-brand {
  font-weight: 700;
  color: var(--ink);
}

.admin-footer-left .footer-pipe {
  color: var(--rule);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-header-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  .admin-header-right {
    width: 100%;
  }
  .admin-account-card {
    width: 100%;
  }
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
  .admin-tabs {
    gap: 1.25rem;
  }
  .admin-row-actions {
    justify-content: flex-start;
  }
  .admin-th-actions,
  .td-actions {
    text-align: left;
  }
  .admin-ledger-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .admin-load-more-btn {
    width: 100%;
    justify-content: center;
  }
}

[hidden] { display: none !important; }

@media (max-width: 760px) {
  body::before, .auth-structure-line { display: none; }
  .auth-shell { width: min(100% - 1.5rem, 42rem); padding-top: 2rem; }
  .brand-block { display: block; margin-bottom: 3rem; }
  .auth-brand-badge { width: max-content; margin-bottom: 3rem; }
  .brand-block h1, .brand-block .lede { grid-column: auto; }
  .brand-block h1 { font-size: clamp(2.65rem, 14vw, 4.5rem); }
  .auth-card-outer { display: block; }
  .auth-card-outer::before { display: none; }
  .auth-card-core { border-left: 0; }
  .panel { padding: 1.5rem 1rem 2rem; }
  .input-row { flex-direction: column; }
  .safe-details div + div { padding-left: 0; border-top: 1px solid var(--rule); border-left: 0; }
  .admin-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-card + .admin-card:nth-child(odd) { border-left: 0; }
  .admin-tabs button { flex: 1 1 40%; }
}

/* ==========================================================================
   Generic auth shell — parity pass for callback / onboarding / access-gate /
   account-unavailable. These panels share one template (auth_shell.html);
   this block deepens their visual weight (icons, real elevation, entrance
   motion) to match /sign-in's polish without changing their structure.
   ========================================================================== */
.panel {
  animation: oxa-rise var(--motion-surface-change) var(--ease-snappy) both;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-control);
}
.panel-icon-signal { color: var(--signal); background: var(--signal-subtle); }
.panel-icon-attention { color: var(--attention); background: var(--attention-subtle); }
.panel-icon-neutral { color: var(--graphite); background: var(--canvas-subtle); }

.field-with-prefix {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.field-prefix {
  position: absolute;
  left: .85rem;
  color: var(--graphite-dim);
  font-weight: 650;
  pointer-events: none;
}
.field-with-prefix input { padding-left: 1.7rem; }

#progress-panel .progress-steps li.current { position: relative; }
#progress-panel .progress-steps li.current::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 2px;
  background: var(--signal);
}
#draft-mark-slot { animation: oxa-rise var(--duration-slow) var(--ease-snappy) both; }

/* Deepen elevation on the generic shell's core card so callback/onboarding/
   access/unavailable read with the same tactile weight as sign-in's cards,
   without changing the two-column grid structure itself. */
.auth-card-core { box-shadow: var(--shadow-sm); }

/* ==========================================================================
   GATE PANELS — access review / account unavailable / onboarding.
   Lifts these three shared-template panels to the /sign-in quality bar by
   reusing its established idioms (eyebrow row + trailing hairline rule,
   iconography, trust/reassurance rows, consistent type + spacing rhythm)
   rather than inventing a third visual style. Structure and every JS hook
   (ids + data-action) are untouched; only presentation changes.
   ========================================================================== */
.gate-panel { display: flex; flex-direction: column; }

/* Eyebrow row: icon + label + trailing rule, mirroring sign-in's
   .verified-eyebrow-row / .eyebrow-rule pairing. */
.gate-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gate-eyebrow-row .panel-icon { margin-bottom: 0; flex: 0 0 auto; }
.gate-eyebrow-row .panel-eyebrow { margin-bottom: 0; white-space: nowrap; }
.gate-eyebrow-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.gate-title {
  margin-bottom: 0.85rem;
  font: var(--type-h2);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.gate-lede {
  max-width: 46ch;
  margin: 0 0 1.75rem;
  color: var(--graphite);
  font: var(--type-body-lg);
  text-wrap: pretty;
}

/* Reassurance rows — the trust-item idiom from sign-in, laid out as a
   framed vertical list appropriate to the narrower gate panels. */
.gate-notes {
  display: grid;
  gap: 0;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.gate-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}
.gate-note + .gate-note { border-top: 1px solid var(--rule-subtle); }
.gate-note-icon {
  flex: 0 0 auto;
  color: var(--graphite);
  stroke: currentColor;
}

.gate-form { margin-bottom: 0.5rem; }
.gate-form label { margin-top: 0; }

/* Push the sign-out affordance to the panel foot so all three gates share a
   consistent action rhythm. */
.gate-actions { margin-top: auto; padding-top: 1.5rem; }

@media (max-width: 760px) {
  .gate-eyebrow-row { gap: 0.75rem; margin-bottom: 1.25rem; }
  .gate-lede { font: var(--type-body); }
}

/* ==========================================================================
   EDITORIAL SWISS STUDIO AUTHENTICATION & WORKSPACE SHELL
   Applied to all authenticated product/auth pages (except the admin console).
   ========================================================================== */

body:not([data-page="admin"]) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--canvas);
  overflow-x: hidden;
}

body:not([data-page="admin"]) .auth-structure-line,
body:not([data-page="admin"])::before {
  display: none;
}

/* TOP GLOBAL HEADER */
.sign-in-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1.5rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
  animation: headerEntrance 0.22s var(--ease-snappy) backwards;
}

@keyframes headerEntrance {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo-svg {
  flex-shrink: 0;
}

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.header-pipe {
  color: var(--rule);
  font-weight: 300;
  font-size: 0.85rem;
  user-select: none;
}

.header-descriptor {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--graphite);
  letter-spacing: 0.02em;
}

.header-status-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.cobalt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  box-shadow: 0 0 0 2px var(--signal-glow);
}

/* ROOT AND TWO-COLUMN WORKSPACE */
.sign-in-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.sign-in-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  width: 100%;
  min-height: calc(100dvh - 54px);
}

/* LEFT COLUMN: AUTHENTICATION, VALUE, TRUST */
.sign-in-left-col {
  border-right: 1px solid var(--rule);
  padding: clamp(2rem, 3.5vw, 4rem) clamp(2rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--canvas);
}

.left-col-inner {
  max-width: 32rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.verified-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.35s var(--ease-snappy) backwards;
  animation-delay: 0.05s;
}

.verified-eyebrow-row .eyebrow {
  font: var(--type-label);
  letter-spacing: 0.12em;
  color: var(--graphite);
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.sign-in-headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.2rem, 3.8vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1.25rem 0;
  text-wrap: balance;
  animation: fadeInUp 0.4s var(--ease-snappy) backwards;
  animation-delay: 0.12s;
}

.sign-in-lede {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.62;
  color: var(--graphite);
  margin: 0 0 1.75rem 0;
  text-wrap: pretty;
  animation: fadeInUp 0.4s var(--ease-snappy) backwards;
  animation-delay: 0.18s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GOOGLE CTA BUTTON */
.cta-block {
  animation: fadeInUp 0.4s var(--ease-snappy) backwards;
  animation-delay: 0.24s;
}

.google-auth-cta {
  width: 100%;
  min-height: 52px;
  padding: 0.35rem 1.25rem 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--signal);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sheet);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2), 0 4px 14px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, transform 0.15s var(--ease-snappy), box-shadow 0.15s ease;
}

.google-auth-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25), 0 8px 20px rgba(37, 99, 235, 0.22);
}

.google-auth-cta:active {
  transform: scale(0.992) translateY(0);
}

.google-auth-cta:focus-visible {
  outline: 3px solid var(--rule-focus);
  outline-offset: 3px;
}

.google-icon-badge {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.google-mark-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-label {
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  padding: 0 0.5rem;
}

.cta-arrow {
  flex-shrink: 0;
  stroke: #ffffff;
  transition: transform 0.15s ease;
}

.google-auth-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* CTA SUBMITTING SWEEP */
.google-auth-cta.cta-submitting::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: hairlineSweep 1s infinite linear;
}

@keyframes hairlineSweep {
  from { left: -100%; }
  to { left: 100%; }
}

.sign-in-guidance {
  font-size: 0.82rem;
  color: var(--graphite);
  margin: 0.85rem 0 1.75rem;
  line-height: 1.45;
}

.trust-divider {
  height: 1px;
  background: var(--rule);
  margin-bottom: 1.5rem;
}

/* TRUST FEATURES ROW */
.trust-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.trust-icon {
  color: var(--graphite);
  stroke: currentColor;
  flex-shrink: 0;
}

/* LEFT FOOTER */
.sign-in-left-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--graphite-dim);
}

.brand-signature strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-pipe {
  color: var(--rule);
  user-select: none;
}

/* STUDIO WORKSPACE PANELS */
.studio-panel {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.35s var(--ease-snappy) backwards;
  animation-delay: 0.05s;
}

.studio-panel[hidden] {
  display: none !important;
}

/* SESSION RESTORE PROGRESS PANEL */
.studio-progress-header {
  margin-bottom: 1.5rem;
}

.studio-progress-header .brand-mark {
  margin-bottom: 1.25rem;
}

.studio-progress-steps {
  margin: 1.75rem 0 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.studio-progress-steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--rule-subtle);
  font-size: 0.92rem;
  color: var(--graphite);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.studio-progress-steps li:last-child {
  border-bottom: none;
}

.studio-progress-steps li::before {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--graphite-dim);
  content: "○";
  display: inline-block;
  width: 1.25rem;
  text-align: center;
}

.studio-progress-steps li.current {
  color: var(--ink);
  font-weight: 600;
  background: var(--canvas-subtle, rgba(23, 26, 25, 0.025));
  border-left: 2px solid var(--signal);
  padding-left: 0.65rem;
}

.studio-progress-steps li.current::before {
  color: var(--signal);
  content: "●";
  animation: cobaltPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.studio-progress-steps li.complete {
  color: var(--ink-secondary);
}

.studio-progress-steps li.complete::before {
  color: var(--positive);
  content: "✓";
  font-weight: 700;
}

/* USERNAME ONBOARDING PANEL */
.studio-onboarding-form {
  margin-bottom: 1.75rem;
}

.studio-label {
  display: block;
  font: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.6rem;
}

.studio-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.studio-input-row .studio-field-prefix {
  flex: 1 1 auto;
  min-width: 0;
}

.studio-input-row .studio-submit-btn {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 170px;
}

.studio-field-prefix {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.studio-field-prefix input {
  width: 100%;
  padding-left: 2.2rem;
  padding-right: 0.85rem;
  min-height: 52px;
  font-size: 1rem;
  font-family: var(--font-mono);
  border: 1px solid var(--rule-active);
  border-radius: var(--radius-sheet);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.studio-field-prefix input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-glow);
  outline: none;
}

.studio-field-prefix .field-prefix {
  position: absolute;
  left: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--graphite);
  user-select: none;
  pointer-events: none;
}

.studio-submit-btn {
  flex-shrink: 0;
  min-width: 160px;
  justify-content: center;
  cursor: pointer;
}

/* SIGN OUT AFFORDANCE & BUTTONS */
.studio-sign-out-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--graphite);
  background: transparent;
  border: 1px solid var(--rule-active);
  border-radius: var(--radius-sheet);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-snappy);
}

.studio-sign-out-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--canvas-subtle, rgba(23, 26, 25, 0.04));
}

/* WORKSPACE READY (APP) PANEL */
.studio-user-status {
  margin: -0.5rem 0 1.25rem;
}

.studio-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--positive);
  background: var(--positive-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.safe-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.safe-details div {
  min-width: 0;
}

.safe-details dt {
  color: var(--graphite);
  font: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.safe-details dd {
  margin: 0.45rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* RIGHT COLUMN: INTERACTIVE SIX-STAGE PRODUCT SHOWCASE */
.sign-in-right-col {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(23, 26, 25, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 26, 25, 0.038) 1px, transparent 1px);
  background-size: 38px 38px;
  background-position: center top;
  padding: clamp(1.75rem, 2.8vw, 3rem) clamp(1.75rem, 3.2vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.5s var(--ease-snappy) backwards;
  animation-delay: 0.28s;
}

/* ARCHITECTURAL DRAFTING MARKS & LIVING DRAFT HAIRLINE SWEEP */
.drafting-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1;
  color: var(--rule-active);
  opacity: 0.38;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.mark-tl { top: 1.25rem; left: 1.25rem; }
.mark-tr { top: 1.25rem; right: 1.25rem; }
.mark-bl { bottom: 1.25rem; left: 1.25rem; }
.mark-br { bottom: 1.25rem; right: 1.25rem; }

.drafting-sweep-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(49, 87, 231, 0.35) 25%, #60a5fa 50%, rgba(49, 87, 231, 0.35) 75%, transparent);
  box-shadow: 0 0 12px rgba(49, 87, 231, 0.22);
  pointer-events: none;
  z-index: 1;
  animation: sweepTravel 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sweepTravel {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 0.35; }
  72% { transform: translateX(calc(100vw * 0.58)); opacity: 0.35; }
  85% { opacity: 0; }
  100% { transform: translateX(calc(100vw * 0.58)); opacity: 0; }
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font: var(--type-label);
  letter-spacing: 0.12em;
  color: var(--graphite);
}

.rail-motto {
  color: var(--graphite-dim);
}

/* STAGE RAIL */
.stage-rail-wrap {
  position: relative;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.rail-track {
  position: absolute;
  top: 13px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--rule);
  z-index: 1;
}

.rail-active-segment {
  position: absolute;
  top: -0.5px;
  left: 0;
  width: 20%;
  height: 2px;
  background: var(--signal);
  transition: width 0.45s var(--ease-spring);
}

.rail-traveling-highlight {
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--signal), #93c5fd, transparent);
  border-radius: 2px;
  animation: railSweep 5.5s infinite var(--ease-spring);
}

@keyframes railSweep {
  0% { left: 0%; opacity: 0; }
  5% { opacity: 1; }
  35% { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

.stage-rail-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stage-rail-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  width: 16%;
}

.node-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rule-active);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--graphite);
  transition: all 0.3s ease;
}

.stage-rail-node.active .node-badge {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(49, 87, 231, 0.18);
}

.stage-rail-node.completed .node-badge {
  background: var(--paper-elevated);
  border-color: var(--signal);
  color: var(--signal);
}

.node-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.node-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.node-sub {
  display: block;
  font: var(--type-label);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--graphite-dim);
  text-transform: uppercase;
  margin-top: 0.2rem;
  line-height: 1.25;
  white-space: nowrap;
}

/* SHOWCASE CONTAINER & 3D LAYERED DECK */
.sign-in-showcase {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.showcase-deck {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 360px;
  perspective: 1200px;
}

.showcase-card {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(23, 26, 25, 0.05);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.42s ease, box-shadow 0.42s ease, filter 0.42s ease;
  transform-origin: center bottom;
  user-select: none;
  will-change: transform, opacity;
}

.showcase-card.card-active {
  z-index: 10;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 18px 42px rgba(23, 26, 25, 0.09), 0 2px 8px rgba(23, 26, 25, 0.04);
  filter: none;
}

.showcase-card.card-next {
  z-index: 5;
  opacity: 0.88;
  pointer-events: none;
  transform: translate3d(30%, 8px, -36px) scale(0.94) rotate(1.8deg);
  filter: contrast(0.97) brightness(0.99);
  box-shadow: 0 10px 28px rgba(23, 26, 25, 0.06);
}

.showcase-card.card-prev {
  z-index: 5;
  opacity: 0.88;
  pointer-events: none;
  transform: translate3d(-30%, 8px, -36px) scale(0.94) rotate(-1.8deg);
  filter: contrast(0.97) brightness(0.99);
  box-shadow: 0 10px 28px rgba(23, 26, 25, 0.06);
}

.showcase-card.card-back {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 16px, -70px) scale(0.88);
}

/* CARD 1: PORTFOLIO BRIEF */
.brief-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.brief-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brief-brand-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brief-brand {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.brief-status-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--signal-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--signal);
  font-weight: 500;
}

.cobalt-dot-pulsing {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.live-status-text {
  transition: opacity 0.25s ease;
}

.brief-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.brief-subtitle {
  font-size: 0.8rem;
  color: var(--graphite);
  margin: 0 0 1rem;
}

.brief-split-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.brief-visual-frame {
  width: 140px;
  height: 95px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.brief-lede-heading {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

.brief-body-text {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--graphite);
  margin: 0;
}

.brief-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule-subtle);
  border-bottom: 1px solid var(--rule-subtle);
  margin-bottom: 0.75rem;
}

.brief-metric .metric-label {
  display: block;
  font: var(--type-label);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--graphite-dim);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.brief-metric .metric-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.script-annotation {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--graphite);
}

.brief-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink);
  color: #ffffff;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* OTHER CARDS */
.card-step-tag {
  font: var(--type-label);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--graphite);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.card-headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.card-subhead {
  font-size: 0.82rem;
  color: var(--graphite);
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

/* DISCOVERY CHECKLIST */
.discovery-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.discovery-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.discovery-checklist li .check-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--graphite-dim);
}

.discovery-checklist li.checked {
  font-weight: 600;
}

.discovery-checklist li.checked .check-icon {
  color: var(--signal);
  background: var(--signal-subtle);
  border-radius: 50%;
  font-size: 0.75rem;
}

.card-footer-note {
  margin-top: auto;
}

/* CONTENT PREVIEW */
.content-preview-routes {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.route-item {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  background: var(--paper);
}

.route-slug {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--signal);
}

.route-role {
  color: var(--graphite);
}

/* DESIGN TOKENS */
.design-tokens-sample {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.swatch-cluster {
  display: flex;
  gap: 0.5rem;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.sw-paper { background: var(--canvas); }
.sw-ink { background: var(--ink); }
.sw-cobalt { background: var(--signal); }
.sw-graphite { background: var(--graphite); }

.typography-token {
  padding: 0.65rem;
  border: 1px solid var(--rule-subtle);
  border-radius: 6px;
  background: var(--paper);
}

.token-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.token-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--graphite);
  margin-top: 0.2rem;
}

/* PREVIEW MINI CANVAS */
.preview-mini-canvas {
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.preview-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.preview-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule-active);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

/* SHOWCASE CONTROLS */
.showcase-nav-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.showcase-nav-btn {
  width: 32px !important;
  height: 32px !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--rule) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--ink) !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}

.showcase-nav-btn:hover {
  border-color: var(--ink) !important;
  background: var(--paper) !important;
}

.showcase-dots {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.showcase-dot {
  width: 8px !important;
  height: 8px !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: var(--rule-active) !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

.showcase-dot.active {
  width: 24px !important;
  height: 8px !important;
  min-height: 0 !important;
  border-radius: 4px !important;
  background: var(--signal) !important;
}

.showcase-pause-btn {
  width: 32px !important;
  height: 32px !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--rule) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--graphite) !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}

.showcase-pause-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ANNOTATION CALLOUT */
.showcase-callout-annotation {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--graphite-dim);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  pointer-events: none;
}

.sign-in-right-footer {
  margin-top: 1.5rem;
  text-align: right;
  font: var(--type-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--graphite-dim);
}

/* ==========================================================================
   PUBLIC OUTCOME SHOWCASE — finished examples before authentication
   ======================================================================== */
.outcome-showcase {
  width: min(100% - 3rem, 88rem);
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
}

.outcome-showcase-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.outcome-showcase-header .eyebrow {
  margin-bottom: 0.8rem;
}

.outcome-showcase-header h2 {
  max-width: 13ch;
  margin: 0;
  font: var(--type-h1);
  letter-spacing: -0.045em;
}

.outcome-showcase-header > p {
  max-width: 18ch;
  margin: 0 0 0.2rem;
  color: var(--graphite);
  font: 500 0.86rem / 1.45 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.outcome-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.outcome-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-snappy), border-color var(--duration-fast), box-shadow var(--duration-normal);
}

.outcome-card:hover,
.outcome-card[aria-expanded="true"] {
  border-color: var(--rule-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.outcome-card:active {
  transform: translateY(-1px);
}

.outcome-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  isolation: isolate;
}

.outcome-thumbnail-product {
  color: #252525;
  background: #e8e0d2;
}

.outcome-thumbnail-systems {
  color: #e8f1e7;
  background: #1c302a;
}

.outcome-thumbnail-creative {
  color: #211f26;
  background: #d9c7b9;
}

.thumb-browser-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2rem;
  padding: 0 0.75rem;
  color: currentColor;
  background: rgba(252, 251, 247, 0.58);
  border-bottom: 1px solid rgba(23, 26, 25, 0.13);
  font: 0.58rem / 1 var(--font-mono);
  letter-spacing: 0.01em;
}

.thumb-browser-bar i {
  display: block;
  width: 0.32rem;
  height: 0.32rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.48;
}

.thumb-browser-bar b {
  min-width: 0;
  margin-left: 0.7rem;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-product-canvas,
.thumb-systems-canvas,
.thumb-creative-canvas {
  position: absolute;
  inset: 2rem 0 0;
}

.thumb-product-canvas {
  background: linear-gradient(120deg, #eee8dc 0 54%, #d4c4a7 54% 100%);
}

.thumb-product-copy {
  position: absolute;
  top: 18%;
  left: 11%;
  z-index: 1;
}

.thumb-product-copy b {
  display: block;
  font: 600 clamp(1.35rem, 2.2vw, 2.15rem) / 0.9 var(--font-display);
  letter-spacing: -0.05em;
}

.thumb-product-copy i {
  display: block;
  margin-top: 1rem;
  font: normal 0.55rem / 1.2 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.thumb-product-shape {
  position: absolute;
  right: 8%;
  bottom: -16%;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(37, 37, 37, 0.62);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.thumb-product-shape::before,
.thumb-product-shape::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(37, 37, 37, 0.45);
}

.thumb-product-shape::before {
  inset: 13%;
  border-radius: 50%;
}

.thumb-product-shape::after {
  inset: 30% -20% 30% 30%;
  border-left: 0;
}

.thumb-systems-canvas {
  background:
    linear-gradient(rgba(142, 188, 161, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 188, 161, 0.09) 1px, transparent 1px),
    #1c302a;
  background-size: 1.45rem 1.45rem;
}

.thumb-systems-label {
  position: absolute;
  top: 12%;
  left: 8%;
  color: #a5c5ac;
  font: 0.56rem / 1.2 var(--font-mono);
  letter-spacing: 0.13em;
}

.thumb-systems-line {
  position: absolute;
  height: 1px;
  background: #a5c5ac;
  opacity: 0.65;
  transform-origin: left center;
}

.thumb-systems-line.line-one {
  top: 53%;
  right: 27%;
  left: 10%;
  transform: rotate(-14deg);
}

.thumb-systems-line.line-two {
  top: 58%;
  right: 11%;
  left: 44%;
  transform: rotate(22deg);
}

.thumb-systems-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: #17241f;
  background: #a5c5ac;
  border-radius: 50%;
  font: 0.55rem / 1.2 var(--font-mono);
  letter-spacing: 0.02em;
}

.thumb-systems-node.node-one { top: 31%; left: 15%; }
.thumb-systems-node.node-two { top: 49%; right: 13%; }
.thumb-systems-node.node-three { bottom: 10%; left: 40%; width: 4.2rem; height: 4.2rem; background: #d6e1d1; }

.thumb-creative-canvas {
  background: #d9c7b9;
}

.thumb-creative-word {
  position: absolute;
  top: 8%;
  left: 10%;
  z-index: 1;
  font: 600 clamp(1.15rem, 2vw, 1.8rem) / 0.82 var(--font-body);
  letter-spacing: -0.06em;
}

.thumb-creative-orbit {
  position: absolute;
  right: -8%;
  bottom: -23%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(33, 31, 38, 0.64);
  border-radius: 50%;
}

.thumb-creative-orbit.orbit-two {
  right: 9%;
  bottom: -8%;
  width: 42%;
  border-color: rgba(33, 31, 38, 0.35);
}

.thumb-creative-caption {
  position: absolute;
  right: 9%;
  bottom: 10%;
  font: 0.56rem / 1.2 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.outcome-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem 1.35rem 1.45rem;
}

.outcome-card-kicker,
.outcome-preview-label {
  color: var(--signal);
  font: var(--type-label);
  letter-spacing: 0.1em;
}

.outcome-card-name {
  margin-top: 1.2rem;
  font: 600 clamp(1.35rem, 2.2vw, 1.8rem) / 1.05 var(--font-display);
  letter-spacing: -0.035em;
}

.outcome-card-role {
  margin-top: 0.3rem;
  color: var(--graphite);
  font-size: 0.84rem;
}

.outcome-card-description {
  max-width: 31ch;
  margin-top: 0.95rem;
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.55;
}

.outcome-card-action,
.outcome-create-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 1.5rem;
  padding-bottom: 0.35rem;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 650;
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.outcome-card-action { margin-top: auto; }

.outcome-card:hover .outcome-card-action,
.outcome-create-cta:hover {
  color: var(--signal);
  transform: translateX(2px);
}

.outcome-showcase-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-subtle);
}

.outcome-showcase-footer p {
  max-width: 55ch;
  margin: 0;
  color: var(--graphite-dim);
  font-size: 0.78rem;
  line-height: 1.55;
}

.outcome-create-cta { margin-top: 0; white-space: nowrap; }

.outcome-preview-dialog {
  width: min(92vw, 66rem);
  max-width: none;
  max-height: 88dvh;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.outcome-preview-dialog::backdrop {
  background: rgba(23, 26, 25, 0.54);
  backdrop-filter: blur(5px);
}

.outcome-dialog-sheet {
  max-height: 88dvh;
  overflow: auto;
  overflow-x: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--rule-active);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-lg);
}

.outcome-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.outcome-dialog-header .eyebrow { margin-bottom: 0.65rem; }

.outcome-dialog-header h2 {
  margin: 0;
  font: var(--type-h2);
  letter-spacing: -0.035em;
}

.outcome-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.outcome-dialog-close:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.outcome-dialog-note {
  margin: 1rem 0 2rem;
  color: var(--graphite);
  font-size: 0.85rem;
}

.outcome-preview[hidden] { display: none; }

.outcome-preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--graphite-dim);
  font: var(--type-label);
  letter-spacing: 0.08em;
}

.outcome-preview h3 {
  max-width: 13ch;
  margin: 1.3rem 0 0;
  font: var(--type-display);
  letter-spacing: -0.055em;
}

.outcome-preview-lede {
  max-width: 58ch;
  margin: 1.2rem 0 0;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.65;
}

.outcome-preview-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.7fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
  padding: 1.4rem;
  background: var(--canvas);
  border: 1px solid var(--rule-subtle);
}

.outcome-preview-feature h4 {
  max-width: 20ch;
  margin: 0.8rem 0 0;
  font: var(--type-h2);
  letter-spacing: -0.04em;
}

.outcome-preview-feature p {
  max-width: 42ch;
  margin: 0.85rem 0 0;
  color: var(--graphite);
  font-size: 0.88rem;
  line-height: 1.55;
}

.preview-diagram {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.preview-diagram-product {
  background: linear-gradient(135deg, #eee8dc, #cbb995);
}

.preview-diagram-product span {
  position: absolute;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(37, 37, 37, 0.65);
  border-radius: 50%;
}

.preview-diagram-product span:nth-child(1) { top: 16%; left: 18%; }
.preview-diagram-product span:nth-child(2) { top: 34%; left: 41%; width: 8rem; height: 8rem; }
.preview-diagram-product span:nth-child(3) { right: 9%; bottom: 9%; width: 4rem; height: 4rem; }
.preview-diagram-product i { position: absolute; top: 58%; left: 20%; width: 62%; height: 1px; background: rgba(37, 37, 37, 0.65); transform: rotate(-23deg); }

.preview-diagram-systems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #d6e1d1;
  background: #1c302a;
  font: var(--type-label);
  letter-spacing: 0.05em;
}

.preview-diagram-systems span {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid #a5c5ac;
  border-radius: 50%;
}

.preview-diagram-systems i { width: 1.1rem; height: 1px; background: #a5c5ac; }

.preview-diagram-creative {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #211f26;
  background: #d9c7b9;
  font: 600 0.72rem / 1 var(--font-mono);
  letter-spacing: 0.14em;
}

.preview-diagram-creative b { z-index: 1; }
.preview-diagram-creative i { position: absolute; width: 80%; height: 80%; border: 1px solid rgba(33, 31, 38, 0.48); border-radius: 50%; }
.preview-diagram-creative i:nth-of-type(2) { width: 50%; height: 50%; }

.outcome-preview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.outcome-preview-columns section,
.outcome-preview-columns aside { min-width: 0; }

.preview-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-subtle);
}

.preview-list-item b { font-size: 0.9rem; }
.preview-list-item span { color: var(--graphite); font-size: 0.78rem; text-align: right; }

.outcome-preview-columns aside {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}

.outcome-preview-columns aside p {
  max-width: 24ch;
  margin: 0.9rem 0 0;
  font: 600 1.2rem / 1.2 var(--font-display);
  letter-spacing: -0.025em;
}

@media (max-width: 900px) {
  .outcome-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-card:last-child { grid-column: 1 / -1; }
  .outcome-card:last-child .outcome-thumbnail { aspect-ratio: 2.2 / 1; }
}

@media (max-width: 760px) {
  .outcome-showcase { width: min(100% - 2.5rem, 40rem); }
  .outcome-showcase-header { display: block; }
  .outcome-showcase-header > p { max-width: none; margin-top: 1rem; }
  .outcome-showcase-grid { grid-template-columns: 1fr; }
  .outcome-card:last-child { grid-column: auto; }
  .outcome-card:last-child .outcome-thumbnail { aspect-ratio: 1.42 / 1; }
  .outcome-showcase-footer { display: block; }
  .outcome-create-cta { margin-top: 1.2rem; }
  .outcome-preview-feature,
  .outcome-preview-columns { grid-template-columns: 1fr; }
  .outcome-preview-columns aside { padding: 1.25rem 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .outcome-preview-topline { font-size: 0.62rem; }
  .preview-list-item { display: block; }
  .preview-list-item span { display: block; margin-top: 0.25rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .outcome-card,
  .outcome-card-action,
  .outcome-create-cta { transition: none; }
}

/* ========================================================================
   MULTI-SCREEN SAMPLE PORTFOLIOS — scrollable, self-contained public previews
   ======================================================================== */
.outcome-preview {
  --sample-ink: var(--ink);
  --sample-muted: var(--graphite);
  --sample-accent: var(--signal);
  --sample-pale: var(--canvas);
  --sample-dark: var(--ink);
  color: var(--sample-ink);
}

.outcome-preview-code {
  --sample-ink: #17221f;
  --sample-muted: #53645a;
  --sample-accent: #8ecf58;
  --sample-pale: #eaf0e6;
  --sample-dark: #1b2923;
}

.outcome-preview-business {
  --sample-ink: #35261f;
  --sample-muted: #79675e;
  --sample-accent: #bc5b36;
  --sample-pale: #f2e4d5;
  --sample-dark: #432d25;
}

.outcome-preview-creative {
  --sample-ink: #2e2028;
  --sample-muted: #765c66;
  --sample-accent: #d74454;
  --sample-pale: #f3d0c4;
  --sample-dark: #2e2028;
}

.sample-site-nav {
  position: sticky;
  top: -1px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.4rem;
  margin: 1.15rem 0 0;
  padding: 0.65rem 0.8rem;
  color: var(--sample-ink);
  background: color-mix(in srgb, var(--sample-pale) 88%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--sample-ink) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sample-ink) 18%, transparent);
  backdrop-filter: blur(12px);
}

.sample-site-brand,
.sample-route-status {
  flex: 0 0 auto;
  font: var(--type-label);
  letter-spacing: 0.08em;
}

.sample-route-status {
  margin-left: auto;
  color: var(--sample-muted);
  font-size: 0.62rem;
}

.sample-site-links {
  display: flex;
  gap: 0.3rem;
  min-width: 0;
  margin-left: auto;
}

.sample-site-links a {
  padding: 0.42rem 0.58rem;
  color: var(--sample-muted);
  border: 1px solid transparent;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}

.sample-site-links a:hover,
.sample-site-links a[aria-current="page"] {
  color: var(--sample-ink);
  background: color-mix(in srgb, var(--sample-accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--sample-accent) 55%, transparent);
  transform: translateY(-1px);
}

.sample-screen {
  scroll-margin-top: 4.5rem;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sample-ink) 18%, transparent);
}

.sample-screen--hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(72vh, 36rem);
  padding-top: clamp(3rem, 6vw, 6rem);
  background: var(--sample-pale);
}

.sample-screen-copy,
.sample-screen-heading { min-width: 0; }

.sample-screen-kicker {
  display: block;
  color: var(--sample-accent);
  font: var(--type-label);
  letter-spacing: 0.1em;
}

.sample-screen-copy h3 {
  max-width: 10ch;
  margin: 1.2rem 0 0;
  color: var(--sample-ink);
  font: 600 clamp(2.8rem, 6vw, 6.8rem) / 0.9 var(--font-display);
  letter-spacing: -0.065em;
}

.sample-screen-copy p {
  max-width: 39ch;
  margin: 1.5rem 0 0;
  color: var(--sample-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.sample-screen-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-bottom: 0.35rem;
  color: var(--sample-ink);
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.sample-hero-visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
}

.sample-visual-code {
  display: grid;
  place-items: center;
  background: #d9e6d4;
  border-radius: 1.25rem 1.25rem 1.25rem 5rem;
}

.sample-code-window {
  position: relative;
  z-index: 2;
  width: min(88%, 31rem);
  overflow: hidden;
  color: #dcebdd;
  background: #1b2923;
  border: 1px solid rgba(220, 235, 221, 0.25);
  border-radius: 0.7rem;
  box-shadow: 0.75rem 0.9rem 0 rgba(27, 41, 35, 0.12), 0 1.5rem 3rem rgba(27, 41, 35, 0.2);
  transform: rotate(-3deg);
}

.sample-code-bar {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(220, 235, 221, 0.15);
  font: 0.62rem / 1 var(--font-mono);
}

.sample-code-bar > span {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #e17c67;
  opacity: 0.8;
}

.sample-code-bar > span:nth-child(2) { background: #e7ca74; }
.sample-code-bar > span:nth-child(3) { background: #8ecf58; }
.sample-code-bar b { margin-left: 0.55rem; font-weight: 500; }
.sample-code-bar i { margin-left: auto; color: #8ecf58; font-style: normal; }

.sample-code-body {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1rem 1.5rem;
  font: 0.76rem / 1.35 var(--font-mono);
}

.sample-code-body em {
  display: inline-block;
  width: 1.7rem;
  color: #6e8c78;
  font-style: normal;
  text-align: right;
}

.sample-code-body strong { color: #b9e77f; font-weight: 600; }
.sample-code-body mark { color: #e7ca74; background: transparent; }
.sample-code-comment { color: #769582; }

.sample-code-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  color: #9fc0a5;
  background: rgba(9, 18, 14, 0.25);
  font: 0.65rem / 1 var(--font-mono);
  letter-spacing: 0.04em;
}

.sample-code-status b { margin-left: auto; color: #b9e77f; font-weight: 500; }
.sample-status-dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #8ecf58; box-shadow: 0 0 0 0.28rem rgba(142, 207, 88, 0.16); }

.sample-code-orbit {
  position: absolute;
  right: -12%;
  bottom: -29%;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(27, 41, 35, 0.32);
  border-radius: 50%;
  animation: sample-orbit 13s linear infinite;
}

.sample-code-orbit::after {
  position: absolute;
  top: 12%;
  left: 20%;
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  background: var(--sample-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem rgba(142, 207, 88, 0.16);
}

.sample-visual-business {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 0.75rem;
  padding: 1rem;
  background: #e2c6a6;
  border-radius: 6rem 0.8rem 0.8rem 0.8rem;
}

.sample-market-map {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  background: #f4e8d9;
  border: 1px solid rgba(53, 38, 31, 0.28);
}

.sample-market-map::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(rgba(53, 38, 31, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 38, 31, 0.1) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

.market-axis { position: absolute; background: rgba(53, 38, 31, 0.38); }
.market-axis-x { right: 8%; bottom: 21%; left: 9%; height: 1px; }
.market-axis-y { top: 9%; bottom: 18%; left: 17%; width: 1px; }
.market-dot { position: absolute; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; color: #f4e8d9; background: #bc5b36; border-radius: 50%; font: 0.58rem / 1 var(--font-mono); letter-spacing: 0.04em; }
.market-dot-a { top: 27%; left: 29%; }
.market-dot-b { top: 46%; right: 18%; width: 4.2rem; height: 4.2rem; background: #5f7660; }
.market-dot-c { right: 33%; bottom: 17%; width: 2.7rem; height: 2.7rem; background: #d08a54; }
.market-path { position: absolute; top: 44%; right: 21%; left: 31%; height: 2.5rem; border-top: 1px solid #bc5b36; border-radius: 50%; transform: rotate(14deg); }
.sample-market-map > b { position: absolute; right: 0.75rem; bottom: 0.7rem; color: #79675e; font: 0.6rem / 1 var(--font-mono); font-weight: 500; letter-spacing: 0.05em; }

.sample-business-card { align-self: end; padding: 1rem; color: #f4e8d9; background: #432d25; transform: rotate(4deg); }
.sample-business-card span, .sample-business-card small { display: block; font: 0.56rem / 1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.sample-business-card strong { display: block; margin: 2rem 0 0.35rem; color: #f0b778; font: 600 clamp(2rem, 4vw, 3.5rem) / 0.9 var(--font-display); letter-spacing: -0.06em; }

.sample-visual-creative {
  display: grid;
  place-items: center;
  background: #e4a695;
  border-radius: 0.8rem 5rem 0.8rem 0.8rem;
}

.sample-poster {
  position: relative;
  z-index: 2;
  width: min(74%, 18rem);
  min-height: 20rem;
  padding: 1.2rem;
  overflow: hidden;
  color: #f5d7cb;
  background: #2e2028;
  box-shadow: -0.7rem 0.7rem 0 rgba(46, 32, 40, 0.18), 0 1.7rem 3rem rgba(46, 32, 40, 0.18);
  transform: rotate(5deg);
}

.sample-poster > span { position: relative; z-index: 1; font: 0.66rem / 1 var(--font-mono); letter-spacing: 0.12em; }
.sample-poster > b { position: absolute; right: 0.9rem; bottom: 2.2rem; z-index: 1; color: #f08b78; font: 600 clamp(1.45rem, 3vw, 2.15rem) / 0.82 var(--font-body); letter-spacing: -0.07em; }
.sample-poster > small { position: absolute; bottom: 0.8rem; left: 1rem; color: #d7a69c; font: 0.56rem / 1 var(--font-mono); letter-spacing: 0.06em; }
.sample-poster > i { position: absolute; top: 18%; right: -21%; width: 80%; aspect-ratio: 1; border: 1px solid rgba(240, 139, 120, 0.66); border-radius: 50%; }
.sample-poster-orbit { position: absolute; right: 2%; bottom: -18%; width: 52%; aspect-ratio: 1; border: 1px solid rgba(46, 32, 40, 0.55); border-radius: 50%; animation: sample-orbit 16s linear infinite reverse; }

.sample-screen--work { background: var(--sample-dark); color: #f4f1e8; }
.sample-screen--work .sample-screen-heading h4,
.sample-screen--work .sample-screen-heading p { color: #f4f1e8; }
.sample-screen--work .sample-screen-heading p { opacity: 0.68; }

.sample-screen-heading h4,
.sample-screen--contact h4 {
  max-width: 16ch;
  margin: 0.9rem 0 0;
  color: var(--sample-ink);
  font: 600 clamp(1.85rem, 4vw, 3.9rem) / 0.95 var(--font-display);
  letter-spacing: -0.055em;
}

.sample-screen-heading p,
.sample-screen--contact p {
  max-width: 42ch;
  margin: 1rem 0 0;
  color: var(--sample-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sample-screen--work .sample-screen-kicker { color: var(--sample-accent); }
.sample-project-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0.8rem; margin-top: 2.5rem; }
.sample-project-card { display: flex; flex-direction: column; min-height: 13rem; padding: 1.2rem; color: #f4f1e8; border: 1px solid rgba(244, 241, 232, 0.2); border-radius: 0.6rem; transition: transform var(--duration-normal) var(--ease-snappy), background var(--duration-normal), border-color var(--duration-fast); }
.sample-project-card:hover { border-color: var(--sample-accent); transform: translateY(-4px); }
.sample-project-card--large { grid-row: span 2; min-height: 26.8rem; }
.sample-project-card > span { color: var(--sample-accent); font: 0.62rem / 1.2 var(--font-mono); letter-spacing: 0.1em; }
.sample-project-card h5 { max-width: 12ch; margin: auto 0 0.65rem; font: 600 clamp(1.45rem, 3vw, 2.6rem) / 0.95 var(--font-display); letter-spacing: -0.045em; }
.sample-project-card p { max-width: 34ch; margin: 0; color: rgba(244, 241, 232, 0.7); font-size: 0.82rem; line-height: 1.5; }
.sample-project-card > div { display: flex; align-items: end; justify-content: space-between; gap: 0.6rem; margin-top: 1.5rem; padding-top: 0.7rem; border-top: 1px solid rgba(244, 241, 232, 0.18); }
.sample-project-card > div b { color: var(--sample-accent); font: 600 1.55rem / 1 var(--font-display); letter-spacing: -0.04em; }
.sample-project-card > div span { max-width: 12ch; color: rgba(244, 241, 232, 0.55); font: 0.58rem / 1.25 var(--font-mono); text-align: right; text-transform: uppercase; }
.sample-project-card--code { background: #22332b; }
.sample-project-card--business { color: #f4e8d9; background: #5a3b2e; }
.sample-project-card--creative { background: #4a2732; }

.sample-screen--about { background: var(--sample-pale); }
.sample-screen-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.sample-principle-list,
.sample-approach-steps,
.sample-creative-notes { display: grid; gap: 0.8rem; }
.sample-principle-list > div,
.sample-approach-steps > div { display: grid; grid-template-columns: 3.3rem 1fr; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--sample-ink) 20%, transparent); }
.sample-principle-list span,
.sample-approach-steps span { color: var(--sample-accent); font: var(--type-label); letter-spacing: 0.08em; }
.sample-principle-list p,
.sample-approach-steps p { margin: 0; color: var(--sample-muted); font-size: 0.9rem; line-height: 1.5; }
.sample-approach-steps > div { grid-template-columns: 5rem 1fr; }
.sample-approach-steps span { color: var(--sample-ink); }
.sample-creative-notes p { margin: 0; padding: 1rem 0; color: var(--sample-ink); border-bottom: 1px solid color-mix(in srgb, var(--sample-ink) 20%, transparent); font: 600 clamp(1.2rem, 2vw, 1.8rem) / 1.1 var(--font-display); letter-spacing: -0.025em; }

.sample-screen--contact { min-height: 22rem; background: var(--sample-dark); }
.sample-screen--contact h4 { color: #f4f1e8; }
.sample-screen--contact p { color: rgba(244, 241, 232, 0.7); }
.sample-screen--contact .sample-screen-link { color: #f4f1e8; }
.sample-screen--code-contact { background: #22332b; }
.sample-screen--business-contact { background: #5a3b2e; }
.sample-screen--creative-contact { background: #4a2732; }

@keyframes sample-rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sample-orbit {
  to { transform: rotate(360deg); }
}

.outcome-preview:not([hidden]) .sample-screen-copy,
.outcome-preview:not([hidden]) .sample-hero-visual { animation: sample-rise 700ms var(--ease-spring) both; }
.outcome-preview:not([hidden]) .sample-hero-visual { animation-delay: 90ms; }
.outcome-preview:not([hidden]) .sample-project-card { animation: sample-rise 600ms var(--ease-spring) both; }
.outcome-preview:not([hidden]) .sample-project-card:nth-child(2) { animation-delay: 80ms; }
.outcome-preview:not([hidden]) .sample-project-card:nth-child(3) { animation-delay: 140ms; }

@media (max-width: 760px) {
  .sample-site-nav { align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; }
  .sample-site-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .sample-route-status { margin-left: auto; }
  .sample-screen--hero,
  .sample-screen-grid { grid-template-columns: 1fr; }
  .sample-screen--hero { min-height: auto; gap: 2.5rem; }
  .sample-screen-copy h3 { font-size: clamp(2.7rem, 14vw, 4.8rem); }
  .sample-hero-visual { min-height: 18rem; }
  .sample-code-body { font-size: 0.65rem; }
  .sample-project-grid { grid-template-columns: 1fr; }
  .sample-project-card--large { grid-row: auto; min-height: 18rem; }
  .sample-project-card { min-height: 14rem; }
  .sample-screen--contact { min-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sample-code-orbit,
  .sample-poster-orbit,
  .outcome-preview:not([hidden]) .sample-screen-copy,
  .outcome-preview:not([hidden]) .sample-hero-visual,
  .outcome-preview:not([hidden]) .sample-project-card { animation: none; }
}

/* ========================================================================
   ART-DIRECTED INTERACTION LAYER — each sample has its own visual grammar
   ======================================================================== */
.outcome-preview:not([hidden]) {
  --pointer-x: 50%;
  --pointer-y: 22%;
  position: relative;
  isolation: isolate;
}

.outcome-preview:not([hidden])::before,
.outcome-preview:not([hidden])::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.outcome-preview:not([hidden])::before {
  z-index: 5;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 16% 22%, currentColor 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 78% 61%, currentColor 0 0.45px, transparent 0.7px);
  background-size: 19px 19px, 23px 23px;
  mix-blend-mode: multiply;
  animation: sample-grain 18s steps(5) infinite;
}

.outcome-preview:not([hidden])::after {
  z-index: 6;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.22), transparent 17rem);
  opacity: 0.32;
  mix-blend-mode: soft-light;
  transition: opacity var(--duration-normal) var(--ease-snappy);
}

.outcome-preview:not([hidden]) > * { position: relative; z-index: 1; }
.outcome-dialog-sheet { scroll-behavior: smooth; }

/* SOFTWARE DEVELOPER — instrument panel, telemetry grid, and live signal */
.outcome-preview-code .sample-site-nav {
  color: #dcebdd;
  background: rgba(23, 34, 31, 0.94);
  border-color: rgba(220, 235, 221, 0.22);
  box-shadow: 0 0.8rem 1.8rem rgba(27, 41, 35, 0.14);
}

.outcome-preview-code .sample-site-brand { color: #dcebdd; }
.outcome-preview-code .sample-route-status { color: #91ad98; }
.outcome-preview-code .sample-site-links a { color: #9db2a5; }
.outcome-preview-code .sample-site-links a:hover,
.outcome-preview-code .sample-site-links a[aria-current="page"] {
  color: #f0ffe8;
  background: rgba(142, 207, 88, 0.18);
  border-color: rgba(142, 207, 88, 0.58);
}

.sample-visual-code {
  border: 1px solid rgba(23, 34, 31, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1.6rem 3rem rgba(27, 41, 35, 0.12);
  background:
    radial-gradient(circle at 72% 18%, rgba(142, 207, 88, 0.28), transparent 24%),
    linear-gradient(135deg, #d9e6d4 0%, #cadfc9 56%, #b9d3c0 100%);
}

.sample-visual-code::before {
  position: absolute;
  inset: -20%;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(23, 34, 31, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 31, 0.14) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  transform: rotate(-6deg);
  animation: code-grid-drift 16s linear infinite;
}

.sample-visual-code::after {
  position: absolute;
  top: -30%;
  left: -40%;
  width: 30%;
  height: 170%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(240, 255, 232, 0.38), transparent);
  filter: blur(0.15rem);
  transform: rotate(18deg);
  animation: code-scan 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sample-code-window {
  box-shadow: 0.75rem 0.9rem 0 rgba(27, 41, 35, 0.12), 0 1.5rem 3rem rgba(27, 41, 35, 0.22), 0 0 0 0.45rem rgba(142, 207, 88, 0.08);
  animation: code-console-bob 7s ease-in-out infinite;
}

.sample-code-window::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24%;
  width: 22%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(220, 235, 221, 0.15), transparent);
  transform: skewX(-16deg);
  animation: code-glint 5.5s ease-in-out infinite;
}

.sample-code-bar i::after {
  margin-left: 0.5rem;
  color: #b9e77f;
  content: "● live";
  animation: code-live-pulse 2.6s ease-in-out infinite;
}

.outcome-preview-code .sample-screen--work {
  background-image: radial-gradient(circle at 12% 20%, rgba(142, 207, 88, 0.12), transparent 16rem), linear-gradient(135deg, #1b2923, #20382d);
}

.outcome-preview-code .sample-project-card--code {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #22332b, #1d3027);
}

.outcome-preview-code .sample-project-card--code::before {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 0.38rem;
  height: 0.38rem;
  content: "";
  background: #8ecf58;
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem rgba(142, 207, 88, 0.11);
  animation: code-live-pulse 2.6s ease-in-out infinite;
}

/* BUSINESS DEVELOPER — a warm market map with moving signals and offset proof */
.outcome-preview-business .sample-site-nav {
  background: rgba(248, 235, 222, 0.94);
  border-left: 0.22rem solid #bc5b36;
  box-shadow: 0 0.8rem 0 #e4c6a8;
}

.outcome-preview-business .sample-site-brand { color: #5a3b2e; }
.outcome-preview-business .sample-site-links a[aria-current="page"] {
  color: #432d25;
  background: rgba(188, 91, 54, 0.17);
  border-color: rgba(188, 91, 54, 0.48);
}

.sample-screen--business {
  position: relative;
  overflow: hidden;
}

.sample-screen--business::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(53, 38, 31, 0.12);
  content: "FIELD / 06";
  font: 600 clamp(4rem, 13vw, 10rem) / 0.8 var(--font-display);
  letter-spacing: -0.08em;
  transform: rotate(-8deg);
  animation: business-watermark 12s ease-in-out infinite alternate;
}

.sample-visual-business {
  border: 1px solid rgba(53, 38, 31, 0.2);
  box-shadow: 0.85rem 1rem 0 rgba(95, 118, 96, 0.19), 0 1.8rem 3rem rgba(95, 70, 53, 0.15);
  transform: rotate(-1.2deg);
  animation: business-breathe 8s ease-in-out infinite;
}

.sample-visual-business::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background: repeating-linear-gradient(118deg, transparent 0 1.35rem, rgba(67, 45, 37, 0.11) 1.35rem 1.42rem);
  mix-blend-mode: multiply;
  animation: business-grid-pan 13s linear infinite;
}

.sample-visual-business::after {
  position: absolute;
  right: -18%;
  bottom: -35%;
  width: 70%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(188, 91, 54, 0.48);
  border-radius: 50%;
  animation: business-orbit 15s linear infinite;
}

.sample-market-map::after {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: rgba(53, 38, 31, 0.5);
  content: "NEED / FIT / NOW";
  font: 0.56rem / 1 var(--font-mono);
  letter-spacing: 0.08em;
}

.market-dot {
  z-index: 1;
  box-shadow: 0 0 0 0.45rem rgba(188, 91, 54, 0.1), 0 0.8rem 1rem rgba(95, 70, 53, 0.13);
  animation: market-pulse 4.8s ease-in-out infinite;
}

.market-dot-b { animation-delay: -1.4s; }
.market-dot-c { animation-delay: -2.7s; }

.market-path {
  border-top: 2px dashed #bc5b36;
  transform-origin: left center;
  animation: business-route 6s ease-in-out infinite;
}

.sample-business-card {
  position: relative;
  z-index: 2;
  box-shadow: 0.65rem 0.75rem 0 rgba(188, 91, 54, 0.24), 0 1.2rem 2rem rgba(67, 45, 37, 0.18);
  animation: business-card-float 6.5s ease-in-out infinite;
}

.sample-business-card::after {
  position: absolute;
  right: -18%;
  bottom: -35%;
  width: 70%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(240, 183, 120, 0.58);
  border-radius: 50%;
}

.sample-project-grid--business {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1rem 1.25rem;
}

.sample-project-grid--business .sample-project-card--large {
  transform: translateY(0.7rem) rotate(-1deg);
}

.sample-project-grid--business .sample-project-card:nth-child(2) { transform: translateY(-0.35rem) rotate(1deg); }
.sample-project-grid--business .sample-project-card:nth-child(3) { transform: translateX(0.7rem) rotate(-0.6deg); }
.sample-project-grid--business .sample-project-card:hover { transform: translateY(-0.45rem) rotate(0deg); }

/* CREATIVE DIRECTOR — layered paper, poster typography, and a loose collage */
.outcome-preview-creative .sample-site-nav {
  color: #f5d7cb;
  background: rgba(46, 32, 40, 0.95);
  border-color: rgba(245, 215, 203, 0.2);
}

.outcome-preview-creative .sample-site-brand { color: #f5d7cb; }
.outcome-preview-creative .sample-route-status { color: #d7a69c; }
.outcome-preview-creative .sample-site-links a { color: #d7a69c; }
.outcome-preview-creative .sample-site-links a:hover,
.outcome-preview-creative .sample-site-links a[aria-current="page"] {
  color: #fff3eb;
  background: rgba(215, 68, 84, 0.3);
  border-color: rgba(240, 139, 120, 0.72);
}

.sample-visual-creative {
  position: relative;
  border: 1px solid rgba(46, 32, 40, 0.16);
  box-shadow: 0.8rem 1rem 0 rgba(46, 32, 40, 0.12), 0 1.8rem 3rem rgba(46, 32, 40, 0.12);
  transform: rotate(-1.2deg);
}

.sample-visual-creative::before {
  position: absolute;
  top: 8%;
  left: 5%;
  width: 84%;
  height: 88%;
  content: "";
  border: 1px solid rgba(46, 32, 40, 0.34);
  transform: rotate(-7deg);
  animation: creative-paper-drift 9s ease-in-out infinite alternate;
}

.sample-visual-creative::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background: repeating-linear-gradient(90deg, transparent 0 3rem, rgba(46, 32, 40, 0.12) 3rem 3.05rem);
  animation: creative-stripe-shift 11s linear infinite;
}

.sample-poster {
  animation: creative-poster-float 7s ease-in-out infinite;
}

.sample-poster::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(circle, #f08b78 0 1px, transparent 1.5px);
  background-size: 0.65rem 0.65rem;
  mix-blend-mode: screen;
  animation: creative-dots-shift 8s linear infinite;
}

.sample-poster > i { animation: creative-ring-turn 10s linear infinite; }
.sample-poster-orbit { animation-duration: 22s; }

.sample-project-grid--creative {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem 1.5rem;
}

.sample-project-grid--creative .sample-project-card--large {
  transform: translateY(0.8rem) rotate(-1.4deg);
}

.sample-project-grid--creative .sample-project-card:nth-child(2) { transform: translateY(-0.4rem) rotate(1.4deg); }
.sample-project-grid--creative .sample-project-card:nth-child(3) { transform: translateX(0.45rem) rotate(-0.8deg); }
.sample-project-grid--creative .sample-project-card:hover { transform: translateY(-0.5rem) rotate(0deg); }
.outcome-preview-creative .sample-screen--about { background: #f6d9cf; }
.outcome-preview-creative .sample-creative-notes p:nth-child(2) { transform: translateX(1.6rem) rotate(1.2deg); }
.outcome-preview-creative .sample-creative-notes p:nth-child(3) { transform: translateX(-0.5rem) rotate(-0.8deg); }

/* Scroll-aware screen reveals keep the long previews feeling like a living site. */
.sample-screen.is-in-view .sample-screen-heading,
.sample-screen.is-in-view .sample-principle-list,
.sample-screen.is-in-view .sample-approach-steps,
.sample-screen.is-in-view .sample-creative-notes {
  animation: sample-screen-reveal 650ms var(--ease-spring) both;
}

@keyframes sample-grain {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 13px -9px, -8px 12px; }
  100% { background-position: -11px 14px, 17px -7px; }
}

@keyframes code-grid-drift { to { background-position: 2.75rem 2.75rem; } }
@keyframes code-scan { 0%, 20% { transform: translateX(-120%) rotate(18deg); } 65%, 100% { transform: translateX(510%) rotate(18deg); } }
@keyframes code-console-bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-0.45rem); } }
@keyframes code-glint { 0%, 25% { transform: translateX(0) skewX(-16deg); opacity: 0; } 52% { opacity: 1; } 78%, 100% { transform: translateX(720%) skewX(-16deg); opacity: 0; } }
@keyframes code-live-pulse { 0%, 100% { opacity: 0.48; } 50% { opacity: 1; } }
@keyframes business-watermark { from { transform: translateY(-0.4rem) rotate(-8deg); } to { transform: translateY(0.7rem) rotate(-4deg); } }
@keyframes business-breathe { 0%, 100% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(-0.2deg) translateY(-0.4rem); } }
@keyframes business-grid-pan { to { background-position: 3rem 1rem; } }
@keyframes business-orbit { to { transform: rotate(360deg); } }
@keyframes market-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes business-route { 0%, 100% { transform: rotate(14deg) scaleX(0.8); opacity: 0.55; } 50% { transform: rotate(9deg) scaleX(1.08); opacity: 1; } }
@keyframes business-card-float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-0.55rem); } }
@keyframes creative-paper-drift { from { transform: rotate(-7deg) translate(-0.2rem, 0.2rem); } to { transform: rotate(-4deg) translate(0.6rem, -0.4rem); } }
@keyframes creative-stripe-shift { to { background-position: 3rem 0; } }
@keyframes creative-poster-float { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(3.5deg) translateY(-0.65rem); } }
@keyframes creative-dots-shift { to { background-position: 0.65rem 0.65rem; } }
@keyframes creative-ring-turn { to { transform: rotate(360deg); } }
@keyframes sample-screen-reveal { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .sample-visual-business { grid-template-columns: 1fr; }
  .sample-business-card { justify-self: end; margin-top: -1.3rem; }
  .sample-project-grid--business,
  .sample-project-grid--creative { grid-template-columns: 1fr; }
  .sample-project-grid--business .sample-project-card,
  .sample-project-grid--creative .sample-project-card { transform: none; }
  .sample-project-grid--business .sample-project-card:hover,
  .sample-project-grid--creative .sample-project-card:hover { transform: translateY(-0.35rem); }
  .sample-visual-creative::before { left: 4%; width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .outcome-preview:not([hidden])::before,
  .sample-visual-code::before,
  .sample-visual-code::after,
  .sample-code-window,
  .sample-code-window::after,
  .sample-code-bar i::after,
  .sample-project-card--code::before,
  .sample-screen--business::before,
  .sample-visual-business,
  .sample-visual-business::before,
  .sample-visual-business::after,
  .market-dot,
  .market-path,
  .sample-business-card,
  .sample-visual-creative::before,
  .sample-visual-creative::after,
  .sample-poster,
  .sample-poster::before,
  .sample-poster > i,
  .sample-poster-orbit,
  .sample-screen.is-in-view .sample-screen-heading,
  .sample-screen.is-in-view .sample-principle-list,
  .sample-screen.is-in-view .sample-approach-steps,
  .sample-screen.is-in-view .sample-creative-notes { animation: none !important; }
  .sample-project-grid--business .sample-project-card,
  .sample-project-grid--creative .sample-project-card { transform: none; }
  .outcome-dialog-sheet { scroll-behavior: auto; }
}

/* ========================================================================
   VIEWPORT BREAKPOINTS & SHORT-HEIGHT DESKTOP RULES
   ======================================================================== */

/* SHORT-HEIGHT DESKTOPS (e.g. 1366x768, 1280x720, 1440x900) */
@media (min-width: 900px) and (max-height: 820px) {
  .sign-in-left-col {
    padding: 1.75rem 2.5rem 1.75rem 3rem;
  }
  .sign-in-headline {
    font-size: clamp(1.85rem, 2.8vw, 2.5rem);
    margin-bottom: 0.75rem;
  }
  .sign-in-lede {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    line-height: 1.48;
  }
  .google-auth-cta {
    min-height: 48px;
  }
  .sign-in-guidance {
    margin: 0.65rem 0 1.25rem;
  }
  .trust-divider {
    margin-bottom: 1.15rem;
  }
  .trust-features-row {
    margin-bottom: 1.25rem;
    gap: 0.65rem;
  }
  .trust-item {
    font-size: 0.75rem;
  }
  .sign-in-left-footer {
    padding-top: 1rem;
  }
  .sign-in-right-col {
    padding: 1.5rem 2.5rem;
  }
  .stage-rail-wrap {
    margin-bottom: 1.25rem;
  }
  .sign-in-showcase {
    min-height: 320px;
  }
  .showcase-deck {
    height: 310px;
    max-width: 440px;
  }
  .showcase-card {
    padding: 1.15rem;
  }
  .brief-title {
    font-size: 1.4rem;
  }
  .brief-split-grid {
    margin-bottom: 0.65rem;
  }
  .brief-metrics-row {
    padding: 0.45rem 0;
    margin-bottom: 0.55rem;
  }
}

/* TABLET SCREENS (761px - 1050px) */
@media (max-width: 1050px) and (min-width: 761px) {
  .sign-in-workspace {
    grid-template-columns: 48fr 52fr;
  }
  .sign-in-left-col {
    padding: 2rem 2rem;
  }
  .sign-in-right-col {
    padding: 2rem 1.75rem;
  }
  .showcase-deck {
    max-width: 380px;
    height: 340px;
  }
  .showcase-card.card-next {
    transform: translate3d(24%, 6px, -30px) scale(0.95);
  }
  .showcase-card.card-prev {
    transform: translate3d(-24%, 6px, -30px) scale(0.95);
  }
  .showcase-callout-annotation {
    display: none;
  }
}

/* MOBILE SCREENS (<= 760px) */
@media (max-width: 760px) {
  .sign-in-workspace {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .sign-in-left-col {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 2.25rem 1.25rem;
  }
  .sign-in-headline {
    font-size: 2.25rem;
  }
  .trust-features-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .sign-in-right-col {
    padding: 2.5rem 1.25rem 3rem;
  }
  .stage-rail-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 0.5rem;
  }
  .stage-rail-node {
    width: 100%;
  }
  .rail-track {
    display: none;
  }
  .sign-in-showcase {
    min-height: 380px;
    margin-top: 1rem;
  }
  .showcase-deck {
    max-width: 100%;
    height: 360px;
  }
  .showcase-card.card-next,
  .showcase-card.card-prev {
    display: none;
  }
  .showcase-callout-annotation {
    display: none;
  }
  .sign-in-left-footer {
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .footer-pipe {
    display: none;
  }
}

/* REDUCED MOTION SAFETY */
@media (prefers-reduced-motion: reduce) {
  .sign-in-header,
  .verified-eyebrow-row,
  .sign-in-headline,
  .sign-in-lede,
  .cta-block,
  .sign-in-right-col {
    animation: none !important;
  }
  .rail-traveling-highlight {
    display: none !important;
  }
  .cobalt-dot-pulsing {
    animation: none !important;
  }
  .showcase-card {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
  .showcase-card.card-next,
  .showcase-card.card-prev,
  .showcase-card.card-back {
    display: none !important;
  }
  .showcase-card.card-active {
    display: flex !important;
    transform: none !important;
  }
  .panel, .admin-summary, .admin-row, #draft-mark-slot, dialog[open] {
    animation: none !important;
  }
}
