/* UniversalVTG project page (v2). One accent colour marks "the moment" everywhere. */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --line: #d2d2d7;
  --night: #000000;
  --night-2: #161617;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --moment: #ffb340;
  --moment-deep: #b86200;
  --moment-glow: rgba(255, 179, 64, 0.45);
  --radius: 22px;
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--moment); color: #000; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(96px, 13vw, 168px); }
.dark { background: var(--night); color: var(--night-ink); }
.mist { background: var(--mist); }
.center { text-align: center; }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--moment-deep);
}
.dark .eyebrow { color: var(--moment); }
h1, h2, h3 { margin: 0; font-weight: 700; }
.display {
  font-size: clamp(52px, 9.4vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.headline {
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.038em;
}
.lead {
  margin: 22px 0 0;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.38;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 34em;
}
.center .lead { margin-inline: auto; }
.dark .lead { color: var(--night-ink-2); }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.dark .fine { color: #6e6e73; }
.fine a { text-underline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
/* Fixed over the black hero, so it reads as black at the top and as dark glass over light sections. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--night-ink);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--night-ink-2); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .pill-link {
  color: #000;
  background: var(--moment);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links .pill-link:hover { color: #000; filter: brightness(1.06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, filter 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-moment { background: var(--moment); color: #000; }
.btn-moment:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.dark .btn-ghost { color: var(--night-ink); box-shadow: inset 0 0 0 1px #424245; }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.link-arrow { color: var(--moment-deep); text-decoration: none; font-weight: 500; }
.dark .link-arrow { color: var(--moment); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

main > section[id] { scroll-margin-top: 52px; }

/* ---------- paper header ---------- */
.paper-head { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(56px, 8vw, 104px)); }
.ph-title {
  max-width: 22em;
  margin: 0 auto;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.ph-authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 28px 0 0; font-size: clamp(17px, 1.9vw, 20px); }
.ph-authors a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.ph-authors a:hover { text-decoration-color: currentColor; }
.ph-affil { margin: 6px 0 0; font-size: clamp(16px, 1.7vw, 18px); color: var(--ink-2); }
.ph-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pbtn:hover { background: #424245; }
.pbtn svg { width: 17px; height: 17px; flex: none; }
.ph-tldr { max-width: 44em; margin: clamp(40px, 5vw, 56px) auto 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; color: var(--ink-2); }
.ph-tldr b { color: var(--ink); font-weight: 600; }

/* The nav stays hidden over the paper header and slides in once its links have scrolled away. */
.nav { transition: transform 0.35s var(--ease); }
html:not(.no-js) .nav:not(.show) { transform: translateY(-100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s 0.35s; }

/* ---------- teaser (light page, dark video frame) ---------- */
.hero {
  padding-top: clamp(4px, 1vw, 12px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.hero .frame { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2); }
.hud .link-arrow { color: var(--moment); }
.hero .chip { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.hero .chip:hover { background: rgba(0, 0, 0, 0.09); }
.hero .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hero .chip .style { color: var(--ink-3); }
.hero .chip[aria-pressed="true"] .style { color: #a1a1a6; }
.hero .thumb { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.hero .thumb b { color: var(--ink); }
.hero .thumb:hover { background: rgba(0, 0, 0, 0.03); }
.hero .thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--moment-deep); color: var(--ink); }
/* A hairline separates the teaser from the first section, since both sit on white. */
.hero + .section { padding-top: 0; }
.hero + .section > .wrap { border-top: 1px solid #e8e8ed; padding-top: clamp(80px, 10vw, 128px); }
/* Sized so the video, ask bar and timeline fit in the first screen. */
.stage {
  max-width: min(1040px, max(640px, calc((100vh - 330px) * 1.7778)));
  max-width: min(1040px, max(640px, calc((100svh - 330px) * 1.7778)));
  margin: clamp(32px, 4vw, 44px) auto 0;
  padding-inline: var(--gutter);
  box-sizing: content-box;
}
.screen.hero-screen { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.frame video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 96px clamp(20px, 3vw, 32px) 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud .answer { min-height: 22px; margin: 0 0 12px; padding: 0; text-align: center; color: #d2d2d7; }
.hud .ask {
  max-width: 660px;
  margin: 0 auto;
  background: rgba(36, 36, 38, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hud .ask:focus-within { background: rgba(44, 44, 46, 0.7); }
.hud .timeline { margin-top: 16px; }
.hud .track { background: rgba(255, 255, 255, 0.22); }
.hud .tl-labels { margin-top: 8px; color: #a1a1a6; }
.hero .chips { margin-top: 22px; justify-content: center; }
.hero .switcher > :first-child { margin-left: auto; }
.hero .switcher > :last-child { margin-right: auto; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.screen video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.screen-tag {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #f5f5f7;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.screen-state {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.screen-state svg { width: 12px; height: 12px; }

/* timeline: the moment glows on a hairline track */
.timeline { margin-top: 22px; user-select: none; }
.track {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}
.track::before { content: ""; position: absolute; inset: -10px 0; } /* larger hit area */
.track-light { background: rgba(0, 0, 0, 0.09); }
.hit {
  position: absolute;
  top: -3px;
  height: 12px;
  min-width: 6px;
  border-radius: 6px;
  background: var(--moment);
  box-shadow: 0 0 18px var(--moment-glow), 0 0 4px var(--moment-glow);
  opacity: 0;
  transform: scaleY(0.4);
  transition: left 0.6s var(--ease), width 0.6s var(--ease), opacity 0.4s, transform 0.4s var(--ease);
}
.hit.on { opacity: 1; transform: scaleY(1); }
.playhead {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 18px;
  margin-top: -9px;
  margin-left: -1px;
  border-radius: 2px;
  background: #fff;
  pointer-events: none;
}
.tl-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--night-ink-2);
}

.ask {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.25s, background 0.25s;
}
.ask:focus-within { background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.6); }
.ask input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: -0.015em;
}
.ask input::placeholder { color: #86868b; }
.ask button {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--moment);
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.ask button:hover { filter: brightness(1.07); }
.ask button svg { width: 18px; height: 18px; }
.ask.busy button { animation: pulse 0.7s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.9); } }

.answer {
  min-height: 52px;
  margin-top: 16px;
  padding-inline: 22px;
  font-size: 15px;
  color: var(--night-ink-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.answer.on { opacity: 1; transform: none; }
.answer .when { color: var(--moment); font-weight: 600; white-space: nowrap; }
.answer q { color: var(--night-ink); quotes: "\201C" "\201D"; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  color: var(--night-ink);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: rgba(255, 255, 255, 0.14); }
.chip[aria-pressed="true"] { background: var(--night-ink); color: #000; }
.chip .style { color: var(--night-ink-2); margin-right: 6px; font-size: 12px; }
.chip[aria-pressed="true"] .style { color: #6e6e73; }

.switcher {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.switcher::-webkit-scrollbar { display: none; }
.thumb {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--night-ink-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.2s, color 0.2s, background 0.2s;
}
.thumb img { width: 64px; height: 40px; object-fit: cover; border-radius: 9px; }
.thumb b { display: block; color: var(--night-ink); font-weight: 600; font-size: 13px; }
.thumb:hover { background: rgba(255, 255, 255, 0.05); }
.thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--moment); color: var(--night-ink); }
.hero .fine { margin-top: 26px; }

/* ---------- dialects ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(48px, 6vw, 72px);
}
.card { margin: 0; }
.card .clip {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #e8e8ed;
}
.card video, .card .clip img { width: 100%; height: 100%; object-fit: cover; }
.card .clip::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 4px;
  border-radius: 4px;
  background: var(--moment);
  box-shadow: 0 0 12px var(--moment-glow);
  opacity: 0.95;
}
.card figcaption { padding: 16px 4px 0; }
.card .style-tag { font-size: 12px; font-weight: 600; color: var(--moment-deep); letter-spacing: 0.01em; }
.card q { display: block; margin-top: 6px; font-size: 17px; line-height: 1.32; font-weight: 600; letter-spacing: -0.018em; quotes: "\201C" "\201D"; }
.card .src { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* ---------- unifier ---------- */
.unify {
  max-width: 880px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(0, 0, 0, 0.06);
}
.unify-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; }
.unify-label { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.unify-text {
  min-height: 2.6em;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.028em;
  font-weight: 600;
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.unify-text.raw { color: var(--ink-2); font-weight: 500; }
.unify-text.out { color: var(--ink); }
.unify-text.fade { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.unify-style { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--moment-deep); letter-spacing: 0; }
.unify-arrow { display: flex; align-items: center; gap: 12px; margin: 22px 0 22px 170px; color: var(--ink-3); font-size: 13px; }
.unify-arrow svg { width: 18px; height: 18px; }
.unify-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.unify-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.unify-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.2); }
.unify-note { max-width: 640px; margin: 28px auto 0; text-align: center; }

/* ---------- model ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.15fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(18px, 3vw, 40px);
  row-gap: 18px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 84px);
}
.node {
  position: relative;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--mist);
  font-size: 15px;
  line-height: 1.35;
}
.node b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.node span { color: var(--ink-2); font-size: 13px; }
.node.input { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.node.head { grid-row: 1 / span 2; grid-column: 3; padding-block: 34px; background: var(--ink); color: #fff; }
.node.head span { color: #a1a1a6; }
.node.out { grid-row: 1 / span 2; grid-column: 4; background: transparent; padding: 0; }
.node.out .mini-track { position: relative; height: 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.09); margin: 10px 0 12px; }
.node.out .mini-track i { position: absolute; left: 46%; width: 16%; top: -3px; height: 12px; border-radius: 6px; background: var(--moment); box-shadow: 0 0 14px var(--moment-glow); }
.node.out b { font-variant-numeric: tabular-nums; }
.flow .node:not(.head):not(.out)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(18px, 3vw, 40px));
  width: clamp(18px, 3vw, 40px);
  height: 1px;
  background: var(--line);
}
.node.head::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(18px, 3vw, 40px));
  width: clamp(18px, 3vw, 40px);
  height: 1px;
  background: var(--ink);
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(56px, 7vw, 80px); }
.facts h3 { font-size: 19px; letter-spacing: -0.02em; }
.facts p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* ---------- speed ---------- */
.stats-note { margin-top: clamp(32px, 4vw, 48px); max-width: 780px; }
.race {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: var(--mist);
}
.lane + .lane { margin-top: 30px; }
.lane-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lane-name { font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; }
.lane-name small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.lane-count { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.lane-count b { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.ours .lane-count b { color: var(--moment-deep); }
.lane-track { position: relative; height: 10px; margin-top: 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.lane-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px; }
.ours .lane-fill { background: var(--moment); box-shadow: 0 0 14px var(--moment-glow); }
.mllm .lane-fill { background: #86868b; }
.lane-dots { display: flex; flex-wrap: wrap; gap: 5px; min-height: 10px; margin-top: 12px; }
.lane-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--moment); animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: scale(0.2); opacity: 0; } }
.lane-latest { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.lane-latest q { color: var(--ink); quotes: "\201C" "\201D"; }
.lane-latest .when { color: var(--moment-deep); font-weight: 600; white-space: nowrap; }
.race-foot { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.race-foot #race-clock { font-weight: 600; color: var(--ink); min-width: 4.2em; }
.race-real { color: var(--ink-3); font-size: 13px; }
.race-replay {
  margin-left: auto;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  cursor: pointer;
}
.race-replay:hover { background: #fafafa; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.spec { margin: 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--mist); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.spec figcaption { font-size: 16px; color: var(--ink-2); max-width: 30em; }
.spec figcaption b { color: var(--ink); font-weight: 600; }
/* Area to scale: the small square's side is sqrt(60M / 7.61B) of the large one's (set in app.js). */
.squares { position: relative; width: min(240px, 100%); aspect-ratio: 1; }
.sq.big { position: absolute; inset: 0; border-radius: 14px; background: #e3e3e8; }
.sq.big span { position: absolute; top: 12px; right: 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.sq.small { position: absolute; left: 0; bottom: 0; width: 9%; aspect-ratio: 1; border-radius: 3px; background: var(--moment); box-shadow: 0 0 14px var(--moment-glow); }
.sq-label { position: absolute; left: 0; bottom: calc(9% + 8px); font-size: 15px; font-weight: 700; color: var(--moment-deep); }
.durs { display: grid; gap: 22px; margin-block: auto; }
.dur { display: grid; grid-template-columns: 104px 1fr 64px; gap: 14px; align-items: center; font-size: 15px; }
.dur-name { color: var(--ink-2); }
.dur-val { text-align: right; font-weight: 600; }
.dur-track { position: relative; height: 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.dur-track i { position: absolute; inset: 0 auto 0 0; width: 0; min-width: 3px; border-radius: 10px; transition: width 1.4s var(--ease); }
.dur-ours { background: var(--moment); }
.dur-mllm { background: #86868b; }

/* ---------- devices ---------- */
.devices {
  display: grid;
  grid-template-columns: 1.6fr 0.75fr 1.2fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: end;
  margin-top: clamp(48px, 6vw, 72px);
}
.device { margin: 0; }
.device .dev-name { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--moment); }
.dev-frame { position: relative; overflow: hidden; background: #1c1c1e; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dev-frame video, .dev-frame img { width: 100%; height: 100%; object-fit: cover; }
.device.phone .dev-frame { border-radius: 30px; box-shadow: 0 0 0 7px #2c2c2e, 0 0 0 8px rgba(255, 255, 255, 0.1); margin: 8px; }
.device.fixed .dev-frame { border-radius: 12px; }
.device figcaption { padding-top: 18px; min-height: 7.2em; }
.device q { display: block; font-size: 17px; font-weight: 600; line-height: 1.32; letter-spacing: -0.018em; color: var(--night-ink); quotes: "\201C" "\201D"; }
.device .dev-meta { margin-top: 8px; font-size: 13px; color: #86868b; }
.device .dev-meta b { color: var(--moment); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid #2c2c2e; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2c2c2e; color: var(--moment); font-size: 13px; font-weight: 700; }
.step h3 { margin-top: 14px; font-size: 19px; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; color: var(--night-ink-2); font-size: 16px; }
.step p b { color: var(--night-ink); font-weight: 600; }

/* ---------- results chart ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 8px; border-radius: 4px; display: inline-block; }
.bench { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding-block: 22px; border-top: 1px solid #e8e8ed; }
.bench:first-of-type { margin-top: 30px; }
.bench h3 { font-size: 19px; letter-spacing: -0.02em; }
.bench .metric { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
.bar .fill-wrap { height: 10px; border-radius: 10px; background: transparent; }
.bar .fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: width 1.1s var(--ease);
}
.bar .val { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.bar.ours .val { color: var(--ink); font-weight: 700; }
.bar.na .val { color: var(--ink-3); font-weight: 400; }
.c-ours { background: var(--moment); box-shadow: 0 0 12px rgba(255, 179, 64, 0.35); }
.c-ds { background: #86868b; }
.c-mllm { background: #d2d2d7; }

/* ---------- long video ---------- */
.long { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.long .screen { aspect-ratio: 4 / 3; }
.markers { position: relative; height: 26px; margin-top: 6px; }
.marker {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  background: #424245;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.marker[aria-pressed="true"], .marker:hover { background: var(--moment); transform: scale(1.12); }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.qlist button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--night-ink-2);
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.qlist button:hover { background: rgba(255, 255, 255, 0.05); color: var(--night-ink); }
.qlist button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--night-ink); }
.qlist .n { font-weight: 700; color: var(--moment); font-size: 13px; }
.qlist .t { font-size: 13px; color: #86868b; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- try ---------- */
.try-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ---------- paper ---------- */
.paper-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.03em; }
.bibtex { position: relative; margin-top: 24px; }
.bibtex pre {
  margin: 0;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--mist);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}
.copy {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.foot { padding-block: 28px 40px; border-top: 1px solid #e8e8ed; margin-top: clamp(72px, 9vw, 112px); }

sup.cite { font-size: 0.62em; line-height: 0; margin-left: 1px; }
sup.cite a { color: inherit; text-decoration: none; opacity: 0.75; }
sup.cite a:hover { opacity: 1; text-decoration: underline; }
.refs { margin: 56px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.refs li { padding-left: 4px; scroll-margin-top: 72px; }
.refs li:target { color: var(--ink); }

/* ---------- talk dialog ---------- */
dialog.talk {
  width: min(1100px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
}
dialog.talk::backdrop { background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.talk video { width: 100%; }
dialog.talk .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(40, 40, 40, 0.8);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 62vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .long { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .specs, .steps { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; align-items: start; }
  .device.phone { max-width: 260px; }
  .device figcaption { min-height: 0; }
  .flow { grid-template-columns: 1fr; grid-template-rows: none; }
  .flow .node, .node.head, .node.out { grid-row: auto; grid-column: auto; }
  .flow .node:not(.head):not(.out)::after, .node.head::after { display: none; }
  .node.input { margin-top: 10px; }
  /* read in pipeline order on one column: video, encoder, query, unifier, head, moment */
  .flow > :nth-child(5) { order: 3; }
  .flow > :nth-child(6) { order: 4; }
  .flow > .head { order: 5; }
  .flow > .out { order: 6; }
  .node.head { padding-block: 22px; }
  .facts { grid-template-columns: 1fr; }
  .bench { grid-template-columns: 1fr; gap: 12px; }
  .unify-row { grid-template-columns: 1fr; gap: 6px; }
  .unify-arrow { margin-left: 0; }
}
@media (max-width: 700px) {
  .hud { position: static; display: flex; flex-direction: column; padding: 0; background: none; border-radius: 0; }
  .hud .timeline { order: -1; margin-top: 18px; }
  .hud .ask { margin-top: 18px; max-width: none; }
  .hud .answer { order: 2; margin: 14px 0 0; text-align: left; padding-inline: 4px; }
  /* Below the video the controls sit on the white page. */
  .hud .track { background: rgba(0, 0, 0, 0.09); }
  .hud .playhead { background: var(--ink); }
  .hud .tl-labels { color: var(--ink-3); }
  .hud .ask { background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hud .ask:focus-within { background: #fff; box-shadow: inset 0 0 0 1px var(--moment-deep); }
  .hud .ask input { color: var(--ink); }
  .hud .answer { color: var(--ink-2); }
  .hud .answer q { color: var(--ink); }
  .hud .answer .when, .hud .link-arrow { color: var(--moment-deep); }
}
@media (max-width: 560px) {
  .hero .chips { justify-content: flex-start; }
  .nav-links .hide-sm { display: none; }
  .screen { border-radius: 16px; }
  .ask { padding-left: 18px; }
  .answer { padding-inline: 4px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; max-width: 80vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .unify-text, .hit, .answer, .bar .fill, .dur-track i { transition: none; }
  .lane-dots i { animation: none; }
}
