@font-face { font-family: 'Geist'; src: url('../assets/fonts/Geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/GeistMono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050607; --panel: #08090B; --panel-2: #0C0E10;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.22);
  --ink: #F2F4F5; --ink-2: #A3AAB0; --ink-3: #7F878E;
  --res: #EF4F5A; --piv: #F2C94C; --sup: #00E676;
  --g: clamp(20px, 5.6vw, 300px);
  --sec: clamp(88px, 8vw, 168px);
  --ease: cubic-bezier(.65,0,.35,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --vh: 1vh;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 104px; scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }   /* the page holds still behind an open dialog */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(242,244,245,.88); color: #050607; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.num, .tab { font-variant-numeric: tabular-nums; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- type ---------- */
.display { font-weight: 500; font-size: clamp(44px, 6.1vw, 128px); line-height: .96; letter-spacing: -.048em; }
.h2 { font-weight: 500; font-size: clamp(36px, 4.1vw, 82px); line-height: 1; letter-spacing: -.043em; }
.sub, .lede, .cap-p, .cap-note, .stat dd, .host p, .feats p, .qa-a p, .model-copy, .tracker-note, .research-lede { text-wrap: pretty; }
.lede, .sub { font-size: clamp(17px, 1.18vw, 21px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.008em; }
.lede { max-width: 31em; }
.sub { max-width: 34em; }
.fine { font-size: 13px; color: var(--ink-3); }

.reveal-lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-lines .line > span { display: inline-block; text-wrap: balance; }
.js .reveal-lines .line > span { transform: translate3d(0, 112%, 0); transition: transform 1.2s var(--ease-out) var(--rd, 0s); will-change: transform; }
.js .reveal-lines .line:nth-child(2) > span { transition-delay: calc(var(--rd, 0s) + .09s); }
.js .reveal-lines .line:nth-child(3) > span { transition-delay: calc(var(--rd, 0s) + .18s); }
.js .reveal-lines.is-in .line > span { transform: none; }
.fade { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .9s var(--ease-out) var(--rd, 0s), transform .9s var(--ease-out) var(--rd, 0s); }
.fade.is-in { opacity: 1; transform: none; }
.shot.fade { transform: perspective(2200px) rotateX(10deg) translate3d(0, 40px, 0) scale(.965); transition: opacity 1.2s var(--ease-out) var(--rd, 0s), transform 1.8s var(--ease-out) var(--rd, 0s); }
.shot.fade.is-in { transform: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #050607; }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(5,6,7,.62); }   /* a solid fill, no frosted glass */
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--line-3); background: rgba(255,255,255,.04); }
.btn:active { transform: scale(.985); }
.arw { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover .arw { transform: translateX(3px); }
.btn:hover .arw-down { transform: translateY(2px); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.link:hover { text-decoration-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 2.6vw, 44px); }
.actions--center { justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--g);
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.js .nav { opacity: 0; transition: opacity 1.2s var(--ease-out) .25s, background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), -webkit-backdrop-filter .5s var(--ease-out), backdrop-filter .5s var(--ease-out); }
.js.is-loaded .nav { opacity: 1; }
.nav.is-solid { background: rgba(5,6,7,.94); box-shadow: 0 1px 0 var(--line); }   /* solid, no blur */
.nav-logo img { height: 19px; width: auto; filter: invert(1); opacity: .96; }
.nav-links { display: flex; gap: clamp(22px, 2.4vw, 40px); }
.nav-links a, .nav-login { font-size: 14px; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover, .nav-login:hover { color: var(--ink); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }

/* ---------- map layer ---------- */
.map { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; background: var(--bg); }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.odds { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.odds canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.odds-poster { position: absolute; inset: 0; opacity: 0; background: url('../assets/img/poster-odds.jpg') 72% 50% / cover no-repeat; transition: opacity .6s var(--ease-out); }
.no-odds .odds canvas { visibility: hidden; }
.no-odds .odds-poster { opacity: 1; }
.map-poster { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .6s var(--ease-out); }
.no-webgl .map canvas { visibility: hidden; }
.no-webgl .map-poster--land { display: none; }   /* the hero layer (odds or its poster) covers the opening */
.no-webgl .map-poster--chart { opacity: var(--chart, 0); background-image: url('../assets/img/poster-chart.jpg'); background-position: 70% 50%; }
.no-webgl .map.is-final .map-poster--land { display: block; opacity: 1; background-image: url('../assets/img/poster-land.jpg'); }
.no-webgl .map.is-final .map-poster--chart { opacity: 0; }

main { position: relative; z-index: 1; }

/* ---------- story (hero + fold) ---------- */
.story { position: relative; height: 500vh; }   /* the last viewport sits under the models sheet (margin-top below) */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #000; opacity: var(--dim, 0); }   /* depth as Models covers the story */
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 95% at 0% 100%, rgba(5,6,7,.86) 0%, rgba(5,6,7,.6) 38%, rgba(5,6,7,0) 70%),
    linear-gradient(to top, rgba(5,6,7,.6), rgba(5,6,7,0) 20%),
    linear-gradient(to bottom, rgba(5,6,7,.55), rgba(5,6,7,0) 22%);
}
.scrim--cap { opacity: 0; background: linear-gradient(to right, rgba(5,6,7,.9) 0%, rgba(5,6,7,.72) 24%, rgba(5,6,7,0) 46%); }
@media (max-width: 1100px) { .scrim--cap { background: linear-gradient(to bottom, rgba(5,6,7,.92) 0%, rgba(5,6,7,.75) 30%, rgba(5,6,7,0) 46%); } }
.hero { position: absolute; left: var(--g); right: var(--g); bottom: clamp(96px, 18vh, 240px); max-width: 1900px; will-change: opacity, transform; }
.hero .display { max-width: 14em; }
.js [data-phase="hero"] { transition: opacity .5s var(--ease-out) .05s, transform .7s var(--ease-out) .05s, visibility 0s; }
html.js [data-phase="hero"].is-out { opacity: 0; transform: translate3d(0, -12px, 0); visibility: hidden; transition: opacity .26s cubic-bezier(.4, 0, .6, 1), transform .3s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .3s; }
.hero .lede { margin-top: clamp(20px, 1.9vw, 32px); }
.js .hero .lede, .js .hero .actions, .js .legend, .js .scrollcue { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.js .hero .lede:not(.is-in) { opacity: .1; }   /* the LCP element: Chrome ignores paints at opacity 0, so it starts faint, not invisible */
.js .hero .lede.is-in, .js .hero .actions.is-in, .js .legend.is-in, .js .scrollcue.is-in { opacity: 1; transform: none; }
/* safety net: if site.js never runs (failed to load, threw), show everything */
.no-motion .nav, .no-motion .final .actions, .no-motion [data-phase="hero"]:not(.is-out), .no-motion .hero .lede, .no-motion .hero .actions, .no-motion .legend, .no-motion .scrollcue, .no-motion .fade { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.no-motion .reveal-lines .line > span { transform: none !important; }
.legend {
  position: absolute; right: var(--g); bottom: clamp(40px, 6.6vh, 80px);
  display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--ink-3); letter-spacing: .005em;
}
.legend-k { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.legend-k i { width: 14px; height: 2px; border-radius: 2px; background: var(--c); }
.legend-src { padding-left: 18px; border-left: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.scrollcue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 40px; background: var(--line); overflow: hidden; transform: translateX(-50%); }
.scrollcue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink-2); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { top: -40%; } 70%, 100% { top: 100%; } }

.captions { position: absolute; left: var(--g); top: 38%; width: min(31vw, 660px); pointer-events: none; }
/* captions: the leaving one steps away in a quick fade (direction follows the scroll); the next headline rises line by line
   through its own masks with the section-heading curve, and its copy follows */
.cap { --cy: 0px; position: absolute; left: 0; top: 0; visibility: hidden; opacity: 0; transform: translate3d(0, calc(var(--cy) + 10px), 0);
  transition: opacity .26s cubic-bezier(.4, 0, .6, 1), transform .3s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .3s; }
.cap.is-past { transform: translate3d(0, calc(var(--cy) - 10px), 0); }
.cap.is-on { visibility: visible; opacity: 1; transform: translate3d(0, var(--cy), 0); transition: none; }
.cap-h .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.cap-h .ln > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 0s linear .3s; }
.cap.is-past .cap-h .ln > span { transform: translate3d(0, -110%, 0); }
.cap.is-on .cap-h .ln > span { transform: none; transition: transform .6s var(--ease-out) calc(.16s + var(--i, 0) * .07s); }
.cap[data-cap="0"].is-on .cap-h .ln > span { transition-delay: calc(.14s + var(--i, 0) * .07s); }   /* rises as the hero copy finishes stepping away */
.cap-p, .cap-note { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0s linear .3s, transform 0s linear .3s; }
.cap.is-on .cap-p, .cap.is-on .cap-note { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) .3s, transform .6s var(--ease-out) .3s; }
.cap.is-on .cap-note { transition-delay: .38s; }
.cap-h { font-weight: 500; font-size: clamp(30px, 2.9vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.cap-p { margin-top: 18px; font-size: clamp(16px, 1.08vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.cap-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ---------- sections ---------- */
.sec { position: relative; z-index: 2; background: var(--bg); padding: var(--sec) 0; }
.wrap { padding: 0 var(--g); }
.sec-head { display: grid; gap: clamp(16px, 1.5vw, 24px); margin-bottom: clamp(32px, 3.2vw, 60px); }
.sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px clamp(32px, 6vw, 160px); }
.models { margin-top: -100vh; margin-top: -100svh; box-shadow: 0 -1px 0 var(--line), 0 -70px 140px rgba(0,0,0,.6); }   /* slides over the pinned story */
.faq { box-shadow: 0 70px 140px rgba(0,0,0,.5); }
/* 5120 px: every section shares one content width (the wider gutter), so all right edges line up (no 2400 px caps) */
@media (min-aspect-ratio: 2/1) and (min-width: 2800px) {
  .display { font-size: clamp(128px, 4.2vw, 220px); }
  .h2 { font-size: clamp(82px, 2.4vw, 120px); }
  .lede, .sub { font-size: clamp(21px, .55vw, 28px); }
  .hero { max-width: 2600px; }
  .nav-links a { font-size: 17px; }
  .btn { --h: 60px; font-size: 18px; }
}
/* section backgrounds: behind each section's opening, faded into the page at both ends; text stays above */
.has-band > .wrap { position: relative; z-index: 1; }
.band-bg { --fade-t: 90px; --fade-b: 200px; position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent); }
.models > .band-bg, .terminal > .band-bg { --fade-b: 64px; }   /* ends where the content starts */
.research > .band-bg { opacity: .72; }                          /* a texture behind a text section */
.band-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 1101px) { .has-band .sec-head--split { grid-template-columns: minmax(0, 1fr); max-width: min(46%, 820px); align-items: start; row-gap: clamp(16px, 1.5vw, 24px); } }
@media (max-width: 760px) { .has-band.models, .has-band.terminal { padding-top: calc(var(--sec) + 30vw); } }

/* models */
.tabs { position: relative; display: flex; gap: clamp(24px, 2.6vw, 48px); box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; padding: 0 0 16px; font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .35s var(--ease-out); }
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs-ink { position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ink); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }
.panel { position: relative; margin-top: clamp(14px, 1.4vw, 22px); border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.panel-chart { position: relative; height: clamp(300px, min(58vh, 44vw), 860px); }
.panel-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.msr-toggle { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(12,13,15,.92); box-shadow: inset 0 0 0 1px var(--line); }
.msr-toggle { transition: opacity .2s var(--ease-out), visibility 0s; }
.msr-toggle.is-off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s linear, visibility 0s linear .2s; }
#model-copy { transition: opacity .26s var(--ease-out); }
#model-copy.is-swap { opacity: 0; transition: opacity .12s linear; }
.msr-toggle button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: color .3s var(--ease-out), background-color .3s var(--ease-out); }
.msr-toggle button:hover { color: var(--ink-2); }
.msr-toggle button[aria-pressed="true"] { background: rgba(255,255,255,.08); }
.msr-toggle button[data-msr="bull"][aria-pressed="true"] { color: var(--sup); }
.msr-toggle button[data-msr="bear"][aria-pressed="true"] { color: var(--res); }
.msr-toggle button[data-msr="both"][aria-pressed="true"] { color: var(--ink); }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--sup); vertical-align: 1px; box-shadow: 0 0 0 0 rgba(0,230,118,.5); animation: live 2.4s var(--ease-out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(0,230,118,.45); } 100% { box-shadow: 0 0 0 7px rgba(0,230,118,0); } }
.panel-fallback { display: none; position: absolute; inset: 0; place-items: center; color: var(--ink-3); font-size: 14px; }
.panel.is-failed .panel-fallback { display: grid; }
.panel-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.model-copy { max-width: 52em; margin-top: 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); min-height: 3.1em; }
.model-copy b { color: var(--ink); font-weight: 500; }
.panel-src { font-size: 13px; color: var(--ink-3); }


/* live */
.live-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 128px); align-items: start; }
.live-copy .sub { margin-top: clamp(18px, 1.7vw, 28px); }
.sched { margin-top: clamp(32px, 3vw, 48px); border-top: 1px solid var(--line); max-width: 30em; }
.sched-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sched-row dt { color: var(--ink-2); }
.sched-row dd { font-variant-numeric: tabular-nums; }
.live-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); min-height: 22px; }
.live-status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--sup); flex: none; }
.live-status.is-live i { background: var(--sup); box-shadow: none; }
.live-status.is-live i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--sup); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.host { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 2.6vw, 44px); font-size: 14px; color: var(--ink-3); }
.host img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; box-shadow: 0 0 0 1px var(--line-2); filter: saturate(.9); }

.tracker { padding: clamp(24px, 2.8vw, 40px); border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tracker-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.tracker-k { color: var(--ink); }
.tracker-d { color: #8D959C; font-variant-numeric: tabular-nums; }
.tracker-big { margin-top: clamp(18px, 2vw, 32px); font-weight: 500; font-size: clamp(40px, 3.2vw, 64px); line-height: 1; letter-spacing: -.045em; }
.js .tracker:not(.is-drawn):not(.is-drawing) .tracker-big .num { opacity: .32; }
.tracker-big .num { font-variant-numeric: tabular-nums; }
.tracker-big .num { transition: opacity .7s var(--ease-out); }
.tracker-svg { width: 100%; height: clamp(170px, 15vw, 320px); margin-top: clamp(20px, 2vw, 32px); overflow: visible; }
.tracker-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tracker-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(24px, 2.4vw, 36px); border-top: 1px solid var(--line); }
.tracker-stats div { padding: 16px 0 0; }
.tracker-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.tracker-stats dt { font-size: 13px; color: #8D959C; }
.tracker-stats dd { margin-top: 4px; font-size: clamp(20px, 1.6vw, 28px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tracker-note { margin-top: 22px; font-size: 13px; line-height: 1.55; color: #8D959C; max-width: 62em; }
.tracker-note strong { color: var(--ink-2); font-weight: 500; }
.no-results .live-grid { grid-template-columns: minmax(0, 1fr); }
.no-results .live-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 180px); align-items: start; }
.no-results .live-copy > .h2, .no-results .live-copy > .sub { grid-column: 1; }
.no-results .live-copy > .sched, .no-results .live-copy > .live-status, .no-results .live-copy > .actions, .no-results .live-copy > .host { grid-column: 2; }
.no-results .live-copy > .sched { grid-row: 1; margin-top: 0; }
.no-results .live-copy > .live-status { grid-row: 2; }
.no-results .live-copy > .actions { grid-row: 3; }
.no-results .live-copy > .host { grid-row: 4; }
@media (max-width: 1100px) { .no-results .live-copy { display: block; } }
.no-results .tracker { display: none; }

/* terminal */
.shot { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px var(--line); transform-origin: 50% 0; }
.shot img { width: 100%; height: auto; }
.shot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 3vw, 72px); margin-top: clamp(28px, 2.8vw, 56px); }
.feats li { padding: 22px 0 30px; border-top: 1px solid var(--line); }
.feats h3 { font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.feats p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 30em; }

.term { position: relative; }
.term-fallback { display: none; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); width: 100%; height: auto; }
.term.is-failed .term-fallback { display: block; }
.term.is-failed .term-app { display: none; }
.term-app { position: relative; width: 100%; aspect-ratio: 2 / 1; max-height: min(76vh, 1100px); }
@media (max-width: 899px) { .term-app { aspect-ratio: auto; max-height: none; } }
.panel-foot { align-items: center; }
.replay { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .3s; }
.replay:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.replay.is-playing { opacity: .45; pointer-events: none; }

/* research: a readout table, not stat tiles */
.research { padding: calc(var(--sec) * .6) 0; box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.research .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(40px, 5vw, 128px); align-items: start; }
.research-lede { font-size: clamp(22px, 2vw, 38px); line-height: 1.25; letter-spacing: -.026em; max-width: 20em; color: var(--ink); }
.stats { display: grid; position: relative; }
.stat { position: relative; display: grid; grid-template-columns: minmax(150px, 11rem) minmax(0, 1fr); align-items: baseline; gap: 0 40px; padding: clamp(14px, 1.4vw, 22px) 0; }
/* the rules draw in left to right as the numbers count up, one row after another */
.stats::before, .stat::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.stats::before { top: 0; }
.stat::after { bottom: 0; }
.js .stats::before, .js .stat::after { transform: scaleX(0); transition: transform 1.5s var(--ease-out); }
.js .stats.is-in::before, .js .stats.is-in .stat::after { transform: none; }
.js .stats.is-in .stat:nth-child(1)::after { transition-delay: .14s; }
.js .stats.is-in .stat:nth-child(2)::after { transition-delay: .28s; }
.js .stats.is-in .stat:nth-child(3)::after { transition-delay: .42s; }
.stat dt { display: flex; align-items: baseline; gap: 10px; }
.stat .num { font-weight: 400; font-size: clamp(44px, 4.4vw, 84px); line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat .unit { font-size: clamp(15px, 1.1vw, 19px); color: var(--ink-2); letter-spacing: -.01em; }
.stat dd { font-size: 15px; color: var(--ink-2); max-width: 26em; }
.stat sup { font-size: .7em; color: var(--ink-3); }
.research .fine { grid-column: 2; margin-top: 4px; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 5vw, 160px); align-items: center; }
.pricing-grid .sec-head { margin-bottom: 0; }
@media (min-width: 1800px) { .pricing-grid { max-width: calc(1360px + 2 * var(--g)); grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 120px; } }   /* card follows the heading on wide screens (the wrap's side padding is outside the 1360) */
.facts { display: grid; gap: 12px; margin-top: 8px; }
.facts li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); max-width: 34em; }
.facts li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink-3); }
.plan { border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 2.8vw, 40px); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 14px 16px; flex-wrap: wrap; }
.seg button { white-space: nowrap; }
.plan-name { font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; color: var(--ink-2); transition: color .35s var(--ease-out); }
.seg button[aria-checked="true"] { color: #050607; }
.seg .save { color: inherit; opacity: .7; margin-left: 2px; }
.seg-ink { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 8px; background: var(--ink); transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
.plan-price { display: flex; align-items: baseline; margin-top: clamp(28px, 2.8vw, 44px); }
.plan-price .cur { font-size: clamp(26px, 2.2vw, 40px); font-weight: 500; letter-spacing: -.03em; margin-right: 2px; align-self: flex-start; margin-top: .25em; }
.plan-price .amt { font-size: clamp(64px, 5.6vw, 112px); font-weight: 500; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.plan-price .per { margin-left: 10px; font-size: 15px; color: var(--ink-3); }
.plan-alt { margin-top: 8px; font-size: 14px; color: var(--ink-3); min-height: 21px; }
.plan-list { margin: clamp(24px, 2.4vw, 36px) 0; border-top: 1px solid var(--line); }
.plan-list li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.plan-list li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 12px; height: 7px; margin-top: -5px; border-left: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-45deg); }
.plan-walk { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 5vw, 128px); }
.qa { border-top: 1px solid var(--line); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 24px 0; text-align: left; font-size: clamp(17px, 1.2vw, 21px); font-weight: 500; letter-spacing: -.015em; }
.qa-q i { position: relative; width: 14px; height: 14px; flex: none; }
.qa-q i::before, .qa-q i::after { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -.75px; background: var(--ink-2); transition: transform .5s var(--ease-out); }
.qa-q i::after { transform: rotate(90deg); }
.qa-item.is-open .qa-q i::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 0 26px; max-width: 44em; font-size: 16px; color: var(--ink-2); }
.qa-item.is-open .qa-a { grid-template-rows: 1fr; }

/* final */
.final { position: relative; z-index: 2; height: 100vh; height: 100svh; min-height: 560px; display: grid; align-items: end; padding: 0 var(--g) clamp(72px, 15vh, 200px); }
.final::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,6,7,.7), rgba(5,6,7,0) 45%), radial-gradient(130% 95% at 0% 100%, rgba(5,6,7,.86) 0%, rgba(5,6,7,.6) 38%, rgba(5,6,7,0) 70%), linear-gradient(to bottom, var(--bg), rgba(5,6,7,0) 26%, rgba(5,6,7,0) 72%, var(--bg)); }
.final-inner { position: relative; }
.js .final .actions { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .9s var(--ease-out) .3s, transform 1.1s var(--ease-out) .3s; }
.js .final .is-in ~ .actions { opacity: 1; transform: none; }

/* footer */
.foot { position: relative; z-index: 2; background: var(--bg); padding: 56px 0 64px; box-shadow: 0 -1px 0 var(--line); }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--ink-3); }
.foot-brand img { height: 15px; width: auto; filter: invert(1); opacity: .8; }
.foot-links { justify-self: end; display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.foot-links a[hidden], .check a[hidden] { display: none; }
.foot-risk { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.foot-risk p { max-width: 720px; }
.foot-risk p { max-width: 78em; }

/* modal */
.modal { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
.modal::backdrop { background: rgba(3,4,5,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal[open] { animation: pop .5s var(--ease-out); }
.modal[open]::backdrop { animation: fadein .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } }
.modal-card { position: relative; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: #0B0D0F; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px rgba(0,0,0,.6); }
.modal-body { padding: clamp(28px, 4vw, 40px); }
.modal-h { font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; padding-right: 32px; }
.modal-p { margin: 14px 0 26px; font-size: 15px; color: var(--ink-2); }
.modal-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background-color .3s, color .3s; }
.modal-x:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.modal-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 7px; font-size: 13px; color: var(--ink-2); }
.field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: inherit; font-size: 16px; transition: box-shadow .3s var(--ease-out), background-color .3s; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink-2); background: rgba(255,255,255,.05); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 8px; font-size: 13px; line-height: 1.5; color: var(--ink-3); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-3); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border-left: 1.5px solid #050607; border-bottom: 1.5px solid #050607; transform: rotate(-45deg); }
.form-err { min-height: 20px; margin: 4px 0 12px; font-size: 13px; color: #FF8A8F; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .captions { top: max(88px, 12vh); bottom: auto; transform: none; width: auto; right: var(--g); }
  .cap { --cy: 0px; }
  .cap-h { font-size: clamp(26px, 6.4vw, 40px); }
  .cap-p { margin-top: 10px; }
  .live-grid, .pricing-grid, .faq-grid, .sec-head--split, .research .wrap { grid-template-columns: minmax(0, 1fr); }
  .research .fine { grid-column: 1; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* narrow screens: the disclosure keeps its place in the legend, on its own full-width line under the keys */
  .legend { left: var(--g); flex-wrap: wrap; row-gap: 8px; }
  .legend-src { flex: 0 0 100%; padding-left: 0; border-left: 0; white-space: normal; }
}
@media (max-width: 359px) { .nav-login { display: none; } }
@media (max-width: 760px) {
  .story { height: 460vh; }   /* 260vh of story scroll, as before the models overlap */
  .nav { height: 60px; }
  .nav-cta { gap: 14px; }
  .nav-login { font-size: 13px; }
  .nav-logo img { height: 16px; }
  /* phones: text on top, the picture below, all the way through the story (the chart lives in the lower half) */
  .hero { top: max(84px, 10.5vh); bottom: auto; }
  .scrim:not(.scrim--cap) { background: linear-gradient(to bottom, rgba(5,6,7,.9) 0%, rgba(5,6,7,.72) 34%, rgba(5,6,7,0) 52%); }
  .final { padding-bottom: max(84px, 12vh); }
  .final::before { background: linear-gradient(to top, rgba(5,6,7,.92) 0%, rgba(5,6,7,.7) 40%, rgba(5,6,7,0) 64%), linear-gradient(to bottom, var(--bg), rgba(5,6,7,0) 22%); }
  .actions .btn { flex: 1 1 auto; }
  .legend { left: var(--g); right: auto; bottom: 26px; gap: 14px; }
  .scrollcue { display: none; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .stat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tracker-stats div + div { padding-left: 14px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-self: start; }
  .replay { height: 44px; padding: 0 16px 0 14px; }
  .panel-foot { flex-wrap: wrap; gap: 12px 16px; }   /* phones: Replay and the source line never touch */
  .tabs { gap: 18px; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .tabs button { font-size: 14px; }
  .shot img { height: 300px; width: 100%; object-fit: cover; object-position: 44% 58%; }
  .plan-name { width: 100%; }
}
@media (min-width: 2600px) {
  :root { --g: max(5.6vw, calc((100vw - 3200px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal-lines .line > span, .fade { transform: none !important; opacity: 1 !important; }
  .cap { transform: translate3d(0, var(--cy), 0) !important; }
  .cap.is-on .cap-h .ln > span { transform: none !important; }
}
