/* ATLAS - The Transition Operator. Brand-aligned to Actual Intelligence OS.
   Type: Inter display+body (sans, matches OS) + Cormorant Garamond italic accents (OS accent serif).
   Palette: OS - ink #070706 / gold #c9a24b / light #e6c879 / green #4ade80 / cream #f4efe7. */
:root {
  color-scheme: dark;
  --bg: #070706;
  --panel: rgba(18, 17, 14, 0.82);
  --panel-solid: #14120e;
  --surface: #12100d;
  --text: #f4efe7;
  --muted: #b0a68f;
  --muted-2: #8a8272;
  --gold: #c9a24b;
  --gold-bright: #e6c879;
  --gold-dim: #8a6d28;
  --green: #4ade80;
  --green-light: #7cf0a6;
  --line: rgba(201, 162, 75, 0.24);
  --border: #2a2620;
  --danger: #f4a6a6;
  --ok: #bfe8b5;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 22%, rgba(201, 162, 75, 0.13), transparent 34rem),
    linear-gradient(180deg, #070706 0%, #100d09 45%, #070706 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { overflow-wrap: anywhere; min-width: 0; }
em.ac { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold-bright); }

/* status motif */
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-light); }
.status .led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pulse { animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* header */
.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.92), rgba(7, 7, 6, 0.44), transparent);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1;
  border: 1px solid var(--gold); color: var(--gold-bright); font-weight: 800;
}
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-weight: 800; letter-spacing: 0.16em; font-size: 1.05rem; }
.brand-word em { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.header-right { display: flex; align-items: center; gap: 1.2rem; }
.os-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px; transition: color 180ms, border-color 180ms; }
.os-tag:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
nav { display: flex; gap: clamp(0.8rem, 2vw, 1.4rem); color: var(--muted); font-size: 0.85rem; }
nav a:hover { color: var(--gold-bright); }

/* road art (preserved) */
.road { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.road-line, .road-center {
  position: absolute; left: 50%; bottom: -8vh; width: 2px; height: 118vh;
  transform-origin: bottom center;
  background: linear-gradient(0deg, rgba(230, 200, 121, 0.72), rgba(201, 162, 75, 0.22), transparent);
}
.road-line.left { transform: translateX(-50%) rotate(-15deg); }
.road-line.right { transform: translateX(-50%) rotate(15deg); }
.road-center { width: 1px; transform: translateX(-50%); opacity: 0.42; }
.target {
  position: absolute; left: 50%; top: 29vh; width: clamp(8rem, 18vw, 17rem); aspect-ratio: 1;
  transform: translateX(-50%); border: 1px solid rgba(230, 200, 121, 0.42); border-radius: 50%;
  box-shadow: inset 0 0 0 1.2rem rgba(201, 162, 75, 0.04), 0 0 80px rgba(201, 162, 75, 0.18);
}
.target::before, .target::after { content: ""; position: absolute; inset: 23%; border: 1px solid rgba(230, 200, 121, 0.36); border-radius: 50%; }
.target::after { inset: 45%; background: rgba(230, 200, 121, 0.55); box-shadow: 0 0 28px rgba(230, 200, 121, 0.5); }

main, .site-footer { position: relative; z-index: 1; }

/* hero */
.hero { position: relative; min-height: 96vh; display: grid; align-items: end; padding: 8rem clamp(1.2rem, 5vw, 5rem) 5rem; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.95) 0%, rgba(7, 7, 6, 0.68) 42%, rgba(7, 7, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 7, 6, 0.16) 0%, rgba(7, 7, 6, 0.22) 58%, #070706 100%),
    url("/assets/hero-road.png") center / cover;
}
.hero-content { width: min(52rem, 100%); }
.hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-bottom: 1.4rem; }
.tm { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.eyebrow, .pillar-number { margin: 0 0 0.85rem; color: var(--gold-bright); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700; font-family: var(--mono); }
h1 { margin: 0; max-width: 15ch; font-family: var(--sans); font-weight: 800; font-size: clamp(3.4rem, 8vw, 7.4rem); line-height: 0.94; letter-spacing: -0.03em; }
h2 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero-copy, .statement p, .pillar p, .soul p { color: var(--muted); line-height: 1.6; font-size: 1.05rem; }
.hero-copy { max-width: 46rem; margin: 1.5rem 0 0; font-size: clamp(1.06rem, 1.4vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; color: var(--muted-2); font-size: 0.86rem; letter-spacing: 0.01em; }

/* buttons */
.button { min-height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 0.85rem 1.4rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; border-radius: 3px; transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.button.primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #141006; border-color: transparent; box-shadow: 0 12px 44px rgba(201, 162, 75, 0.26); }
.button.primary:hover { transform: translateY(-2px); }
.button.ghost { color: var(--gold-bright); background: rgba(230, 200, 121, 0.06); }
.button.ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* mega button - huge, unmistakable, thumb-friendly */
.button.mega {
  min-height: 4.4rem;
  padding: 1.1rem 2rem;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  border-radius: 6px;
  width: 100%;
  max-width: 30rem;
  text-align: center;
}
.button.mega:hover { transform: translateY(-2px); }

/* plain reassurance line under hero button */
.hero-sub-simple {
  margin: 0.9rem 0 0;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  letter-spacing: 0.01em;
}

/* layout */
.section-inner, .pillars { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section-inner.narrow { width: min(880px, calc(100% - 2rem)); }
.band { padding: clamp(4rem, 9vw, 7rem) 0; border-block: 1px solid rgba(201, 162, 75, 0.16); background: rgba(7, 7, 6, 0.55); }
.statement h2 { margin: 1.2rem 0; max-width: 22ch; }

/* how it works - dead simple 3 steps */
.how { background: radial-gradient(80% 120% at 88% 8%, rgba(201, 162, 75, 0.10), transparent 55%), rgba(7, 7, 6, 0.7); }
.how-steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.how-step {
  display: flex; align-items: center; gap: 1.2rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: clamp(1.2rem, 3.5vw, 1.7rem) clamp(1.2rem, 3.5vw, 1.9rem);
}
.how-n {
  flex: 0 0 auto; display: grid; place-items: center;
  width: clamp(3rem, 11vw, 3.6rem); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #141006;
  font-family: var(--sans); font-weight: 800; font-size: clamp(1.5rem, 5vw, 1.9rem);
  box-shadow: 0 8px 26px rgba(201, 162, 75, 0.24);
}
.how-body { min-width: 0; }
.how-body h3 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.1; letter-spacing: -0.01em; }
.how-body p { margin: 0.4rem 0 0; color: var(--text); font-size: clamp(1.02rem, 2.6vw, 1.18rem); line-height: 1.45; }
.how-cta { margin-top: 2rem; }

/* walkthrough video */
.watch { background: rgba(7, 7, 6, 0.55); }
.watch-sub { margin: 1rem 0 0; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.15rem); }
.video-frame {
  position: relative; display: block; margin-top: 1.6rem;
  aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border: 1px solid var(--gold-dim); border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 162, 75, 0.22), transparent 60%),
    linear-gradient(180deg, #14110b 0%, #070706 100%);
  box-shadow: var(--shadow);
}
.video-frame:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-preview { position: absolute; inset: 0; display: grid; place-items: center; }
.vp-step {
  position: absolute; display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 5.4vw, 2.4rem); color: var(--text); text-align: center;
  padding: 0 1.4rem; opacity: 0; animation: vpcycle 12s infinite;
}
.vp-step b {
  display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #141006; font-size: 0.75em;
}
.vp-1 { animation-delay: 0s; }
.vp-2 { animation-delay: 3s; }
.vp-3 { animation-delay: 6s; }
.vp-4 { color: var(--gold-bright); animation-delay: 9s; }
.vp-4 b { display: none; }
@keyframes vpcycle {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); }
  4%, 21% { opacity: 1; transform: translateY(0) scale(1); }
  25%, 100% { opacity: 0; transform: translateY(-12px) scale(0.98); }
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(4.2rem, 16vw, 5.6rem); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 44px rgba(201, 162, 75, 0.4); z-index: 3;
  animation: playpulse 2.6s var(--ease-out) infinite;
}
.video-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.85rem 0 0.85rem 1.4rem; border-color: transparent transparent transparent #141006;
}
@keyframes playpulse { 0%, 100% { box-shadow: 0 12px 44px rgba(201, 162, 75, 0.4); } 50% { box-shadow: 0 12px 44px rgba(201, 162, 75, 0.4), 0 0 0 14px rgba(201, 162, 75, 0.10); } }
.video-badge {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: clamp(0.7rem, 2.4vw, 0.82rem); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: rgba(7, 7, 6, 0.7); border: 1px solid var(--line);
  padding: 0.5rem 1rem; border-radius: 99px; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .vp-step { animation: none; }
  .vp-1 { opacity: 1; }
  .vp-2, .vp-3, .vp-4 { display: none; }
  .video-play { animation: none; }
}

/* goldmine gaps */
.gaps { background: radial-gradient(80% 120% at 12% 8%, rgba(201, 162, 75, 0.10), transparent 55%), rgba(7, 7, 6, 0.7); }
.gap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.gap-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 1.8rem; }
.gap-n { font-family: var(--mono); font-weight: 500; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; }
.gap-card h3 { margin: 0.9rem 0 0.7rem; font-family: var(--sans); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.gap-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.98rem; }
.gap-card p b { color: var(--text); font-weight: 600; }
.gap-card .voc { margin-top: 1rem; padding-left: 0.9rem; border-left: 2px solid var(--gold-dim); font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--gold-bright); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: clamp(4rem, 8vw, 7rem) 0; }
.pillar { border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); padding: clamp(1.15rem, 2vw, 1.7rem); border-radius: 8px; }
.pillar h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.pillar p { font-size: 0.98rem; }
.compliance { margin: 1.5rem 0 1rem; padding: 1rem; border-left: 3px solid var(--gold); background: rgba(201, 162, 75, 0.08); border-radius: 0 6px 6px 0; }
.compliance strong { color: var(--gold-bright); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.compliance p { margin: 0.45rem 0 0; color: var(--text); font-size: 0.96rem; }
.small { font-size: 0.9rem; color: var(--muted-2); }

/* fork */
.fork { padding: clamp(4rem, 8vw, 7rem) 0; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.route-card { border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); min-height: 14rem; display: grid; align-content: start; gap: 0.75rem; width: 100%; padding: clamp(1.1rem, 2.4vw, 1.8rem); color: var(--text); text-align: left; cursor: pointer; border-radius: 8px; transition: border-color 200ms, background 200ms, transform 200ms var(--ease-out); }
.route-card:hover { transform: translateY(-3px); }
.route-card span { color: var(--gold-bright); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono); font-size: 0.8rem; }
.route-card strong { font-family: var(--sans); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.route-card small { color: var(--muted); line-height: 1.55; font-size: 1rem; }
.route-card.selected { border-color: rgba(230, 200, 121, 0.85); background: linear-gradient(180deg, rgba(201, 162, 75, 0.18), rgba(18, 17, 14, 0.86)); }

/* nexus */
.nexus { background: linear-gradient(180deg, rgba(7,7,6,0.7), rgba(16,13,9,0.7)); }
.nexus-lede { margin: 1.2rem 0 0; max-width: 62ch; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.nexus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.nexus-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 1.7rem; }
.nexus-card .tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.nexus-card h3 { margin: 0.8rem 0 0.7rem; font-family: var(--sans); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.nexus-card p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.nexus-card p b { color: var(--text); font-weight: 600; }

/* climb / pricing */
.climb { background: rgba(7, 7, 6, 0.6); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.tier { display: flex; flex-direction: column; padding: 1.6rem 1.4rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.tier:hover { transform: translateY(-4px); border-color: var(--gold); }
.tier.free { background: linear-gradient(180deg, rgba(201, 162, 75, 0.1), rgba(201, 162, 75, 0.02)); border-color: var(--gold-dim); }
.tier .step { font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.tier h3 { margin: 0.8rem 0 0.2rem; font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.01em; }
.tier .price { font-family: var(--sans); font-weight: 800; font-size: 2.1rem; color: var(--text); margin: 0.4rem 0 0; letter-spacing: -0.02em; }
.tier.free .price { color: var(--gold-bright); }
.tier .price .per { font-size: 1rem; color: var(--muted); font-weight: 500; }
.tier .founding { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.tier p { margin: 1rem 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.5; flex: 1; }
.tier.featured { border-color: var(--gold); box-shadow: 0 14px 50px rgba(201, 162, 75, 0.16); }
.tier-cta { margin-top: 1.2rem; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 2.9rem; padding: 0.7rem 1.1rem; border-radius: 4px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; border: 1px solid var(--line); transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), background 200ms var(--ease-out); }
.tier-cta.primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #141006; border-color: transparent; }
.tier-cta.primary:hover { transform: translateY(-2px); }
.tier-cta.ghost { color: var(--gold-bright); background: rgba(230, 200, 121, 0.06); }
.tier-cta.ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.tier-pay { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.tier-pay a { color: var(--muted); border-bottom: 1px solid var(--gold-dim); padding-bottom: 1px; }
.tier-pay a:hover { color: var(--gold-bright); }
.tier-pay span { color: var(--gold-dim); }

/* soul */
.soul p { margin: 0; color: var(--text); font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.12; }

/* debrief launcher */
.debrief { padding: clamp(4rem, 8vw, 7rem) 0; }
.debrief-inner { text-align: left; }
.debrief-copy { margin: 1.2rem 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 60ch; }
.debrief-list { display: grid; gap: 0.65rem; margin: 1.5rem 0 1.8rem; padding: 0; list-style: none; color: var(--text); }
.debrief-list li { padding-left: 1.4rem; position: relative; }
.debrief-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; aspect-ratio: 1; background: var(--gold); }
.debrief-rules { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.6rem; color: var(--muted-2); font-size: 0.82rem; }
.debrief-rules span { display: inline-flex; align-items: center; gap: 8px; }
.debrief-rules span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; padding: 2.4rem clamp(1rem, 4vw, 3rem); border-top: 1px solid rgba(201, 162, 75, 0.18); color: var(--muted); align-items: flex-end; }
.fcol { display: flex; flex-direction: column; gap: 0.5rem; }
.fcol-right { align-items: flex-end; text-align: right; }
.fmark { font-family: var(--sans); font-weight: 800; letter-spacing: 0.14em; color: var(--text); font-size: 1rem; }
.ftm { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.fine { max-width: 56ch; line-height: 1.55; font-size: 0.85rem; }
.flink { color: var(--gold-bright); border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; }
.fsmall { font-size: 0.78rem; color: var(--muted-2); }

/* ============ GUIDED INTAKE OVERLAY ============ */
.flow { position: fixed; inset: 0; z-index: 100; display: none; background: radial-gradient(90% 80% at 50% -10%, rgba(201, 162, 75, 0.13), transparent 55%), var(--bg); }
.flow.open { display: flex; flex-direction: column; }
.flow::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 3px); opacity: 0.3; }
.flow-top { position: relative; z-index: 2; padding: 1rem clamp(1rem, 5vw, 3.5rem) 0; display: flex; align-items: center; gap: 1rem; }
.flow-mark { display: flex; flex-direction: column; gap: 2px; }
.flow-mark .m1 { font-family: var(--sans); font-weight: 800; letter-spacing: 0.16em; font-size: 0.95rem; color: var(--text); }
.flow-mark .m2 { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.flow-progress { flex: 1; height: 4px; border-radius: 99px; background: rgba(244, 239, 231, 0.1); overflow: hidden; }
.flow-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); border-radius: 99px; transition: width 460ms var(--ease-out); }
.flow-close { background: none; border: none; color: var(--muted); font-size: 1.7rem; line-height: 1; padding: 4px 8px; border-radius: 4px; transition: color 180ms; }
.flow-close:hover { color: var(--text); }
.flow-close:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
/* column + auto-margin centering: centers when short, scrolls (never clips the top) when tall */
.flow-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 1.5rem clamp(1rem, 5vw, 3.5rem) 2.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.step { width: min(720px, 100%); margin: auto; }
.step-card { opacity: 0; transform: translateY(22px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.step-card.in { opacity: 1; transform: none; }
.step-card.out { opacity: 0; transform: translateY(-16px); }

.reflect { min-height: 18px; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.step-q { font-family: var(--sans); font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
.step-sub { margin: 1rem 0 0; color: var(--muted); font-size: clamp(0.95rem, 1.7vw, 1.1rem); line-height: 1.55; max-width: 58ch; }

.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.chip { padding: 0.85rem 1.35rem; border-radius: 99px; border: 1px solid var(--border); background: rgba(244, 239, 231, 0.03); color: var(--text); font-weight: 600; font-size: 1rem; text-align: left; transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 160ms var(--ease-out); }
.chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.chip:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--gold); color: #17120a; border-color: var(--gold); }

.field { margin-top: 2rem; }
.field textarea, .field input { width: 100%; background: rgba(244, 239, 231, 0.04); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--sans); font-size: 1.05rem; padding: 0.95rem 1.1rem; line-height: 1.5; resize: vertical; }
.field textarea { min-height: 118px; }
.field textarea:focus, .field input:focus { outline: none; border-color: var(--gold); background: rgba(244, 239, 231, 0.06); }
.field textarea::placeholder, .field input::placeholder { color: #6f6a63; }
.field-hint { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted-2); }

.step-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.step-nav .button[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.step-back { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 0.88rem; padding: 8px 4px; transition: color 180ms; }
.step-back:hover { color: var(--text); }
.step-skip { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.step-skip:hover { color: var(--gold); }

/* result */
.result-eyebrow { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.result-h { font-family: var(--sans); font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0.7rem 0 0; }
.result-body { margin: 1.3rem 0 0; color: var(--muted); font-size: clamp(0.98rem, 1.7vw, 1.15rem); line-height: 1.6; max-width: 62ch; }
.result-body b { color: var(--text); font-weight: 600; }
.map-head { margin-top: 1.8rem; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.map-disclaimer { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted-2); line-height: 1.5; max-width: 62ch; }
.map-note { margin: 0.9rem 0 0; padding: 0.8rem 1rem; border-left: 2px solid var(--gold); background: rgba(201,162,75,0.08); border-radius: 0 6px 6px 0; font-size: 0.9rem; color: var(--text); }
.map-list { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.map-item { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 1.1rem 1.2rem; border-left: 2px solid var(--gold-dim); }
.map-item h4 { margin: 0 0 0.4rem; font-family: var(--sans); font-weight: 700; font-size: 1rem; }
.map-item p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.nexus-note { margin-top: 1.5rem; border: 1px solid var(--gold-dim); border-radius: 8px; padding: 1.2rem 1.35rem; background: linear-gradient(180deg, rgba(201, 162, 75, 0.09), rgba(201, 162, 75, 0.02)); }
.nexus-note .tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.nexus-note h4 { margin: 0.5rem 0; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; }
.nexus-note p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.result-rec { margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.35rem; background: var(--surface); }
.result-rec .rlabel { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.result-rec .rname { font-family: var(--sans); font-weight: 800; font-size: 1.4rem; margin: 0.5rem 0 0.4rem; letter-spacing: -0.01em; }
.result-rec p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.result-rules { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin-top: 1.4rem; color: var(--muted-2); font-size: 0.8rem; }
.result-rules span { display: inline-flex; align-items: center; gap: 8px; }
.result-rules span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.capture { margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.capture .cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.capture label { display: grid; gap: 0.35rem; }
.capture label span { font-family: var(--mono); color: var(--gold); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.capture input { width: 100%; background: rgba(244, 239, 231, 0.04); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--sans); font-size: 1rem; padding: 0.85rem 1rem; }
.capture input:focus { outline: none; border-color: var(--gold); }
.result-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.1rem; align-items: center; }
.form-status { min-height: 1.3rem; margin: 0.8rem 0 0; color: var(--muted); line-height: 1.5; font-size: 0.9rem; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }
.cap-fine { margin: 0.4rem 0 0; color: var(--muted-2); font-size: 0.78rem; line-height: 1.45; }

/* motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .step-card { transition: opacity 140ms linear; transform: none; }
  .step-card.out { transform: none; }
}

/* responsive */
@media (max-width: 900px) {
  .gap-grid, .nexus-grid { grid-template-columns: 1fr; }
  .pillars, .route-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-header { align-items: center; }
  nav { display: none; }
  .hero { min-height: 90vh; padding-top: 6.5rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .fcol-right { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .site-header { padding: 0.7rem 1rem; }
  .os-tag { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .capture .cap-row { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3rem, 12vw, 3.6rem); }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 7, 6, 0.64), rgba(7, 7, 6, 0.82) 52%, #070706 100%),
      url("/assets/hero-road.png") center / cover;
  }
}
