/* ALV project page
   Color system: Action ochre, Language pine, Vision indigo on warm paper. */

:root {
  --i0: #C2804F; --i1: #387360; --i2: #2279A8;
  --a: #93532E;  --a-2: #C2804F; --a-t: #F6ECE3;
  --l: #387360;  --l-2: #6B9F8B; --l-t: #E6F0EB;
  --v: #2279A8;  --v-2: #5A9CC4; --v-t: #E3EEF6;
  --ink: #2A2723; --ink-2: #4A453F; --sub: #77716A; --mute: #A8A197;
  --paper: #FBF9F5; --paper-2: #F3EFE8; --line: #E8E2D8; --card: #FFFFFF;
  --night: #151412; --night-2: #1F1D1A; --night-line: #2E2B27;
  --accent: var(--a); --accent-2: var(--a-2); --accent-t: var(--a-t);
  --grad: linear-gradient(90deg, var(--a) 0%, var(--a-2) 22%, var(--l-2) 50%, var(--l) 62%, var(--v-2) 82%, var(--v) 100%);
  --maxw: 1160px;
  --r-xl: 30px; --r-lg: 22px; --r-md: 16px; --r-sm: 11px;
  --shadow: 0 1px 2px rgba(42, 39, 35, .04), 0 12px 40px -12px rgba(42, 39, 35, .14);
  --shadow-lg: 0 2px 6px rgba(42, 39, 35, .05), 0 40px 90px -30px rgba(42, 39, 35, .28);
  --ease: cubic-bezier(.2, .75, .15, 1);
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
body[data-stage="l"] { --accent: var(--l); --accent-2: var(--l-2); --accent-t: var(--l-t); }
body[data-stage="v"] { --accent: var(--v); --accent-2: var(--v-2); --accent-t: var(--v-t); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--text); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
sup { font-size: .62em; line-height: 0; }
::selection { background: var(--accent-t); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ca { color: var(--a); } .cl { color: var(--l); } .cv { color: var(--v); }
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.wrap.narrow { width: min(820px, calc(100% - 48px)); }
.wrap.wide { width: min(1280px, calc(100% - 48px)); }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.dim { color: var(--mute); }

.eyebrow {
  margin: 0 0 20px; display: inline-flex; align-items: center; gap: 14px;
  font: 700 clamp(16px, 1.55vw, 20px)/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); transition: color .8s var(--ease);
}
.eyebrow::before, .center .eyebrow::after { content: ""; flex: none; width: 34px; height: 3px; border-radius: 3px; background: currentColor; opacity: .9; }
.hero-eyebrow::before, .hero-eyebrow::after { display: none !important; }
.chapter-head .eyebrow { font-size: clamp(14px, 1.2vw, 16px); }
.display {
  margin: 0; font: 800 clamp(44px, 7.2vw, 92px)/1.0 var(--display); letter-spacing: -.035em;
}
.display-s {
  margin: 0; font: 800 clamp(36px, 5vw, 64px)/1.04 var(--display); letter-spacing: -.032em;
}
.title-m { margin: 0; font: 700 clamp(24px, 2.8vw, 34px)/1.15 var(--display); letter-spacing: -.022em; }
.lede {
  margin: 22px 0 0; max-width: 720px; font-size: clamp(17px, 1.55vw, 20.5px); line-height: 1.55; color: var(--sub);
  letter-spacing: -.008em;
}
.center .lede { margin-inline: auto; }
.lede em { font-weight: 600; }
.sub { margin: 8px 0 0; color: var(--sub); font-size: 16px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.strike { display: inline-block; margin-bottom: .18em; color: var(--mute); position: relative; font-size: .56em; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .07em; background: var(--mute);
  transform-origin: left; transform: scaleX(0); transition: transform 1s .35s var(--ease);
}
.in .strike::after, .strike.in::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- progress + nav */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-inner {
  pointer-events: auto; width: min(1080px, calc(100% - 24px)); height: 54px; margin: 0 auto; padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 18px; border-radius: 18px;
  background: rgba(251, 249, 245, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(232, 226, 216, .8); box-shadow: 0 6px 24px -14px rgba(42, 39, 35, .25);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.nav.is-hidden .nav-inner { transform: translateY(-90px); opacity: 0; }
.nav-brand { font: 900 22px/1 var(--display); letter-spacing: -.04em; display: flex; }
.nav-brand b { transition: opacity .6s var(--ease); }
body.scrolled[data-stage="a"] .nav-brand .cl, body.scrolled[data-stage="a"] .nav-brand .cv,
body.scrolled[data-stage="l"] .nav-brand .ca, body.scrolled[data-stage="l"] .nav-brand .cv,
body.scrolled[data-stage="v"] .nav-brand .ca, body.scrolled[data-stage="v"] .nav-brand .cl { opacity: .22; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav-links a:hover { background: rgba(42, 39, 35, .05); color: var(--ink); }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-cta { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s, transform .3s var(--ease);
}
.pill svg { width: 11px; height: 11px; fill: currentColor; }
.pill-ghost { background: rgba(42, 39, 35, .06); }
.pill-ghost:hover { background: rgba(42, 39, 35, .1); }
.pill-ink { background: var(--ink); color: #fff; }
.pill-ink:hover { background: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 150px 24px 40px; text-align: center; isolation: isolate; }
.hero-aura { position: absolute; inset: -10% 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-aura i { position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; border-radius: 50%; filter: blur(70px); opacity: .5; }
.au-a { left: 6%; top: 4%; background: radial-gradient(circle, rgba(194, 128, 79, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.au-l { left: 34%; top: -6%; background: radial-gradient(circle, rgba(107, 159, 139, .45), transparent 65%); animation: drift 22s ease-in-out -6s infinite alternate; }
.au-v { right: 4%; top: 6%; background: radial-gradient(circle, rgba(90, 156, 196, .5), transparent 65%); animation: drift 20s ease-in-out -12s infinite alternate; }
@keyframes drift { to { transform: translate3d(3vw, 4vh, 0) scale(1.08); } }

.hero-eyebrow { color: var(--ink-2); font-size: clamp(13px, 1.25vw, 16px); letter-spacing: .2em; opacity: 0; animation: fadeUp 1s .1s var(--ease) forwards; }
.wordmark {
  margin: 4px 0 0; display: flex; justify-content: center; gap: clamp(2px, .6vw, 10px);
  font: 900 clamp(120px, 21vw, 270px)/.86 var(--display); letter-spacing: -.05em;
}
.wm { display: flex; flex-direction: column; align-items: center; }
.wm > span {
  display: block; padding: 0 .02em; background-clip: text; -webkit-background-clip: text; color: transparent;
  opacity: 0; transform: translateY(45%); animation: rise 1.1s var(--ease) forwards;
}
.wm-a > span { background-image: linear-gradient(180deg, #B06B3E 0%, var(--a) 70%); animation-delay: .25s; }
.wm-l > span { background-image: linear-gradient(180deg, #4E8A74 0%, var(--l) 70%); animation-delay: .5s; }
.wm-v > span { background-image: linear-gradient(180deg, #3A8DBA 0%, var(--v) 70%); animation-delay: .75s; }
.wm small {
  margin-top: 14px; font: 600 clamp(10px, 1.05vw, 13px)/1 var(--text); letter-spacing: .3em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .9s var(--ease) forwards;
}
.wm-a small { color: var(--a); animation-delay: .75s; }
.wm-l small { color: var(--l); animation-delay: 1s; }
.wm-v small { color: var(--v); animation-delay: 1.25s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-title {
  margin: 38px auto 0; max-width: 900px; font: 700 clamp(23px, 2.9vw, 38px)/1.2 var(--display); letter-spacing: -.024em;
  opacity: 0; animation: fadeUp 1s 1.2s var(--ease) forwards;
}
.hero-title em { font-weight: 800; }
.authors, .affils, .notes, .logos, .cta-row { opacity: 0; animation: fadeUp 1s 1.4s var(--ease) forwards; }
.authors {
  margin: 30px auto 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.authors sup { color: var(--sub); margin-left: 1px; }
.affils { margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; color: var(--sub); font-size: 15.5px; }
.notes { margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; color: var(--ink-2); font-size: 15.5px; }
.notes .sep { color: var(--mute); }
.notes sup { color: var(--sub); margin-right: 1px; }
.logos { margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: clamp(22px, 4vw, 52px); flex-wrap: wrap; }
.logos img { height: auto; width: auto; max-height: 40px; opacity: .88; }
.logos img[alt="Galbot"] { max-height: 19px; }
.cta-row { margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; animation-delay: 1.55s; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 1px 2px rgba(42, 39, 35, .04); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s, background .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); border-color: #d8d0c4; box-shadow: var(--shadow); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- reel */
.reel { width: min(1240px, calc(100% - 32px)); margin: 40px auto 0; }
.reel-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: #ddd5ca;
  box-shadow: var(--shadow-lg);
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(20, 18, 16, .5)); pointer-events: none; }
.reel-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 0 6px; }
.reel-tag { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.reel-tag span:not(.reel-dot) { color: var(--sub); }
.reel-tag b { font-weight: 700; color: var(--ink); }
.reel[data-seg="l"] .reel-tag b { color: var(--l); } .reel[data-seg="v"] .reel-tag b { color: var(--v); }
.reel-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--l-2); box-shadow: 0 0 0 3px rgba(107, 159, 139, .35); transition: background .5s, box-shadow .5s; }
.reel[data-seg="v"] .reel-dot { background: var(--v-2); box-shadow: 0 0 0 3px rgba(90, 156, 196, .35); }
.reel[data-seg="l"] .t-v, .reel[data-seg="v"] .t-l { display: none; }
.reel-caps { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.reel[data-seg="l"] .reel-l, .reel[data-seg="v"] .reel-v { opacity: 1; }
.cap {
  position: absolute; padding: 7px 12px; border-radius: 12px; background: rgba(251, 249, 245, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35;
}
.reel-l .cap { left: calc(var(--i) * 33.333% + 14px); bottom: 16px; max-width: calc(33.333% - 28px); }
.reel-v .cap { left: calc(var(--c) * 50% + 14px); bottom: calc((1 - var(--r)) * 50% + 14px); max-width: calc(50% - 28px); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #e0533d; box-shadow: 0 0 0 0 rgba(224, 83, 61, .6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(224, 83, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 83, 61, 0); } }
.reel-film {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; text-align: left;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(42, 39, 35, .04); transition: transform .4s var(--ease), box-shadow .3s;
}
.reel-film:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.reel-film b { display: block; font-size: 14.5px; line-height: 1.2; }
.reel-film small { display: block; font-size: 12px; color: var(--sub); line-height: 1.2; }
.reel-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.reel-play svg { width: 16px; height: 16px; margin-left: 2px; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; margin-bottom: 40px; }
.stat {
  position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); }
.stat-k { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.stat-n { margin: 10px 0 8px; font: 800 46px/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.stat-n small { font-size: 18px; font-weight: 700; color: var(--sub); margin-left: 4px; letter-spacing: -.01em; }
.stat-d { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--sub); }

/* ---------------------------------------------------------------- abstract */
.abstract { padding: 96px 0 20px; }
.abstract-body p { margin: 0 0 18px; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.7; color: var(--ink-2); letter-spacing: -.006em; }
.abstract-body b { font-weight: 700; color: var(--ink); }
.abstract-body b.ca { color: var(--a); } .abstract-body b.cl { color: var(--l); } .abstract-body b.cv { color: var(--v); }

/* ---------------------------------------------------------------- evolution */
.evo { padding: 120px 0 120px; }
.challenges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; margin-bottom: 56px; }
.challenge { padding: 30px 32px 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.ch-n { margin: 0; font: 800 15px/1 var(--display); letter-spacing: .08em; color: var(--mute); }
.challenge h3 { margin: 12px 0 0; font: 700 clamp(21px, 2vw, 25px)/1.2 var(--display); letter-spacing: -.02em; }
.challenge p:last-child { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--sub); }
.evo-scrolly { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; margin-top: 90px; }
.evo-stage { position: relative; }
.evo-card {
  position: sticky; top: calc(50vh - 230px); height: 460px; border-radius: var(--r-xl); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px 36px 28px; overflow: hidden;
}
.evo-axis { position: absolute; left: 30px; top: 30px; bottom: 64px; width: 20px; }
.evo-axis span { position: absolute; left: -4px; top: 46%; transform: rotate(-90deg) translateX(-50%); transform-origin: 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.evo-axis i { position: absolute; right: 0; top: 4px; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(0deg, var(--a-2), var(--l-2), var(--v-2)); opacity: .9; }
.evo-axis i::before { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; border-top: 3px solid var(--v-2); border-left: 3px solid var(--v-2); transform: translateX(-50%) rotate(45deg); border-radius: 2px 0 0 0; }
.strata { position: absolute; left: 70px; right: 36px; bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stratum {
  position: relative; height: 84px; border-radius: 18px; display: flex; align-items: center; gap: 12px; padding: 0 22px; color: #fff;
  opacity: .14; filter: saturate(.2); transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), box-shadow .9s var(--ease);
}
.stratum.on { opacity: 1; filter: none; transform: none; }
.stratum.cur { box-shadow: 0 18px 40px -16px var(--sc); }
.s-a { width: 100%; background: linear-gradient(120deg, var(--a-2), var(--a)); --sc: rgba(147, 83, 46, .6); }
.s-l { width: 74%; background: linear-gradient(120deg, var(--l-2), var(--l)); --sc: rgba(56, 115, 96, .6); }
.s-v { width: 44%; background: linear-gradient(120deg, var(--v-2), var(--v)); --sc: rgba(34, 121, 168, .6); }
.s-name { font: 800 21px/1 var(--display); letter-spacing: -.02em; }
.s-q { font-size: 13px; opacity: .85; white-space: nowrap; }
.s-h { margin-left: auto; font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-v .s-q { display: none; }
.evo-foot { position: absolute; left: 70px; right: 30px; bottom: 22px; margin: 0; font-size: 13px; color: var(--mute); }
.evo-steps { display: flex; flex-direction: column; }
.evo-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .7s var(--ease); }
.evo-step:first-child { min-height: 60vh; }
.evo-step:last-child { min-height: 84vh; }
.evo-step.on { opacity: 1; }
.step-num { margin: 0; font: 800 15px/1 var(--display); letter-spacing: .08em; }
.evo-step h3 { margin: 12px 0 0; font: 800 clamp(34px, 3.8vw, 50px)/1.05 var(--display); letter-spacing: -.03em; }
.evo-step h3 span { display: block; margin-top: 6px; font-size: .5em; font-weight: 600; color: var(--sub); letter-spacing: -.01em; }
.evo-step p:last-child { margin: 18px 0 0; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 460px; }

.figcard { margin-top: 96px; }
.figcard .zoom {
  display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: zoom-in; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.figcard .zoom:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.figcard img { width: 100%; height: auto; }
.figcard figcaption { margin: 18px auto 0; max-width: 860px; font-size: 14.5px; line-height: 1.6; color: var(--sub); text-align: center; }
.figcard figcaption b { color: var(--ink); font-weight: 600; }

.band { padding: 120px 0; background: var(--paper-2); }
.band .figcard { margin-top: 56px; }

/* ---------------------------------------------------------------- chapters */
.chapter { padding: 150px 0 130px; position: relative; }
.tint-l { background: linear-gradient(180deg, var(--paper) 0%, #F1F5F1 12%, #F1F5F1 88%, var(--paper) 100%); }
.tint-v { background: linear-gradient(180deg, var(--paper) 0%, #F0F4F7 12%, #F0F4F7 88%, var(--paper) 100%); }
.chapter-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.chapter-num {
  margin: -14px 0 0; font: 900 clamp(90px, 11vw, 156px)/.9 var(--display); letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.chapter-num span { font-size: .5em; vertical-align: top; }
#action .chapter-num { background-image: linear-gradient(180deg, var(--a-2), var(--a)); }
#language .chapter-num, #streaming .chapter-num { background-image: linear-gradient(180deg, var(--l-2), var(--l)); }
#vision .chapter-num { background-image: linear-gradient(180deg, var(--v-2), var(--v)); }
#action .eyebrow { color: var(--a); } #language .eyebrow, #streaming .eyebrow { color: var(--l); } #vision .eyebrow { color: var(--v); }

/* action: interactive pipeline */
.pipe { margin-top: 64px; padding: 24px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pipe-top { margin: 0 2px 14px; }
.pipe-hint { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--sub); }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-2); box-shadow: 0 0 0 0 rgba(194, 128, 79, .6); animation: pulseA 1.8s infinite; }
@keyframes pulseA { 70% { box-shadow: 0 0 0 8px rgba(194, 128, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(194, 128, 79, 0); } }
.pipe-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pipe-steps li { position: relative; display: flex; }
.pipe-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -16px; width: 16px; height: 2px; z-index: 1;
  background: repeating-linear-gradient(90deg, #DCCFC1 0 4px, transparent 4px 7px);
}
.pipe-steps li.lit:not(:last-child)::after {
  background: repeating-linear-gradient(90deg, var(--a-2) 0 4px, transparent 4px 7px); background-size: 7px 2px;
  animation: flow .5s linear infinite;
}
@keyframes flow { to { background-position: 7px 0; } }
.pstep {
  position: relative; width: 100%; text-align: left; padding: 15px 16px 18px; border-radius: var(--r-md); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  transition: background .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.pstep:hover { transform: translateY(-2px); }
.pstep.done { background: #FBF6F0; border-color: #EBDDCF; }
.pstep.on { background: linear-gradient(140deg, #FCF5EE, var(--a-t)); border-color: var(--a-2); box-shadow: 0 12px 30px -16px rgba(147, 83, 46, .55); }
.pl-k { display: block; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--a-2); }
.pstep b { display: block; margin-top: 10px; font: 700 16px/1.25 var(--display); letter-spacing: -.01em; }
.pstep b i, .pp-txt i, .pp-video figcaption i { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.pstep small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--sub); }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--a); transform-origin: left; transform: scaleX(0); }
.pstep.done .pbar { transform: scaleX(1); opacity: .35; }
.pstep.on .pbar { animation: pfill var(--pdur, 6.5s) linear forwards; }
.pipe.paused .pstep.on .pbar { animation-play-state: paused; }
@keyframes pfill { to { transform: scaleX(1); } }
.pipe-panels { display: grid; margin-top: 18px; }
.ppanel {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: center;
  padding: 24px; border-radius: var(--r-lg); background: var(--paper);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.ppanel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s; }
.pp-vis { position: relative; min-width: 0; }
.pp-canvas { display: block; width: 100%; height: 330px; }
.pp-txt h4 { margin: 10px 0 0; font: 700 clamp(22px, 2.2vw, 29px)/1.15 var(--display); letter-spacing: -.02em; }
.pp-txt p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.pp-txt p.pp-k { margin: 0; font: 600 12.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--a-2); }
.pp-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 20px; }
.pp-stats b { display: block; font: 800 26px/1 var(--display); letter-spacing: -.02em; color: var(--a); }
.pp-stats span { display: block; margin-top: 6px; max-width: 190px; font-size: 13px; line-height: 1.4; color: var(--sub); }
.pp-txt p.pp-eq {
  display: inline-block; margin-top: 18px; padding: 11px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font: 400 17px/1.3 Georgia, "Times New Roman", serif; color: var(--ink);
}
.pp-input { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.pp-art { margin: 0; padding: 16px; border-radius: 16px; background: #F7F1EA; border: 1px solid #EFE6DB; }
.pp-art img { width: 100%; height: auto; }
.pp-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--a-2); text-transform: uppercase; letter-spacing: .06em; }
.pp-arrow i { position: relative; width: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--a-2) 0 4px, transparent 4px 7px); animation: flow .5s linear infinite; }
.pp-arrow i::after { content: ""; position: absolute; right: -2px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--a-2); border-right: 2px solid var(--a-2); transform: rotate(45deg); }
.pp-video { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #0f1820; }
.pp-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-video.half { aspect-ratio: 400 / 380; }
.pp-video.half video { width: 200%; max-width: none; object-position: left center; }
.pp-video.duo { aspect-ratio: 800 / 380; }
.pp-video.duo::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .75); }
.pp-video figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(251, 249, 245, .9);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.pp-video figcaption.r { left: calc(50% + 10px); }
.pp-tracker {
  position: absolute; left: 50%; top: 12px; z-index: 1; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(251, 249, 245, .94); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .4);
}
.pp-tracker b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: #fff; font: italic 400 15px/1 Georgia, serif; }
.pp-tracker small { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pp-codes .codes-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.pp-codes .codes-head p { margin: 0; font-size: 14px; }
.pp-codes .pp-canvas { height: 290px; margin-top: 10px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.metric { padding: 26px 26px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.m-h { margin: 0 0 14px; font: 700 15.5px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.m-n { margin: 0; font: 800 50px/1 var(--display); letter-spacing: -.035em; color: var(--a); }
.m-n small { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.m-u { margin: 10px 0 0; font-weight: 600; font-size: 15px; }
.m-d { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--sub); }

/* language: console */
.console {
  margin-top: 72px; display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 28px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.console-side { display: flex; flex-direction: column; min-width: 0; }
.prompt { padding: 6px 6px 0; }
.prompt-k { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--l); }
.dot-l { width: 8px; height: 8px; border-radius: 50%; background: var(--l); }
.prompt-text {
  margin: 18px 0 0; min-height: 3.6em; font: 700 clamp(24px, 2.7vw, 34px)/1.22 var(--display); letter-spacing: -.02em; color: var(--ink);
}
.prompt-text #promptText::before { content: "“"; color: var(--l-2); }
.prompt-text.done #promptText::after { content: "”"; color: var(--l-2); }
.caret { display: inline-block; width: 3px; height: .95em; margin-left: 4px; vertical-align: -.1em; background: var(--l); animation: blink 1s steps(1) infinite; }
.prompt-text.done .caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 500 12.5px/1.3 var(--mono); color: var(--sub); }
.prompt-meta span { padding: 5px 9px; border-radius: 7px; background: var(--l-t); color: var(--l); }
.prompt-meta i { font-style: normal; color: var(--mute); }
.thumbs { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb {
  position: relative; aspect-ratio: 9 / 13; border-radius: 12px; overflow: hidden; background: #e9e4dc;
  outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s, transform .35s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .3s, transform .6s var(--ease); }
.thumb:hover img { transform: scale(1.05); filter: none; }
.thumb.on { outline-color: var(--l); }
.thumb.on img { filter: none; }
.thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--l); transform-origin: left; transform: scaleX(var(--p, 0)); }
.console-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #1b1a18; }
.console-screen video { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.console-screen video.swap { opacity: 0; }
.screen-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.screen-bar span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.screen-badge {
  position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(20, 18, 16, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 12px/1 var(--text); letter-spacing: .02em;
}

/* results */
.results-head { margin-top: 110px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.res-card { padding: 28px 30px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.res-wide { grid-column: 1 / -1; }
.res-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; }
.res-h { margin: 0 0 8px; font: 700 clamp(18px, 1.6vw, 21px)/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); }
.res-k { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.res-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--mute); }
.kv { display: flex; gap: 40px; margin: 20px 0 8px; }
.kv-row { flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.kv-n { margin: 0; font: 800 42px/1 var(--display); letter-spacing: -.03em; color: var(--accent); transition: color .8s; }
.kv-n small { font-size: 18px; color: var(--sub); font-weight: 700; }
.kv-l { margin: 6px 0 0; font-size: 13.5px; color: var(--sub); }
#language .kv-n { color: var(--l); } #vision .kv-n { color: var(--v); }

.hbars { display: grid; gap: 9px; margin-top: 18px; }
.hb { display: grid; grid-template-columns: 92px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.hb-l { color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 10px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: 6px; background: #CFC7BB; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.in .hb-t i, .hb-t.in i { transform: scaleX(1); }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.hb.is-ours .hb-l { color: var(--ink); font-weight: 700; }
#language .hb.is-ours .hb-t i { background: linear-gradient(90deg, var(--l-2), var(--l)); }
#language .hb.is-ours .hb-v { color: var(--l); }

.trackers { display: grid; gap: 10px; margin-top: 20px; }
.trk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: var(--r-md); background: var(--l-t); }
.trk-n { margin: 0; font-size: 15px; font-weight: 600; color: var(--l); }
.trk-v { margin: 0; white-space: nowrap; font: 800 clamp(24px, 2.3vw, 32px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trk-v span { color: var(--l-2); margin: 0 .06em; }
.trk-v::after { content: "%"; font-size: .5em; color: var(--sub); margin-left: 3px; }

/* streaming */
.stream {
  margin-top: 72px; display: grid; grid-template-columns: 1fr 330px; gap: 22px 24px; padding: 24px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stream-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1b1a18; }
.stream-screen video { width: 100%; height: 100%; object-fit: cover; }
.stream-play {
  position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251, 249, 245, .9); color: var(--ink); transition: transform .3s var(--ease);
}
.stream-play:hover { transform: scale(1.08); }
.stream-play svg { width: 16px; height: 16px; }
.stream-play .i-pause { display: none; }
.stream.playing .stream-play .i-play { display: none; }
.stream.playing .stream-play .i-pause { display: block; }
.stream-rail { display: flex; flex-direction: column; gap: 10px; }
.rail-k { margin: 2px 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
.cmd {
  position: relative; text-align: left; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--paper-2);
  opacity: .45; transition: opacity .5s var(--ease), background .5s var(--ease), transform .5s var(--ease); overflow: hidden;
}
.cmd::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--ic, var(--l)); opacity: .35; transition: opacity .4s; }
.cmd:hover { opacity: .8; }
.cmd.on { opacity: 1; background: var(--l-t); transform: translateX(4px); }
.cmd.on::before { opacity: 1; }
.cmd.past { opacity: .62; }
.cmd-t { display: block; font: 500 12px/1 var(--mono); color: var(--ic, var(--l)); }
.cmd-x { display: block; margin-top: 7px; font-size: 15.5px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.cmd.on .cmd-x::after { content: "NOW"; margin-left: 8px; padding: 2px 6px; border-radius: 5px; background: var(--ic, var(--l)); color: #fff; font: 600 10px/1 var(--text); letter-spacing: .08em; vertical-align: 2px; }
.plan { grid-column: 1 / -1; --gut: 92px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.plan-head .rail-k { margin: 0; }
.plan-sub { margin: 0; flex: 1 1 420px; font-size: 13.5px; line-height: 1.5; color: var(--sub); }
.plan-frames { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-left: var(--gut); }
.pf {
  position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #E9E4DC; opacity: .5;
  outline: 2px solid transparent; outline-offset: 2px; transition: opacity .35s, outline-color .35s, transform .35s var(--ease);
}
.pf:hover { opacity: .9; transform: translateY(-2px); }
.pf.seen { opacity: 1; }
.pf.on { outline-color: var(--fc); }
.pf img { width: 100%; height: 100%; object-fit: cover; }
.pf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--fc); z-index: 1; }
.pf span { position: absolute; left: 5px; bottom: 5px; padding: 2px 5px; border-radius: 5px; background: rgba(20, 18, 16, .55); color: #fff; font: 500 10.5px/1.2 var(--mono); }
#planCanvas { display: block; width: 100%; height: 182px; margin-top: 12px; cursor: pointer; touch-action: manipulation; }
.plan-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 6px; padding-left: var(--gut); }
.plan-legend { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--sub); }
.plan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.plan-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.lg-exec { background: var(--i1); }
.lg-comm { background: repeating-linear-gradient(135deg, var(--i1) 0 1.5px, rgba(56, 115, 96, .15) 1.5px 4.5px); }
.lg-new { background: rgba(56, 115, 96, .45); }
.lg-sup { background: rgba(56, 115, 96, .1); outline: 1px dashed rgba(56, 115, 96, .45); outline-offset: -1px; }
.plan-legend i.lg-sw { width: 0; height: 14px; border-left: 1.5px dashed var(--ink); border-radius: 0; }

.vbars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; height: 260px; margin-top: 26px; }
.vb { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; }
.vb i {
  display: block; width: 100%; max-width: 92px; height: calc(var(--h) / 100 * 200px); border-radius: 12px 12px 6px 6px; background: #D9D2C7;
  transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease);
}
.in .vb i { transform: scaleY(1); }
.vb:nth-child(2) i { transition-delay: .08s; } .vb:nth-child(3) i { transition-delay: .16s; } .vb:nth-child(4) i { transition-delay: .24s; }
.vb:nth-child(5) i { transition-delay: .32s; } .vb:nth-child(6) i { transition-delay: .4s; }
.vb-v { margin-bottom: 8px; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vb-l { margin-top: 10px; height: 34px; font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--ink-2); }
.vb-l small { display: block; font-weight: 400; color: var(--sub); font-size: 11.5px; }
.vb.is-ours-soft i { background: linear-gradient(180deg, #A9C7BB, #8DB3A4); }
.vb.is-ours i { background: linear-gradient(180deg, var(--l-2), var(--l)); }
.vb.is-ours .vb-v { color: var(--l); font-size: 22px; }
.vb.is-gt i { background: repeating-linear-gradient(135deg, #E5DFD5 0 4px, #F1ECE4 4px 8px); }
.vb.is-gt .vb-v { color: var(--mute); }

/* vision: tasks */
.tasks { margin-top: 72px; padding: 22px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tasks-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 16px; }
.tasks-bar p { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tasks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.task { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #1b1a18; }
.task video { width: 100%; height: 100%; object-fit: cover; }
.task figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px);
  padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(251, 249, 245, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.task figcaption span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--v); color: #fff; font: 700 11px/1 var(--text); flex: none; }
.task::after {
  content: "1×"; position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(20, 18, 16, .5);
  color: #fff; font: 700 12px/1 var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.legend { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.legend span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.lg-rand { background: #fff; border: 2px solid #B9B1A5; }
.lg-alv { background: var(--v); }
.dumb { margin-top: 22px; display: grid; gap: 4px; }
.db { display: grid; grid-template-columns: 150px 1fr 58px; gap: 16px; align-items: center; height: 34px; font-size: 14.5px; }
.db-l { color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-l small { color: var(--mute); font-weight: 400; margin-left: 6px; font-size: 12px; }
.db-t { position: relative; height: 100%; }
.db-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.db-bar {
  position: absolute; top: calc(50% - 3px); height: 6px; border-radius: 3px; left: var(--x0); width: calc(var(--x1) - var(--x0));
  background: linear-gradient(90deg, rgba(90, 156, 196, .25), var(--v-2)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease);
}
.db-bar.neg { background: linear-gradient(90deg, #D9D2C7, #CFC7BB); }
.db-a, .db-b { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.db-a { left: var(--x0); background: #fff; border: 2px solid #B9B1A5; }
.db-b { left: var(--x0); background: var(--v); box-shadow: 0 0 0 4px rgba(34, 121, 168, .14); transition: left 1.1s var(--ease); }
.in .db-bar { transform: scaleX(1); }
.in .db-b { left: var(--x1); }
.db-d { text-align: right; font: 700 15px/1 var(--display); color: var(--v); font-variant-numeric: tabular-nums; }
.db-d.neg { color: var(--mute); }
.db-group { margin: 12px 0 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.db-group:first-child { margin-top: 0; }

/* vision: leaderboards */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; }
.seg-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs button {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--sub); white-space: nowrap;
  transition: background .3s, color .3s, box-shadow .3s;
}
.seg-tabs button:hover { color: var(--ink); }
.seg-tabs button.on { background: #fff; color: var(--v); box-shadow: 0 1px 2px rgba(42, 39, 35, .08), 0 4px 12px -6px rgba(42, 39, 35, .25); }
.lb { position: relative; margin-top: 22px; transition: height .6s var(--ease); }
.lb[hidden], .dumb[hidden] { display: none; }
.lb-row {
  position: absolute; left: 0; right: 0; top: 0; height: 34px; display: grid; grid-template-columns: 30px minmax(150px, 250px) 1fr 74px;
  gap: 14px; align-items: center; font-size: 14.5px; transform: translateY(var(--y, 0)); border-radius: 9px; padding: 0 8px 0 4px;
  transition: transform .7s var(--ease), opacity .4s var(--ease), background .3s;
}
.lb-row:hover { background: rgba(42, 39, 35, .035); }
.lb-row.off { opacity: 0; pointer-events: none; }
.lb-rank { text-align: right; font: 600 13px/1 var(--mono); color: var(--mute); }
.lb-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 500; }
.lb-name small { margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--mute); }
.lb-t { height: 12px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.lb-t i {
  display: block; height: 100%; width: calc(var(--w, 0) * 1%); border-radius: 6px; background: #D5CDC1; transform-origin: left;
  transition: width .7s var(--ease), transform 1.1s var(--ease);
}
.board:not(.in) .lb-t i { transform: scaleX(0); }
.lb-v { text-align: right; font: 600 14.5px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.lb-row.is-ours { background: var(--v-t); }
.lb-row.is-ours .lb-name, .lb-row.is-ours .lb-v { color: var(--v); font-weight: 700; }
.lb-row.is-ours .lb-rank { color: var(--v); }
.lb-row.is-ours .lb-t { background: rgba(255, 255, 255, .7); }
.lb-row.is-ours .lb-t i { background: linear-gradient(90deg, var(--v-2), var(--v)); }
.lb-row.is-rand .lb-t i { background: repeating-linear-gradient(135deg, #B9B1A5 0 3px, #DDD6CB 3px 6px); }
.lb-row.is-rand .lb-name { color: var(--ink); }
.lb-legend { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--sub); }
.lb-legend span { display: inline-block; width: 16px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lb-legend span:first-child { margin-left: 0; }
.lg-o { background: linear-gradient(90deg, var(--v-2), var(--v)); }
.lg-r { background: repeating-linear-gradient(135deg, #B9B1A5 0 3px, #DDD6CB 3px 6px); }
.lg-b { background: #D5CDC1; }
.board .dumb { margin-top: 22px; }

/* night sections */
.night { background: var(--night); color: #F3EFE8; padding: 130px 0; }
.night .eyebrow { color: var(--l-2); }
.night .lede { color: #A8A197; }
.night-head { max-width: 760px; }
.night-head.center { margin-inline: auto; }
.film { padding-top: 120px; }
.film-card {
  position: relative; display: block; width: 100%; margin-top: 48px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .7);
}
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-card:hover img { transform: scale(1.025); }
.film-play {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5); transition: transform .4s var(--ease), background .3s;
}
.film-play i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); }
.film-play svg { width: 18px; height: 18px; margin-left: 3px; }
.film-play small { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.film-card:hover .film-play { transform: translateX(-50%) scale(1.05); background: var(--accent); }

/* closing */
.closing { padding: 130px 0 10px; }
.closing-quote { margin: 0; font: 700 clamp(28px, 3.6vw, 46px)/1.18 var(--display); letter-spacing: -.028em; color: var(--ink); }

/* bibtex + footer */
.bib { padding: 110px 0 110px; }
.bib-card { position: relative; margin-top: 30px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.bib-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--a), var(--l), var(--v)); }
.bib-card pre { margin: 0; padding: 28px 30px; overflow-x: auto; font: 400 14px/1.7 var(--mono); color: var(--ink-2); }
.bib-copy { position: absolute; top: 16px; right: 16px; }
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; align-items: center; }
.foot-mark { margin: 0; display: flex; align-items: center; gap: 2px; font: 900 22px/1 var(--display); letter-spacing: -.04em; }
.foot-mark span { margin-left: 14px; font: 500 14px/1.3 var(--text); letter-spacing: 0; color: var(--sub); }
.foot-c { margin: 0; font-size: 13.5px; color: var(--mute); }

/* modals */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vmin; background: rgba(12, 11, 10, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal-body { width: min(1400px, 100%); }
.modal-body video { width: 100%; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; }
.zoom-body { width: auto; max-width: 100%; max-height: 92vh; overflow: auto; border-radius: 14px; background: #fff; }
.zoom-body img { width: min(2000px, 94vw); height: auto; }
.modal-x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 30px; line-height: 1; background: rgba(255, 255, 255, .12); }
.modal-x:hover { background: rgba(255, 255, 255, .22); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: all .4s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-links a[href="#bibtex"], .nav-links a[href="#evolution"], .nav-links a[href="#abstract"] { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cap { font-size: 12px; padding: 6px 10px; }
  .pipe-steps { gap: 12px; }
  .pipe-steps li:not(:last-child)::after { right: -12px; width: 12px; }
  .ppanel { grid-template-columns: 1fr; gap: 20px; }
  .console { grid-template-columns: 1fr 300px; }
  }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 120px; }
  .chapter { padding: 110px 0 100px; }
  .chapter-head { grid-template-columns: 1fr; gap: 6px; }
  .chapter-num { margin: 0; font-size: 84px; }
  .evo { padding: 100px 0 90px; }
  .evo-scrolly { grid-template-columns: 1fr; gap: 0; margin-top: 50px; }
  .evo-stage { position: sticky; top: 76px; z-index: 2; }
  .evo-card { position: relative; top: 0; height: 300px; padding: 26px; }
  .evo-axis { left: 18px; } .strata { left: 52px; right: 20px; } .evo-foot { left: 52px; font-size: 12px; }
  .stratum { height: 54px; border-radius: 13px; padding: 0 14px; }
  .s-name { font-size: 16px; } .s-q { display: none; } .s-h { font-size: 14px; }
  .evo-step { min-height: 62vh; }
  .evo-step p:last-child { font-size: 16.5px; }
  .pipe { padding: 14px; }
  .pipe-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .pipe-steps::-webkit-scrollbar { display: none; }
  .pipe-steps li { flex: 0 0 62%; scroll-snap-align: start; }
  .ppanel { padding: 16px; display: none; transform: none; }
  .ppanel.on { display: grid; animation: fadeUp .45s var(--ease); }
  .pp-input { grid-template-columns: minmax(0, .7fr) auto minmax(0, 1.2fr); }
  .pp-canvas { height: 270px; }
  .pp-codes .pp-canvas { height: 240px; }
  .plan { --gut: 54px; }
  .plan-frames { gap: 4px; }
  .pf { border-radius: 6px; }
  .pf span { display: none; }
  #planCanvas { height: 156px; }
  .metrics { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; padding: 18px; }
  .console-screen { order: -1; width: min(320px, 100%); margin: 0 auto; }
  .thumbs { gap: 7px; }
  .res-grid { grid-template-columns: 1fr; }
  .challenges { grid-template-columns: 1fr; }
  .reel-caps { display: none; }
  .stream { grid-template-columns: 1fr; padding: 16px; }
  .vbars { height: 230px; gap: 8px; }
  .vb-l { font-size: 11.5px; }
  .tasks-grid { grid-template-columns: 1fr; }
  .tasks-bar { flex-direction: column; align-items: flex-start; }
  .db { grid-template-columns: 104px 1fr 46px; gap: 10px; font-size: 13px; }
  .lb-row { grid-template-columns: 20px minmax(0, 1.1fr) minmax(0, 1fr) 66px; gap: 8px; font-size: 13px; padding: 0 4px 0 0; }
  .lb-name small { display: none; }
  .lb-v { font-size: 13px; }
  .board-head { align-items: flex-start; }
    .kv { gap: 26px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat-n { font-size: 40px; }
  .reel { width: calc(100% - 20px); }
  .reel-frame { border-radius: 18px; }
  .reel-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .reel-tag { font-size: 13px; flex-wrap: wrap; }
  .notes { font-size: 14px; }
  .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
  .pipe-steps li { flex-basis: 78%; }
  .pp-input { grid-template-columns: minmax(0, .8fr) auto minmax(0, 1fr); gap: 8px; }
  .pp-arrow i { width: 26px; }
  .pp-video figcaption { font-size: 11px; padding: 4px 8px; }
  .film-card { border-radius: 18px; }
  .film-play { left: auto; right: 12px; bottom: 12px; transform: none; padding: 5px; gap: 0; font-size: 0; }
  .film-play small { display: none; }
  .film-play i { width: 40px; height: 40px; }
  .film-card:hover .film-play { transform: scale(1.05); }
  .bib-card pre { font-size: 12px; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
