/* ActiveMoMa project page. Plain CSS, no build step. Colours follow the paper's figures: one accent (#02489D) for
   ActiveMoMa, slate grays for the rest, red and green only for outcomes. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --accent: #02489D; --accent-2: #1760B9; --accent-3: #5598E7; --accent-4: #86B6EF;
  --ink: #0F172A; --text: #334155; --muted: #64748B; --faint: #94A3B8;
  --line: #E2E8F0; --line-2: #F1F5F9; --soft: #F8FAFC; --tint: #EFF6FF;
  --green: #15803D; --red: #DC2626;
  --bg0: #060A12; --bg1: #0B1220;
  --wrap: 1120px; --prose: 780px; --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --display: "Inter Display", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }                        /* smooth scrolling (Lenis), its own rules */
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
:root { --ease: cubic-bezier(.22, 1, .36, 1); }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 3px; border-radius: 6px; }
em { font-style: italic; }
code { font-family: var(--mono); font-size: .88em; background: var(--line-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; color: var(--ink); }

/* ---------------------------------------------------------------- chapter navigation */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, .58), rgba(2, 6, 23, .16));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.topnav.scrolled {
  background: rgba(255, 255, 255, .86); border-bottom-color: rgba(15, 23, 42, .08); box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.topnav-inner { position: relative; display: flex; align-items: center; justify-content: center; max-width: 1400px; min-height: 64px; margin: 0 auto; padding: 8px 24px; }
.topnav-brand {
  position: absolute; top: 50%; left: 24px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 9px;
  color: #F1F5F9; font: 800 21px/1 var(--display); letter-spacing: -.03em; text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  transition: color .25s ease;
}
.topnav-brand img { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease); }
.topnav-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.topnav.scrolled .topnav-brand img { filter: none; }
.topnav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3) 60%, #22D3EE); pointer-events: none;
}
.chapter-ink {
  position: absolute; left: 0; bottom: 4px; height: 2px; width: 0; border-radius: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s ease;
}
.topnav-brand:hover { text-decoration: none; opacity: .85; }
.topnav-brand .wm-a { color: var(--accent-4); }
.topnav.scrolled .topnav-brand { color: var(--ink); text-shadow: none; }
.topnav.scrolled .topnav-brand .wm-a { color: var(--accent); }
.topnav-links { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px 10px; }
.chapter {
  position: relative; display: inline-flex; align-items: baseline; gap: 9px; padding: 9px 16px 11px; border-radius: 8px;
  color: rgba(255, 255, 255, .92); font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: .005em; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: color .2s ease, background-color .2s ease;
}
.chapter .num { color: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.chapter::after { content: ""; position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; border-radius: 2px; background: transparent; transition: background-color .2s ease; }
.chapter:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.chapter.active { color: #fff; }
.chapter.active .num { color: var(--accent-4); }
.chapter.active::after { background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); }
.has-ink .chapter.active::after { background: transparent; }        /* the sliding underline takes its place */
.topnav.scrolled .chapter { color: var(--muted); text-shadow: none; }
.topnav.scrolled .chapter .num { color: var(--faint); }
.topnav.scrolled .chapter:hover { color: var(--ink); background: rgba(15, 23, 42, .05); }
.topnav.scrolled .chapter.active { color: var(--ink); }
.topnav.scrolled .chapter.active .num { color: var(--accent-2); }
.topnav-toggle {
  position: absolute; top: 50%; right: 20px; transform: translateY(-50%); display: none; flex-direction: column; justify-content: center;
  gap: 4px; width: 40px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px;
  background: rgba(15, 23, 42, .25); cursor: pointer;
}
.topnav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 1px; background: #F8FAFC; }
.topnav.scrolled .topnav-toggle { background: #fff; border-color: rgba(15, 23, 42, .15); }
.topnav.scrolled .topnav-toggle span { background: var(--ink); }
section[id] { scroll-margin-top: 64px; }

/* ---------------------------------------------------------------- title section */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  background: var(--bg0); color: #fff;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform-origin: 50% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 62% at 50% 46%, rgba(6, 10, 18, .5), rgba(6, 10, 18, .64) 58%, rgba(6, 10, 18, .76) 100%),
    linear-gradient(180deg, rgba(6, 10, 18, .4) 0%, rgba(6, 10, 18, 0) 22%, rgba(6, 10, 18, 0) 68%, rgba(6, 10, 18, .82) 100%);
}
.hero-inner { width: min(100% - 40px, 1040px); padding: clamp(80px, 11.5vh, 124px) 0 clamp(120px, 16vh, 148px); text-align: center; will-change: transform, opacity; }
.hero .wordmark, .hero .subtitle, .hero .authors, .hero .affiliations, .hero .contrib { text-shadow: 0 1px 8px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .35); }
.hero-now {
  position: absolute; left: 24px; bottom: 20px; max-width: min(46vw, 460px); pointer-events: none;
  font: 400 12.5px/1.65 var(--mono); color: #CBD5E1; text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}
.hero-now .now { display: none; }
.hero-now .now:first-child { display: block; }                       /* without the script: the first run */
.hero-now.js .now { display: none; }
.hero-now.js .now.on { display: block; animation: logline .5s var(--ease); }
.now-head { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; color: #CBD5E1; font: 600 11.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.now-head .x { margin-left: 2px; padding: 1px 7px; border-radius: 999px; color: #E2E8F0; background: rgba(255, 255, 255, .12); font: 600 10.5px/1.5 var(--sans); letter-spacing: .04em; }
.hero-now .live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(85, 152, 231, .7); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(85, 152, 231, .7); } 100% { box-shadow: 0 0 0 9px rgba(85, 152, 231, 0); } }
.now-log { margin: 0; padding: 0; list-style: none; }
.now-log li { display: none; gap: 10px; white-space: nowrap; }
.now-log li:nth-last-child(-n+3) { display: flex; }                 /* without the script: the end of the run */
.hero-now.js .now-log li { display: none; }
.hero-now.js .now-log li.on { display: flex; animation: logline .35s ease-out; }
.now-log li[data-age="1"] { opacity: .62; }
.now-log li[data-age="2"] { opacity: .34; }
.now-log .n { color: #64748B; }
.now-log .k { min-width: 8ch; color: var(--accent-4); }
.now-log .ok .k { color: #4ADE80; }
.now-log .bad .k { color: #F87171; }
.now-log .r { color: #E2E8F0; }
.now-task { margin: 2px 0 0; max-width: 40ch; color: #F1F5F9; font: 600 15px/1.45 var(--sans); white-space: normal; }
.now-meta { margin: 3px 0 0; color: #94A3B8; font-size: 12.5px; }
@keyframes logline { from { opacity: 0; transform: translateY(6px); } }
.hero-reel { position: absolute; right: 24px; bottom: 20px; display: none; gap: 10px; }
.hero-reel.js { display: flex; }
.hero-reel button {
  display: grid; gap: 6px; width: 112px; padding: 0; border: 0; background: none; color: #CBD5E1; cursor: pointer; text-align: left;
  font: 600 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.hero-reel .thumb {
  display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); opacity: .6; transition: opacity .3s ease, border-color .3s ease, transform .45s var(--ease);
}
.hero-reel .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-reel button:hover .thumb, .hero-reel button:focus-visible .thumb { opacity: .95; transform: translateY(-3px); }
.hero-reel button:hover .thumb img { transform: scale(1.06); }
.hero-reel button.active { color: #fff; }
.hero-reel button.active .thumb { opacity: 1; border-color: rgba(134, 182, 239, .9); }
.hero-reel .bar { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero-reel .bar i { display: block; height: 100%; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent-3), #22D3EE); }
.wordmark { display: inline-flex; align-items: center; margin: 0; font: 800 clamp(40px, min(12vw, 14.5vh), 140px)/.92 var(--display); letter-spacing: -.04em; }
.wm-mark { flex: none; width: .98em; height: .98em; margin-right: .12em; filter: drop-shadow(0 6px 22px rgba(2, 8, 23, .55)); }
.wm-a { color: var(--accent-3); }
.wm-b { color: #F1F5F9; }
.hero-rule { width: 96px; height: 6px; margin: clamp(16px, 2.8vh, 30px) auto clamp(14px, 2.4vh, 26px); border-radius: 3px; background: var(--accent-2); }
.subtitle {
  margin: 0 auto; max-width: 860px; color: #E2E8F0;
  font: 700 clamp(19px, min(2.7vw, 4.3vh), 34px)/1.25 var(--display); letter-spacing: -.012em; text-wrap: balance;
}
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; max-width: 900px; margin: clamp(16px, 3.4vh, 36px) auto 0; font-size: 18px; font-weight: 500; color: #F1F5F9; }
.authors a { color: inherit; }
.hero sup { margin-left: 1px; font-size: .62em; font-weight: 500; color: var(--accent-4); }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; max-width: 900px; margin: clamp(8px, 1.3vh, 14px) auto 0; font-size: 14.5px; color: #CBD5E1; }
.contrib { display: flex; justify-content: center; gap: 18px; margin: 6px 0 0; font-size: 13.5px; color: #94A3B8; }
.affils { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(14px, 2.4vh, 24px); }
.logo-card {
  display: inline-flex; align-items: center; justify-content: center; height: clamp(46px, 7vh, 58px); padding: 0 18px; border-radius: 10px;
  background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .28); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.logo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .34); }
.logo-card img { height: clamp(30px, 4.8vh, 40px); width: auto; }
.placeholder { display: inline-block; padding: 1px 12px; border: 1px dashed rgba(148, 163, 184, .7); border-radius: 8px; color: #94A3B8; font-size: 15px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(18px, 3.4vh, 38px); }
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: .005em; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn:hover { background: #fff; color: var(--ink); text-decoration: none; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn .emoji { font-size: 19px; line-height: 1; }
.btn.is-soon, .btn.is-soon:hover { cursor: default; color: #CBD5E1; background: rgba(255, 255, 255, .06); transform: none; }
.btn .soon {
  margin-left: 2px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-4); background: rgba(85, 152, 231, .2);
}
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 40px; height: 40px; color: rgba(226, 232, 240, .65); animation: cue 2.4s ease-in-out infinite; }
.scroll-cue:hover { color: #fff; }
.scroll-cue svg { width: 100%; height: 100%; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--prose); margin-inline: auto; }
.head { margin-bottom: 26px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 10px; vertical-align: middle; border-radius: 2px; background: var(--accent-2); }
h2 { margin: 0; color: var(--ink); font: 700 clamp(30px, 3.6vw, 42px)/1.12 var(--display); letter-spacing: -.022em; }
h3 { margin: 52px 0 12px; color: var(--ink); font: 700 22px/1.3 var(--display); letter-spacing: -.01em; }
p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.lead { margin-bottom: 44px; color: var(--ink); font-size: clamp(19px, 2vw, 22px); line-height: 1.6; }
.abstract { text-align: justify; hyphens: auto; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.note.center { text-align: center; }

/* ---------------------------------------------------------------- figures, video */
figure { margin: 40px 0 0; }
.figure { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .5s var(--ease); }
.figure:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 48px -18px rgba(15, 23, 42, .22); }
.figure a { display: block; cursor: zoom-in; }
.figure img { width: 100%; }
figcaption, .table-caption { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
figcaption b, .table-caption b { color: var(--ink); font-weight: 600; }
.video-frame { overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 24px 60px -20px rgba(2, 8, 23, .45); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* ---------------------------------------------------------------- results table */
.table-card { margin-top: 40px; padding: 8px 8px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-card .table-caption { padding: 0 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.results { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.results th, .results td { padding: 9px 7px; text-align: center; }
.results thead th { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.results thead tr.group th { padding-bottom: 4px; border-bottom: 0; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.results thead tr.group th.agent, .results thead tr.group th:last-child { border-bottom: 1px solid var(--line); }
.results .agent { text-align: left; padding-left: 14px; padding-right: 14px; color: var(--ink); font-weight: 500; }
.results thead .agent { vertical-align: bottom; }
.results .sub { padding-left: 30px; }
.results .sub2 { padding-left: 46px; }
.results .gs { border-left: 1px solid var(--line-2); }
.results tbody tr { border-bottom: 1px solid var(--line-2); }
.results tbody tr.sep { border-top: 2px solid var(--line); }
.results tbody tr:last-child { border-bottom: 0; }
.results .best { font-weight: 700; color: var(--ink); }
.results .ck { color: var(--accent); font-weight: 700; }
.results .x { color: #CBD5E1; }
.results tr.ours td { background: var(--tint); color: var(--accent); }
.results tr.ours td.best, .results tr.ours .agent { color: var(--accent); font-weight: 700; }
.results tr.gain td { padding-top: 5px; padding-bottom: 7px; font-size: 12.5px; color: var(--green); font-weight: 600; }
.results tr.gain .agent { color: var(--green); font-weight: 500; }

/* ---------------------------------------------------------------- real robot */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.clip-card { min-width: 0; }
.clip { position: relative; overflow: hidden; border-radius: 12px; background: #0B1220; box-shadow: var(--shadow); }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.clip:hover video { transform: scale(1.025); }
.speed {
  position: absolute; top: 10px; right: 10px; padding: 2px 9px; border-radius: 999px; font: 600 12px/1.6 var(--sans);
  letter-spacing: .04em; color: #fff; background: rgba(6, 10, 18, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.clip-label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.clip-label small { color: var(--muted); font-weight: 500; font-size: 14.5px; }
.clip-label.ours { color: var(--accent); }
.clip-note { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; }
.mark {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 9px; border-radius: 50%;
  vertical-align: -3px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.mark.bad { background: var(--red); }
.mark.good { background: var(--green); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 72px; }
.split h3 { margin-top: 0; }
.quote { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--red); color: var(--ink); font-family: var(--mono); font-size: 14.5px; }
.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.task-name { margin: 14px 0 4px; color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.task-meta { margin: 0; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.task-meta .vs { display: block; color: var(--faint); }

/* ---------------------------------------------------------------- citation, footer */
.bib { position: relative; padding: 22px 24px; border-radius: var(--radius); background: var(--bg1); color: #E2E8F0; box-shadow: var(--shadow); }
.bib pre { margin: 0; padding-right: 64px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.65 var(--mono); }
.copy {
  position: absolute; top: 12px; right: 12px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
  background: rgba(255, 255, 255, .06); color: #E2E8F0; font: 600 13px/1.4 var(--sans); cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, .14); }
.footer { padding: 44px 0 56px; background: var(--bg0); color: #94A3B8; font-size: 14px; }
.footer p { margin: 0; max-width: 760px; }
.foot-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 12px !important; color: #F1F5F9; font: 800 22px/1.2 var(--display); letter-spacing: -.02em; }
.foot-mark img { width: 34px; height: 34px; }

/* ---------------------------------------------------------------- motion: the title rises in, content rises into view */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes markin { from { opacity: 0; transform: translate3d(0, 10px, 0) rotate(-16deg) scale(.7); } to { opacity: 1; transform: none; } }
.js .hero-inner > * { animation: rise 1.1s var(--ease) backwards; }
.js .hero-inner > :nth-child(2) { animation: grow 1s var(--ease) .45s backwards; }
.js .hero-inner > :nth-child(3) { animation-delay: .25s; }
.js .hero-inner > :nth-child(4) { animation-delay: .38s; }
.js .hero-inner > :nth-child(5) { animation-delay: .46s; }
.js .hero-inner > :nth-child(6) { animation-delay: .52s; }
.js .hero-inner > :nth-child(7) { animation-delay: .6s; }
.js .hero-inner > :nth-child(8) { animation-delay: .7s; }
.js .wm-mark { animation: markin 1.3s var(--ease) .1s backwards; }
.js .hero-now, .js .hero-reel { animation: rise 1.1s var(--ease) .9s backwards; }    /* backwards: the scroll fade may set opacity after */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease), box-shadow .5s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .figure.reveal, .js .table-card.reveal, .js .video-frame.reveal { transform: translate3d(0, 44px, 0) scale(.985); }
.js .figure.reveal.in, .js .table-card.reveal.in, .js .video-frame.reveal.in { transform: none; }
.js .head.reveal .eyebrow::before { width: 0; transition: width .9s var(--ease) .3s; }
.js .head.reveal.in .eyebrow::before { width: 22px; }

/* ---------------------------------------------------------------- small screens, reduced motion */
@media (max-width: 1439px) {
  .hero-reel button { width: 96px; }
}
@media (min-width: 861px) and (max-height: 720px) {             /* short screens: the reel's marks without stills */
  .hero-inner { padding-bottom: 84px; }
  .hero-reel { gap: 8px; }
  .hero-reel button { width: 70px; }
  .hero-reel .thumb, .now-log { display: none; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .topnav-brand { display: none; }
  .chapter { padding: 9px 12px 11px; font-size: 17px; }
  .hero-reel { gap: 8px; }
  .hero-reel button { width: 70px; }
  .hero-reel .thumb { display: none; }
}
@media (max-width: 900px) {
  .topnav-inner { justify-content: flex-start; min-height: 58px; padding-right: 72px; }
  .topnav-brand { left: 20px; font-size: 19px; }
  .topnav-toggle { display: flex; }
  .topnav-links {
    position: fixed; top: 58px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 58px); padding: 10px 14px 16px; overflow-y: auto;
    background: rgba(11, 18, 32, .97); border-bottom: 1px solid rgba(148, 163, 184, .22); box-shadow: 0 20px 45px rgba(0, 0, 0, .4);
  }
  .topnav-links.open { display: flex; }
  .topnav.scrolled .topnav-links.open { background: rgba(255, 255, 255, .98); border-bottom-color: rgba(15, 23, 42, .08); box-shadow: 0 16px 36px rgba(15, 23, 42, .12); }
  .chapter { padding: 13px 14px; font-size: 18px; }
  .chapter::after { right: auto; bottom: 10px; left: 0; width: 3px; height: auto; top: 10px; }
  .chapter-ink { display: none; }
  .has-ink .chapter.active::after { background: linear-gradient(180deg, var(--accent-2), var(--accent-3)); }
  .hero-reel { gap: 6px; }
  .hero-reel button { width: 26px; font-size: 0; }
  .hero-reel .thumb, .hero-reel .lbl { display: none; }
  .hero-reel .bar { height: 3px; }
  section[id] { scroll-margin-top: 58px; }
}
@media (max-width: 860px) {
  .now-log, .now-task, .now-meta { display: none !important; }
  .hero-now { max-width: calc(100% - 200px); }
  .section { padding: 72px 0; }
  .compare, .tasks, .split { grid-template-columns: 1fr; }
  .split { gap: 22px; margin-top: 56px; }
  .figure { padding: 14px; }
  .abstract { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-inner { padding: 100px 0 96px; }
  .hero-now { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .hero-reel { display: none !important; }
  .affils { gap: 10px; }
  .logo-card { height: 42px; padding: 0 12px; }
  .logo-card img { height: 28px; }
  .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .btn { justify-content: center; gap: 7px; height: 44px; padding: 0 10px; font-size: 15px; }
  .btn .soon { padding: 2px 6px; font-size: 10px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue, .hero-now .live, .hero-now.js .now.on, .hero-now.js .now-log li.on { animation: none; }
  .js .hero-inner > *, .js .wm-mark, .js .hero-now, .js .hero-reel { animation: none; }
  .js .reveal, .js .figure.reveal, .js .table-card.reveal, .js .video-frame.reveal { opacity: 1; transform: none; transition: none; }
  .topnav, .chapter, .topnav-brand, .chapter-ink { transition: none; }
  .btn, .logo-card, .figure, .clip video, .hero-reel .thumb, .hero-reel .thumb img { transition: none; }
}
