﻿/* ============================================================
   PENTHAUS — penthouse terminal design system
   Palette: warm near-black, brass/gold, bone text, wire green/red
   Type: Instrument Serif (display) · Instrument Sans (UI) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --bg: #0b0a08;
  --ink: #14100a;
  --x-blue: #7aa7c7;
  --bg-raise: #12100d;
  --bg-panel: #161310;
  --line: #2a251d;
  --line-soft: #1e1a15;
  --gold: #c9a35c;
  --gold-bright: #e8c47d;
  --gold-dim: #8a7040;
  --bone: #ece5d8;
  --muted: #8f866f;
  --faint: #5c553f;
  --up: #3ecf8e;
  --down: #e5484d;
  --risk: #e5a33d;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
em { font-style: italic; color: var(--gold-bright); }

a { color: inherit; text-decoration: none; }
.tx { color: var(--gold-bright); border-bottom: 1px dotted var(--gold-dim); transition: border-color 0.2s ease, color 0.2s ease; }
.tx:hover { border-color: var(--gold-bright); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
canvas { display: block; }

::selection { background: var(--gold); color: var(--bg); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible {
  outline: 1px solid var(--gold-bright); outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 32px rgba(201, 163, 92, 0.25); }
.btn-line { border-color: var(--gold-dim); color: var(--gold-bright); }
.btn-line:hover { border-color: var(--gold-bright); background-color: rgba(201, 163, 92, 0.07); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--bone); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background: linear-gradient(rgba(11, 10, 8, 0.92), rgba(11, 10, 8, 0.78) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 37, 29, 0.55);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.brand-word { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.32em; color: var(--gold-bright); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-actions { display: flex; gap: 10px; }
@media (max-width: 900px) {
  /* links drop to a second, horizontally scrollable row — never vanish */
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .hero { padding-top: 150px; }
}
@media (max-width: 560px) {
  .nav .btn { padding: 8px 11px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .brand-word { letter-spacing: 0.2em; font-size: 0.78rem; }
  .nav { gap: 12px; }
}

/* phones skip the WebGL city (scene.js) — a composed skyline carries the
   hero instead of a black void: night sky, horizon light-pollution, tower
   silhouettes, and a grain of lit windows across the band */
@media (max-width: 720px) {
  .hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-repeat: no-repeat;
    background-image:
      repeating-linear-gradient(90deg, rgba(232, 196, 125, 0.13) 0 2px, transparent 2px 8px),
      repeating-linear-gradient(0deg, rgba(232, 196, 125, 0.10) 0 2px, transparent 2px 10px),
      linear-gradient(rgba(201, 163, 92, 0.30), rgba(201, 163, 92, 0.14)),
      linear-gradient(#17130c, #17130c),
      linear-gradient(#131009, #131009),
      linear-gradient(#0f0d0a, #0f0d0a),
      linear-gradient(#141109, #141109),
      linear-gradient(#0e0c09, #0e0c09),
      linear-gradient(#100e0b, #100e0b),
      radial-gradient(130% 52% at 60% 100%, rgba(201, 163, 92, 0.22), transparent 62%),
      linear-gradient(180deg, #050508 0%, #0b0a10 44%, #1a1206 100%);
    background-size:
      100% 34%, 100% 34%,
      17% 46%, 17% 46%,
      13% 30%, 15% 24%, 12% 36%, 14% 20%, 11% 27%,
      100% 100%, 100% 100%;
    background-position:
      50% 100%, 50% 100%,
      58% 100%, 58% 100%,
      8% 100%, 27% 100%, 78% 100%, 94% 100%, 43% 100%,
      50% 100%, 50% 100%;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease;
}
.hero-canvas.on { opacity: 1; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(97deg, rgba(11, 10, 8, 0.94) 0%, rgba(11, 10, 8, 0.72) 40%, transparent 66%),
    linear-gradient(rgba(11, 10, 8, 0.3), transparent 28%, transparent 62%, var(--bg) 97%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; width: 100%; min-width: 0; }
.hero-kicker { color: var(--gold); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.05rem, 6.5vw, 5rem); letter-spacing: -0.015em; margin-bottom: 26px; }
.hero-sub { max-width: 560px; color: var(--muted); font-size: 1.06rem; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { color: var(--faint); }

/* tape loop keyframes - used by .corner-ticker-run */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vh, 140px) var(--pad); max-width: 1280px; margin: 0 auto; }
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw);
  background: var(--bg-raise); z-index: -1;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head-left { margin-bottom: 0; }
.section-kicker { color: var(--gold); margin-bottom: 16px; }
.section-head h2 { margin-bottom: 20px; }
.section-lede { color: var(--muted); font-size: 1.02rem; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.data-note { color: var(--faint); margin-top: 28px; }

/* ---------- wire ---------- */
.wire-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .wire-grid { grid-template-columns: 1fr; } }

.wire-panel { overflow: hidden; }
.panel-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.feed-status { margin-left: auto; color: var(--faint); }

.wire-list { max-height: 460px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.wire-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px;
  padding: 13px 20px; border-bottom: 1px solid var(--line-soft);
}
.wire-time { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); padding-top: 2px; }
.wire-text { font-size: 0.9rem; line-height: 1.45; }
.wire-item.hot .wire-text { color: var(--gold-bright); }
.wire-src { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--faint); display: block; margin-top: 3px; }
.wire-src.src-x { color: var(--x-blue); }

.wire-side { display: grid; gap: 18px; }

/* VIX regime panel */
.vix-panel { padding: 16px 18px; display: grid; gap: 10px; cursor: pointer; user-select: none; }
.vix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vix-title { color: var(--muted); }
.vix-sim { color: var(--faint); font-size: 0.56rem; }
.vix-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vix-level { font-family: var(--font-mono); font-size: 1.9rem; color: var(--bone); }
.vix-chg { font-family: var(--font-mono); font-size: 0.8rem; }
.vix-chg.down-day { color: var(--up); }
.vix-chg.up-day { color: var(--down); }
.vix-badge { font-size: 0.6rem; letter-spacing: 0.16em; padding: 3px 9px; border: 1px solid; margin-left: auto; }
.vix-badge.v-calm { color: var(--up); border-color: var(--up); }
.vix-badge.v-warn { color: var(--risk); border-color: var(--risk); }
.vix-badge.v-shock { color: var(--down); border-color: var(--down); animation: pulse 1.2s infinite; }
.vix-note { color: var(--faint); }

/* vol curve */
.vol-curve { display: flex; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.vol-cell { flex: 1; background: var(--bg-raise); padding: 10px 8px; display: grid; gap: 2px; justify-items: center; }
.vol-cell-badge { align-content: center; }
.vol-label { font-size: 0.56rem; color: var(--faint); letter-spacing: 0.16em; }
.vol-level { font-family: var(--font-mono); font-size: 0.98rem; color: var(--bone); }
.vol-chg { font-size: 0.58rem; }
.vol-chg.down-day { color: var(--up); }
.vol-chg.up-day { color: var(--down); }
.feature-card { border-left: 1px solid var(--gold-dim); padding: 6px 0 6px 22px; }
.feature-card h3 { color: var(--gold-bright); margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- what is it ---------- */
.what-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.what-card { padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.what-num { color: var(--gold); font-size: 0.62rem; letter-spacing: 0.2em; }
.what-card h3 { color: var(--bone); font-size: 1.25rem; }
.what-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- insider ---------- */
.insider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.intel-card { padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.intel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.intel-type { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--gold); border: 1px solid var(--gold-dim); padding: 3px 8px; }
.intel-heat { font-family: var(--font-mono); font-size: 0.62rem; color: var(--down); letter-spacing: 0.1em; }
.intel-title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.intel-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); line-height: 1.9; }
.intel-meta b { color: var(--bone); font-weight: 500; }

/* ---------- alerts ---------- */
.alerts-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .alerts-flex { grid-template-columns: 1fr; } }
#alerts .section-lede { margin-bottom: 30px; }
#alertStatusNote { margin-top: 14px; }
.alert-demo { padding: 26px; display: grid; gap: 14px; }
.alert-toast {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 14px 16px;
}
.alert-badge { color: var(--up); border: 1px solid var(--up); padding: 2px 7px; font-size: 0.6rem; letter-spacing: 0.14em; flex-shrink: 0; margin-top: 2px; }
.alert-badge-ins { color: var(--gold); border-color: var(--gold-dim); }
.alert-badge-risk { color: var(--risk); border-color: var(--risk); }
.alert-title { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; }
.alert-meta { color: var(--faint); font-size: 0.64rem; margin-top: 4px; }

/* ---------- desk preview ---------- */
.desk-preview { padding: 0; overflow: hidden; }
.desk-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.desk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line-soft); }
.desk-card { background: var(--bg-panel); padding: 24px; display: grid; gap: 8px; align-content: start; }
.desk-card-type { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; }
.desk-card-type.t-live { color: var(--up); }
.desk-card-type.t-prop { color: var(--gold); }
.desk-card-name { font-family: var(--font-display); font-size: 1.15rem; }
.desk-card-bal { font-family: var(--font-mono); font-size: 1.5rem; color: var(--bone); }
.desk-card-meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); line-height: 1.9; }
.meter { height: 4px; background: var(--line); margin-top: 6px; position: relative; overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.meter-fill.m-risk { background: var(--risk); }
.meter-fill.m-up { background: var(--up); }

/* ---------- pricing ---------- */
.founding-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 24px 28px; margin-bottom: 28px;
  border-color: var(--gold-dim);
}
@media (max-width: 700px) { .founding-bar { flex-direction: column; align-items: flex-start; } }
.founding-line { color: var(--muted); font-size: 0.95rem; margin-top: 8px; max-width: 620px; }
.founding-line b { color: var(--gold-bright); font-weight: 600; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card { padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card > .btn { margin-top: auto; }
.price-from { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted); margin-right: 2px; }
.section > .founding-bar { margin-top: 28px; }
.price-card-feature { border-color: var(--gold-dim); box-shadow: 0 0 60px rgba(201, 163, 92, 0.12), 0 30px 80px rgba(0,0,0,0.45); }
.price-flag {
  position: absolute; top: -1px; right: 24px;
  background: var(--gold); color: var(--ink);
  padding: 5px 12px; font-size: 0.6rem; letter-spacing: 0.18em;
}
.price-tier { color: var(--muted); }
.price-amount { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--bone); }
.price-cur { font-size: 1.6rem; vertical-align: 26px; color: var(--gold); }
.price-per { font-size: 1rem; color: var(--muted); }
.price-annual { color: var(--faint); margin-bottom: 14px; }
.price-list { display: grid; gap: 10px; margin-bottom: 26px; }
.price-list li { padding-left: 22px; position: relative; color: var(--muted); font-size: 0.92rem; }
.price-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.faq-item { background: var(--bg); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; font-family: var(--font-display); font-size: 1.1rem; color: var(--bone);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-bright); }
.faq-q::after { content: "+"; font-family: var(--font-mono); color: var(--gold); transition: transform 0.25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 640px; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 0.94rem; max-width: 640px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 56px var(--pad) 48px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-tag { color: var(--faint); margin-top: 8px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--gold); font-weight: 500; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-legal { color: var(--faint); font-size: 0.78rem; max-width: 1280px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer-legal .mono { display: block; margin-top: 10px; }

/* ---------- document pages (terms / privacy / risk / status) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 140px var(--pad) 100px; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.doc .doc-updated { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 44px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; color: var(--gold-bright); }
.doc p, .doc li { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.doc ul { padding-left: 20px; }
.doc ul li { list-style: disc; }
.doc strong { color: var(--bone); font-weight: 600; }

/* status / receipts table */
.status-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.status-table th { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--faint); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.status-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; color: var(--muted); vertical-align: top; }
.status-table td:first-child { color: var(--bone); }
.st-badge { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; padding: 3px 9px; border: 1px solid; white-space: nowrap; }
.st-live { color: var(--up); border-color: var(--up); }
.st-deploy { color: var(--gold); border-color: var(--gold-dim); }
.st-build { color: var(--muted); border-color: var(--line); }
@media (max-width: 700px) { .status-table { display: block; overflow-x: auto; } }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 4, 3, 0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain; /* tall modals scroll, both edges reachable */
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop > .modal { margin: auto; }
.modal { max-width: 440px; padding: 36px; display: grid; gap: 14px; }
@media (max-width: 560px) { .modal { padding: 24px 18px; } }
.modal h3 { font-size: 1.6rem; }
.modal p { color: var(--muted); font-size: 0.94rem; }
.modal-actions { display: flex; gap: 12px; margin-top: 10px; }

/* ---------- access page ---------- */
.access-hero { align-items: center; }
.access-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px);
  align-items: center; width: 100%; max-width: 1180px; margin: 0 auto;
}
@media (max-width: 940px) { .access-grid { grid-template-columns: 1fr; } }
.access-title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.015em; margin-bottom: 22px; }
.access-points { display: grid; gap: 12px; margin: 26px 0; }
.access-points li { display: flex; gap: 14px; align-items: baseline; color: var(--muted); font-size: 0.95rem; }
.access-points .mono { color: var(--gold); }
.access-form { backdrop-filter: blur(6px); background: rgba(22, 19, 16, 0.88); }

/* ============================================================
   TERMINAL PAGE
   ============================================================ */
.term-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.term-nav {
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--pad); border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  position: sticky; top: 0; z-index: 40;
}
.term-nav .nav-brand { margin-right: auto; }
.term-clock { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }
.term-main {
  flex: 1;
  display: grid; grid-template-columns: 1.1fr 0.78fr 0.82fr; gap: 1px;
  background: var(--line-soft);
}
@media (max-width: 1360px) {
  .term-main { grid-template-columns: 1fr 1fr; }
  .term-col-wire { grid-column: 1; grid-row: 1 / 3; }
  .term-col-market, .term-col-desk { grid-column: 2; }
}
@media (max-width: 1000px) {
  .term-main { grid-template-columns: 1fr; }
  .term-col-wire { grid-column: auto; grid-row: auto; }
  .term-col-market, .term-col-desk { grid-column: auto; }
}

/* elevator arrival */
.lift { position: fixed; inset: 0; z-index: 300; }
.lift-door { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); transition: transform 0.65s cubic-bezier(0.7, 0, 0.2, 1); }
.lift-top { top: 0; border-bottom: 1px solid var(--gold-dim); }
.lift-bottom { bottom: 0; border-top: 1px solid var(--gold-dim); }
.lift-core {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  transition: opacity 0.3s;
}
.lift-floor { font-size: 2.2rem; color: var(--gold-bright); letter-spacing: 0.2em; min-height: 1.2em; }
.lift-label { font-size: 0.62rem; color: var(--faint); letter-spacing: 0.24em; }
.lift.lift-open .lift-top { transform: translateY(-101%); }
.lift.lift-open .lift-bottom { transform: translateY(101%); }
.lift.lift-open .lift-core { opacity: 0; }
.lift.lift-skip { opacity: 0; transition: opacity 0.35s; pointer-events: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.term-col { background: var(--bg); padding: 24px var(--pad); min-width: 0; }
.term-col-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; color: var(--muted); }
.term-col-head .feed-status { margin-left: auto; }

/* event horizon bar */
.event-bar {
  display: flex; gap: 1px; background: var(--line-soft);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.event-bar::-webkit-scrollbar { display: none; }
.event-cell {
  flex: 1 1 0; min-width: 170px;
  background: var(--bg-raise); padding: 10px 18px;
  display: grid; gap: 2px;
}
.event-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; color: var(--gold); }
.event-when { font-family: var(--font-mono); font-size: 0.62rem; color: var(--faint); }
.event-count { font-family: var(--font-mono); font-size: 0.86rem; color: var(--bone); }
.event-cell.imminent .event-count { color: var(--risk); }
.next-event { color: var(--gold); margin-left: auto; }
.next-event + .feed-status { margin-left: 14px; }

/* wire item links */
.wire-text a { border-bottom: 1px dotted var(--gold-dim); transition: border-color 0.2s; }
.wire-text a:hover { border-color: var(--gold-bright); }

/* account equity sparkline + consistency */
.acct-spark { width: 100%; height: 34px; display: block; }
.acct-consistency { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; }
.acct-consistency .warn { color: var(--risk); }
.acct-consistency .ok { color: var(--up); }

/* desk manager */
.desk-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-bottom: 22px; }
@media (max-width: 560px) { .desk-summary { grid-template-columns: 1fr; } }
.sum-cell { background: var(--bg-panel); padding: 16px 18px; }
.sum-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 6px; }
.sum-value { font-family: var(--font-mono); font-size: 1.3rem; color: var(--bone); }
.sum-value small { font-size: 0.7rem; color: var(--muted); }

.acct-list { display: grid; gap: 14px; margin-bottom: 22px; }
.acct-card { padding: 20px 22px; display: grid; gap: 10px; }
.acct-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-name { font-family: var(--font-display); font-size: 1.2rem; margin-right: auto; }
.acct-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; padding: 3px 8px; border: 1px solid; }
.acct-tag.t-live { color: var(--up); border-color: var(--up); }
.acct-tag.t-prop { color: var(--gold); border-color: var(--gold-dim); }
.acct-tag.t-mkt { color: var(--muted); border-color: var(--line); }
.acct-bal-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.acct-bal { font-family: var(--font-mono); font-size: 1.7rem; }
.acct-delta { font-family: var(--font-mono); font-size: 0.78rem; }
.acct-delta.up { color: var(--up); }
.acct-delta.down { color: var(--down); }
.acct-rails { display: grid; gap: 8px; }
.rail { display: grid; gap: 4px; }
.rail-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; }
.rail-label .warn { color: var(--risk); }
.rail-label .danger { color: var(--down); }
.acct-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.btn-mini { padding: 6px 14px; font-size: 0.62rem; }
.btn-danger { color: var(--down); }
.btn-danger:hover { color: var(--down); opacity: 0.8; }

.acct-empty { padding: 44px 24px; text-align: center; color: var(--faint); border: 1px dashed var(--line); }
.acct-empty p { margin-bottom: 6px; }

/* forms */
.form-panel { padding: 26px; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.field input, .field select {
  background: var(--bg); border: 1px solid var(--line); color: var(--bone);
  padding: 11px 14px; font-family: var(--font-mono); font-size: 0.85rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--gold-dim); }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { flex: 1; padding: 11px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); transition: all 0.2s; text-transform: uppercase; }
.seg button.on { background: var(--gold); color: var(--ink); }
.prop-only { display: none; }
.form-panel.is-prop .prop-only { display: grid; }

/* the protocol */
.proto-panel { padding: 18px; display: grid; gap: 14px; }
.proto-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.proto-title { color: var(--gold); }
.proto-edit { color: var(--faint); font-size: 0.6rem; cursor: pointer; background: none; letter-spacing: 0.14em; }
.proto-edit:hover { color: var(--gold-bright); }
.proto-state { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg-raise); }
.proto-light { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.proto-state.p-green .proto-light { background: var(--up); box-shadow: 0 0 14px var(--up); }
.proto-state.p-amber .proto-light { background: var(--risk); box-shadow: 0 0 14px var(--risk); }
.proto-state.p-red .proto-light { background: var(--down); box-shadow: 0 0 14px var(--down); animation: pulse 1.1s infinite; }
.proto-word { font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.14em; }
.proto-state.p-green .proto-word { color: var(--up); }
.proto-state.p-amber .proto-word { color: var(--risk); }
.proto-state.p-red .proto-word { color: var(--down); }
.proto-reason { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; margin-left: auto; text-align: right; max-width: 55%; }
.proto-stats { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.1em; }
.proto-stats b { color: var(--bone); font-weight: 500; }
.proto-log { display: flex; gap: 10px; align-items: center; }
.proto-log input { background: var(--bg); border: 1px solid var(--line); color: var(--bone); padding: 8px 10px; font-family: var(--font-mono); font-size: 0.78rem; width: 110px; outline: none; }
.proto-log input:focus { border-color: var(--gold-dim); }
.proto-ledger { font-family: var(--font-mono); font-size: 0.62rem; color: var(--faint); letter-spacing: 0.08em; line-height: 1.9; }
.proto-ledger .ok { color: var(--up); }
.proto-ledger .warn { color: var(--risk); }

/* the sheet */
.sheet-panel { padding: 16px 18px; display: grid; gap: 12px; }
.sheet-lines { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.sheet-line { display: grid; grid-template-columns: 86px 1fr; gap: 12px; background: var(--bg-raise); padding: 8px 14px; }
.sheet-key { font-size: 0.6rem; color: var(--gold); letter-spacing: 0.16em; padding-top: 2px; }
.sheet-val { font-size: 0.7rem; color: var(--bone); letter-spacing: 0.06em; line-height: 1.7; }

/* options desk */
.od-move { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.od-em { font-size: 1.7rem; color: var(--gold-bright); font-family: var(--font-mono); }
.od-em.gx-neg { color: var(--down); }
.od-em-meta { font-size: 0.6rem; color: var(--faint); letter-spacing: 0.12em; }

/* COT rows */
.cot-rows { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.cot-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: baseline; background: var(--bg-raise); padding: 9px 14px; }
.cot-sym { color: var(--bone); font-size: 0.78rem; }
.cot-net { font-size: 0.88rem; }
.cot-net.c-long { color: var(--up); }
.cot-net.c-short { color: var(--down); }
.cot-tag { font-size: 0.56rem; color: var(--faint); letter-spacing: 0.14em; }
.cot-chg { font-size: 0.62rem; color: var(--muted); }

/* ============================================================
   AUDIT POLISH — interaction states + terminal nav on phones
   ============================================================ */
/* the terminal nav must never hide the trial button on a phone */
@media (max-width: 900px) {
  .term-nav { flex-wrap: wrap; row-gap: 8px; }
}
@media (max-width: 560px) {
  .term-nav { gap: 10px; }
  .term-nav .term-clock:first-of-type { display: none; }
  .term-nav .btn { padding: 6px 10px; font-size: 0.58rem; letter-spacing: 0.08em; }
}
/* ---------- THE COMMAND LINE ---------- */
.cmd-overlay {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cmd-overlay[hidden] { display: none; }
.cmd-box { width: min(560px, 92vw); border-color: var(--gold-dim); }
.cmd-head {
  display: flex; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
  font-size: 0.58rem; letter-spacing: 0.22em; color: var(--gold);
}
.cmd-esc { color: var(--faint); }
.cmd-input {
  width: 100%; padding: 16px; border: 0; background: transparent;
  color: var(--gold-bright); font-size: 1.05rem; letter-spacing: 0.14em;
  text-transform: uppercase; outline: none;
}
.cmd-input::placeholder { color: var(--faint); }
.cmd-list { border-top: 1px solid var(--line-soft); max-height: 300px; overflow-y: auto; }
.cmd-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 9px 16px; font-size: 0.66rem; letter-spacing: 0.08em;
  color: var(--muted); cursor: pointer; border-left: 2px solid transparent;
}
.cmd-list li b { color: var(--bone); min-width: 64px; font-weight: 500; }
.cmd-list li.on, .cmd-list li:hover { background: var(--bg-raise); border-left-color: var(--gold); }
.cmd-list li.on b { color: var(--gold-bright); }
@keyframes cmdFlash {
  0% { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 44px rgba(232, 196, 125, 0.35); }
  100% { box-shadow: 0 0 0 1px transparent; }
}
.cmd-flash { animation: cmdFlash 1.6s ease-out; }

.cmd-live { margin-left: auto; color: var(--gold); font-size: 0.6rem; letter-spacing: 0.12em; white-space: nowrap; }

/* ============================================================
   MOTION PASS — weight and life, never bounce
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* modals arrive like glass sliding into a frame */
  .modal-backdrop { animation: mdFade 0.3s ease-out; }
  .modal-backdrop > .modal { animation: mdRise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes mdFade { from { opacity: 0; } }
  @keyframes mdRise { from { opacity: 0; transform: translateY(20px) scale(0.985); } }

  /* the live dot breathes instead of blinking */
  .feed-dot { animation: dotBreathe 2.6s ease-in-out infinite; }
  @keyframes dotBreathe { 0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--up); } 50% { opacity: 0.45; box-shadow: 0 0 3px var(--up); } }

  /* wire items land, they don't pop */
  .wire-list li { animation: wireIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes wireIn { from { opacity: 0; transform: translateX(-10px); } }

  /* panels lift a hair under the cursor */
  .price-card, .what-card, .intel-card, .glass-card, .feature-card { will-change: transform; }

  /* the gold CTA gets a slow breathing glow so the eye returns to it */
  .btn-gold.btn-lg { animation: ctaGlow 4.5s ease-in-out infinite; }
  @keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(201, 163, 92, 0); }
    50% { box-shadow: 0 0 34px rgba(201, 163, 92, 0.28); }
  }

  /* seat plate + ascent floor pulse once when they change */
  .seat-plate { animation: plateIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes plateIn { from { opacity: 0; letter-spacing: 0.4em; } }

  /* section headings draw up as they arrive (pairs with motion.js reveals) */
  [data-reveal].in h2 { animation: headRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes headRise { from { opacity: 0; transform: translateY(12px); } }

  /* event bar chips slide in on refresh */
  .event-cell { animation: evIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .event-cell:nth-child(2) { animation-delay: 0.07s; }
  .event-cell:nth-child(3) { animation-delay: 0.14s; }
  .event-cell:nth-child(4) { animation-delay: 0.21s; }
  .event-cell:nth-child(5) { animation-delay: 0.28s; }
  @keyframes evIn { from { opacity: 0; transform: translateY(-6px); } }

  /* ledger + fitting rows cascade */
  .ledger-row { animation: rowIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .ledger-row:nth-child(n+2) { animation-delay: 0.04s; }
  .ledger-row:nth-child(n+4) { animation-delay: 0.08s; }
  .ledger-row:nth-child(n+7) { animation-delay: 0.12s; }
  @keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } }

  /* gate veil breathes so the lock reads as alive, not broken */
  .gate-veil { animation: veilIn 0.6s ease-out both; }
  @keyframes veilIn { from { opacity: 0; backdrop-filter: blur(0); } }
}

/* ---------- THE MONTH ---------- */
.modal-month { max-width: 980px; width: min(980px, 96vw); }
.mo-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.mo-head h3 { font-size: 1.5rem; }
.mo-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.mo-dow span { text-align: center; font-size: 0.54rem; letter-spacing: 0.18em; color: var(--faint); }
.mo-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mo-cell {
  min-height: 82px; padding: 6px 7px;
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
  animation: moIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.mo-cell:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
@keyframes moIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.mo-void { background: transparent; border-color: transparent; min-height: 0; animation: none; }
.mo-wknd { opacity: 0.45; }
.mo-num { font-size: 0.68rem; color: var(--muted); }
.mo-today { border-color: var(--gold-bright); box-shadow: 0 0 22px rgba(232, 196, 125, 0.18); }
.mo-today .mo-num { color: var(--gold-bright); font-weight: 600; }
.mo-evs { display: flex; flex-direction: column; gap: 3px; }
.mo-chip {
  font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.08em;
  padding: 2px 4px; border-left: 2px solid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mo-chip.mo-earn { color: var(--bone); border-color: rgba(236, 229, 216, 0.28); background: rgba(236, 229, 216, 0.07); }
.mo-t1 { color: var(--down); border-color: var(--down); background: rgba(229, 72, 77, 0.09); animation: moPulse 2.6s ease-in-out infinite; }
@keyframes moPulse { 50% { background: rgba(229, 72, 77, 0.2); } }
.mo-t2 { color: var(--gold-bright); border-color: var(--gold-dim); background: rgba(201, 163, 92, 0.08); }
.mo-t3 { color: var(--faint); border-color: var(--line); }
.mo-pnl { margin-top: auto; font-size: 0.58rem; }
.mo-kept { border-color: rgba(62, 207, 142, 0.5); }
.mo-broke { border-color: rgba(229, 72, 77, 0.5); }
.mo-open { border-color: var(--gold-dim); }
.mo-foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 0.56rem; letter-spacing: 0.12em; color: var(--muted);
}
.mo-foot b { color: var(--bone); }
.mo-locked { color: var(--gold-bright); }
.mo-note { margin-left: auto; color: var(--faint); }
@media (max-width: 720px) {
  .mo-cell { min-height: 58px; padding: 4px; }
  .mo-chip { font-size: 0.4rem; }
  .mo-note { display: none; }
}

/* ---------- THE LEDGER ---------- */
.modal-wide { max-width: 640px; width: min(640px, 94vw); }
.ledger-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin: 14px 0 8px; max-height: 46vh; overflow-y: auto; }
.ledger-row {
  display: grid; grid-template-columns: 108px 92px 1fr auto 74px;
  gap: 12px; align-items: baseline;
  padding: 10px 14px; background: var(--bg-raise);
  font-size: 0.64rem; cursor: pointer; transition: background 0.2s;
}
.ledger-row:hover { background: var(--bg-panel); }
.ledger-state { letter-spacing: 0.14em; }
.ls-kept { color: var(--up); }
.ls-broken { color: var(--down); }
.ls-open { color: var(--gold-bright); }
.ls-unplanned { color: var(--faint); }
.ls-up { color: var(--up); }
.ls-dn { color: var(--down); }
.ledger-print { color: var(--gold); text-align: right; }
@media (max-width: 560px) { .ledger-row { grid-template-columns: 90px 70px 1fr 64px; } .ledger-row > :nth-child(4) { display: none; } }

/* ---------- LAUNCHPAD LAYOUTS ---------- */
.layout-tape .term-col-desk { display: none; }
.layout-tape .term-main { grid-template-columns: 1.35fr 1fr; }
.layout-desk .term-col-wire, .layout-desk .term-col-market { display: none; }
.layout-desk .term-main { grid-template-columns: minmax(0, 760px); justify-content: center; }
@media (max-width: 1000px) {
  .layout-tape .term-main, .layout-desk .term-main { grid-template-columns: 1fr; }
}

/* ---------- WHILE YOU WERE AWAY ---------- */
.away-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px var(--pad, 20px) 9px 20px;
  background: linear-gradient(90deg, rgba(201, 163, 92, 0.12), rgba(22, 19, 16, 0.6));
  border-bottom: 1px solid var(--gold-dim);
}
.away-bar .mono { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--gold-bright); }

.help-grid {
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 7px 16px;
  margin: 16px 0 8px; font-size: 0.62rem; letter-spacing: 0.08em;
  max-height: 44vh; overflow-y: auto;
}
.help-k { color: var(--gold-bright); }
.help-d { color: var(--muted); }
@media (max-width: 640px) { .help-grid { grid-template-columns: auto 1fr; } }

/* the command line, pitched on the landing page */
.cmd-bar { align-items: center; gap: 28px; }
.cmd-mock { width: min(360px, 100%); flex-shrink: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.cmd-mock .cmd-input-mock {
  padding: 13px 16px; color: var(--gold-bright);
  font-size: 0.9rem; letter-spacing: 0.14em;
}
.cmd-mock .cmd-input-mock::after { content: "▍"; animation: pulse 1.2s infinite; }
@media (max-width: 760px) { .cmd-bar { flex-direction: column; align-items: stretch; } }

/* ---------- THE INDUCTION ---------- */
.induct {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 38%, #14110c 0%, var(--bg) 62%);
  cursor: pointer;
  animation: inductIn 0.8s ease-out;
}
@keyframes inductIn { from { opacity: 0; } }
.induct-out { opacity: 0; transition: opacity 0.55s ease; }
.induct-stage { text-align: center; max-width: 980px; padding: 0 28px; }
.induct-stage.ind-in > * { animation: indRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.induct-stage.ind-in > *:nth-child(2) { animation-delay: 0.18s; }
.induct-stage.ind-in > *:nth-child(3) { animation-delay: 0.42s; }
@keyframes indRise { from { opacity: 0; transform: translateY(16px); } }
.ind-kicker { color: var(--gold); font-size: 0.62rem; letter-spacing: 0.26em; margin-bottom: 26px; }
.ind-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem); color: var(--bone);
  letter-spacing: -0.01em; margin-bottom: 24px;
}
.ind-etch { color: var(--gold-bright); text-shadow: 0 0 60px rgba(201, 163, 92, 0.35); }
.ind-sub { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.18em; line-height: 2; }
.ind-sub b { color: var(--gold-bright); }
.ind-type { text-align: left; display: inline-block; margin-bottom: 26px; }
.ind-type p { color: var(--bone); font-size: 0.82rem; letter-spacing: 0.1em; line-height: 2.2; }
.ind-type p::after { content: "▍"; color: var(--gold); }
.ind-type p:not(:last-child)::after { content: ""; }
#inductEngine { margin: 0 auto 26px; display: block; }
.induct-skip { position: absolute; top: 22px; right: 26px; z-index: 2; }
.induct-dots { position: absolute; bottom: 52px; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 1.2rem; letter-spacing: 0.4em; }
.induct-dots .on { color: var(--gold-bright); }
.induct-hint { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 0.52rem; letter-spacing: 0.22em; }

/* ---------- THE SEAT FITTING ---------- */
.fit-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin: 16px 0 6px; }
.fit-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--bg-raise); cursor: pointer;
  transition: background 0.2s;
}
.fit-list li:hover { background: var(--bg-panel); }
.fit-num { color: var(--gold); font-size: 0.72rem; min-width: 22px; }
.fit-list b { font-weight: 600; font-size: 0.86rem; }
.fit-desc { color: var(--muted); font-size: 0.76rem; }
.fit-go { margin-left: auto; color: var(--gold-bright); font-size: 0.56rem; letter-spacing: 0.16em; white-space: nowrap; }
.fit-done { opacity: 0.55; }
.fit-done .fit-num { color: var(--up); }
.fit-done .fit-go { color: var(--faint); }

/* the member's nameplate on the desk column */
.seat-plate {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  border: 1px solid var(--gold-dim);
  padding: 3px 8px;
  white-space: nowrap;
}

/* every interactive control answers the cursor */
.chip:hover { border-color: var(--gold-dim); color: var(--bone); }
.seg button:hover { color: var(--bone); }
.vix-panel[role="button"]:hover { border-color: var(--gold-dim); }
.vix-panel[role="button"]:focus-visible { outline: 1px solid var(--gold-dim); outline-offset: 2px; }

/* ============================================================
   THE GLASS — HUD-styled market teasers on the landing page
   ============================================================ */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1060px;
  margin: 0 auto;
}
.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.92), rgba(13, 12, 10, 0.96));
  border: 1px solid var(--line-soft);
  padding: 18px 18px 14px;
  overflow: hidden;
}
/* HUD corner brackets */
.glass-card::before, .glass-card::after,
.glass-card .g-corner::before, .glass-card .g-corner::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}
.glass-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.glass-card::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.glass-card .g-corner::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.glass-card .g-corner::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.glass-card:hover { border-color: var(--gold-dim); }
.glass-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.glass-title { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--gold-bright); }
.glass-tag { font-size: 0.52rem; letter-spacing: 0.14em; color: var(--faint); }
.glass-card canvas { display: block; width: 100%; }
.glass-cap {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}
.glass-cap b { color: var(--bone); font-weight: 600; }
/* the locked card — the buy teaser */
.glass-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: rgba(11, 10, 8, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2;
}
.glass-lock .mono { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--gold-bright); }
.glass-lock p { font-size: 0.78rem; color: var(--muted); max-width: 300px; line-height: 1.55; }
.glass-note {
  max-width: 1060px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.glass-note p { font-size: 0.78rem; color: var(--faint); max-width: 560px; line-height: 1.6; }
.glass-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.glass-wide { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .glass-grid { grid-template-columns: 1fr; }
  .glass-note { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MOTION — slow, weighted, physical. Nothing bounces.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* panels settle into their frame on hover — glass, not rubber */
.panel, .feature-card, .what-card, .intel-card {
  transition: border-color 0.4s ease, box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.what-card:hover, .intel-card:hover, .price-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), 0 0 40px rgba(201, 163, 92, 0.06);
}
.feature-card { transition: border-color 0.4s ease, padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.feature-card:hover { border-color: var(--gold-bright); padding-left: 26px; }

/* gold buttons catch a slow sweep of light */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-gold:hover::after { left: 125%; }

/* nav condenses once you leave the hero */
.nav { transition: padding 0.45s ease, background 0.45s ease, border-color 0.45s ease; }
.nav.nav-solid {
  padding-top: 9px; padding-bottom: 9px;
  background: rgba(11, 10, 8, 0.96);
  border-bottom-color: var(--line);
}

/* section kickers draw a hairline as they arrive */
.section-kicker { position: relative; padding-left: 0; transition: padding-left 0.6s ease 0.2s; }
[data-reveal].in .section-kicker, .section-head.in .section-kicker { padding-left: 34px; }
.section-kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px;
  background: var(--gold-dim); transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
[data-reveal].in .section-kicker::before, .section-head.in .section-kicker::before { width: 24px; }

/* live data ticks flash once when they change */
@keyframes tickFlash { 0% { background: rgba(201,163,92,0.16); } 100% { background: transparent; } }
.tick-flash { animation: tickFlash 0.85s ease-out; }

/* THE SESSION + THE ASCENT */
.sess-panel { padding: 18px; display: grid; gap: 12px; }
.asc-bar {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline;
  padding: 10px 60px 10px 14px; background: var(--bg-raise); border: 1px solid var(--gold-dim);
  position: relative;
}
.asc-tower { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.asc-floor { font-size: 1.05rem; color: var(--gold-bright); letter-spacing: 0.18em; }
.asc-meta { font-size: 0.56rem; color: var(--muted); letter-spacing: 0.1em; }
.asc-next { grid-column: 1 / -1; font-size: 0.55rem; color: var(--faint); letter-spacing: 0.14em; }
.sess-checks { display: grid; gap: 7px; }
.sess-checks .rule-label { text-transform: none; letter-spacing: 0.02em; font-size: 0.68rem; align-items: flex-start; line-height: 1.5; }
.sess-plan { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.sess-row { display: grid; grid-template-columns: 68px 1fr; gap: 10px; background: var(--bg-raise); padding: 8px 12px; }
.sess-k { font-size: 0.55rem; color: var(--gold); letter-spacing: 0.16em; padding-top: 2px; }
.sess-v { font-size: 0.66rem; color: var(--bone); }
.sess-checklist { display: grid; gap: 5px; }
.sess-checklist li { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.04em; padding-left: 14px; position: relative; line-height: 1.6; }
.sess-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dim); }
.sess-verdict { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; border: 1px solid; }
.sess-verdict.s-kept { border-color: var(--up); color: var(--up); }
.sess-verdict.s-broke { border-color: var(--down); color: var(--down); }
.sess-verdict .mono { font-size: 0.72rem; letter-spacing: 0.16em; }
.sess-sum { color: var(--muted) !important; }

/* YOUR EDGE */
.edge-panel { padding: 18px; display: grid; gap: 14px; }
.edge-empty { color: var(--gold-bright); font-size: 0.72rem; letter-spacing: 0.12em; }
.edge-verdict { font-family: var(--font-display); font-size: 1.02rem; color: var(--muted); line-height: 1.5; }
.edge-verdict b { color: var(--gold-bright); font-weight: 400; }
.edge-verdict .ok { color: var(--up); }
.edge-verdict .warn { color: var(--down); }
.edge-dim { display: grid; gap: 5px; }
.edge-dim-head { font-size: 0.58rem; color: var(--gold); letter-spacing: 0.18em; margin-bottom: 2px; }
.edge-row { display: grid; grid-template-columns: 62px 1fr 68px 26px; gap: 9px; align-items: center; }
.edge-k { font-size: 0.62rem; color: var(--bone); }
.edge-bar { height: 5px; background: var(--line); position: relative; overflow: hidden; }
.edge-fill { position: absolute; inset: 0 auto 0 0; }
.edge-fill.e-up { background: var(--up); }
.edge-fill.e-dn { background: var(--down); }
.edge-v { font-size: 0.66rem; text-align: right; }
.edge-v.ok { color: var(--up); }
.edge-v.warn { color: var(--down); }
.edge-n { font-size: 0.55rem; color: var(--faint); text-align: right; }
.edge-note { font-size: 0.56rem; color: var(--faint); letter-spacing: 0.06em; line-height: 1.7; }

/* seat gate */
.gate-locked { position: relative; }
.gate-veil {
  position: absolute; inset: 0; z-index: 5; cursor: pointer;
  background: linear-gradient(rgba(11,10,8,0.62), rgba(11,10,8,0.88));
  backdrop-filter: blur(2.5px);
  display: grid; place-content: center; justify-items: center; gap: 12px;
  border: 1px solid var(--line);
}
.gate-tag { color: var(--gold); font-size: 0.6rem; letter-spacing: 0.2em; }
.gate-tease { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.1em; text-align: center; max-width: 300px; line-height: 1.7; font-family: var(--font-mono); }
.gate-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; /* the CTA drops to its own row in narrow columns */
  padding: 12px 16px; margin-bottom: 18px; border-color: var(--gold-dim);
}
.gate-banner .mono { font-size: 0.6rem; color: var(--gold-bright); letter-spacing: 0.12em; line-height: 1.6; }

/* alert rules */
.rule-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.rule-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; cursor: pointer; }
.rule-label input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; cursor: pointer; }
.rule-select, .rule-input {
  background: var(--bg); border: 1px solid var(--line); color: var(--bone);
  padding: 7px 10px; font-family: var(--font-mono); font-size: 0.7rem; outline: none;
}
.rule-select:focus, .rule-input:focus { border-color: var(--gold-dim); }
.rule-input { flex: 1; min-width: 0; }

/* terminal wire reuse */
.term-wire-panel .wire-list { max-height: none; height: 38vh; min-height: 300px; }
@media (max-width: 1000px) { .term-wire-panel .wire-list { height: 380px; } }
.fj-news-panel iframe { display: block; border: 0; width: 100%; height: 400px; }
.fj-cal-panel { margin-top: 18px; }
.fj-cal-panel iframe { display: block; border: 0; width: 100%; height: 460px; }
.wire-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  padding: 5px 12px; border: 1px solid var(--line); color: var(--muted); transition: all 0.2s; text-transform: uppercase;
}
.chip.on { border-color: var(--gold-dim); color: var(--gold-bright); background: rgba(201, 163, 92, 0.06); }

/* ============================================================
   THE WALKTHROUGH — how-it-works.html
   ============================================================ */
.hiw-hero { padding-top: clamp(70px, 11vw, 130px); }
.hiw-hero .section-head { max-width: 860px; }

/* two layers */
.hiw-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .hiw-layers { grid-template-columns: 1fr; } }
.hiw-layer { padding: 30px 28px; display: grid; gap: 14px; align-content: start; }
.hiw-layer h3 { color: var(--bone); font-size: 1.5rem; }
.hiw-layer p { color: var(--muted); font-size: 0.95rem; }
.hiw-layer em { color: var(--bone); font-style: italic; }
.hiw-layer-gold { border-color: var(--gold-dim); background: linear-gradient(180deg, rgba(201, 163, 92, 0.05), transparent 60%); }
.hiw-tag { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--gold); }
.hiw-tag.hiw-open { color: var(--up); }
.hiw-why {
  font-size: 0.6rem; letter-spacing: 0.11em; line-height: 1.8; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 12px;
}
.hiw-layer .btn { margin-top: 4px; }

/* the day — numbered steps */
.hiw-steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.hiw-step {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px;
  padding: 30px 0; border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 700px) { .hiw-step { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } }
.hiw-num {
  font-size: 2rem; line-height: 1; color: var(--gold-dim);
  letter-spacing: 0.02em; padding-top: 2px;
}
.hiw-step h3 { color: var(--bone); font-size: 1.32rem; margin-bottom: 9px; }
.hiw-step p { color: var(--muted); font-size: 0.97rem; max-width: 74ch; }
.hiw-step em { color: var(--bone); font-style: italic; }
.hiw-step b { color: var(--bone); font-weight: 600; }
.hiw-meta {
  font-size: 0.58rem; letter-spacing: 0.16em; color: var(--muted); margin-top: 12px;
}
.hiw-cmd { color: var(--gold-bright); background: rgba(201, 163, 92, 0.08); padding: 1px 6px; font-size: 0.86em; }
.hiw-kept { color: var(--up); }
.hiw-broke { color: var(--down); }
.hiw-step:hover .hiw-num { color: var(--gold); transition: color 0.3s ease; }

/* seat table */
.hiw-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.hiw-table { margin: 0; min-width: 720px; }
.hiw-table thead th { text-align: center; line-height: 1.7; vertical-align: bottom; }
.hiw-table thead th:first-child { width: 40%; }
.hiw-table thead th .mono { color: var(--gold); font-size: 0.58rem; letter-spacing: 0.12em; }
.hiw-table tbody td { text-align: center; color: var(--muted); }
.hiw-table tbody td:first-child { text-align: left; color: var(--bone); }
.hiw-table tbody td b { color: var(--gold-bright); }

/* the day strip on the landing page */
.day-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border: 1px solid var(--line); margin-top: 28px;
}
@media (max-width: 900px) { .day-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .day-strip { grid-template-columns: repeat(2, 1fr); } }
.day-cell {
  padding: 20px 16px; border-right: 1px solid var(--line-soft); display: grid; gap: 7px; align-content: start;
}
.day-cell:last-child { border-right: 0; }
@media (max-width: 900px) {
  .day-cell { border-bottom: 1px solid var(--line-soft); }
  .day-cell:nth-child(3n) { border-right: 0; }
}
@media (max-width: 560px) { .day-cell:nth-child(3n) { border-right: 1px solid var(--line-soft); } .day-cell:nth-child(2n) { border-right: 0; } }
.day-cell .mono { font-size: 0.56rem; letter-spacing: 0.18em; color: var(--gold); }
.day-cell h3 { font-family: var(--font-display); font-size: 1.06rem; color: var(--bone); font-weight: 400; }
.day-cell p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.day-cell:hover > .mono { color: var(--gold-bright); transition: color 0.25s ease; }

/* ============================================================
   AUDIT PASS — walkthrough page + day strip corrections
   ============================================================ */
/* the walkthrough hero holds the page's h1 — give it the display scale */
.section-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; margin-bottom: 20px; }
/* two-row wrapped nav on small screens needs the same clearance the home hero gets */
@media (max-width: 900px) { .hiw-hero { padding-top: 150px; } }
/* day-strip: the container draws the outer border — last-row cells must not double it */
@media (max-width: 900px) and (min-width: 561px) { .day-cell:nth-last-child(-n+3) { border-bottom: 0; } }
@media (max-width: 560px) { .day-cell:nth-last-child(-n+2) { border-bottom: 0; } }
/* seat table: focus ring for the keyboard-scrollable region */
.hiw-table-wrap:focus-visible { outline: 1px solid var(--gold-dim); outline-offset: 2px; }
/* row headers inherit td styling, not header styling */
.hiw-table tbody th[scope="row"] {
  text-align: left; color: var(--bone); font-family: var(--font-ui); font-weight: 400;
  font-size: 0.88rem; letter-spacing: 0; text-transform: none; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
/* visually hidden, screen-reader readable */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   REFINEMENT PASS — floor dial, overflow affordances, nav state
   ============================================================ */
/* elevator floor readout — desktop signpost for the long landing page */
.floor-dial {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  font-size: 0.6rem; letter-spacing: 0.12em; color: var(--muted);
}
.floor-dial a { opacity: 0.35; transition: opacity 0.3s ease, color 0.3s ease; padding: 2px 4px; }
.floor-dial a:hover { opacity: 0.8; }
.floor-dial a.lit { opacity: 1; color: var(--gold-bright); }
@media (max-width: 1100px) { .floor-dial { display: none; } }

/* current page in the nav */
.nav-links a[aria-current="page"] { color: var(--gold-bright); }

/* horizontally-scrolling strips fade at the cut edge so more is implied */
@media (max-width: 560px) {
  .nav-links, .event-bar {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent);
  }
}
@media (max-width: 800px) {
  .hiw-table-wrap {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
  }
}
@media (max-width: 700px) {
  .hiw-table tbody th[scope="row"], .hiw-table thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--bg-panel);
    box-shadow: 8px 0 12px -8px rgba(0, 0, 0, 0.6);
  }
}
/* access on a phone: the form is the job — drop the re-pitch bullets */
@media (max-width: 940px) { .access-points { display: none; } }

/* ============================================================
   THE APPLICATION — high-ticket seat form
   ============================================================ */
.form-sect {
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold);
  border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 4px;
}
.form-panel .form-sect:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.field textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--bone);
  padding: 10px 12px; font: inherit; font-size: 0.9rem; resize: vertical; min-height: 74px;
}
.field textarea:focus { border-color: var(--gold-dim); outline: none; }
@media (max-width: 720px) {
  /* under 16px iOS Safari auto-zooms on focus - the application must not jump */
  .field input, .field select, .field textarea { font-size: 16px; }
}
.field .opt { color: var(--faint); letter-spacing: 0.08em; text-transform: none; }
.agree-block { display: grid; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.agree-row {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start;
  font-size: 0.82rem; color: var(--muted); line-height: 1.55; cursor: pointer;
}
.agree-row input[type="checkbox"] { accent-color: var(--gold); width: 15px; height: 15px; margin-top: 2px; cursor: pointer; }
.agree-row b { color: var(--bone); }

/* ============================================================
   THE FLOORS — elevator-button tab rail + the Corner level
   ============================================================ */
.term-tabs {
  display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap;
  padding: 10px clamp(14px, 2.2vw, 28px) 0;
}
.ttab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  color: var(--muted); background: var(--bg-raise); cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.ttab:hover { border-color: var(--gold-dim); color: var(--bone); }
.ttab-lamp {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--gold-dim); background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ttab.on { border-color: var(--gold-dim); color: var(--gold-bright); background: rgba(201, 163, 92, 0.06); }
.ttab.on .ttab-lamp { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(232, 196, 125, 0.7); }
.ttab.locked { color: var(--faint); }
.ttab.locked .ttab-lamp { border-color: var(--faint); }
.ttab-tag {
  font-size: 0.52rem; letter-spacing: 0.14em; color: var(--gold-dim);
  border: 1px solid var(--line); padding: 1px 6px;
}
.term-col-corner { display: none; }
.layout-corner .term-col-wire, .layout-corner .term-col-market, .layout-corner .term-col-desk { display: none; }
.layout-corner .term-col-corner { display: block; }
.layout-corner .term-main { grid-template-columns: minmax(0, 860px); justify-content: center; }
.corner-panel { position: relative; }
.corner-title { color: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) {
  .ttab:active { transform: translateY(1px); }
  @keyframes floorArrive { from { opacity: 0; transform: translateY(10px); } }
  .floor-switch .panel { animation: floorArrive 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* ============================================================
   MOTION SUITE II — arrival choreography + jewelry
   Everything here either ends at the legible resting state or is
   applied only by JS that carries the hardShow/dead-frame guards.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* --- the hero arrival: text rides up with the camera --- */
  .hero-inner.pre > * { opacity: 0; transform: translateY(26px); }
  .hero-inner.arrive > * {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--hd, 0ms),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--hd, 0ms);
    opacity: 1; transform: none;
  }
  /* line masks — each headline line rises past a gold floor line */
  .hline { display: block; overflow: hidden; position: relative; }
  .hline::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--gold-dim); opacity: 1;
  }
  .hero-inner.pre .hline-inner { display: block; transform: translateY(108%); }
  .hero-inner.arrive .hline-inner {
    display: block;
    transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) var(--hd, 0ms);
    transform: none;
  }
  .hero-inner.arrive .hline::after {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--hd, 0ms) - 150ms),
                opacity 0.8s ease calc(var(--hd, 0ms) + 900ms);
    width: 100%; opacity: 0;
  }
  /* CTA power-on: dark until .lit, then one sweep, then the breathing */
  .hero-inner.pre .btn-gold.btn-lg:not(.lit),
  .hero-inner.arrive .btn-gold.btn-lg:not(.lit) { animation: none; }
  @keyframes ctaSweep { from { left: -75%; } to { left: 125%; } }
  .btn-gold.btn-lg.lit::after { animation: ctaSweep 0.9s ease 1; }

  

  /* --- the dial gets a car --- */
  .floor-dial::before {
    content: ""; position: absolute; left: -9px; top: 4px; bottom: 4px; width: 1px;
    background: var(--line);
  }
  .dial-car {
    position: absolute; left: -12px; width: 7px; height: 7px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    transition: top 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(232, 196, 125, 0.4);
  }

  /* --- viewfinder lock: brackets acquire the hovered glass --- */
  .glass-card .g-corner::before, .glass-card .g-corner::after,
  .glass-card::before, .glass-card::after {
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease;
  }
  .glass-card:hover::before, .glass-card:hover::after,
  .glass-card:hover .g-corner::before, .glass-card:hover .g-corner::after {
    width: 22px; height: 22px; border-color: var(--gold-bright);
  }
  .glass-title { transition: letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .glass-card:hover .glass-title { letter-spacing: 0.26em; }

  /* --- machined press weight, site-wide --- */
  .btn:active { transform: translateY(1px); transition-duration: 0.06s; }
  .btn-line {
    background-image: linear-gradient(to top, rgba(201, 163, 92, 0.14), rgba(201, 163, 92, 0.14));
    background-repeat: no-repeat; background-size: 100% 0%; background-position: bottom;
    transition: background-size 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, color 0.25s ease;
  }
  .btn-line:hover { background-size: 100% 100%; }

  /* --- the penthouse light comes on --- */
  .brand-mark { transition: filter 0.6s ease; }
  .nav-brand:hover .brand-mark { filter: brightness(1.4) drop-shadow(0 0 8px rgba(232, 196, 125, 0.55)); }
  .brand-word { transition: letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-brand:hover .brand-word { letter-spacing: 0.38em; }

  /* --- brass-rail light trace on pricing cards --- */
  .price-card::before {
    content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright) 50%, transparent);
    background-repeat: no-repeat; background-size: 45% 100%; background-position: -45% 0;
    opacity: 0; pointer-events: none;
  }
  @keyframes railTrace {
    0% { background-position: -45% 0; opacity: 1; }
    100% { background-position: 145% 0; opacity: 0; }
  }
  .price-card:hover::before { animation: railTrace 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1; }

  /* --- the session sweep: the day cycles through the strip --- */
  .day-cell[data-reveal] { transform: translateX(-14px); }
  .day-strip { position: relative; overflow: hidden; }
  .day-strip::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 90px; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(232, 196, 125, 0.10), transparent);
    transform: translateX(-120px); z-index: 1;
  }
  @keyframes sessionSweep { to { transform: translateX(calc(100vw)); } }
  .day-strip.swept::after { animation: sessionSweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s 1 both; }

  /* --- glass power-on order + founding-bar engrave --- */
  .glass-grid > .glass-card:nth-child(1) { --d: 0ms; }
  .glass-grid > .glass-card:nth-child(2) { --d: 110ms; }
  .glass-grid > .glass-card:nth-child(3) { --d: 220ms; }
  .glass-grid > .glass-card:nth-child(4) { --d: 330ms; }
  .glass-grid > .glass-card:nth-child(5) { --d: 440ms; }
  .glass-grid > .glass-card:nth-child(6) { --d: 550ms; }
  .glass-grid > .glass-card:nth-child(7) { --d: 660ms; }
  .founding-bar[data-reveal].in .price-tier { animation: plateIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }

  /* --- walkthrough steps light as you descend --- */
  .hiw-num { transition: color 0.7s ease 0.2s; }
  .hiw-step.in .hiw-num { color: var(--gold); }

  /* --- the command mock caret --- */
  .cmd-input-mock.typing::after {
    content: "▮"; color: var(--gold-bright);
    animation: caretBlink 0.9s steps(1) infinite;
  }
  @keyframes caretBlink { 50% { opacity: 0; } }
}

/* month page-turn — the grid arrives from the direction of travel */
@media (prefers-reduced-motion: no-preference) {
  @keyframes moTurnNext { from { opacity: 0.25; transform: translateX(26px); } }
  @keyframes moTurnPrev { from { opacity: 0.25; transform: translateX(-26px); } }
  .mo-turn-next { animation: moTurnNext 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mo-turn-prev { animation: moTurnPrev 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* ============================================================
   THE MONTH v2 — prop-dashboard calendar + THE DAY view
   ============================================================ */
/* summary strip */
.mo-sum {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 12px;
}
.mo-sum-cell {
  flex: 1; min-width: 130px; border: 1px solid var(--line); background: var(--bg-raise);
  padding: 10px 12px; display: grid; gap: 4px;
}
.mo-sum-wide { flex: 3; }
.mo-sum-k { font-size: 0.56rem; letter-spacing: 0.16em; color: var(--faint); }
.mo-sum-v { font-size: 0.8rem; color: var(--bone); letter-spacing: 0.06em; }
.mo-sum-v b { font-weight: 500; }

/* 8-column grid: 7 days + the weekly ledger */
.mo-grid-8 { grid-template-columns: repeat(7, 1fr) 0.9fr; }
.mo-dow { display: grid; grid-template-columns: repeat(7, 1fr) 0.9fr; }
.mo-dow-wk { color: var(--gold-dim); }
.mo-week {
  border: 1px solid var(--line-soft); background: rgba(201, 163, 92, 0.03);
  display: grid; gap: 2px; align-content: center; justify-items: center;
  font-size: 0.68rem; letter-spacing: 0.04em; min-height: 74px;
}
.mo-week-n { font-size: 0.54rem; color: var(--faint); letter-spacing: 0.14em; }

/* day tiles: P&L is the tile's voice, like a funded dashboard */
.mo-day { cursor: pointer; transition: border-color 0.25s ease, transform 0.25s ease; }
.mo-day:hover { border-color: var(--gold-dim); }
.mo-pnl { font-size: 0.78rem; letter-spacing: 0.02em; display: block; text-align: center; margin: 2px 0 0; }
.mo-tn { font-size: 0.5rem; color: var(--faint); letter-spacing: 0.14em; display: block; text-align: center; }

/* THE DAY view */
.modal-day { max-width: 900px; }
.dy-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 16px; }
@media (max-width: 700px) { .dy-grid { grid-template-columns: 1fr; } }
.dy-h { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; }
.dy-rail {
  position: relative; height: 460px; border-left: 1px solid var(--line);
  margin-left: 44px;
}
.dy-hour { position: absolute; left: -44px; transform: translateY(-50%); font-size: 0.56rem; color: var(--faint); }
.dy-rth {
  position: absolute; left: 0; right: 0; background: rgba(201, 163, 92, 0.05);
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.dy-mark { position: absolute; left: 0; right: 0; transform: translateY(-50%); }
.dy-mark > span {
  display: inline-block; margin-left: 12px; font-size: 0.6rem; letter-spacing: 0.12em;
  padding: 2px 8px; border: 1px solid var(--line); background: var(--bg-panel); color: var(--muted);
}
.dy-mark::before {
  content: ""; position: absolute; left: -3.5px; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; transform: translateY(-50%); background: var(--faint);
}
.dy-sess > span { color: var(--faint); border-style: dashed; }
.dy-ev.dy-t1 > span { color: var(--down); border-color: rgba(229, 72, 77, 0.5); }
.dy-ev.dy-t1::before { background: var(--down); box-shadow: 0 0 8px rgba(229, 72, 77, 0.6); }
.dy-ev.dy-t2 > span { color: var(--gold-bright); border-color: var(--gold-dim); }
.dy-ev.dy-t2::before { background: var(--gold); }
.dy-ev.dy-t3 > span { color: var(--muted); }
.dy-closed {
  position: absolute; top: 40%; left: 20px; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--faint);
}
.dy-verdict { font-size: 0.9rem; letter-spacing: 0.14em; margin-bottom: 12px; color: var(--muted); }
.dy-plan { display: grid; gap: 6px; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.dy-plan b { color: var(--bone); }
.dy-trades { border-top: 1px solid var(--line-soft); }
.dy-trade {
  display: grid; grid-template-columns: 34px 80px 1fr auto; gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.66rem; letter-spacing: 0.06em;
}
.dy-tr-n { color: var(--faint); }
.dy-tr-stamp { color: var(--faint); font-size: 0.56rem; }
.dy-total {
  display: flex; justify-content: space-between; padding: 9px 0 0; font-size: 0.74rem; letter-spacing: 0.1em;
}
.dy-none { font-size: 0.62rem; color: var(--faint); letter-spacing: 0.12em; margin: 8px 0; }
.dy-locked {
  border: 1px dashed var(--gold-dim); padding: 20px; text-align: center;
  font-size: 0.62rem; letter-spacing: 0.12em; color: var(--muted); line-height: 1.9;
  display: grid; justify-items: center;
}
@media (max-width: 720px) {
  .mo-grid-8, .mo-dow { grid-template-columns: repeat(7, 1fr); }
  .mo-week, .mo-dow-wk { display: none; }  /* phones: the weekly ledger yields to the tiles */
}

/* window numbers — every panel on the floor is addressable */
.term-col .panel { position: relative; }
.p-num {
  position: absolute; top: 6px; right: 8px; font-size: 0.5rem; letter-spacing: 0.14em;
  color: var(--faint); opacity: 0.55; pointer-events: none; z-index: 2;
}

/* MACRO — the big board */
.mac-rows { display: grid; gap: 0; }
.mac-row {
  display: grid; grid-template-columns: 74px 76px 52px 1fr; gap: 8px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.7rem;
}
.mac-row:last-child { border-bottom: 0; }
.mac-k { color: var(--faint); letter-spacing: 0.12em; font-size: 0.58rem; }
.mac-v { color: var(--bone); font-size: 0.82rem; }
.mac-note { color: var(--muted); font-size: 0.56rem; letter-spacing: 0.08em; text-align: right; }
@media (max-width: 560px) { .mac-row { grid-template-columns: 64px 70px 46px 1fr; } .mac-note { font-size: 0.5rem; } }

/* ============================================================
   THE PROOF BAR + receipts summary + FAQ facelift
   ============================================================ */
.proof-bar {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}
.proof-cell {
  flex: 1; min-width: 220px; padding: 12px clamp(14px, 3vw, 28px);
  font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted);
  border-right: 1px solid var(--line-soft); display: flex; align-items: center;
}
.proof-cell:last-child { border-right: 0; }
#proofNext { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.proof-link { color: var(--faint); transition: color 0.25s ease; justify-content: flex-end; text-align: right; }
.proof-link:hover { color: var(--gold-bright); }

.rc-sum {
  display: flex; flex-wrap: wrap; gap: 18px 32px; margin: 22px 0 26px;
  padding: 14px 18px; border: 1px solid var(--line); background: var(--bg-raise);
  font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted);
}
.rc-sum b { color: var(--bone); font-weight: 500; font-size: 0.9rem; margin-right: 4px; }
.rc-sum .rc-live { color: var(--up); }
.rc-sum .rc-build { color: var(--gold); }

.faq-n {
  color: var(--gold-dim); font-size: 0.6rem; letter-spacing: 0.16em;
  margin-right: 14px; transition: color 0.3s ease;
}
.faq-item.open .faq-n, .faq-item:hover .faq-n { color: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) {
  .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
  .faq-a > p { overflow: hidden; }
  .faq-item.open .faq-a { grid-template-rows: 1fr; }
}

/* THE ACTUARY */
.act-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.act-cell { border: 1px solid var(--line); background: var(--bg-raise); padding: 12px; display: grid; gap: 6px; }
.act-v { font-size: 1.5rem; letter-spacing: 0.02em; color: var(--bone); }

/* receipts self-test */
.rc-test { margin: 30px 0; }
.rc-results { margin-top: 14px; border: 1px solid var(--line); }
.rc-row {
  display: flex; justify-content: space-between; padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--muted);
}
.rc-row:last-child { border-bottom: 0; }

/* ============================================================
   THE CORNER WINDOW — the secret funnel
   ============================================================ */
.corner-spot {
  position: absolute; z-index: 3; width: 30px; height: 30px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: transparent; border: 0; cursor: pointer;
  opacity: 0; transition: opacity 0.8s ease;
}
.corner-spot::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0);
  transition: border-color 0.4s ease, inset 0.4s ease;
}
.corner-spot:hover::after, .corner-spot:focus-visible::after { border-color: rgba(232, 196, 125, 0.75); inset: 2px; }

.corner-reveal {
  position: fixed; inset: 0; z-index: 300; background: #060504;
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 30%));
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid; overflow-y: auto; padding: 30px 16px;
}
.corner-reveal.in { clip-path: circle(150% at var(--ox, 50%) var(--oy, 30%)); }
.corner-close { position: fixed; top: 18px; right: 18px; z-index: 2; }
/* positioned — the absolutely-positioned office backdrop paints above
   static content, which buried the kicker/plate/copy (real-screen find) */
.corner-room { max-width: 980px; width: 100%; text-align: center; position: relative; z-index: 1; margin: auto; }
.corner-kicker { color: var(--gold-bright); letter-spacing: 0.3em; font-size: 0.72rem; margin-bottom: 26px; }
.corner-desk-scene {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  flex-wrap: wrap; /* the wire ticker lives on its own row under the screens */
  gap: 2%; padding-bottom: 34px; margin-bottom: 18px;
  perspective: 1100px;
}
.cw-mon {
  background: #0a0908; border: 1px solid #2e2820; border-radius: 4px;
  padding: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(201, 163, 92, 0.05);
  position: relative;
}
.cw-mon::after { /* the stand */
  content: ""; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: 16%; height: 26px;
  background: linear-gradient(180deg, #17130e, #0c0a07);
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
}
.cw-mon canvas { display: block; background: #0d0b09; border-radius: 2px; }
.cw-center { width: 44%; z-index: 2; }
.cw-center canvas { width: 100%; height: 250px; }
.cw-left, .cw-right { width: 24%; }
.cw-left canvas, .cw-right canvas { width: 100%; height: 190px; }
.cw-left { transform: rotateY(18deg); transform-origin: right center; }
.cw-right { transform: rotateY(-18deg); transform-origin: left center; }
.corner-desk-top {
  position: absolute; left: 2%; right: 2%; bottom: 0; height: 12px;
  background: linear-gradient(180deg, #1c1712, #0e0b08);
  border-top: 1px solid rgba(201, 163, 92, 0.25); border-radius: 2px;
  overflow: visible; /* the lamp and cup poke above the 12px slab */
}
.corner-plate { /* a sign sits in front of the chair, not behind it */
  display: inline-block; margin: 6px 0 14px; padding: 7px 22px; position: relative; z-index: 4;
  border: 1px solid var(--gold-dim); color: var(--gold-bright);
  letter-spacing: 0.26em; font-size: 0.66rem; background: rgba(201, 163, 92, 0.05);
}
.corner-line { color: var(--muted); max-width: 56ch; margin: 0 auto 22px; font-size: 0.98rem; }
.corner-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 700px) {
  .cw-left, .cw-right { display: none; } /* phones get the main screen */
  .cw-center { width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .corner-reveal { clip-path: none; transition: none; }
}

/* ============================================================
   THE CORNER ROOM v2 — the floor moves behind the glass
   ============================================================ */
.corner-office-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(201, 163, 92, 0.07), transparent 55%),
    linear-gradient(180deg, #050403 0%, #0a0806 55%, #0d0a08 100%);
}
.office-col {
  position: absolute; top: 0; bottom: 28%; width: 14px;
  background: linear-gradient(180deg, #0b0906, #120e0a);
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.55);
}
.office-glow {
  position: absolute; bottom: 30%; width: 220px; height: 90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 163, 92, 0.11), transparent);
  filter: blur(6px);
}
.office-floorline {
  position: absolute; left: 0; right: 0; bottom: 28%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 92, 0.14), transparent);
}
/* the people — dark figures crossing the floor at different depths */
.walker {
  position: absolute; bottom: calc(28% + 4px); left: 0;
  width: 14px; height: 44px;
  transform: scale(var(--d, 0.6));
  transform-origin: bottom center;
  opacity: var(--d, 0.6);
  animation-name: walkAcross; animation-timing-function: linear; animation-iteration-count: infinite;
}
.walker-b {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #201a13 0%, #120e0a 100%);
  clip-path: polygon(38% 0, 62% 0, 66% 9%, 60% 13%, 74% 22%, 70% 58%, 64% 60%, 66% 100%, 55% 100%, 52% 64%, 48% 64%, 45% 100%, 34% 100%, 36% 60%, 30% 58%, 26% 22%, 40% 13%, 34% 9%);
  animation: walkerBob 0.72s ease-in-out infinite alternate;
}
@keyframes walkAcross { from { left: -6%; } to { left: 104%; } }
@keyframes walkerBob { from { transform: translateY(0) } to { transform: translateY(-2.5px) } }

/* desk furniture — drawn, not pasted */
.cw-cable {
  position: absolute; left: 50%; bottom: -26px; width: 2px; height: 26px;
  background: linear-gradient(180deg, #1a150f, transparent);
  transform: translateX(-8px) rotate(4deg);
}
.corner-ticker {
  flex: 0 0 96%; width: 96%; margin: 10px auto 0; overflow: hidden; white-space: nowrap;
  border: 1px solid #241e16; background: #0a0908; padding: 5px 0;
  font-size: 0.56rem; letter-spacing: 0.12em; color: var(--gold);
  display: flex;
}
.corner-ticker-run { display: inline-block; padding-right: 40px; animation: ticker 70s linear infinite; }
.desk-lamp {
  position: absolute; right: 6%; bottom: 12px; width: 5px; height: 42px;
  background: linear-gradient(180deg, #2a2118, #14100b);
}
.desk-lamp::after {
  content: ""; position: absolute; top: -6px; left: -16px; width: 34px; height: 12px;
  background: #1d1710; border-radius: 4px 4px 0 0;
  box-shadow: 0 14px 34px 10px rgba(232, 196, 125, 0.13);
}
.desk-mat {
  position: absolute; left: 34%; right: 34%; bottom: 2px; height: 5px;
  background: #131009; border-radius: 2px;
}
.desk-keys {
  position: absolute; left: 41%; right: 41%; bottom: 4px; height: 4px;
  background: repeating-linear-gradient(90deg, #251e15 0 4px, #17120c 4px 6px);
  border-radius: 1px;
}
.desk-cup {
  position: absolute; left: 27%; bottom: 4px; width: 11px; height: 12px;
  background: linear-gradient(180deg, #2c241a, #191410); border-radius: 0 0 3px 3px;
}
.desk-cup::after {
  content: ""; position: absolute; right: -5px; top: 2px; width: 5px; height: 6px;
  border: 1.5px solid #241d14; border-left: 0; border-radius: 0 4px 4px 0;
}
.cup-steam {
  position: absolute; left: 3px; top: -10px; width: 2px; height: 9px;
  background: linear-gradient(180deg, transparent, rgba(236, 229, 216, 0.14));
  border-radius: 2px;
}
.corner-chair {
  position: absolute; left: 50%; bottom: -42px; transform: translateX(-50%);
  width: 120px; height: 64px; z-index: 3;
  background: linear-gradient(180deg, #17130e 0%, #0c0a07 80%);
  border-radius: 16px 16px 6px 6px;
  border-top: 1px solid rgba(201, 163, 92, 0.16);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
}
.corner-chair::after { /* headrest sheen */
  content: ""; position: absolute; top: 5px; left: 14%; right: 14%; height: 7px;
  border-radius: 8px; background: linear-gradient(90deg, transparent, rgba(236, 229, 216, 0.05), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .cup-steam { animation: steamRise 2.6s ease-in-out infinite; }
  @keyframes steamRise { 0%, 100% { opacity: 0.4; transform: translateY(0); } 50% { opacity: 0.9; transform: translateY(-3px); } }
}
@media (prefers-reduced-motion: reduce) { .walker { display: none; } .corner-ticker-run { animation: none; } }
@media (max-width: 700px) { .corner-chair { width: 90px; } .walker { display: none; } }

/* ============================================================
   HOME REFINE — live alert demo motion + HUD frames + heat pulse
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .toast-in { animation: toastIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes toastIn { from { opacity: 0; transform: translateX(26px); } }
  .toast-out { animation: toastOut 0.45s ease both; }
  @keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
  .intel-heat { animation: heatPulse 2.8s ease-in-out infinite; }
  @keyframes heatPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
}
/* HUD corner brackets for panels speaking the glass language.
   Drawn as background strokes — panels whose innerHTML re-renders
   (the VIX regime panel every 90s) cannot keep child elements. */
.hud-frame {
  background-image:
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim)),
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim)),
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim)),
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim));
  background-repeat: no-repeat;
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* the corner's exterior glass — the city, seen from up here */
.office-cityglass {
  position: absolute; top: 0; bottom: 28%; right: 0; width: 17%;
  background: linear-gradient(270deg, #08070a 0%, rgba(8, 7, 10, 0.6) 70%, transparent 100%);
  overflow: hidden;
}
.cg-mullion {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
  background: linear-gradient(180deg, #131009, #0a0806);
}
.cg-lights {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 22% 18%, rgba(232, 196, 125, 0.5), transparent 100%),
    radial-gradient(1px 1px at 58% 26%, rgba(232, 196, 125, 0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 38%, rgba(201, 163, 92, 0.4), transparent 100%),
    radial-gradient(1px 1px at 74% 44%, rgba(236, 229, 216, 0.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 55%, rgba(232, 196, 125, 0.45), transparent 100%),
    radial-gradient(1px 1px at 62% 63%, rgba(201, 163, 92, 0.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 46% 74%, rgba(232, 196, 125, 0.38), transparent 100%),
    radial-gradient(1px 1px at 80% 82%, rgba(236, 229, 216, 0.25), transparent 100%),
    radial-gradient(1px 1px at 26% 88%, rgba(201, 163, 92, 0.32), transparent 100%);
}
.cg-lights-2 { transform: translateY(6%) scale(1.4); opacity: 0.4; filter: blur(1px); }
@media (prefers-reduced-motion: no-preference) {
  .cg-lights { animation: cityFlicker 7s ease-in-out infinite alternate; }
  @keyframes cityFlicker { from { opacity: 0.85; } to { opacity: 1; } }
}
@media (max-width: 700px) { .office-cityglass { display: none; } }

/* ============================================================
   FINAL POLISH — one gold object, gated hotspot, room entry light
   ============================================================ */
/* during the arrival, the nav's gold yields — the hero CTA's power-on
   is the only gold event on screen; scrolling re-ignites the nav */
.nav:not(.nav-solid) .nav-actions .btn-gold {
  background: transparent; color: var(--gold-bright); border-color: var(--gold-dim); box-shadow: none;
}
/* the hotspot cannot exist unless the scene is live and settled */
.corner-spot { visibility: hidden; pointer-events: none; }
.corner-spot.live { visibility: visible; pointer-events: auto; }
/* walking into a dark office where someone left the desk running */
.corner-reveal .corner-office-bg, .corner-reveal .corner-room {
  transition: filter 0.9s ease, opacity 0.9s ease;
}
.corner-reveal.pre-light .corner-office-bg, .corner-reveal.pre-light .corner-room {
  filter: brightness(0.25); opacity: 0.7;
}
.corner-reveal { overscroll-behavior: contain; }

/* ============================================================
   GLOBAL FINISH — the scrollbar, personas, print
   ============================================================ */
/* the last stock-browser element on a commissioned page */
* { scrollbar-width: thin; scrollbar-color: var(--gold-dim) var(--bg-raise); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-raise); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dim), #6e5a34);
  border: 2px solid var(--bg-raise); border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.price-who { font-size: 0.54rem; letter-spacing: 0.15em; color: var(--faint); margin: 2px 0 8px; }

/* traders print contracts — the legal pages should survive paper */
@media print {
  .nav, .footer, .btn, .floor-dial, .proof-bar, script { display: none !important; }
  body { background: #fff; color: #111; }
  .doc, main { max-width: 100%; }
  .doc h1, .doc h2, .section-kicker { color: #111; }
  a { color: #111; text-decoration: underline; }
  .st-badge { border: 1px solid #999; color: #111; }
  .rc-sum, .panel { border: 1px solid #ccc; background: #fff; }
}

/* the moment a feed comes alive — and the countdown growing teeth */
@media (prefers-reduced-motion: no-preference) {
  .just-live .vix-sim, .proof-cell.just-live, #proofVix.just-live {
    animation: liveFlash 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1;
  }
  @keyframes liveFlash {
    0% { color: var(--bg); background: var(--gold-bright); box-shadow: 0 0 24px rgba(232, 196, 125, 0.6); }
    100% { color: inherit; background: transparent; box-shadow: none; }
  }
  #proofNext.proof-imminent { animation: proofPulse 1.2s ease-in-out infinite; }
  @keyframes proofPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
}
#proofNext.proof-soon { color: var(--gold-bright); }
#proofNext.proof-imminent { color: var(--down); }
