/* Layout: a live 3D forecast as the opener (it follows the cursor), then one ~1120px column; running
   text holds at ~64ch while figures, the 3D explorer and video players use the full column.
   Violet = scene, green = hands: the paper's trajectory colors, used as meaning, never decoration. */
:root {
  --bg: #f4f4f7;
  --surface: #ffffff;
  --sunken: #ebebf1;
  --ink: #16171c;
  --ink-2: #474955;
  --ink-3: #767887;
  --rule: #d9d9e3;
  --scene: #8a00d4;        /* text-safe shade of the figures' #A600FF */
  --scene-soft: #efe2fb;
  --hand: #167f06;         /* text-safe shade of the figures' hand green */
  --hand-soft: #e3f4dc;
  --text-tok: #d9a93a;     /* instruction tokens (Fig. 2 saffron) */
  --vis-tok: #4ea6b4;      /* vision tokens (Fig. 2 teal) */
  --act-tok: #e0466a;      /* action chunk (Fig. 2 raspberry) */
  --frame: #a7a5c6;        /* the shared space-time frame (Fig. 2 lavender gray) */
  --ok: #1f8a3a;
  --fail: #c62f2f;
  --bar: #b7b8c6;
  --bar-soft: #e1e1ea;
  --stage: #ffffff;        /* 3D viewer ground */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --col: 1120px;
  --text: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111217; --surface: #191a21; --sunken: #20212a; --ink: #ececf2; --ink-2: #b6b7c4; --ink-3: #8b8c9a;
    --rule: #2d2e39; --scene: #c58bff; --scene-soft: #2c1d3d; --hand: #6ad655; --hand-soft: #1b2e18;
    --text-tok: #e6bd5c; --vis-tok: #6cc3d1; --act-tok: #ff6f8d; --frame: #5c5a7e;
    --ok: #4cc46a; --fail: #ff6b6b; --bar: #4a4c5a; --bar-soft: #2a2b35; --stage: #191a21; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111217; --surface: #191a21; --sunken: #20212a; --ink: #ececf2; --ink-2: #b6b7c4; --ink-3: #8b8c9a;
  --rule: #2d2e39; --scene: #c58bff; --scene-soft: #2c1d3d; --hand: #6ad655; --hand-soft: #1b2e18;
  --text-tok: #e6bd5c; --vis-tok: #6cc3d1; --act-tok: #ff6f8d; --frame: #5c5a7e;
  --ok: #4cc46a; --fail: #ff6b6b; --bar: #4a4c5a; --bar-soft: #2a2b35; --stage: #191a21; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--scene); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--scene); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--col); margin: 0 auto; padding-inline: var(--gutter); }
.prose { max-width: var(--text); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 650; line-height: 1.12; }
h3 { font-size: 1.14rem; font-weight: 650; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }   /* pretty: no short last lines, the paper's paragraph-end rule */
.eyebrow { font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.scene { color: var(--scene); font-weight: 600; }
.hand { color: var(--hand); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 52px; }
.brand { font: 800 1.05rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand b { color: var(--scene); font-weight: 800; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--stage); border-bottom: 1px solid var(--rule); }
.hero-stage { position: relative; height: clamp(440px, 74vh, 760px); }
.hero-stage .viewer { position: absolute; inset: 0; }
.hero-card { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.hero-card .wrap { position: relative; padding-block: clamp(24px, 5vh, 56px) 0; }
.hero-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: min(1060px, 100%); height: 290px; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 28% 34%, var(--stage) 55%, color-mix(in srgb, var(--stage) 0%, transparent) 100%);
}
.title-name { font: 800 clamp(2.4rem, 6.2vw, 5.4rem)/0.95 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.title-name .w { color: var(--scene); }
.title-sub { margin-top: 14px; font: 500 clamp(1.08rem, 2.1vw, 1.5rem)/1.25 var(--font-display); color: var(--ink-2); }
.hero-legend {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; padding-top: 28px;
  background: linear-gradient(to top, var(--stage) 55%, color-mix(in srgb, var(--stage) 0%, transparent));
}
.hero-legend .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; padding-block: 0 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 0.8rem/1.3 var(--font-mono); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch.s { background: #a600ff; } .swatch.h { background: #13c400; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #13c400; display: inline-block; }
.hero-meta { font: 400 0.8rem/1.4 var(--font-mono); color: var(--ink-3); }
.hero-meta b { color: var(--ink-2); font-weight: 500; }
.hero-tools { pointer-events: auto; display: flex; gap: 8px; }

.btn-icon {
  appearance: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  height: 34px; min-width: 34px; padding: 0 10px; border-radius: 8px; font: 500 0.82rem/1 var(--font-body);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.btn-icon:hover { border-color: var(--ink-3); }
.btn-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- credits ---------- */
.credits { padding-block: 40px 8px; }
.authors { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1.06rem; }
.authors .a { white-space: nowrap; color: var(--ink); }
.authors a { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: 1.5px; }
.authors a:hover { text-decoration-color: var(--scene); }
.authors sup, .affils sup { font-size: 0.7em; color: var(--ink-3); margin-left: 1px; }
.affils { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--ink-2); font-size: 0.95rem; }
.affils a { color: inherit; }
.note { margin-top: 6px; color: var(--ink-3); font-size: 0.85rem; }
.links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font: 500 0.92rem/1 var(--font-body);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn .soon { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }

.keys { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.key { padding: 22px 22px 22px 0; display: grid; gap: 6px; align-content: start; }
.key + .key { padding-left: 22px; border-left: 1px solid var(--rule); }
.key .big { font: 800 clamp(2.1rem, 4.4vw, 3rem)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.key .big small { font-size: 0.5em; font-weight: 650; margin-left: 2px; color: var(--ink-2); }
.key p { color: var(--ink-2); font-size: 0.95rem; max-width: 30ch; }

/* ---------- sections ---------- */
section.block { padding-block: clamp(56px, 9vw, 96px) 0; scroll-margin-top: 60px; }
.head { display: grid; gap: 10px; margin-bottom: 22px; }
.lede { color: var(--ink-2); font-size: 1.04rem; }
.stack { display: grid; gap: 16px; }
figure { margin: 0; }
figcaption, .caption { color: var(--ink-3); font-size: 0.86rem; line-height: 1.5; margin-top: 10px; max-width: 86ch; }
figcaption b, .caption b { color: var(--ink-2); font-weight: 600; }
.sub { margin-top: 52px; display: grid; gap: 14px; }
.sub-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.sub-h p { color: var(--ink-2); font-size: 0.95rem; }

details.abstract { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 14px; }
details.abstract summary { cursor: pointer; font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); list-style: none; display: flex; gap: 8px; align-items: center; }
details.abstract summary::before { content: "+"; font-size: 1rem; color: var(--ink-2); }
details.abstract[open] summary::before { content: "–"; }
details.abstract .prose { margin-top: 14px; display: grid; gap: 12px; color: var(--ink-2); font-size: 0.98rem; }

/* teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel.center { align-content: center; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-h h3 { font-size: 0.98rem; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.tiles img:nth-child(10n+6), .tiles img:nth-child(10n+7), .tiles img:nth-child(10n+8), .tiles img:nth-child(10n+9), .tiles img:nth-child(10n+10) { margin-bottom: 6px; }  /* a gap after each depth row */
.tiles img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: var(--sunken); }
.tiles-label { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: 500 0.78rem/1 var(--font-body); padding: 7px 11px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.forecast-img { border-radius: 6px; width: 100%; }

/* ---------- architecture: five stages, Surflo-style cards, slow packets on the connectors ---------- */
.pipe { display: grid; grid-template-columns: minmax(0, 1.25fr) 30px minmax(0, 1fr) 30px minmax(0, 0.9fr) 30px minmax(0, 1.25fr) 30px minmax(0, 1fr); align-items: stretch; position: relative; }
.stage { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 14px 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; }
.stage h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 6px; }
.stage .st-sub { color: var(--ink-2); font-size: 0.88rem; line-height: 1.4; }
.stage .art { display: grid; place-items: center; min-height: 150px; }
.stage .art svg { width: 100%; height: auto; display: block; overflow: visible; }
.stage.shared { background: color-mix(in srgb, var(--frame) 14%, var(--surface)); border-color: color-mix(in srgb, var(--frame) 55%, var(--rule)); }
.ice { color: var(--vis-tok); font-size: 0.9em; }
.pill { justify-self: start; font: italic 400 0.8rem/1.3 var(--font-body); color: var(--ink-2); background: var(--sunken); border-radius: 999px; padding: 5px 10px; }
.conn { position: relative; align-self: center; height: 2px; background: var(--rule); margin: 0 3px; }
.conn::after { content: ""; position: absolute; right: -3px; top: -4px; border-left: 6px solid var(--rule); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.conn i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); animation: hop 3.6s linear infinite; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes hop { 0% { left: -2px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.frame-note { grid-column: 3 / 8; margin-top: 8px; display: flex; align-items: center; gap: 8px; font: italic 400 0.82rem/1 var(--font-body); color: var(--ink-3); }
.frame-note::before, .frame-note::after { content: ""; flex: 1; height: 8px; border: 1.5px solid color-mix(in srgb, var(--frame) 70%, transparent); border-top: 0; }
.frame-note::before { border-right: 0; border-radius: 0 0 0 6px; } .frame-note::after { border-left: 0; border-radius: 0 0 6px 0; }
.tokgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 100%; max-width: 150px; }
.tokgrid b { aspect-ratio: 1; border-radius: 3px; background: var(--vis-tok); opacity: 0.75; animation: glow 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.tokgrid b.h { background: #13c400; opacity: 0.8; }
.tokgrid b.t { background: var(--text-tok); }
@keyframes glow { 0%, 100% { filter: none; } 50% { filter: brightness(1.25) saturate(1.2); } }
.toklegend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; color: var(--ink-2); }
.toklegend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: -1px; }
.attn line { stroke: var(--ink-3); stroke-width: 0.8; opacity: 0.22; }
.attn circle { fill: var(--vis-tok); }
.attn circle.t { fill: var(--text-tok); }
.attn circle.h { fill: #13c400; }
.art .tr-s { fill: none; stroke: #a600ff; stroke-width: 1.7; opacity: 0.85; stroke-linecap: round; }
.art .tr-h { fill: none; stroke: #13c400; stroke-width: 2.2; opacity: 0.95; stroke-linecap: round; }
.art .draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: draw 6s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: var(--len); } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ret { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 100%; }
.ret .ctx { display: grid; gap: 4px; }
.ret .ctx b { width: 28px; height: 24px; border-radius: 4px; display: grid; place-items: center; font: italic 500 0.74rem/1 var(--font-body); }
.ret .ctx b span { display: inline-block; white-space: nowrap; line-height: 1; }
.ret .ctx b sub { font-size: 0.72em; vertical-align: -0.25em; line-height: 0; font-style: italic; }
.ret .ctx b.dots { background: none; border-color: transparent; font-style: normal; }
.ret .ctx b.v { background: color-mix(in srgb, #13c400 22%, transparent); color: var(--hand); border: 1px solid color-mix(in srgb, #13c400 60%, transparent); }
.ret .ctx b.s { background: var(--sunken); color: var(--ink-2); border: 1px solid var(--rule); }
.ret .dec { display: grid; gap: 6px; justify-items: center; }
.ret .row { display: flex; gap: 4px; }
.ret .row b { width: 14px; height: 14px; border-radius: 3px; background: var(--act-tok); }
.ret .row.q b { opacity: 0.35; }
.ret .box2 { border: 1px solid var(--ink-3); background: var(--sunken); border-radius: 8px; padding: 10px 8px; font-size: 0.8rem; text-align: center; color: var(--ink); width: 100%; }
.ret .lbl { font-size: 0.78rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .conn i, .tokgrid b, .art .draw { animation: none; } .conn i { opacity: 0; } .art .draw { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .pipe { grid-template-columns: minmax(0, 1fr); }
  .conn { width: 2px; height: 26px; justify-self: center; margin: 3px 0; }
  .conn::after { right: -4px; top: auto; bottom: -3px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--rule); border-bottom: 0; }
  .conn i { left: -3px; animation-name: hopv; }
  @keyframes hopv { 0% { top: -2px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
  .frame-note { grid-column: 1; }
}
.three { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.three > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.three p { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.ex-stage { position: relative; min-height: 520px; background: var(--stage); border-right: 1px solid var(--rule); min-width: 0; }
.ex-stage .viewer { position: absolute; inset: 0 0 64px 0; cursor: grab; }
.ex-stage .viewer:active { cursor: grabbing; }
.ex-info { position: absolute; left: 14px; top: 12px; right: 14px; pointer-events: none; display: grid; gap: 4px; }
.ex-info .t { font: 650 1.05rem/1.2 var(--font-display); }
.ex-info .p { font-style: italic; color: var(--ink-2); font-size: 0.9rem; max-width: 60ch; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--surface); width: max-content; }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--rule)); }
.chip.fail { color: var(--fail); border-color: color-mix(in srgb, var(--fail) 40%, var(--rule)); }
.chip.gt, .chip.pred { color: var(--ink); border-color: var(--ink-3); }   /* neutral: violet/green mean scene/hands only */
.ex-ctrl { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-top: 1px solid var(--rule); background: var(--surface); }
.ex-ctrl input[type="range"] { flex: 1; min-width: 60px; accent-color: var(--scene); }
.tlabel { font: 500 0.8rem/1 var(--font-mono); color: var(--ink-2); min-width: 7.2ch; text-align: right; font-variant-numeric: tabular-nums; white-space: pre; }
.toggles { display: flex; gap: 6px; }
.tog { appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink-3); border-radius: 999px; padding: 6px 10px; font: 500 0.76rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tog[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-3); }
.tog i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.ex-side { display: grid; align-content: start; max-height: 584px; overflow-y: auto; }
.ex-group { padding: 14px 14px 6px; display: grid; gap: 8px; }
.ex-group + .ex-group { border-top: 1px solid var(--rule); }
.ex-group .gh { display: grid; gap: 3px; }
.ex-group .gh p { color: var(--ink-3); font-size: 0.8rem; line-height: 1.4; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 8px; }
.thumb { appearance: none; border: 1px solid var(--rule); background: var(--sunken); border-radius: 7px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: var(--ink-2); display: grid; }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stage); }
.thumb span { font: 500 0.74rem/1.25 var(--font-body); padding: 6px 7px; }
.thumb[aria-pressed="true"] { border-color: var(--scene); box-shadow: 0 0 0 1px var(--scene); color: var(--ink); }
.hint { font: 400 0.78rem/1.3 var(--font-mono); color: var(--ink-3); margin-top: 10px; }

/* ---------- charts ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px 12px; min-width: 0; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 82px; gap: 12px; align-items: center; }
.bar-row .lab { font-size: 0.88rem; color: var(--ink-2); text-align: right; }
.bar-row.me .lab { color: var(--ink); font-weight: 600; }
.track { position: relative; height: 18px; }
.track .grid { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--rule); }
.fill { position: absolute; left: 0; top: 2px; height: 14px; background: var(--bar); border-radius: 0 4px 4px 0; }
.bar-row.me .fill { background: var(--scene); }
.whisk { position: absolute; top: 8px; height: 2px; background: var(--ink-3); }
.whisk::before, .whisk::after { content: ""; position: absolute; top: -3px; width: 1.5px; height: 8px; background: var(--ink-3); }
.whisk::before { left: 0; } .whisk::after { right: 0; }
.bar-row .val { font: 500 0.88rem/1 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar-row.me .val { color: var(--ink); }
.bar-row .val small { color: var(--ink-3); font-size: 0.78em; }
.axis { display: grid; grid-template-columns: 110px minmax(0, 1fr) 82px; gap: 12px; }
.axis .ticks { position: relative; height: 16px; font: 400 0.72rem/1 var(--font-mono); color: var(--ink-3); }
.axis .ticks span { position: absolute; transform: translateX(-50%); }
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--bg); font: 500 0.78rem/1.35 var(--font-body); padding: 6px 9px; border-radius: 6px; max-width: 260px; }

.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.chart h3 { font-size: 0.95rem; }
.chart .sub-l { color: var(--ink-3); font-size: 0.8rem; margin-top: 2px; }
.chart svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.chart .gl { stroke: var(--rule); stroke-width: 1; }
.chart .ax { fill: var(--ink-3); font: 400 10.5px var(--font-mono); }
.chart .axl { fill: var(--ink-3); font: 400 10.5px var(--font-body); }
.chart .vl { fill: var(--ink-2); font: 500 10.5px var(--font-mono); }
.chart .vl.me { fill: var(--ink); font-weight: 600; }
.chart .b-base { fill: var(--bar); }
.chart .b-base-0 { fill: var(--bar-soft); stroke: var(--bar); stroke-width: 1; }
.chart .b-me { fill: var(--scene); }
.chart .b-me-0 { fill: var(--scene-soft); stroke: var(--scene); stroke-width: 1; }
.chart .err { stroke: var(--ink-3); stroke-width: 1.2; }
.chart .line { fill: none; stroke: var(--scene); stroke-width: 2; }
.chart .band { fill: var(--scene); opacity: 0.14; }
.chart .pt { fill: var(--scene); stroke: var(--surface); stroke-width: 2; }
.chart .pt.base { fill: var(--surface); stroke: var(--scene); }
.chart .hit { fill: transparent; cursor: default; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: var(--ink-2); margin-top: 6px; }
.chart-legend i { width: 11px; height: 11px; display: inline-block; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); }
th:first-child, td:first-child { text-align: left; }
thead th { font: 600 0.78rem/1.25 var(--font-body); color: var(--ink-2); vertical-align: bottom; background: var(--sunken); }
tbody tr:last-child td { border-bottom: 0; }
td small { color: var(--ink-3); font-size: 0.76em; margin-left: 2px; }
td.best { font-weight: 700; }
.me-col { background: var(--scene-soft); }
tr.avg td { font-weight: 600; border-top: 2px solid var(--rule); }
td.task { color: var(--ink-2); }

.ablate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ab { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 14px 10px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ab .r { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; padding: 5px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.ab .r b { font: 500 0.88rem/1.4 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab .r.ref { color: var(--ink); }
.ab .r.ref b { color: var(--scene); font-weight: 600; }

.real { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.real-setup img { border-radius: var(--radius); border: 1px solid var(--rule); width: 100%; }
.real-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rt { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; min-width: 0; }
.rt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rt .body { padding: 12px; display: grid; gap: 8px; }
.rt h3 { font-size: 0.95rem; }
.rt-sub { font-size: 0.84rem; color: var(--ink-2); margin-top: -4px; }
.srs { display: grid; gap: 6px; }
.sr { display: grid; grid-template-columns: 84px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--ink-2); }
.sr .t { height: 10px; background: var(--sunken); border-radius: 0 3px 3px 0; position: relative; }
.sr .t i { position: absolute; inset: 0 auto 0 0; background: var(--bar); border-radius: 0 3px 3px 0; }
.sr.me { color: var(--ink); font-weight: 600; }
.sr.me .t i { background: var(--scene); }
.sr .v { font: 500 0.8rem/1 var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- videos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { appearance: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); padding: 6px 11px; border-radius: 999px; font: 500 0.8rem/1 var(--font-body); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips .grp { font: 500 0.7rem/26px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 4px 0 6px; }
.vgrid { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 10px; }
.vcell { display: grid; gap: 6px; min-width: 0; }
.vcell .who { font-size: 0.86rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.vcell .who.me { color: var(--ink); font-weight: 600; }
.vcell video { width: 100%; border-radius: 6px; background: #000; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .2s; }
.vcell video.ok { outline-color: var(--ok); }
.vcell video.fail { outline-color: var(--fail); }
.vcell .ph { aspect-ratio: 5 / 3; border-radius: 6px; border: 1px dashed var(--rule); display: grid; place-items: center; color: var(--ink-3); font-size: 0.82rem; text-align: center; padding: 10px; }
.vbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.vmeta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--ink-2); font-size: 0.88rem; }
.single { max-width: 820px; }
.strip { display: grid; grid-template-columns: 96px repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; align-items: center; }
.strip .who { font-size: 0.86rem; color: var(--ink-2); }
.strip .who.me { color: var(--ink); font-weight: 600; }
.strip img { width: 100%; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; border-radius: 4px; background: var(--sunken); }
.strip img.ok { outline: 2.5px solid var(--ok); outline-offset: -2.5px; }
.strip img.fail { outline: 2.5px solid var(--fail); outline-offset: -2.5px; }
.strip .th { font: 500 0.72rem/1 var(--font-mono); color: var(--ink-3); text-align: center; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.compare > div { display: grid; gap: 8px; min-width: 0; }

/* cite */
.cite { position: relative; }
pre.bib { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font: 400 0.84rem/1.6 var(--font-mono); color: var(--ink-2); }
.cite .btn-icon { position: absolute; top: 10px; right: 10px; }
footer { margin-top: 80px; border-top: 1px solid var(--rule); padding-block: 24px 40px; color: var(--ink-3); font-size: 0.82rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 900px) {
  .teaser, .compare, .real { grid-template-columns: minmax(0, 1fr); }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-stage { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 440px; }
  .ex-side { max-height: none; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .ablate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three, .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .keys { grid-template-columns: minmax(0, 1fr); }
  .key, .key + .key { padding: 16px 0; border-left: 0; }
  .key + .key { border-top: 1px solid var(--rule); }
  .real-tasks, .ablate { grid-template-columns: minmax(0, 1fr); }
  .bar-row, .axis { grid-template-columns: 78px minmax(0, 1fr) 70px; gap: 8px; }
  .strip { grid-template-columns: 64px repeat(var(--n, 3), minmax(0, 1fr)); gap: 4px; }
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .toggles .tog span { display: none; }
  .nav { display: none; }
}

/* ---------- overview streams: the training data passing by ---------- */
.streams { width: 100vw; margin-left: calc(50% - 50vw); display: grid; gap: 10px; margin-top: 8px; }
.stream-l { max-width: var(--col); width: 100%; margin: 6px auto 0; padding-inline: var(--gutter); font: 500 0.76rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.stream-l b { font: 800 1.15rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--ink); text-transform: none; margin-right: 4px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track-m { display: flex; gap: 10px; width: max-content; animation: slide var(--dur, 70s) linear infinite; }
.marquee.rev .track-m { animation-direction: reverse; }
.marquee:hover .track-m { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
.mq-item { width: clamp(150px, 16vw, 220px); display: grid; gap: 3px; flex: none; }
.mq-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: var(--sunken); }
@media (prefers-reduced-motion: reduce) { .marquee .track-m { animation: none; } .marquee { overflow-x: auto; } }

.rv-grid { display: grid; grid-template-columns: 92px repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: center; }
.rv-h { font-size: 0.86rem; color: var(--ink-2); padding-bottom: 2px; }
.rv-h.me { color: var(--ink); font-weight: 600; }
.rv-t { font-size: 0.84rem; color: var(--ink-2); display: grid; gap: 2px; }
.rv-t small { font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.rv-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: var(--sunken); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .2s; }
.rv-grid video.ok { outline-color: var(--ok); }
.rv-grid video.fail { outline-color: var(--fail); }
@media (max-width: 640px) { .rv-grid { grid-template-columns: 54px repeat(3, minmax(0, 1fr)); gap: 4px; } .rv-t small { display: none; } }
@media (max-width: 900px) { .stage .art svg.attn { max-width: 170px; } .stage .art { min-height: 0; } .stage .art > svg:not(.attn) { max-width: 360px; } }
@media (max-width: 640px) { .ex-ctrl .toggles .tog { display: none; } .ex-ctrl { gap: 8px; } }
@media (min-width: 760px) { .title-sub { white-space: nowrap; } }   /* one line wherever it fits */

.art.tok { display: grid; gap: 8px; justify-items: center; }
.art.tok svg { max-width: 230px; }
.art .pe { stroke: var(--vis-tok); stroke-width: 1; opacity: 0.55; }
.art .pe.ph { stroke: var(--vis-tok); opacity: 0.95; stroke-width: 1.3; }
.tokstrip { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 230px; }
.tokstrip b { width: 11px; height: 11px; border-radius: 2px; background: var(--vis-tok); opacity: 0.8; position: relative; animation: glow 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.tokstrip b.mix::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #13c400; }
.tokstrip b.t { background: var(--text-tok); }
.tokstrip i { width: 6px; }
.art .pf { fill: var(--vis-tok); opacity: 0.06; }
.art .pf.ph { opacity: 0.14; }

/* architecture v3: one SVG in the paper's layout */
.pipe.fig { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 12px 10px; overflow-x: auto; }
.pipe.fig svg { display: block; width: 100%; min-width: 900px; height: auto; font-family: var(--font-body); }
.pipe.fig .bx { fill: var(--sunken); stroke: var(--ink-3); stroke-width: 1; }
.pipe.fig .bx.tf { fill: color-mix(in srgb, var(--sunken) 60%, transparent); }
.pipe.fig .lb { fill: var(--ink); font-size: 14px; font-weight: 500; }
.pipe.fig .sl { fill: var(--ink-2); font-size: 13px; }
.pipe.fig .frl { paint-order: stroke; }
.pipe.fig .it { fill: var(--ink-2); font-size: 12.5px; font-style: italic; }
.pipe.fig .pl { fill: var(--sunken); }
.pipe.fig .tt-l { fill: var(--ink); font: 650 15px var(--font-display); }
.pipe.fig .ice-s { fill: var(--vis-tok); font-size: 14px; }
.pipe.fig .fr { fill: var(--frame); opacity: 0.16; }
.pipe.fig .frl { fill: var(--ink-3); font-size: 12px; font-style: italic; }
.pipe.fig .wr { fill: none; stroke: var(--ink-3); stroke-width: 1.3; }
.pipe.fig .ah { fill: var(--ink-3); }
.pipe.fig .dt { fill: var(--ink-3); }
.pipe.fig .tv { fill: var(--vis-tok); opacity: 0.85; }
.pipe.fig .tt { fill: var(--text-tok); opacity: 0.9; }
.pipe.fig .at { stroke: var(--ink-3); stroke-width: 0.6; opacity: 0.16; }
.pipe.fig .su { fill: var(--scene); font-style: italic; font-size: 11px; }
.pipe.fig .sv { fill: var(--hand); font-style: italic; font-size: 11px; }
.pipe.fig .su2 { fill: var(--scene); font-weight: 600; } .pipe.fig .sv2 { fill: var(--hand); font-weight: 600; }
.pipe.fig .dv { stroke: var(--ink-3); stroke-dasharray: 4 4; opacity: 0.5; }
.pipe.fig .cv { fill: color-mix(in srgb, #13c400 20%, transparent); stroke: color-mix(in srgb, #13c400 65%, transparent); }
.pipe.fig .cs { fill: var(--sunken); stroke: var(--ink-3); }
.pipe.fig .cd { fill: none; }
.pipe.fig .cl { fill: var(--ink); font-size: 12.5px; font-style: italic; }
.pipe.fig .ta { fill: var(--act-tok); } .pipe.fig .tq { fill: var(--act-tok); opacity: 0.35; }
.pipe.fig .pkt-s { fill: #a600ff; } .pipe.fig .pkt-h { fill: #13c400; } .pipe.fig .pkt-t { fill: var(--text-tok); }
.pipe.fig .pkt-v { fill: var(--vis-tok); } .pipe.fig .pkt-a { fill: var(--act-tok); }
.pipe.fig .pf { fill: var(--vis-tok); opacity: 0.07; }
.pipe.fig .pf.ph { opacity: 0.16; }
.pipe.fig .pe { stroke: var(--vis-tok); stroke-width: 1; opacity: 0.55; fill: none; }
.pipe.fig .pe.ph { opacity: 0.95; stroke-width: 1.3; }
.pipe.fig .tr-s { fill: none; stroke: #a600ff; stroke-width: 2.4; opacity: 0.9; stroke-linecap: round; }
.pipe.fig .tr-h { fill: none; stroke: #13c400; stroke-width: 3; stroke-linecap: round; }
.pipe.fig .draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: draw 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pipe.fig .draw { animation: none; stroke-dashoffset: 0; } }
.pipe.fig .fcf { fill: none; stroke: var(--rule); }
.pipe.fig .cl { font-size: 14px; }

/* architecture vignettes: a backdrop and point outlines per theme, so the scene's real colors (a black
   microwave, a white table) read in both */
.pipe.fig { --bd: #c3ccdb; --pt-edge: rgba(20, 24, 40, 0.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pipe.fig { --bd: #2a2d3a; --pt-edge: rgba(235, 238, 248, 0.55); } }
:root[data-theme="dark"] .pipe.fig { --bd: #2a2d3a; --pt-edge: rgba(235, 238, 248, 0.55); }
.pipe.fig .bd { fill: var(--bd); }
.pipe.fig .pt3 circle { stroke: var(--pt-edge); stroke-width: 0.5; }
.pipe.fig .lb { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
.pipe.fig .sl, .pipe.fig .it, .pipe.fig .cl, .pipe.fig .frl { font-family: var(--font-body); }
.pipe.fig .vx { stroke: rgba(0, 0, 0, 0.18); stroke-width: 0.35; stroke-linejoin: round; }
.pipe.fig .pe { stroke: var(--vis-tok); stroke-width: 1; opacity: 0.5; }
.pipe.fig .pe.ph { stroke-width: 1.6; opacity: 1; }
/* sphere-shaded points: a faint light rim in dark mode only, so the black microwave still reads */
.pipe.fig { --sph-edge: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pipe.fig { --sph-edge: rgba(235, 238, 248, 0.5); } }
:root[data-theme="dark"] .pipe.fig { --sph-edge: rgba(235, 238, 248, 0.5); }
.pipe.fig circle[fill="url(#sph)"] { stroke: var(--sph-edge); stroke-width: 0.45; }

.title-expand { font: 500 clamp(0.8rem, 1.3vw, 0.95rem)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px 4px; }
.title-expand b { color: var(--ink); font-weight: 600; }

/* result animations: keyframes only run once .play is set, so the page at rest shows the finished charts */
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
#bars.play .fill, #real-tasks.play .sr .t i { transform-origin: left center; animation: grow-x 1.1s cubic-bezier(.2,.7,.2,1) both; }
#bars.play .bar-row:nth-child(3) .fill { animation-delay: .06s; } #bars.play .bar-row:nth-child(4) .fill { animation-delay: .12s; }
#bars.play .bar-row:nth-child(5) .fill { animation-delay: .18s; } #bars.play .bar-row:nth-child(6) .fill { animation-delay: .24s; }
#bars.play .bar-row:nth-child(7) .fill { animation-delay: .30s; }
#bars.play .whisk { animation: fade-in .4s ease-out 1s both; }
#ch-gain.play rect.b-base, #ch-gain.play rect.b-base-0, #ch-gain.play rect.b-me, #ch-gain.play rect.b-me-0 { transform-box: fill-box; transform-origin: center bottom; animation: grow-y 1s cubic-bezier(.2,.7,.2,1) both; }
#ch-gain.play rect.b-me { animation-delay: .25s; }
#ch-gain.play .err, #ch-gain.play .vl { animation: fade-in .4s ease-out .9s both; }
.chart .line { stroke-dasharray: 1; stroke-dashoffset: 0; }
#ch-data.play .line, #ch-model.play .line { animation: draw-line 1.4s ease-in-out both; }
#ch-data.play .band, #ch-model.play .band { animation: fade-in .6s ease-out 1.1s both; }
#ch-data.play .pt, #ch-model.play .pt { transform-box: fill-box; transform-origin: center; animation: pop .35s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.25s + var(--i, 0) * .32s); }
#ch-data.play .vl, #ch-model.play .vl { animation: fade-in .4s ease-out 1.3s both; }
@media (prefers-reduced-motion: reduce) { .play * { animation: none !important; } }

.rv-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rv-dots { display: flex; gap: 8px; }
.rv-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--rule); cursor: pointer; }
.rv-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.15); }
sub { line-height: 0; }   /* subscripts (π0.5, sₜ) never push a line taller than its neighbours */

details.abstract .abs-text { margin-top: 14px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; text-align: justify; hyphens: auto; }
/* credits centered (Surflo-style); authors in even rows: 4 + 4 on desktop, 2 per row on phones */
.credits { text-align: center; }
.authors { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; gap: 10px 34px; font-size: 1.14rem; }
.affils, .links { justify-content: center; }
.keys { text-align: left; }
@media (max-width: 760px) { .authors { grid-template-columns: repeat(2, max-content); gap: 8px 22px; font-size: 1.04rem; } }
.pipe.fig .lb.big { font-size: 19px; font-weight: 650; paint-order: stroke; stroke: color-mix(in srgb, var(--sunken) 60%, var(--surface)); stroke-width: 7px; stroke-linejoin: round; }
.pipe.fig .tt-l { font: 700 19px var(--font-display); letter-spacing: -0.01em; }
.vcell .who { height: 1.5em; align-items: flex-end; line-height: 1; }
.pipe.fig .tq.in { fill: var(--act-tok); opacity: 0.45; }
/* DexJoCo frames: a time chip on each panel */
.fr { position: relative; }
.fr .tl { position: absolute; left: 7px; top: 7px; font: 500 0.72rem/1 var(--font-mono); color: #fff; background: rgba(16, 18, 26, 0.62); padding: 4px 7px; border-radius: 999px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fr .tl sub { font-size: 0.8em; }
/* real robot: the platform photo spans the height of the three task cards */
.real { align-items: stretch; }
.real-setup { display: flex; }
.real-setup img { height: 100%; width: 100%; object-fit: cover; background: #000; }
.vcell .ph { aspect-ratio: 5 / 3; border-radius: 6px; border: 1px dashed var(--rule); display: grid; place-items: center; color: var(--ink-3); font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--sunken); }
#dj-grid video { aspect-ratio: 5 / 3; object-fit: cover; }
sub { vertical-align: baseline; position: relative; top: 0.3em; font-size: 0.75em; }

/* text spans the full column, like the figures */
.prose { max-width: none; }
figcaption, .caption { max-width: none; }
.vbar .chips { justify-content: flex-end; }
.vbar .chips { margin-left: auto; }
#sim-videos .vbar .chips { gap: 5px; }
#sim-videos .vbar .chips button { font-size: 0.76rem; padding: 5px 9px; }
.real-setup img { object-fit: contain; }

/* key messages between the credits and the first section (Surflo-style) */
.tldr { margin-top: 56px; display: grid; gap: 26px; }
.tldr-goal { text-align: center; font: 500 clamp(1.45rem, 3vw, 2.15rem)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.tldr-goal .scene, .tldr-goal .hand { font-weight: 650; }
.tldr-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.tl-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 14px 16px; display: grid; gap: 8px; align-content: start; }
.tl-card h3 { font-size: 1rem; line-height: 1.25; }
.tl-card p { color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; }
.tl-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--scene-soft); color: var(--scene); }
.tl-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .tldr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tldr-goal br { display: none; } }
@media (max-width: 520px) { .tldr-cards { grid-template-columns: minmax(0, 1fr); } }

.cite-ref { font-size: 0.82em; text-decoration: none; color: var(--scene); }
.cite-ref:hover { text-decoration: underline; }
ol.refs { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.88rem; line-height: 1.5; }
ol.refs li:target { background: var(--scene-soft); border-radius: 4px; }
#references { padding-block: 56px 0; }
.chart .axl.xt { fill: var(--ink-2); font-size: 11.5px; font-weight: 500; }

/* explorer caption: a solid card so the instruction reads over the point cloud */
.ex-info { right: auto; max-width: min(560px, calc(100% - 28px)); background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ex-info .p { color: var(--ink); font-style: italic; }

/* authors: one fixed gap between every pair of names, a break after the fourth (rows of 4 + 4) */
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; grid-template-columns: none; }
.authors .br { flex-basis: 100%; height: 0; }
@media (max-width: 760px) { .authors .br { display: none; } .authors { gap: 8px 22px; } }
