/* Concept F · No Bottom. One world from the first screen to the last: the sheet, the bend, the
   logo, a shaft with no floor, the horizon, a lattice where every year of AI is a window you fly
   into, then the sections, which rise over the same lattice like rooms further down.
   Day shows the mass (the ball); Night shows only what it does (the line), as in the two logos. */
:root {
  /* Day: white ground, ink type, one warm-neutral family for every grey */
  --bg: #ffffff;
  --surface: #f6f6f4;
  --raise: #ffffff;
  --fg: #0e0e0e;
  --dim: #5b5b56;
  --hair: #e3e3df;
  --frame: #d9d9d4;          /* neutral window border */
  --line: #8a8a84;           /* WebGL lines in Day (read by f.js) */
  --ball: #0e0e0e;
  --verm-text: #c23a0f;
  --on-verm: #0e0e0e;
  --bubble: #ededeb;
  /* Type scale: five sizes, nothing in between */
  --t-1: clamp(3rem, 6.4vw, 6rem);
  --t-2: clamp(2.25rem, 4.4vw, 4rem);
  --t-3: clamp(1.75rem, 3.4vw, 3.25rem);
  --t-4: clamp(1.25rem, 2.2vw, 1.875rem);
  --t-5: clamp(1.0625rem, 1.4vw, 1.25rem);
  /* Corners: three tiers plus pills */
  --r-lg: 24px; --r-md: 14px; --r-sm: 6px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --surface: #141413; --raise: #1a1a19; --fg: #ededea; --dim: #908f8a; --hair: #262624;
    --frame: #2f2f2c; --line: #f85222; --ball: transparent; --verm-text: #fa6a3e; --bubble: #232321; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --surface: #141413; --raise: #1a1a19; --fg: #ededea; --dim: #908f8a; --hair: #262624;
  --frame: #2f2f2c; --line: #f85222; --ball: transparent; --verm-text: #fa6a3e; --bubble: #232321; color-scheme: dark;
}

html { background: var(--bg); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); overflow-x: clip; transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
::selection { background: var(--verm); color: var(--on-verm); }
section[id] { scroll-margin-top: 72px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 68px;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 1rem; white-space: nowrap; }
.brand-mark { width: 46px; flex: none; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-link { padding: 12px 0; text-decoration: none; color: var(--dim); font-size: 0.9375rem; transition: color .2s var(--ease-out); }
.nav-link:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid var(--verm); color: var(--fg); text-decoration: none; font-size: 0.9375rem; font-weight: 600;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out);
}
.nav-cta:hover { background: var(--verm); color: var(--on-verm); }
.nav-cta:active { transform: scale(0.97); }

/* Night / Day: the two logos are the switch */
.theme { display: inline-flex; height: 40px; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); }
.theme button {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--dim); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.theme button:hover { color: var(--fg); }
.theme button[aria-pressed="true"] { background: var(--raise); color: var(--fg); box-shadow: 0 0 0 1px var(--hair); }
.theme-mark { width: 24px; flex: none; }
.theme-mark-day { --ball: #0e0e0e; }
:root[data-theme="dark"] .theme-mark-day { --ball: #ededea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-mark-day { --ball: #ededea; } }

/* HUD: one place at every size, a fixed width so its edges never jitter */
.hud {
  position: fixed; z-index: 30;
  left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 232px; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim);
  font-variant-numeric: tabular-nums; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.hud.away { opacity: 0; }
.hud-ch { color: var(--fg); white-space: nowrap; }
.hud-depth { white-space: nowrap; }
.hud-depth b { color: var(--verm-text); font-weight: 600; }

/* The well: the whole page lives in it. The stage is pinned; the story space gives it scroll;
   the sections after the story rise over it. */
.well { position: relative; }
.anchor { position: absolute; top: 70vh; left: 0; width: 1px; height: 1px; }
/* The stage is the large viewport (lvh), so a phone's toolbar showing or hiding never resizes the scene mid-scroll */
.stage { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.story-space { height: 1500vh; }
.after { position: relative; z-index: 3; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.final, .gauge { position: absolute; inset: 0; pointer-events: none; }
.final { opacity: 0; }
.final svg, .gauge { width: 100%; height: 100%; overflow: visible; }
.final .bh-line { stroke: var(--verm); stroke-linecap: butt; }
.final .bh-ball { fill: var(--ball); }
.gauge line { stroke: var(--dim); stroke-width: 1; }
.gauge .tick-big { stroke: var(--fg); }
.gauge text { fill: var(--dim); font: 500 11px var(--mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* Captions: placed by CSS, faded and lifted by the scroll itself (f.js), above everything in the stage */
.cap { position: absolute; z-index: 120; opacity: 0; will-change: opacity, transform; --cy: 0px; transform: translateY(var(--cy)); pointer-events: none; }
.cap-hero { left: 0; right: 0; top: 0; padding: clamp(104px, 15vh, 160px) var(--gutter) 0; max-width: 1320px; margin-inline: auto; pointer-events: none; }
.cap-hero.on .btn { pointer-events: auto; }
.kicker { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--verm-text); margin-bottom: 22px; }
.cap-hero h1 { font-size: min(var(--t-1), 12vw, 10.5vh); line-height: 0.98; letter-spacing: -0.035em; font-weight: 650; }
.cap-hero h1 span { display: block; }
.br-m { display: none; }
@media (max-width: 600px) { .br-m { display: inline; } }
.lede { margin-top: 24px; max-width: 34ch; font-size: var(--t-5); line-height: 1.5; color: var(--dim); text-wrap: pretty; }
.hero-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--verm); color: var(--on-verm); cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s var(--ease-out), opacity .2s var(--ease-out);
}
.btn:hover { background: #fa6a3e; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: progress; }

.cap-big { font-size: min(var(--t-3), 9vw, 7vh); line-height: 1.04; letter-spacing: -0.028em; font-weight: 650; text-wrap: balance; }
.cap-small { margin-top: 16px; max-width: 40ch; font-size: var(--t-5); line-height: 1.5; color: var(--dim); text-wrap: pretty; }
/* One left edge for the whole page: the content column's edge */
.cap-low, .cap-side { left: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))); }
.cap-low { right: var(--gutter); bottom: clamp(64px, 11vh, 112px); bottom: calc(clamp(64px, 11vh, 112px) + 100lvh - 100svh); }
.cap-low .cap-big { max-width: 13ch; }
.cap-low .cap-small { max-width: 44ch; }
@media (max-aspect-ratio: 4/5) { .cap-low { top: clamp(92px, 13vh, 124px); bottom: auto; } }
.cap-end { left: 0; right: 0; bottom: clamp(64px, 11vh, 112px); bottom: calc(clamp(64px, 11vh, 112px) + 100lvh - 100svh); text-align: center; padding-inline: var(--gutter); }
.cap-end .cap-small { margin-inline: auto; }
.cap-side { top: 50%; width: var(--side-w, 46vw); transform: translateY(calc(-50% + var(--cy))); }
@media (max-width: 699px) { .cap-side { top: 57%; } }   /* the surface line sits higher on a phone: keep clear of it */
.cap-side .cap-small { max-width: 34ch; }
.cap-top { left: 0; right: 0; top: clamp(88px, 12vh, 128px); text-align: center; padding-inline: var(--gutter); }
.cap-top .cap-big { max-width: 18ch; margin-inline: auto; }
.cap-top .cap-small { margin-inline: auto; max-width: 46ch; }

/* The tesseract: every year is a window in the lattice. f.js places them in depth and picks the
   layout: a field you see whole on a wide screen, a row you swipe on a phone. */
.tess { --win-w: min(820px, 62vw); --win-h: min(460px, 60vh); }
.tess[data-mode="row"] { --win-w: min(640px, calc(100vw - 48px)); --win-h: min(560px, 62vh, calc(100vh - 210px)); --win-h: min(560px, 62lvh, calc(100svh - 210px)); }
/* A phone on its side: the window takes the height under the bar, the rail steps aside, and a long scene scrolls inside */
@media (max-height: 520px) {
  .tess[data-mode="row"] { --win-h: calc(100vh - 102px); --win-h: calc(100svh - 102px); }
  .tess[data-mode="row"] .win-body { justify-content: flex-start; overflow: hidden auto; overscroll-behavior-y: contain; touch-action: pan-y pinch-zoom; }
}
.stage { touch-action: pan-y pinch-zoom; }
.win {
  position: absolute; left: 50%; top: 50%; width: var(--win-w); height: var(--win-h);
  margin: calc(var(--win-h) / -2) 0 0 calc(var(--win-w) / -2);
  display: flex; flex-direction: column; opacity: 0; pointer-events: none;
  background: var(--surface); border: 1.5px solid var(--frame); border-radius: var(--r-lg); overflow: hidden;
  transform-origin: 50% 50%; will-change: transform, opacity; contain: layout paint;
  transition: border-color .35s var(--ease-out);
}
.win.live { pointer-events: auto; border-color: var(--verm); }
/* Pulled: the border warms as the mass comes near (f.js sets --pull from 0 to 1) */
.win:not(.live) { border-color: color-mix(in srgb, var(--verm) calc(var(--pull, 0) * 100%), var(--frame)); }
/* Seen from afar, each year carries its label at reading size (scaled back up by --sc) */
.win-tag {
  position: absolute; left: 0; top: 0; z-index: 2; width: calc(100% * var(--sc, 1)); transform: scale(calc(1 / var(--sc, 1))); transform-origin: 0 0;
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; background: var(--surface); pointer-events: none; opacity: 0;
}
.win-tag b { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--verm-text); font-variant-numeric: tabular-nums; }
.win-tag span { font-size: 0.9375rem; line-height: 1.22; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.win-head { flex: none; display: flex; align-items: baseline; gap: 16px; padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px) 0; }
.win-year { flex: none; font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--verm-text); font-variant-numeric: tabular-nums; }
.win-text { min-width: 0; font-size: var(--t-4); line-height: 1.14; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.win-act { margin-left: auto; flex: none; align-self: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--dim); font-size: 0.8125rem; cursor: pointer; transition: color .2s var(--ease-out), border-color .2s var(--ease-out); }
.win-act:hover { color: var(--fg); border-color: var(--fg); }
.win-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 24px); }
.v-hint { font-size: 0.8125rem; line-height: 1.45; color: var(--dim); }
.v-pills button, .v-cands button, .v-ask button, .v-qs button {
  font: inherit; cursor: pointer; border: 1px solid var(--hair); background: var(--raise); color: var(--fg); border-radius: 999px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.v-pills button:hover, .v-cands button:hover, .v-ask button:hover, .v-qs button:hover { border-color: var(--fg); }
.v-pills button:active, .v-cands button:active, .v-ask button:active, .v-qs button:active { transform: scale(0.97); }

/* 2017 · translate: the lines are the one orange thing */
.v-tr { display: grid; grid-template-rows: auto minmax(64px, 140px) auto auto; align-content: center; gap: 4px; }
.v-src { grid-row: 1; } .v-dst { grid-row: 3; } .v-pills { grid-row: 4; }
.v-src, .v-dst { display: flex; flex-wrap: wrap; gap: 2px 0.28em; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 550; }
.v-src span, .v-dst span { display: inline-block; }
.v-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.v-links path { fill: none; stroke: var(--verm); stroke-linecap: round; }
.v-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.v-pills button { min-height: 36px; min-width: 44px; padding: 0 12px; font-size: 0.8125rem; font-weight: 600; }
.v-pills button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* 2019 · the next word: the bars are the orange thing */
.v-nw { gap: 18px; }
.v-text { font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 550; min-height: 2.6em; }
.v-caret { display: inline-block; width: 0.42em; height: 0.92em; margin-left: 3px; vertical-align: -0.1em; background: var(--fg); animation: blink 1s steps(1) infinite; }
.v-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v-cands button { display: grid; gap: 7px; padding: 11px 13px; border-radius: var(--r-md); text-align: left; min-height: 44px; }
.v-cands b { font-size: 1.0625rem; font-weight: 650; }
.v-cands i { display: block; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.v-cands i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--verm); transition: width .7s var(--ease-out); }
.v-cands small { font: 500 11px var(--mono); color: var(--dim); }
.v-cands button.pick { border-color: var(--fg); }

/* 2022 · conversation */
.v-chat { gap: 14px; }
.v-log { flex: 0 0 auto; min-height: 9.5em; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.v-log p { max-width: 78%; padding: 10px 14px; font-size: clamp(0.9375rem, 1.4vw, 1.0625rem); line-height: 1.45; animation: swap .32s var(--ease-out) both; }
.v-log .me { align-self: flex-end; background: var(--bubble); border-radius: 16px 16px 4px 16px; }
.v-log .ai { align-self: flex-start; background: var(--raise); border: 1px solid var(--hair); border-radius: 16px 16px 16px 4px; }
.v-log .dots span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--dim); animation: dot 1s var(--ease-in-out) infinite; }
.v-log .dots span:nth-child(2) { animation-delay: .15s; } .v-log .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.v-ask { display: flex; flex-wrap: wrap; gap: 6px; }
.v-ask button { min-height: 38px; padding: 6px 13px; font-size: 0.8125rem; text-align: left; line-height: 1.3; }
.v-ask button[aria-pressed="true"] { border-color: var(--fg); }

/* 2023 · the long report */
.v-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(14px, 2.4vw, 28px); align-items: center; }
.v-stack { position: relative; height: 100%; min-height: 160px; perspective: 900px; }
.v-page {
  position: absolute; left: 12%; top: 8%; width: 52%; height: 80%; border-radius: var(--r-sm); border: 1px solid var(--hair); background: var(--raise);
  transform-origin: 0% 50%; transition: transform .5s var(--ease-out), border-color .2s, box-shadow .2s;
  background-image: repeating-linear-gradient(transparent 0 9px, color-mix(in srgb, var(--dim) 22%, transparent) 9px 10px);
  background-size: 76% 100%; background-position: 12% 16%; background-repeat: no-repeat;
}
.v-page.scan { border-color: var(--fg); }
.v-page.hit { border-color: var(--verm); box-shadow: 0 0 0 1.5px var(--verm); }
.v-page em { position: absolute; right: 6px; bottom: 4px; font-style: normal; font: 500 11px var(--mono); color: var(--verm-text); }
.v-qa { display: grid; gap: 10px; align-content: center; }
.v-doc-label { font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.v-qs { display: grid; gap: 6px; }
.v-qs button { min-height: 40px; padding: 8px 13px; border-radius: var(--r-md); text-align: left; font-size: 0.875rem; line-height: 1.35; }
.v-qs button[aria-pressed="true"] { border-color: var(--fg); }
.v-ans { min-height: 4.4em; font-size: clamp(0.9375rem, 1.4vw, 1.0625rem); line-height: 1.5; }
.v-ans mark { white-space: nowrap; background: color-mix(in srgb, var(--verm) 18%, transparent); color: inherit; padding: 0 3px; border-radius: 4px; }

/* 2024 · using a computer */
.v-pc { align-items: center; }
.v-screen { position: relative; width: min(100%, 520px); border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--raise); overflow: hidden; }
.v-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--hair); font-size: 0.75rem; color: var(--dim); }
.v-chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); }
.v-chrome span { margin-left: 8px; }
.v-form { display: grid; gap: 10px; padding: 14px 16px 16px; font-size: 0.8125rem; color: var(--dim); }
.v-form label { display: grid; gap: 4px; }
.v-field { display: block; min-height: 34px; padding: 7px 10px; border: 1px solid var(--hair); border-radius: var(--r-sm); color: var(--fg); font-size: 0.9375rem; background: var(--surface); transition: border-color .2s var(--ease-out); }
.v-field.on { border-color: var(--fg); }
.v-qty { display: flex; align-items: center; gap: 10px; }
.v-qty span:first-child { margin-right: auto; }
.v-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--hair); border-radius: var(--r-sm); color: var(--fg); transition: transform .12s var(--ease-out); }
.v-qty b { min-width: 1.5em; text-align: center; color: var(--fg); font-variant-numeric: tabular-nums; }
.v-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 36px; }
.v-go { padding: 8px 16px; border-radius: 999px; background: var(--verm); color: var(--on-verm); font-weight: 600; transition: transform .12s var(--ease-out); }
.v-go.press, .v-step.press { transform: scale(0.94); }
.v-toast { padding: 7px 12px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.8125rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); white-space: nowrap; }
.v-toast.on { opacity: 1; transform: none; }
.v-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; transition: transform .75s cubic-bezier(0.65, 0, 0.35, 1);
  background: var(--fg); clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 64% 92%, 44% 66%, 82% 64%); }
.v-cursor.click::after { content: ""; position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--verm); animation: ripple .45s var(--ease-out) forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* 2025 · hours on its own: the arc is the orange thing */
.v-hours { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(14px, 2.4vw, 28px); align-items: center; }
.v-clockwrap { display: grid; justify-items: center; gap: 8px; }
.v-clock { width: min(100%, 210px); height: auto; aspect-ratio: 1; touch-action: none; cursor: grab; overflow: visible; }
.v-clock:active { cursor: grabbing; }
.v-clock:focus { outline: none; }
.v-clock:focus-visible { outline: 2px solid var(--verm); outline-offset: 4px; border-radius: 50%; }
.v-clock .face { fill: var(--raise); stroke: var(--hair); stroke-width: 1.5; }
.v-clock .tick { stroke: var(--dim); stroke-width: 1.5; }
.v-clock .arc { fill: none; stroke: var(--verm); stroke-width: 6; stroke-linecap: round; }
.v-clock .hand { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; }
.v-clock .knob { fill: var(--fg); }
.v-hour { font: 500 11px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.v-work { display: grid; gap: 10px; }
.v-tasks { display: grid; gap: 7px; }
.v-tasks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; font-size: clamp(0.8125rem, 1.3vw, 0.9375rem); line-height: 1.35; color: var(--dim); transition: color .3s var(--ease-out); }
.v-tasks li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--hair); transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out); }
.v-tasks li.run { color: var(--fg); }
.v-tasks li.run::before { border-color: var(--fg); }
.v-tasks li.done { color: var(--fg); }
.v-tasks li.done::before { background: var(--fg); border-color: var(--fg); }
.v-log1 { font: 500 11px/1.5 var(--mono); color: var(--dim); min-height: 1.5em; overflow-wrap: anywhere; }

/* Today · a workflow that waits for you: the Approve button is the orange thing */
.v-flow { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; justify-content: stretch; }
.v-graph { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.v-graph .edge { stroke: var(--dim); stroke-opacity: 0.45; stroke-width: 1.5; fill: none; }
.v-graph .arrow { fill: var(--dim); fill-opacity: 0.6; }
.v-graph .node rect { fill: var(--raise); stroke: var(--hair); stroke-width: 1; }
.v-graph .node text { fill: var(--fg); font: 600 14px var(--sans); }
.v-graph .node.you rect { stroke: var(--verm); stroke-width: 1.5; stroke-dasharray: 5 4; fill: transparent; }
.v-graph .node.lit rect { stroke: var(--fg); }
.v-graph .tok { fill: var(--verm); }
.v-approve { position: absolute; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--verm); color: var(--on-verm); font: 600 0.875rem var(--sans); cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 color-mix(in srgb, var(--verm) 50%, transparent); }
.v-approve.wait { animation: pulse 1.6s var(--ease-out) infinite; }
.v-approve:disabled { opacity: 0.45; cursor: default; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--verm) 50%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.v-flow-note { text-align: center; font-size: 0.875rem; color: var(--dim); }
.v-flow-note b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* Next · nothing yet */
.win-next .win-body { align-items: center; gap: 20px; text-align: center; }
.v-next-line { font-size: var(--t-4); letter-spacing: -0.02em; font-weight: 600; }

@media (max-width: 767px) {
  .v-doc, .v-hours { grid-template-columns: 1fr; align-content: center; }
  .v-stack { min-height: 110px; height: 120px; }
  .v-clock { width: 124px; }
  .v-cands { grid-template-columns: 1fr; }
  .v-cands button { grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; }
  .v-src, .v-dst { font-size: 1.25rem; }
  .win-act { display: none; }
}

/* Without WebGL, or with reduced motion: nothing pinned, the whole story at rest */
.no-gl .story-space { display: none; }
.no-gl .stage { position: relative; height: auto; display: flex; flex-direction: column; gap: 28px; padding: 0 0 clamp(64px, 10vw, 120px); overflow: visible; }
.no-gl .stage canvas, .no-gl .gauge { display: none; }
.no-gl .cap { position: relative; inset: auto; opacity: 1; transform: none; width: 100%; padding-inline: var(--gutter); max-width: 1320px; margin: 0 auto; }
.no-gl .cap-hero { padding-bottom: 40px; width: 100%; }
.no-gl .story { display: flex; flex-direction: column; gap: 44px; width: 100%; max-width: 1320px; margin: 0 auto; }
.no-gl .cap-end { text-align: left; }
.no-gl .cap-end .cap-small { margin-left: 0; }
.no-gl .final { position: relative; inset: auto; opacity: 1; height: clamp(160px, 24vw, 280px); }
.no-gl .tess { display: grid; gap: 28px; padding-inline: var(--gutter); }
.no-gl .win { position: relative; left: auto; top: auto; margin: 0 auto; opacity: 1; pointer-events: auto; width: min(820px, 100%); height: auto; min-height: 0; }
.no-gl .v-graph { height: 200px; }
.no-gl .probe, .no-gl .rail, .no-gl .win-tag { display: none; }

/* The mass you steer through the field: the ball in Day, a ring in Night */
.probe {
  position: absolute; left: 0; top: 0; z-index: 110; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--ball); pointer-events: none; opacity: 0; will-change: transform, opacity;
}
:root[data-theme="dark"] .probe { background: transparent; box-shadow: inset 0 0 0 2px var(--verm); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .probe { background: transparent; box-shadow: inset 0 0 0 2px var(--verm); } }

/* The years as buttons: the way to jump, and where you are */
.rail {
  position: fixed; z-index: 115; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.rail.on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }
.rail-hint { font-size: 0.8125rem; color: var(--dim); transition: opacity .4s var(--ease-out); }
.rail-hint.gone { opacity: 0; }
.rail-years {
  display: flex; align-items: center; height: 32px; padding: 0 4px; border: 1px solid var(--hair); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rail-years button {
  position: relative; height: 32px; padding: 0 10px; border: 0; background: none; cursor: pointer; color: var(--dim);
  font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color .2s var(--ease-out);
}
.rail-years button:hover { color: var(--fg); }
.rail-years button[aria-current="true"] { color: var(--verm-text); }
.rail-years button[aria-current="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 1.5px; background: var(--verm); border-radius: 2px; }
.rail-years button:focus-visible { outline: 2px solid var(--verm); outline-offset: -2px; border-radius: 999px; }
.rail-years .rail-all { border-right: 1px solid var(--hair); border-radius: 0; margin-right: 2px; }
@media (max-width: 899px) {
  .rail { left: max(var(--gutter), env(safe-area-inset-left, 0px)); align-items: stretch; }
  .rail-hint { text-align: center; }
  .rail-years { justify-content: space-between; padding: 0; }
  .rail-years button { flex: 1; min-width: 0; padding: 0; height: 40px; }
  .rail-years button[aria-current="true"]::after { left: 22%; right: 22%; bottom: 7px; }
  .rail-years { height: 40px; }
}

/* Sections: rooms further down the same lattice */
.after > section { position: relative; }
.any, .fit, .how, .why, .faq { padding-top: clamp(104px, 13vw, 184px); }
.any { padding-top: clamp(48px, 7vw, 96px); }
.ledge { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.ledge i { width: 28px; height: 1px; background: var(--fg); }
.ledge span { color: var(--verm-text); }
.any h2, .fit h2, .how h2, .faq h2 { margin-top: 18px; font-size: var(--t-2); line-height: 1.02; letter-spacing: -0.03em; font-weight: 650; text-wrap: balance; }
.any h2 span, .fit h2 span { display: block; }
.fit h2 { max-width: 16ch; }
.sub { margin-top: 20px; max-width: 52ch; font-size: var(--t-5); line-height: 1.5; color: var(--dim); text-wrap: pretty; }
.sub b { color: var(--fg); font-weight: 600; }
/* A panel wears the window skin: the frame you flew through */
.panel { background: var(--surface); border: 1.5px solid var(--frame); border-radius: var(--r-lg); }

/* Any job */
.any { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.drop { margin-top: clamp(28px, 3.4vw, 40px); }
.drop textarea {
  display: block; width: 100%; min-height: 112px; padding: 16px 18px; resize: vertical;
  border: 1.5px solid var(--hair); border-radius: var(--r-md); background: var(--surface); color: var(--fg);
  font: inherit; font-size: 1.0625rem; line-height: 1.5;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.drop textarea::placeholder { color: var(--dim); opacity: 0.85; }
.drop textarea:focus { outline: none; border-color: var(--verm); background: var(--raise); }
.drop-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.drop-note { font-size: 0.875rem; color: var(--dim); }
.try { margin-top: 28px; font-size: 0.875rem; color: var(--dim); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.chips button {
  width: 100%; height: 100%; min-height: 52px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--hair); background: transparent;
  color: var(--fg); font-size: 0.875rem; line-height: 1.3; text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.chips button:hover { border-color: var(--fg); }
.chips button:active { transform: scale(0.98); }
.chips button[aria-pressed="true"] { border-color: var(--verm); background: color-mix(in srgb, var(--verm) 10%, transparent); }

.sketch { position: relative; display: flex; flex-direction: column; min-height: 520px; overflow: hidden; border-color: var(--verm); }
.sketch-in { position: relative; flex: 1; padding: 50px clamp(20px, 3vw, 36px) clamp(24px, 3vw, 32px) clamp(84px, 9vw, 116px); }
.sketch-line { position: absolute; inset: 0; pointer-events: none; }
.sketch-line .bh-line { stroke: var(--verm); stroke-linecap: round; }
.sketch-line .bh-ball { fill: var(--ball); }
.sketch-body { position: relative; }
.sketch-meta { font: 500 11px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); overflow-wrap: anywhere; }
.sketch-meta [data-sketch-tag] { color: var(--verm-text); }
.sketch-name { margin-top: 12px; min-height: 1.1em; font-size: var(--t-4); line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; }
.sketch-rows { display: grid; gap: 0; margin-top: 20px; }
.row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--hair); }
.row dt { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.row dd { margin: 0; font-size: 1rem; line-height: 1.5; min-height: 1.5em; }
.row.empty { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 10px; border-radius: 999px; background: var(--raise); border: 1px solid var(--hair); font-size: 0.875rem; }
.steps-mini { display: grid; gap: 6px; counter-reset: m; }
.steps-mini li { counter-increment: m; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); }
.steps-mini li::before { content: counter(m); font: 500 11px var(--mono); color: var(--verm-text); padding-top: 4px; }
.typing::after { content: ""; display: inline-block; width: 0.5em; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--verm); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sketch-msg { margin-top: 22px; font-size: 1.0625rem; line-height: 1.5; }
.sketch-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 0.875rem; color: var(--dim); }
.sketch-foot a { color: var(--verm-text); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.faller {
  position: fixed; z-index: 50; left: 0; top: 0; max-width: min(360px, 80vw); padding: 8px 14px; border-radius: 999px;
  background: var(--verm); color: var(--on-verm); font-size: 0.875rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; will-change: transform, opacity;
}
.shapes { grid-column: 1 / -1; max-width: 80ch; font-size: 1rem; line-height: 1.6; color: var(--dim); }
.shapes b { color: var(--fg); font-weight: 650; }

/* Bent around you: the line runs edge to edge like the stage */
.bend { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 0; }
.bend-line { position: relative; height: clamp(150px, 17vw, 220px); margin-inline: calc(50% - 50vw); }
.bend-line .bh-line { stroke: var(--verm); stroke-linecap: butt; }
.bend-line .bh-ball { fill: var(--ball); }
.bend-win { max-width: 860px; width: 100%; margin: 0 auto; transition: border-color .35s var(--ease-out); }
.bend-win.done { border-color: var(--verm); }
.bend-win .win-head { align-items: center; flex-wrap: wrap; row-gap: 10px; }
.bend-win .win-text { font-size: var(--t-5); letter-spacing: -0.01em; font-weight: 600; }
.bend-in { padding: 14px clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 24px); }
.bend-pull { min-height: 1.5em; font-size: var(--t-5); color: var(--dim); }
.bend-pull b { color: var(--fg); font-weight: 650; }
.seg { margin-left: auto; display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--raise); border: 1px solid var(--hair); }
.seg button {
  min-height: 34px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--dim); font-size: 0.8125rem; font-weight: 600;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chat { display: grid; gap: 14px; margin-top: 14px; }
.bubble { max-width: 48ch; padding: 14px 18px; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.5; }
.bubble-user { justify-self: end; background: var(--bubble); border-radius: 18px 18px 4px 18px; }
.bubble-ai { justify-self: start; background: var(--raise); border: 1px solid var(--hair); border-radius: 18px 18px 18px 4px; }
.bubble-ai.generic { background: transparent; color: var(--dim); border: 1px dashed var(--dim); }
.bubble.swap { animation: swap .32s var(--ease-out) both; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.own { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); border: 1.5px solid var(--verm); font-size: 0.9375rem; animation: swap .32s var(--ease-out) both; }
.demo-note { margin-top: 12px; font-size: 0.8125rem; color: var(--dim); }
.pulls { max-width: 860px; width: 100%; margin: 26px auto 0; }
.pulls input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.pulls input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--verm) var(--fill, 0%), var(--hair) var(--fill, 0%)); }
.pulls input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--verm) var(--fill, 0%), var(--hair) var(--fill, 0%)); }
/* A pill handle: the line's language, never a disc in a ring */
.pulls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 28px; margin-top: -13px; border-radius: 999px; background: var(--fg); border: 0; box-shadow: none; }
.pulls input[type="range"]::-moz-range-thumb { width: 12px; height: 28px; border-radius: 999px; background: var(--fg); border: 0; box-shadow: none; }
.pulls input[type="range"]:focus { outline: none; }
.pulls input[type="range"]:focus-visible { outline: 2px solid var(--verm); outline-offset: 6px; border-radius: 8px; }
.pull-stops { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 4px; }
.pull-stops li { display: flex; justify-content: center; }
.pull-stops li:first-child { justify-content: flex-start; }
.pull-stops li:last-child { justify-content: flex-end; }
.pull-stops button {
  min-height: 44px; padding: 0 4px; border: 0; background: transparent; cursor: pointer;
  font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
  transition: color .2s var(--ease-out);
}
.pull-stops button:hover { color: var(--fg); }
.pull-stops button.on { color: var(--fg); }
.pull-stops button.at { color: var(--verm-text); }

/* How we work: stations on the line, the dip travels between them */
.track { position: relative; height: 104px; margin-top: clamp(24px, 4vw, 44px); margin-inline: calc(50% - 50vw); }
.track .bh-line { stroke: var(--verm); stroke-linecap: butt; }
.track .bh-ball { fill: var(--ball); }
.track .station { stroke: var(--fg); stroke-width: 1; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.steps li { opacity: 0.7; transition: opacity .4s var(--ease-out); }
.steps li.on { opacity: 1; }
.steps h3 { font-size: var(--t-4); letter-spacing: -0.02em; font-weight: 650; }
.steps p { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--dim); }

/* Why a black hole: one line to anchor on, the rest set to read */
.why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px clamp(32px, 5vw, 80px); align-items: start; }
.why .ledge { grid-column: 1 / -1; }
.note p { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; font-weight: 450; letter-spacing: -0.005em; max-width: 46ch; color: var(--dim); }
.note .pull { display: block; margin-bottom: 24px; font-size: var(--t-3); line-height: 1.06; letter-spacing: -0.028em; font-weight: 650; color: var(--fg); max-width: 20ch; text-wrap: balance; }
.note footer { margin-top: 22px; font-size: 1rem; color: var(--fg); font-weight: 600; }
.beliefs { display: grid; gap: 0; padding-top: 6px; }
.beliefs li { padding: 18px 0; border-top: 1px solid var(--hair); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

/* FAQ */
.faq-list { margin-top: clamp(32px, 4vw, 48px); max-width: 860px; border-bottom: 1px solid var(--hair); }
.faq-list details { border-top: 1px solid var(--hair); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 44px; padding: 20px 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--verm-text); }
.faq-list details p { padding: 0 0 24px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.6; color: var(--dim); }

/* Close: the dip keeps going, and the ball keeps falling inside it */
.close { padding-top: clamp(120px, 16vw, 220px); text-align: center; }
.close h2 { font-size: var(--t-1); line-height: 0.98; letter-spacing: -0.035em; font-weight: 650; }
.close-in > p:not(.close-alt) { margin: 22px auto 0; max-width: 40ch; font-size: var(--t-5); color: var(--dim); text-wrap: balance; }
.btn-big { height: 58px; padding: 0 30px; font-size: 1.0625rem; margin-top: 30px; }
.close-alt { margin-top: 22px; font-size: 1rem; color: var(--dim); }
.close-alt a, .foot a { color: var(--fg); text-underline-offset: 4px; overflow-wrap: anywhere; }
.close-field { position: relative; height: clamp(220px, 26vw, 320px); margin-top: clamp(40px, 5vw, 64px); overflow: hidden; }
.close-field .bh-line { stroke: url(#bh-fade); stroke-linecap: butt; }
.close-field .bh-ball { fill: var(--ball); }

.foot {
  position: relative; z-index: 3; background: var(--bg);
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
  padding: 28px var(--gutter) 72px; border-top: 1px solid var(--hair);
  font-size: 0.875rem; color: var(--dim);
}

@media (max-width: 1439px) { .nav-link { display: none; } }
@media (max-width: 1023px) {
  .any { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .why { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; }
  .sketch { min-height: 0; }
  .sketch-in { padding-left: 68px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .theme-word { display: none; }
  .theme button { min-width: 44px; justify-content: center; padding: 0 8px; }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
  /* The current pull is named in the window, so the stops become dots */
  .pull-stops button { font-size: 0; min-width: 44px; display: grid; place-items: center; }
  .pull-stops button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hair); transition: background-color .2s var(--ease-out); }
  .pull-stops button.on::before { background: var(--fg); }
  .pull-stops button.at::before { background: var(--verm); }
  .pull-stops li:first-child button { justify-items: start; }
  .pull-stops li:last-child button { justify-items: end; }
}
@media (max-width: 420px) {
  .brand-mark { width: 38px; }
  .nav nav { gap: 10px; }
  .nav-cta { padding: 0 14px; font-size: 0.875rem; }
}
/* Touch: every control at least 44px */
@media (pointer: coarse) {
  .nav-cta, .theme { height: 44px; }
  .theme button { height: 36px; }
  .v-pills button, .v-ask button, .v-qs button, .win-act, .v-approve, .seg button { min-height: 44px; }
}
/* A phone on its side has no room for the rail: swipe, or use the keys */
@media (max-height: 520px) { .rail { display: none; } }
