/* ============================================================================
   LANDING — the public marketing page (index.html, served at /)
   ----------------------------------------------------------------------------
   Self-contained on purpose. style.css is the application stylesheet (7k lines
   of workspace chrome, body scroll locks, inverted-colour mode); the marketing
   page shares only the brand tokens with it, so it carries its own sheet.

   Built from resources/0-website/BUILD-landing-option-b-html.md. Seven
   full-height panes: cover, reframing diligence, the problem, the new problem,
   the solution to both, the platform, next step. Type is Inter at light
   weight; ice blue carries emphasis. Modals and lead capture come from
   js/lead-forms.js; analytics from js/consent.js.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #07070b;
  --bg-2: #0b0b12;
  --panel: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.40);
  --ice: #cadcfc;
  --ice-ink: #eaf1ff;
  --ice-line: rgba(202, 220, 252, 0.45);
  --ice-fill: rgba(202, 220, 252, 0.10);
  --amber: #e8c07a;
  --red: #e0807a;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --nav-h: 64px;
  --container: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-snap-type: y proximity; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
::selection { background: rgba(202, 220, 252, 0.3); color: #fff; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--ice); color: #000; padding: .5rem 1rem; text-decoration: none; }
.skip-link:focus { left: 1rem; top: 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 1.1rem; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
em { font-style: normal; color: var(--ice); }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: 1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 6px; font-size: .95rem; font-weight: 400; letter-spacing: .01em; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.btn-primary { background: var(--ice); color: #06070c; border-color: var(--ice); }
.btn-primary:hover { background: #fff; border-color: #fff; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(202, 220, 252, 0.22); }
.btn-ghost { background: transparent; color: var(--ice-ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ice-fill); border-color: var(--ice-line); }
.btn-sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-row { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.cta-row.centered { justify-content: center; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); background: rgba(7, 7, 11, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav.is-scrolled { background: rgba(7, 7, 11, 0.86); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--container); margin: 0 auto; height: 100%; padding: 0 clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { text-decoration: none; color: var(--ink); font-weight: 400; letter-spacing: .02em; font-size: .95rem; }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-login { color: var(--ink); text-decoration: none; font-size: .9rem; opacity: .85; transition: opacity .2s; }
.nav-login:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- pane dots ---------- */
.dots { position: fixed; right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 22px; height: 22px; text-decoration: none; }
.dots a::before { content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; transition: background .2s, border-color .2s, transform .2s; }
.dots a:hover::before, .dots a.is-on::before { background: var(--ice); border-color: var(--ice); transform: scale(1.15); }
.dots a:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 50%; }

/* ---------- panes ---------- */
.pane { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 24px) 0 72px; scroll-snap-align: start; scroll-margin-top: 0; border-top: 1px solid var(--line); }
.pane:first-child { border-top: 0; }
.pane-inner { position: relative; }
.pane-copy { margin: 0 0 1.6rem; color: var(--dim); font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.65; max-width: 720px; }
.pane-copy.centered { margin-left: auto; margin-right: auto; text-align: center; }
.pane-glow { position: absolute; left: 0; right: 0; top: -10%; height: 90vh; pointer-events: none; background: radial-gradient(55% 50% at 50% 35%, rgba(202, 220, 252, 0.12), transparent 70%); filter: blur(12px); }

/* going into itself: each pane arrives by settling from slightly larger */
.zoom { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transform-origin: 50% 40%; }
.zoom.in { opacity: 1; transform: none; }

.cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--faint); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; transition: color .2s; }
.cue:hover { color: var(--ice); }
.cue i { width: 9px; height: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(5px) rotate(45deg); opacity: 1; } }

/* ---------- pane 1: definition ---------- */
.pane-definition .pane-inner { text-align: center; }
.pane-definition h1 { font-size: clamp(2.2rem, 3.9vw, 3.6rem); letter-spacing: -0.03em; max-width: 1040px; margin: 0 auto 1.1rem; }
.purpose { width: 100%; max-width: 620px; margin: .4rem auto 1.2rem; height: auto; }
.purpose .pw { font-family: var(--sans); font-weight: 300; font-size: 34px; fill: #fff; letter-spacing: -0.02em; opacity: 0; }
.purpose .p2 { fill: var(--ice); }
.purpose .pl { fill: none; stroke: var(--ice); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.purpose .pa { fill: var(--ice); opacity: 0; }
.purpose.go .p1 { animation: fin .6s var(--ease) .3s forwards; }
.purpose.go .pl { animation: pdraw .9s ease .9s forwards; }
.purpose.go .pa { animation: fin .3s ease 1.7s forwards; }
.purpose.go .p2 { animation: fin .6s var(--ease) 1.8s forwards; }
@keyframes fin { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdraw { from { stroke-dashoffset: 100; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }

/* ---------- panes 2–3: then / now ---------- */
.pane-reframe .pane-inner { text-align: center; }
.pane-reframe h2 { margin-bottom: 1.2rem; }
.pane-reframe h2.big { font-size: clamp(2.1rem, 3.9vw, 3.6rem); letter-spacing: -0.03em; }
.then-now { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; max-width: 1120px; margin: 0 auto; }
.tn-panel { margin: 0; padding: 12px 14px 10px; display: grid; grid-template-rows: subgrid; grid-row: span 2; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); text-align: left; }
.tn-panel.now { border-color: var(--ice-line); }
.tn-panel.warn { border-color: rgba(232, 192, 122, 0.35); }
.tn-panel.warn .tn-tag { color: var(--amber); font-size: 1.05rem; letter-spacing: .12em; font-weight: 500; white-space: nowrap; }
.tn-panel figcaption { display: flex; align-items: baseline; gap: .7rem; font-size: .88rem; color: var(--dim); padding: 2px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; min-height: 3.4rem; line-height: 1.45; }
.tn-tag { flex: 0 0 auto; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.tn-panel.now .tn-tag { color: var(--ice); }
.tn-panel svg { width: 100%; height: auto; max-height: calc(100vh - 560px); display: block; align-self: start; }
.tn-lead { margin: -.2rem auto 1.4rem; font-size: clamp(1.2rem, 2.1vw, 1.7rem); font-weight: 300; color: var(--ink); letter-spacing: -0.01em; }
.tn-lead em { color: var(--ice); }
.tn-lead.below { margin: 1.3rem auto 0; }
.tn-lead.below.tight { margin-top: .35rem; }

/* diligence, then: documents flying at the viewer */
#dil-then .fly { transform-box: fill-box; transform-origin: center; animation: fly 3.6s linear infinite; opacity: 0; }
#dil-then .fly rect.page { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.35); }
#dil-then .fly rect.ln { fill: rgba(255, 255, 255, 0.22); }
#dil-then .fly .grid { stroke: rgba(255, 255, 255, 0.25); stroke-width: .8; }
#dil-then .fly .bar { fill: rgba(202, 220, 252, 0.45); }
#dil-then .fly .curve { fill: none; stroke: rgba(202, 220, 252, 0.7); stroke-width: 1.4; }
#dil-then .fly .num { fill: rgba(255, 255, 255, 0.55); font-size: 9px; font-family: var(--mono); }
#dil-then .fly .sheet { fill: rgba(159, 217, 180, 0.06); stroke: rgba(159, 217, 180, 0.45); }
@keyframes fly { 0% { transform: translate(var(--x), var(--y)) scale(.12); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translate(calc(var(--x) * 5), calc(var(--y) * 5)) scale(2.4); opacity: 0; } }
#dil-then .lbl { fill: var(--faint); font-size: 9.5px; letter-spacing: .25em; font-family: var(--sans); }

/* diligence, now: one question travels inward through the documents, lighting a passage in each and sharpening */
#dil-now:not(.play) * { animation-play-state: paused !important; }
#dil-now .field { animation: goin 16s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 62%; }
@keyframes goin { 0% { transform: scale(1); opacity: 1; } 90% { transform: scale(1.16); opacity: 1; } 95% { opacity: 0; transform: scale(1.16); } 96% { transform: scale(1); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
#dil-now .doc { transform-box: fill-box; transform-origin: center; }
#dil-now .doc.a { animation: past-a 16s linear infinite; }
#dil-now .doc.b { animation: pull-b 16s linear infinite; }
#dil-now .doc.c { animation: pull-c 16s linear infinite; }
@keyframes past-a { 0%, 32% { opacity: 1; } 40%, 100% { opacity: .45; } }
/* the question is the magnet: the next transcript starts far off, then accelerates up to it */
@keyframes pull-b { 0%, 20% { transform: translate(190px, 130px) scale(.06); opacity: 0; } 24% { transform: translate(170px, 116px) scale(.12); opacity: .7; animation-timing-function: cubic-bezier(.7, 0, 1, .55); } 36%, 58% { transform: translate(0, 0) scale(1); opacity: 1; } 66%, 100% { transform: translate(0, 0) scale(1); opacity: .45; } }
@keyframes pull-c { 0%, 46% { transform: translate(170px, 150px) scale(.06); opacity: 0; } 50% { transform: translate(152px, 134px) scale(.12); opacity: .7; animation-timing-function: cubic-bezier(.7, 0, 1, .55); } 62%, 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
#dil-now .page { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.16); }
#dil-now .page.deep2 { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.22); }
#dil-now .page.deep3 { fill: rgba(255, 255, 255, 0.045); stroke: rgba(255, 255, 255, 0.3); }
#dil-now .ptitle { fill: var(--dim); font-size: 9.5px; font-family: var(--sans); letter-spacing: .04em; }
#dil-now .tl { fill: rgba(255, 255, 255, 0.13); }
#dil-now .tl.hit { animation: hitq 16s linear infinite; }
#dil-now .tl.hit.a { animation-delay: 0s; }
@keyframes hitq { 0%, 14% { fill: rgba(255, 255, 255, 0.13); } 16%, 32% { fill: rgba(202, 220, 252, 0.95); } 34%, 100% { fill: rgba(255, 255, 255, 0.13); } }
#dil-now .tl.hit.b { animation-name: hitq2; }
@keyframes hitq2 { 0%, 40% { fill: rgba(255, 255, 255, 0.13); } 42%, 58% { fill: rgba(202, 220, 252, 0.95); } 60%, 100% { fill: rgba(255, 255, 255, 0.13); } }
#dil-now .tl.hit.c { animation-name: hitq3; }
@keyframes hitq3 { 0%, 66% { fill: rgba(255, 255, 255, 0.13); } 68%, 90% { fill: rgba(202, 220, 252, 0.95); } 92%, 100% { fill: rgba(255, 255, 255, 0.13); } }
#dil-now .qpill { offset-rotate: 0deg; animation: qmove 16s ease-in-out infinite; }
@keyframes qmove {
  0%, 6% { offset-distance: 0%; opacity: 1; }
  14%, 30% { offset-distance: 33.3%; opacity: 1; }
  40%, 56% { offset-distance: 66.6%; opacity: 1; }
  66%, 92% { offset-distance: 100%; opacity: 1; }
  95% { offset-distance: 100%; opacity: 0; }
  96%, 100% { offset-distance: 0%; opacity: 0; }
}
#dil-now .qpill rect { fill: #141826; stroke: var(--ice); }
#dil-now .qpill text { fill: var(--ice-ink); font-size: 10.5px; text-anchor: middle; font-family: var(--sans); opacity: 0; }
#dil-now .qpill .t0 { animation: qt0 16s linear infinite; }
#dil-now .qpill .t1 { animation: qt1 16s linear infinite; }
#dil-now .qpill .t2 { animation: qt2 16s linear infinite; }
#dil-now .qpill .t3 { animation: qt3 16s linear infinite; }
@keyframes qt0 { 0%, 22% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes qt1 { 0%, 24% { opacity: 0; } 26%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes qt2 { 0%, 50% { opacity: 0; } 52%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes qt3 { 0%, 76% { opacity: 0; } 78%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
#dil-now .lbl { fill: var(--faint); font-size: 9.5px; letter-spacing: .25em; font-family: var(--sans); }

/* ---------- pane 3: the problem ---------- */
.pane-problem .pane-inner { text-align: center; }
.pane-problem h2 { margin-bottom: .6rem; }
.pane-problem .pane-copy { margin-bottom: 1.2rem; max-width: 720px; }
.figure { margin: 0; padding: 12px 16px 10px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.figure svg { width: 100%; height: auto; display: block; }
#problem-viz { max-height: calc(100vh - 470px); }
#problem-viz text { font-family: var(--sans); }
#problem-viz .zone.deep { fill: rgba(202, 220, 252, 0.05); stroke: var(--ice-line); }
#problem-viz:not(.play) * { animation-play-state: paused !important; }
#problem-viz .clbl { fill: var(--ice); font-size: 10.5px; letter-spacing: .18em; text-anchor: middle; }
#problem-viz .axis { stroke: rgba(255, 255, 255, 0.18); }
#problem-viz .tick { stroke: rgba(255, 255, 255, 0.2); }
#problem-viz .axlbl { fill: var(--faint); font-size: 10px; letter-spacing: .22em; }
#problem-viz .path { fill: none; stroke: rgba(202, 220, 252, 0.6); stroke-width: 1.6; }
#problem-viz .you { fill: var(--ice); filter: drop-shadow(0 0 5px rgba(202, 220, 252, 0.9)); offset-rotate: 0deg; animation: travel 9s linear infinite; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 1; } 28% { offset-distance: 45%; } 57% { offset-distance: 70%; opacity: 1; } 72% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 100%; opacity: 0; } }
#problem-viz .note { fill: var(--dim); font-size: 11px; }
#problem-viz .note.ice { fill: var(--ice); }
#problem-viz .note.red { fill: rgba(224, 128, 122, 0.9); }
#problem-viz .note.gone { fill: var(--amber); opacity: 0; animation: gone 9s linear infinite; }
@keyframes gone { 0%, 58% { opacity: 0; } 62%, 80% { opacity: 1; } 86%, 100% { opacity: 0; } }
#problem-viz .deep-g { animation: drift 9s linear infinite; }
@keyframes drift { 0%, 57% { transform: translateY(0); opacity: 1; } 76% { transform: translateY(-46px); opacity: 0; } 100% { transform: translateY(-46px); opacity: 0; } }
/* each node and link carries its own keyframes (--kf, written by the script) on the shared 9s cycle */
#problem-viz .th { fill: var(--ice); filter: drop-shadow(0 0 5px rgba(202, 220, 252, 0.8)); opacity: 0; transform-box: fill-box; transform-origin: center; animation: none 9s linear infinite; animation-name: var(--kf, none); }
#problem-viz .link { stroke: var(--ice); stroke-width: 1; fill: none; opacity: 0; animation: none 9s linear infinite; animation-name: var(--kf, none); }
#problem-viz .recon-card { fill: rgba(224, 128, 122, 0.05); stroke: rgba(224, 128, 122, 0.45); }
#problem-viz .recon .th { fill: var(--red); filter: drop-shadow(0 0 4px rgba(224, 128, 122, 0.6)); }
#problem-viz .recon .link { stroke: var(--red); }
#problem-viz .recon .missing { fill: none; stroke: rgba(224, 128, 122, 0.45); stroke-dasharray: 2 3; }
#problem-viz .recon .gap { stroke: rgba(224, 128, 122, 0.35); stroke-dasharray: 3 4; }
#problem-viz .rlbl { fill: var(--red); font-size: 9.5px; letter-spacing: .14em; text-anchor: middle; }
.recon-line { margin: 1rem auto 0; font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 300; color: var(--ink); letter-spacing: -0.01em; }
.recon-line em { font-style: normal; color: var(--red); }
.cost-line { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 0; font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 300; color: var(--ink); letter-spacing: -0.01em; }
.cost-line i { display: inline-block; width: 52px; height: 1px; background: rgba(255, 255, 255, 0.35); position: relative; }
.cost-line i::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid rgba(255, 255, 255, 0.45); }
.cost-line b { font-weight: 600; color: var(--red); }

/* new problem: AI slop */
#slop-viz text { font-family: var(--sans); }
#slop-viz .blk { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.4); }
#slop-viz .stack text, #slop-viz .blbl { fill: var(--ink); font-size: 11px; text-anchor: middle; }
#slop-viz .base { fill: rgba(202, 220, 252, 0.08); stroke: rgba(202, 220, 252, 0.5); animation: basebad 10s linear infinite; }
@keyframes basebad { 0%, 52% { fill: rgba(202, 220, 252, 0.08); stroke: rgba(202, 220, 252, 0.5); } 56%, 100% { fill: rgba(232, 192, 122, 0.12); stroke: var(--amber); } }
#slop-viz .stack { animation: fall 10s linear infinite; transform-box: fill-box; transform-origin: 30% 100%; }
@keyframes fall { 0%, 60% { transform: none; opacity: 1; } 80% { transform: rotate(14deg) translate(40px, 30px); opacity: 0; } 100% { transform: rotate(14deg) translate(40px, 30px); opacity: 0; } }
#slop-viz .stack g { opacity: 0; animation: stackin 10s linear infinite; }
@keyframes stackin { 0% { opacity: 0; transform: translateY(-8px); } 4% { opacity: 1; transform: none; } 100% { opacity: 1; } }
#slop-viz .hours { fill: var(--dim); font-size: 11px; }
#slop-viz .nosrc { fill: var(--amber); font-size: 11px; text-anchor: middle; opacity: 0; animation: gone10 10s linear infinite; }
@keyframes gone10 { 0%, 54% { opacity: 0; } 58%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
#slop-viz .lbl { fill: var(--faint); font-size: 9.5px; letter-spacing: .25em; }

/* new problem: brain drain */
#drain-viz text { font-family: var(--sans); }
#drain-viz .wheel { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; }
#drain-viz .spoke { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.4; }
#drain-viz .hand { fill: none; stroke: var(--ice); stroke-width: 3; stroke-linecap: round; animation: letgo 10s ease-in-out infinite; }
#drain-viz .hand.r { animation-name: letgor; }
@keyframes letgo { 0%, 25% { transform: none; opacity: 1; } 50%, 100% { transform: translate(-40px, 26px); opacity: 0; } }
@keyframes letgor { 0%, 25% { transform: none; opacity: 1; } 50%, 100% { transform: translate(40px, 26px); opacity: 0; } }
#drain-viz .track { fill: rgba(255, 255, 255, 0.06); }
#drain-viz .fill.ai { fill: rgba(232, 192, 122, 0.6); animation: fillup 10s ease-in-out infinite; transform-box: fill-box; transform-origin: left; }
#drain-viz .fill.mind { fill: rgba(202, 220, 252, 0.7); animation: drainout 10s ease-in-out infinite; transform-box: fill-box; transform-origin: left; }
@keyframes fillup { 0%, 20% { transform: scaleX(.2); } 70%, 100% { transform: scaleX(1); } }
@keyframes drainout { 0%, 20% { transform: scaleX(1); } 70%, 100% { transform: scaleX(.15); } }
#drain-viz .glbl { fill: var(--dim); font-size: 11px; }
#drain-viz .lbl { fill: var(--faint); font-size: 9.5px; letter-spacing: .25em; }

/* ---------- pane 5: the solution ---------- */
.pane-solution .pane-inner { text-align: center; }
.pane-solution h2 { margin: 0 auto 1.1rem; font-size: clamp(1.8rem, 3.3vw, 2.9rem); max-width: 1000px; }
.pane-solution h2 em { white-space: nowrap; }
.loop-value.intro { border-style: dashed; }
.hda { list-style: none; margin: 0 auto 1.1rem; padding: 0; display: flex; align-items: stretch; justify-content: center; gap: .6rem; flex-wrap: wrap; max-width: 1040px; }
.hda li { display: flex; flex-direction: column; justify-content: center; text-align: left; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); flex: 1 1 0; min-width: 0; max-width: 260px; min-height: 64px; }
.hda li.hda-arrow { border: 0; background: none; padding: 0; min-width: 0; flex: 0 0 auto; justify-content: center; }
.hda li.hda-arrow::before { content: ''; display: block; width: 26px; height: 1px; background: rgba(255, 255, 255, 0.35); position: relative; }
.hda li.hda-arrow::after { content: ''; display: block; margin-top: -4px; margin-left: 20px; border: 3.5px solid transparent; border-left: 6px solid rgba(255, 255, 255, 0.5); }
.hda-who { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.hda-who.human { color: var(--ink); }
.hda-who.ai { color: var(--ice); }
.hda-what { font-size: .9rem; color: var(--dim); line-height: 1.35; }

/* ---------- pane 5, the loop: a straight line; nothing moves ---------- */
.map-panel { margin: 0 auto; padding: 14px 14px 6px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(202, 220, 252, 0.04) inset; }
.map-head { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; padding: 0 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); text-align: left; }
#map { display: block; margin: 0 auto; width: auto; max-width: 100%; height: clamp(150px, calc(100vh - 615px), 252px); }
#map text { font-family: var(--sans); }
#map .blk rect { fill: var(--panel); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; transition: stroke .15s ease, fill .15s ease, filter .15s ease; }
#map .blk .nm { fill: var(--ink); font-size: 15px; font-weight: 400; text-anchor: middle; }
#map .blk.invest rect { stroke: rgba(159, 217, 180, 0.55); fill: rgba(159, 217, 180, 0.06); }
#map .blk.loopb { cursor: pointer; outline: none; }
#map .blk.loopb rect { fill: rgba(202, 220, 252, 0.09); stroke: rgba(202, 220, 252, 0.5); }
#map .blk.loopb:hover rect, #map .blk.loopb:focus rect, #map .blk.loopb.on rect { stroke: var(--ice); fill: rgba(202, 220, 252, 0.18); filter: drop-shadow(0 0 7px rgba(202, 220, 252, 0.45)); }
#map .band { fill: rgba(202, 220, 252, 0.05); stroke: rgba(202, 220, 252, 0.35); stroke-dasharray: 4 4; cursor: pointer; outline: none; transition: fill .15s ease, stroke .15s ease; }
#map .band:hover, #map .band:focus, #map .band.on { fill: rgba(202, 220, 252, 0.1); stroke: var(--ice); }
#map .bandlbl { fill: var(--ice); font-size: 11px; letter-spacing: .25em; text-anchor: middle; }
#map .arrow { stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.2; fill: none; marker-end: url(#ah); }
#map .arrow.icy { stroke: rgba(202, 220, 252, 0.7); stroke-dasharray: 5 4; marker-end: url(#ahice); }
#map .arrow.icy.solid { stroke-dasharray: none; stroke-width: 1.6; }
#map .albl { fill: var(--dim); font-size: 10.5px; }
#map .albl.icy { fill: var(--ice); opacity: .9; }
#map .xout circle { fill: rgba(0, 0, 0, 0.01); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
#map .xout path { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.3; fill: none; }
#map .arrow, #map .albl, #map .bandlbl, #map .xout { pointer-events: none; }

/* the value proposition for the hovered loop step */
.loop-value { max-width: 860px; height: 96px; margin: .8rem auto 0; padding: .9rem 1.2rem; border: 1px solid var(--ice-line); border-radius: 12px; background: var(--ice-fill); text-align: left; display: grid; grid-template-columns: 110px 1fr; column-gap: 1.2rem; align-items: start; overflow: hidden; }
.loop-value-step { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ice); padding-top: .3rem; }
.loop-value b { font-weight: 400; color: var(--ink); font-size: 1.05rem; display: block; }
.loop-value p { margin: .2rem 0 0; color: var(--dim); font-size: .92rem; line-height: 1.5; }
.loop-value-body.swap { animation: fade-in .25s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- pane 3: reasoning graph ---------- */
.graph-panel { margin: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(202, 220, 252, 0.04) inset; }
.graph-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); }
.graph-title { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; }
.graph-sub { color: var(--faint); font-weight: 400; }
.graph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); animation: gdot 2.4s ease-in-out infinite; }
@keyframes gdot { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.graph-replay { background: none; border: 1px solid var(--ice-line); color: var(--ice); border-radius: 999px; padding: 4px 13px; font-size: .78rem; cursor: pointer; transition: background .2s; }
.graph-replay:hover { background: var(--ice-fill); }
.graph-scroller { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
#rgraph { display: block; margin: 6px auto 0; width: auto; max-width: 100%; height: clamp(240px, calc(100vh - 400px), 620px); }

#rgraph text { font-family: var(--sans); pointer-events: none; }
#rgraph .lbl { fill: var(--faint); font-size: 10.5px; letter-spacing: .3em; font-weight: 500; }
#rgraph .q rect { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
#rgraph .q text { fill: var(--ink); font-size: 12px; text-anchor: middle; }
#rgraph .q.root rect { stroke: rgba(255, 255, 255, 0.5); fill: rgba(255, 255, 255, 0.06); }
#rgraph .q.root text { font-weight: 500; font-size: 12.5px; }
#rgraph .a rect { fill: rgba(202, 220, 252, 0.07); stroke: var(--ice-line); stroke-width: 1; }
#rgraph .a text { fill: var(--ice-ink); font-size: 11.5px; text-anchor: middle; }
#rgraph .a .tag, #rgraph .q .tag { fill: var(--faint); font-size: 9px; letter-spacing: .12em; font-weight: 500; }
#rgraph .a .tag { fill: rgba(202, 220, 252, 0.7); }
#rgraph .a text.tag, #rgraph .q text.tag { text-anchor: start; }
#rgraph .e rect { fill: rgba(202, 220, 252, 0.05); stroke: rgba(202, 220, 252, 0.2); stroke-width: 1; transition: fill .3s, stroke .3s; }
#rgraph .e text { fill: var(--faint); font-size: 10px; text-anchor: middle; font-family: var(--mono); transition: fill .3s; }
#rgraph .e.lit rect { fill: rgba(202, 220, 252, 0.18); stroke: var(--ice); }
#rgraph .e.lit text { fill: var(--ice-ink); }
#rgraph .node { opacity: 0; transition: opacity .55s var(--ease); }
#rgraph .node.show { opacity: 1; }
#rgraph .base { opacity: 1; }
#rgraph .pulse rect { stroke: var(--ice); stroke-width: 1.6; animation: gpulse 1s ease-in-out infinite; }
@keyframes gpulse { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 8px rgba(202, 220, 252, 0.85)); } }
#rgraph .lit-q rect { stroke: var(--ice); stroke-width: 1.4; }
#rgraph .lk { stroke: rgba(202, 220, 252, 0.5); stroke-width: 1.1; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
#rgraph .lk.drawn { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease, opacity .2s ease; }
#rgraph .lk.tree { stroke: rgba(255, 255, 255, 0.22); }
#rgraph .lk.ev { stroke: rgba(202, 220, 252, 0.42); }
#rgraph .lake-fill { fill: rgba(202, 220, 252, 0.05); }
#rgraph .lake-line { fill: none; stroke: rgba(202, 220, 252, 0.25); stroke-width: 1; }
#rgraph .mote { fill: rgba(202, 220, 252, 0.5); animation: mote 6s linear infinite; }
@keyframes mote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 85% { opacity: .5; } 100% { transform: translateY(-70px); opacity: 0; } }
#rgraph #sweep { fill: rgba(202, 220, 252, 0.14); opacity: 0; }
#rgraph #sweep.go { opacity: 1; transform: translateX(900px); transition: transform 1.15s linear, opacity .2s ease; }
#rgraph .dd rect { fill: rgba(232, 192, 122, 0.1); stroke: rgba(232, 192, 122, 0.45); }
#rgraph .dd text { fill: rgba(232, 192, 122, 0.95); font-size: 9px; letter-spacing: .14em; font-weight: 500; text-anchor: middle; }
#rgraph.complete .a rect { filter: drop-shadow(0 0 6px rgba(202, 220, 252, 0.35)); }
#rgraph .cap text { fill: var(--ice); font-size: 12.5px; text-anchor: middle; }
#rgraph .cap rect { fill: rgba(11, 11, 18, 0.92); }
#rgraph.fade .node, #rgraph.fade .lk, #rgraph.fade .e { transition: opacity .6s ease; opacity: 0; }

/* ---------- pane 6: the platform (the Reasoning Graph) ---------- */
.pane-platform .pane-inner { text-align: center; }
.pane-platform h2 { margin-bottom: 1.1rem; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.pane-platform .graph-panel { text-align: left; }

/* ---------- pane 7: next step ---------- */
.pane-next { text-align: center; }
.pane-next h2.close { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 2.2rem; }
.pane-next h2.close .close-brand { display: block; color: var(--ink); }
.pane-next h2.close em { display: block; font-style: normal; color: var(--ice); font-size: .6em; margin-top: .25em; letter-spacing: -0.03em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; color: var(--faint); font-size: .85rem; scroll-snap-align: end; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: .2rem; }
.brand-name { color: var(--ink); font-weight: 500; }
.footer-egg { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--faint); font-size: .8rem; }
.egg-greek { font-family: Georgia, serif; font-style: italic; color: var(--faint); transition: color .2s; }
.egg-hint { opacity: 0; transition: opacity .25s; }
.footer-egg:hover .egg-greek, .footer-egg:focus-visible .egg-greek { color: var(--ice); }
.footer-egg:hover .egg-hint, .footer-egg:focus-visible .egg-hint { opacity: 1; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { text-align: center; margin: 2rem 0 0; }
.footer p { margin: .5rem 0 0; text-align: center; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--ice-line); border-radius: 14px; padding: 1.8rem 1.9rem 1.6rem; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box .eyebrow { margin-bottom: .5rem; }
.modal-box h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.modal-hint { color: var(--dim); font-size: .92rem; margin: 0 0 1.2rem; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 16px; padding: 6px; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.lead-form { display: grid; gap: .85rem; }
.lead-form label { display: grid; gap: .35rem; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.lead-form .optional { color: var(--faint); font-weight: 400; letter-spacing: .05em; text-transform: none; margin-left: .3rem; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem; color: var(--ink); font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 400; transition: border-color .2s; }
.lead-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lead-form select option { background: var(--bg-2); color: var(--ink); }
.lead-form textarea { resize: vertical; min-height: 78px; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: none; border-color: var(--ice); }
.lead-form .hp { position: absolute; left: -9999px; top: -9999px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.form-status { font-size: .85rem; color: var(--dim); }
.form-status.err { color: var(--amber); }
.form-fine { margin: .2rem 0 0; font-size: .75rem; color: var(--faint); }
.form-fine a { color: var(--dim); }
.form-thanks { padding: 1rem 0 .5rem; color: var(--ice-ink); font-size: 1rem; line-height: 1.6; }
.form-thanks b { color: var(--ice); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: .4rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .then-now { grid-template-columns: 1fr; }
  .tn-panel svg { max-height: 240px; }
}
@media (max-width: 760px) {
  html { scroll-snap-type: none; }
  .dots { display: none; }
  .pane { min-height: 0; padding: calc(var(--nav-h) + 32px) 0 96px; }
  .field-row { grid-template-columns: 1fr; }
  .form-row { flex-direction: column-reverse; align-items: stretch; }
  .form-row .btn { justify-content: center; }
  .graph-sub { display: none; }
  /* the wide graphics keep their desktop drawing and scroll sideways; v2.js opens them on the interesting part */
  #rgraph { width: 100%; min-width: 720px; height: auto; }
  #map { height: auto; width: 100%; min-width: 720px; }
  .map-panel, .pane-problem .figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #problem-viz { min-width: 680px; max-height: none; }
  .loop-value { grid-template-columns: 1fr; height: auto; min-height: 120px; }
  .tn-panel { display: block; }
  .tn-panel figcaption { flex-direction: column; gap: .25rem; min-height: 0; }
  .tn-panel.warn .tn-tag { font-size: .95rem; }
  .cost-line { flex-direction: column; gap: .4rem; }
  .cost-line i { width: 1px; height: 26px; }
  .cost-line i::after { right: -3px; top: auto; bottom: 0; border: 3.5px solid transparent; border-top: 6px solid rgba(255, 255, 255, 0.45); }
  .hda { flex-direction: column; align-items: stretch; gap: .35rem; }
  .hda li { max-width: none; flex-direction: row; align-items: center; justify-content: center; gap: .7rem; min-height: 0; height: auto; padding: .7rem .9rem; }
  .hda li.hda-arrow { align-self: center; width: 1px; height: 22px; padding: 0; flex-direction: column; }
  .hda li.hda-arrow::before { width: 1px; height: 18px; }
  .hda li.hda-arrow::after { margin: 0; border: 3.5px solid transparent; border-top: 6px solid rgba(255, 255, 255, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .zoom { opacity: 1; transform: none; transition: none; }
  .cue i, .graph-dot, #rgraph .mote, #rgraph .pulse rect, .loop-value.swap { animation: none; }
  .purpose .pw, .purpose .pa { opacity: 1; animation: none !important; }
  .purpose .pl { stroke-dashoffset: 0; opacity: 1; animation: none !important; }
  #dil-then .fly { animation: none; opacity: .9; transform: translate(calc(var(--x) * 1.6), calc(var(--y) * 1.6)) scale(1); }
  #dil-now .field, #dil-now .doc, #dil-now .qpill, #dil-now .qpill text, #dil-now .tl.hit, #problem-viz .th, #problem-viz .link { animation: none; }
  #problem-viz .th, #problem-viz .link, #slop-viz .stack g { opacity: 1; }
  #problem-viz .deep-g, #problem-viz .you, #problem-viz .note.gone, #slop-viz .stack, #slop-viz .stack g, #slop-viz .base, #slop-viz .nosrc, #drain-viz .hand, #drain-viz .fill { animation: none; }
  #problem-viz .you { opacity: 0; }
  #dil-now .tl.hit { fill: rgba(202, 220, 252, 0.85); }
  #dil-now .qpill { offset-distance: 100%; }
  #dil-now .qpill .t3 { opacity: 1; }
  #rgraph .node, #rgraph .lk, #rgraph #sweep, .btn, .modal-box { transition: none; animation: none; }
}
