/* Trajectory Forcing · project page
   Editorial direction: warm paper, serif display type, a numbered section rail,
   and two accents taken from the paper's own figures (slate = history, orange = current / ours). */

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --plate: #ffffff;
  --ink: #16191f;
  --ink-2: #454b57;
  --ink-3: #6a6f7b;
  --rule: #e3e0d8;
  --rule-strong: #cdc8bd;
  --slate: #46527a;
  --accent: #b3541f;
  --accent-tint: #f6ece3;
  --night: #111318;
  --night-2: #181b21;
  --night-line: #2a2e37;
  --night-ink: #ecebe6;
  --night-ink-2: #b4b8c1;
  --night-ink-3: #8d93a0;
  --night-accent: #e8915a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 40px;
  --rail: 156px;
  --rail-gap: 56px;
  --topbar: 56px;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--topbar) + 24px); }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, video { display: block; width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button, input, summary { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: progress; opacity: .6; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
sup { font-size: .62em; line-height: 0; position: relative; vertical-align: super; margin-left: 1px; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 60; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* Small mono labels: venue, section numbers, figure tags */
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}
.label .num { color: var(--accent); margin-right: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 6px;
  background: transparent; color: var(--ink);
  font-size: 14.5px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: #f0eee8; border-color: #b9b3a6; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #2b303b; border-color: #2b303b; }
.resource-code:disabled { cursor: default; opacity: 1; }
.btn-small { height: 34px; padding: 0 13px; font-size: 13.5px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 246, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: var(--topbar); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.brand-mark i { display: block; width: 4px; border-radius: 1px; background: var(--slate); }
.brand-mark i:nth-child(1) { height: 6px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 10px; opacity: .8; }
.brand-mark i:nth-child(3) { height: 14px; background: var(--accent); }
.topnav { display: flex; gap: 24px; margin-left: auto; }
.topnav a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--ink); }
.topnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.topbar-paper { font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 5px 12px; border: 1px solid var(--ink); border-radius: 6px; white-space: nowrap; }
.topbar-paper:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero: one selected film ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  grid-template-areas: "heading film" "byline film";
  gap: 0 56px;
  align-items: center;
  padding: 64px 0 76px;
}
.hero-heading { grid-area: heading; align-self: end; }
.hero-byline { grid-area: byline; align-self: start; }
.venue { margin-bottom: 18px; color: var(--accent); }
.title-main {
  display: block;
  font-family: var(--serif);
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.028em;
}
.title-sub {
  display: block;
  margin-top: 18px;
  max-width: 21em;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(21px, 1.95vw, 25px);
  line-height: 1.32;
  color: var(--ink-2);
}
.authors { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15.5px; max-width: 34em; }
.authors li { white-space: nowrap; }
.authors sup, .affiliations sup { color: var(--slate); font-weight: 600; }
.affiliations { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.affiliations sup { margin-right: 4px; }
.contribution { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.resources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-idea-link { display: inline-block; margin-top: 20px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.hero-idea-link span { display: inline-block; margin-left: 10px; color: var(--accent); }
.hero-idea-link:hover { color: var(--accent); }
.hero-film { grid-area: film; min-width: 0; }
.film-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.film-heading .label { font-size: 10.5px; letter-spacing: .08em; }
#hero-scene-name { font-family: var(--serif); font-size: 16px; color: var(--ink-2); }
.film-frame { overflow: hidden; position: relative; background: #111318; border-radius: 5px; box-shadow: 0 18px 44px -32px rgba(22, 25, 31, .5); }
#hero-video { aspect-ratio: 832 / 480; object-fit: contain; }
.film-progress { height: 2px; background: #37383b; }
#hero-progress { display: block; width: 0; height: 100%; background: var(--night-accent); }
.film-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.hero-play { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 550; white-space: nowrap; }
.hero-play:hover { background: #303541; border-color: #303541; }
.hero-icon-pause, .hero-play[data-state="playing"] .hero-icon-play { display: none; }
.hero-play[data-state="playing"] .hero-icon-pause { display: block; }
.film-speed { font-size: 12px; color: var(--ink-3); }
#hero-time { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.hero-scenes button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-3); text-align: left; font-size: 12px; line-height: 1.3; }
.hero-scenes img { width: 52px; height: 36px; flex: none; object-fit: cover; border-radius: 3px; opacity: .65; }
.hero-scenes button:hover, .hero-scenes button[aria-pressed="true"] { color: var(--ink); }
.hero-scenes button:hover img, .hero-scenes button[aria-pressed="true"] img { opacity: 1; }
.hero-scenes button[aria-pressed="true"] { border-bottom-color: var(--accent); }
.hero-video-status { font-size: 12px; line-height: 1.5; color: var(--accent); margin-top: 10px; }
.hero-video-status:empty { display: none; }
.film-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.film-caption a { color: var(--ink-2); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.film-caption a:hover { color: var(--accent); }

/* ---------- Section frame with rail ---------- */
.section {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--rail-gap);
  padding: 72px 0 80px;
  border-top: 1px solid var(--rule);
}
.rail .label { position: sticky; top: calc(var(--topbar) + 28px); padding-top: 9px; }
.body { min-width: 0; }
.section h2, .screening h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -.012em;
  max-width: 26ch;
  margin-bottom: 18px;
  text-wrap: balance;
}
.intro { max-width: 62ch; color: var(--ink-2); font-size: 17px; margin-bottom: 36px; text-wrap: pretty; }

/* Figures are presented as white plates on the paper background */
.zoom {
  position: relative;
  display: block;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(10px, 2vw, 24px);
  cursor: zoom-in;
  transition: border-color .15s, box-shadow .15s;
}
.zoom::after {
  content: "";
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(22, 25, 31, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.5 3.5h5v5M8.5 16.5h-5v-5M16.5 3.5l-5.5 5.5M3.5 16.5 9 11' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: .0;
  transition: opacity .15s;
}
.zoom:hover { border-color: var(--rule-strong); box-shadow: 0 10px 30px -22px rgba(22, 25, 31, .5); }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: .85; } }
.figure figcaption { margin-top: 14px; max-width: 76ch; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.figure figcaption .label { margin-right: 10px; color: var(--ink-2); }

/* ---------- 01 Idea: the generation process as context ---------- */
/* One conceptual figure: chunks as denoising trajectories and the shaded context of the current
   chunk's denoising update, with a single Play control. Animated values are written by one JS
   clock, so the SVG uses no CSS transitions. */
.idea-lede { max-width: 56ch; margin-bottom: 32px; font-family: var(--serif); font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.idea-evidence { max-width: 72ch; margin-bottom: 34px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.idea-evidence a { color: var(--ink-2); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; white-space: nowrap; }
.idea-evidence a:hover { color: var(--accent); }

.trajv { display: grid; grid-template-columns: minmax(0, 560px) minmax(200px, 290px); gap: 22px 48px; align-items: start; }
.trajv-figure { margin: 0; min-width: 0; }
.trajv-plate { background: var(--plate); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 14px 8px; }
.trajv-caption { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.trajv-caption .label { margin-right: 10px; color: var(--accent); }
.trajv-side { min-width: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.trajv-side p + p { margin-top: 10px; }
.trajv-play {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 15px; margin-bottom: 16px;
  border: 1px solid var(--rule-strong); border-radius: 6px;
  background: transparent; color: var(--ink);
  font-size: 13.5px; font-weight: 550; white-space: nowrap;
}
.trajv-play:hover { background: #f0eee8; }
.trajv-play[hidden] { display: none; }
.trajv-play .i-pause, .trajv-play[data-state="playing"] .i-play { display: none; }
.trajv-play[data-state="playing"] .i-pause { display: block; }

/* Paper figures follow their explanations, each at its natural aspect ratio. */
.idea-origin { margin: 0 0 38px; }
.idea-origin .zoom, .selection-figure .zoom { padding: 0; border: 0; border-radius: 0; background: transparent; }
.idea-origin .zoom:hover, .selection-figure .zoom:hover { box-shadow: none; }
.idea-origin figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.55; }
.selection-study, .sl-study { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--rule-strong); }
.study-head { margin-bottom: 23px; }
.study-head > .label { margin-bottom: 8px; font-size: 10px; color: var(--accent); }
.study-head h3 { font-family: var(--serif); font-size: 27px; line-height: 1.2; letter-spacing: -.012em; text-wrap: balance; }
.study-head > p:last-child:not(.label) { max-width: 74ch; margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.selection-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.selection-figure { width: 100%; max-width: 220px; }
.selection-figure figcaption { margin-top: 12px; font-size: 12px; line-height: 1.6; }
.selection-copy { min-width: 0; }
.selection-steps { margin: 0; }
.selection-steps > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.selection-steps > div:first-child { padding-top: 0; }
.selection-steps dt { padding-top: 3px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.selection-steps dd { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.selection-rule { margin-top: 18px; }
.selection-rule summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; list-style: none; width: fit-content; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.selection-rule summary::-webkit-details-marker { display: none; }
.selection-rule summary::before { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 16px; }
.selection-rule[open] summary::before { content: "−"; }
.selection-rule summary span { font-size: 11.5px; color: var(--ink-3); }
.selection-rule-body { padding-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.selection-rule-body p + p { margin-top: 12px; }
.selection-equation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.selection-equation sub { font-size: .65em; }
.math-fraction { display: inline-grid; text-align: center; line-height: 1.3; vertical-align: middle; }
.math-fraction > span { padding: 2px 6px; white-space: nowrap; }
.math-fraction > span:first-child { border-bottom: 1px solid currentColor; }
.selection-evidence { margin-top: 30px; }
.sl-study .study-head { margin-bottom: 12px; }
.results-guide { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 12px 24px; margin: -8px 0 28px; padding: 17px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.results-guide > .label { padding-top: 3px; font-size: 10px; }
.results-guide ul { margin: 0; padding: 0; list-style: none; }
.results-guide li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 5px 16px; font-size: 12.5px; line-height: 1.65; }
.results-guide li + li { margin-top: 7px; }
.results-guide a { text-decoration-color: var(--rule-strong); text-underline-offset: 3px; color: var(--ink-2); }
.results-guide a:hover { color: var(--accent); }
.results-guide li span { color: var(--ink-3); }

/* Schematic */
.tg-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tg-svg text { font-family: var(--sans); font-size: 13.5px; fill: var(--ink-2); }
.tg-svg .tg-m { font-family: var(--serif); font-style: italic; }
.tg-svg .tg-sub { font-family: var(--serif); font-style: normal; font-size: 10.5px; }
.tg-svg .tg-head { font-family: var(--serif); font-size: 18px; fill: var(--ink); text-anchor: middle; }
.tg-svg .tg-head .tg-sub { font-size: 12px; }
.tg-svg .tg-head.is-current { fill: var(--accent); }
.tg-svg .tg-quiet { fill: var(--ink-3); }
.tg-svg .tg-curlab { font-family: var(--serif); font-size: 16px; fill: var(--accent); font-weight: 600; }
.tg-region { fill: #edf0f6; stroke: #cdd3e0; stroke-width: 1; }
.tg-path { fill: none; stroke: url(#tg-ramp); stroke-width: 2.2; stroke-linecap: round; }
.tg-path.is-current { stroke: var(--accent); stroke-dasharray: 1; }
.tg-guide { fill: none; stroke: #dcd7cc; stroke-width: 1.2; stroke-dasharray: 2 4; }
.tg-node { stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
/* Points darken from noise (top) to the final output (bottom). */
.tg-node.lv0 { fill: #fff; stroke: #97a0bb; }
.tg-node.lv1 { fill: #d7dce8; stroke: #7d88a8; }
.tg-node.lv2 { fill: #aab3ca; stroke: #66729a; }
.tg-node.lv3 { fill: #7984a6; stroke: var(--slate); }
.tg-node.lv4 { fill: #2f3a5c; stroke: #2f3a5c; }
.tg-node.is-noise { fill: #fff; stroke: var(--accent); }
.tg-node.is-own { fill: #f0cdb2; stroke: var(--accent); }
.tg-node.is-current { fill: var(--accent); stroke: var(--accent); }
.tg-node.is-slot { fill: #fff; stroke: #d3cec3; stroke-dasharray: 2 2.5; }
.tg-ring { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.tg-axis { stroke: #b9b5ac; stroke-width: 1.2; }
.tg-axisfill { fill: none; stroke: #b9b5ac; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tg-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.tg-headfill { fill: var(--ink-2); }
/* end schematic */

/* ---------- 04 Training ---------- */
.stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  grid-template-rows: repeat(5, auto);
  align-items: start;
}
.stage { grid-column: 1; grid-row: 1 / span 5; min-width: 0; }
.stage-rl { grid-column: 3; }
@supports (grid-template-rows: subgrid) {
  .stage { display: grid; grid-template-rows: subgrid; }
  .stage-rows { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
}
.stage-head { border-top: 2px solid var(--ink); padding-top: 14px; padding-bottom: 18px; }
.stage-head .label { color: var(--accent); }
.stage h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin-top: 6px; }
.stage-rows { margin: 0; }
.stage-rows div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule); }
.stage-rows div:last-child { border-bottom: 1px solid var(--rule); }
.stage-rows dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.stage-rows dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.handoff { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 14px; }
.handoff-text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); order: -1; }
.handoff-line { position: relative; display: block; width: 100%; height: 1px; background: var(--ink-3); }
.handoff-line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--ink-3); border-right: 0; }

.algo { margin-top: 18px; }
.algo summary {
  display: inline-flex; align-items: center; gap: 10px;
  list-style: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 4px 0;
}
.algo summary::-webkit-details-marker { display: none; }
.algo summary::before {
  content: "+"; display: grid; place-items: center;
  width: 20px; height: 20px; border: 1px solid var(--rule-strong); border-radius: 4px;
  font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-2);
}
.algo[open] summary::before { content: "−"; }
.algo summary span { font-weight: 400; color: var(--ink-3); }
.algo summary:hover span { color: var(--ink-2); }
.algo .zoom { margin-top: 12px; padding: 12px; }

/* ---------- Evidence and detailed results ---------- */
.tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); vertical-align: 2px; font-weight: 500; }
.ablation-evidence { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 22px 38px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--rule-strong); }
.ablation-copy .label { font-size: 10px; color: var(--accent); }
.ablation-copy h3 { margin-top: 9px; font-family: var(--serif); font-size: 25px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.ablation-copy > p:last-child { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.evidence-metric { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; font-size: 12px; color: var(--ink-2); }
.evidence-metric span { color: var(--ink-3); }
.drift-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink); }
.drift-values div { padding: 14px 12px 17px; border-left: 1px solid var(--rule); }
.drift-values div:first-child { padding-left: 0; border-left: 0; }
.drift-values dt { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.drift-values dd { margin: 10px 0 0; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.drift-values .ours { background: var(--accent-tint); }
.drift-values .ours dt { color: var(--ink); }
.drift-values .ours dd { color: var(--accent); }
.data-disclosure { grid-column: 1 / -1; }
.data-disclosure summary { display: flex; align-items: center; gap: 10px; width: fit-content; list-style: none; padding: 3px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.data-disclosure summary::-webkit-details-marker { display: none; }
.data-disclosure summary::before { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 16px; }
.data-disclosure[open] summary::before { content: "−"; }
.data-disclosure summary:hover { color: var(--accent); }
.data-disclosure .benchmark-caption { margin-top: 16px; }
.protocol-note { max-width: 76ch; margin: -12px 0 32px; padding-left: 15px; border-left: 2px solid var(--rule-strong); font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.benchmark + .benchmark { margin-top: 44px; }
.benchmark-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 10px; }
.benchmark-head h3 { font-family: var(--serif); font-size: 27px; line-height: 1.2; letter-spacing: -.012em; }
.benchmark-head .label { font-size: 10px; letter-spacing: .08em; }
.benchmark-caption { max-width: 85ch; font-size: 13px; line-height: 1.65; color: var(--ink-3); margin-bottom: 18px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.table-scroll:focus-visible { outline-offset: 5px; }
.benchmark-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums lining-nums; }
.benchmark-5s { min-width: 730px; }
.benchmark-30s { min-width: 850px; }
.ablation-table { min-width: 520px; }
.benchmark-table th, .benchmark-table td { padding: 17px 12px; text-align: right; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.benchmark-table thead th { padding-top: 8px; padding-bottom: 12px; font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--ink-3); vertical-align: bottom; border-bottom-color: var(--ink); }
.benchmark-table th:first-child { text-align: left; padding-left: 0; min-width: 184px; }
.benchmark-table th:last-child, .benchmark-table td:last-child { padding-right: 12px; }
.benchmark-table tbody th { font-size: 14px; font-weight: 450; line-height: 1.35; color: var(--ink-2); }
.benchmark-table tbody td { font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--ink-2); }
.benchmark-table tbody td:nth-child(2) { font-size: 24px; }
.benchmark-table strong { color: var(--ink); font-weight: 700; }
.benchmark-table tbody tr.ours th, .benchmark-table tbody tr.ours td { background: var(--accent-tint); border-bottom-color: var(--rule-strong); }
.benchmark-table tbody tr.ours th { color: var(--ink); }
.benchmark-table .tag { display: table; margin: 5px 0 0; padding: 0 4px; font-size: 8px; }
.benchmark-table .speed-column { border-left: 1px solid var(--rule); }
.table-unit { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-3); }
.table-note { margin-top: 12px; max-width: 85ch; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }
.table-note + .table-note { margin-top: 7px; }
.table-note a { text-decoration-color: var(--rule-strong); text-underline-offset: 3px; color: var(--ink-2); }

/* compact setup row */
.setup { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 32px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); }
.setup > .label { padding-top: 2px; }
.setup-specs { grid-column: 2; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 44px; margin: 0; }
.setup-specs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.setup-specs dd { margin: 4px 0 0; font-size: 16px; color: var(--ink); white-space: nowrap; }
.setup-note { grid-column: 2; margin-top: 12px; max-width: 72ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- 03 Videos (screening room) ---------- */
.screening { background: var(--night); color: var(--night-ink); padding: 88px 0 72px; }
.screening-inner { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--rail-gap); }
.screening .label { color: var(--night-ink-3); }
.screening .label .num { color: var(--night-accent); }
.screening h2 { color: #f5f3ee; margin-bottom: 10px; }
.screening .intro { color: var(--night-ink-2); margin-bottom: 0; }
.screening :focus-visible { outline-color: var(--night-accent); }
.screening-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; margin-bottom: 32px; }

.scene-tabs { display: flex; gap: 8px; }
.scene-tabs button {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  background: transparent; border: 1px solid var(--night-line); border-radius: 7px;
  color: var(--night-ink-2); font-size: 14px; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.scene-tabs img { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; opacity: .55; transition: opacity .15s; }
.scene-tabs button:hover { border-color: #4a4f5a; color: var(--night-ink); }
.scene-tabs button:hover img { opacity: .85; }
.scene-tabs button[aria-selected="true"] { border-color: var(--night-accent); background: var(--night-2); color: #fff; }
.scene-tabs button[aria-selected="true"] img { opacity: 1; }

#comparison:focus-visible { outline-offset: 8px; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; align-items: start; }
.comparison-card { min-width: 0; }
.comparison-card video { aspect-ratio: 832 / 480; object-fit: contain; background: #000; border-radius: 4px; }
.comparison-card.ours video { box-shadow: 0 0 0 1px rgba(232, 145, 90, .55); }
.card-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 8px; }
.method-name { font-size: 13.5px; font-weight: 500; color: var(--night-ink); }
.comparison-card.ours .method-name { font-size: 15px; font-weight: 600; color: #fff; }
.comparison-card.ours .tag { color: var(--night-accent); }
.full-video { font-size: 12.5px; color: var(--night-ink-3); text-decoration: underline; text-decoration-color: #3f444f; text-underline-offset: 3px; white-space: nowrap; }
.full-video:hover { color: var(--night-ink); text-decoration-color: currentColor; }

.playback {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; padding: 12px 18px 12px 12px;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 10px;
}
.play {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px;
  background: var(--night-accent); color: #16191f;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s;
}
.play:hover { background: #f0a372; }
.play .icon-pause, .play[data-state="playing"] .icon-play { display: none; }
.play[data-state="playing"] .icon-pause { display: block; }
.ghost {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  background: transparent; border: 1px solid #353943; border-radius: 999px;
  color: var(--night-ink-2); font-size: 14px; white-space: nowrap;
}
.ghost:hover { color: #fff; border-color: #555a66; }
.timeline { flex: 1; min-width: 0; display: flex; align-items: center; }
.timeline input {
  --p: 0%;
  width: 100%; height: 22px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: pointer;
}
.timeline input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--night-accent) var(--p), #3a3e48 var(--p)); }
.timeline input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(17, 19, 24, .6); }
.timeline input::-moz-range-track { height: 4px; border-radius: 4px; background: #3a3e48; }
.timeline input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--night-accent); }
.timeline input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.timeline input:focus-visible { outline: 2px solid var(--night-accent); outline-offset: 2px; }
#time { font-family: var(--mono); font-size: 12.5px; color: var(--night-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.playback-status { min-height: 22px; margin-top: 10px; font-size: 13.5px; color: var(--night-ink-2); }

.screening-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 16px 48px; align-items: start; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--night-line); }
.prompt summary { display: inline-flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-2); padding: 2px 0; }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #3a3e48; border-radius: 4px; font-size: 12px; letter-spacing: 0; }
.prompt[open] summary::before { content: "−"; }
.prompt summary:hover { color: #fff; }
.prompt p { margin-top: 12px; max-width: 72ch; font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--night-ink); font-style: italic; }
.comparison-note { font-size: 13px; line-height: 1.6; color: var(--night-ink-3); }
.noscript { margin-top: 20px; color: var(--night-ink-2); font-size: 14px; line-height: 1.8; }
.noscript a { color: var(--night-ink); }

/* ---------- 05 Citation ---------- */
.cite-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 20px; margin-bottom: 18px; }
.cite-head h2 { margin-bottom: 0; }
.cite-actions { display: flex; gap: 8px; }
.bib { margin: 0; padding: 22px 24px; background: var(--plate); border: 1px solid var(--rule); border-radius: 4px; overflow-x: auto; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.bib code { font-family: var(--mono); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 34px; font-size: 13px; color: var(--ink-3); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(14, 16, 20, .96); color: var(--night-ink);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .55); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; flex: none; }
.lb-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #3a3e48; border-radius: 6px; background: transparent; color: var(--night-ink); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.lb-btn:hover { border-color: #6a6f7b; }
.lb-btn:focus-visible { outline: 2px solid var(--night-accent); outline-offset: 2px; }
.lightbox-stage { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 0 16px 24px; overscroll-behavior: contain; }
.lightbox-stage img { margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; background: #fff; border-radius: 3px; cursor: zoom-in; }
.lightbox.actual .lightbox-stage img { max-width: none; max-height: none; cursor: zoom-out; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --rail: 120px; --rail-gap: 36px; }
  .hero { gap: 0 36px; }
  .topnav { gap: 18px; }
}

@media (max-width: 960px) {
  .trajv { grid-template-columns: minmax(0, 1fr); }
  .trajv-figure, .trajv-side { max-width: 600px; }
  :root { --gutter: 28px; }
  .section, .screening-inner { display: block; }
  .rail .label { position: static; padding-top: 0; margin-bottom: 14px; }
  .section { padding: 60px 0 64px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "heading" "film" "byline"; gap: 40px; padding: 48px 0 64px; }
  .hero-heading, .hero-byline { max-width: 720px; }
  .hero-byline .authors { margin-top: 0; }
  .hero-film { width: 100%; max-width: 760px; }
  .setup { grid-template-columns: 1fr; }
  .setup-specs, .setup-note { grid-column: 1; }
  .screening { padding: 64px 0 56px; }
  .screening-foot { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar-inner { justify-content: space-between; }
}

@media (max-width: 900px) {
  .stages { display: block; }
  .stage { display: block; }
  .stage-rows { display: block; }
  .handoff { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 22px 0 24px 0; }
  .handoff-text { order: 0; }
  .handoff-line { width: 1px; height: 30px; order: -1; margin-left: 10px; }
  .handoff-line::after { right: auto; top: auto; left: -4px; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--ink-3); border-bottom: 0; }
}

@media (max-width: 760px) {
  .setup-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .ablation-evidence { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ablation-copy { max-width: 52ch; }
  .benchmark-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 148px; max-width: 160px; background: var(--paper); border-right: 1px solid var(--rule); padding-right: 12px; }
  .benchmark-table tbody tr.ours th:first-child { background: var(--accent-tint); }
  .benchmark-table thead th:first-child { z-index: 2; }
  .benchmark-5s { min-width: 690px; }
  .benchmark-30s { min-width: 800px; }
  .comparison-grid { gap: 16px 12px; }
  .screening-head { flex-direction: column; align-items: stretch; }
  .scene-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-tabs button { flex-direction: column; align-items: stretch; gap: 6px; padding: 5px 5px 7px; font-size: 13px; text-align: center; white-space: normal; line-height: 1.25; }
  .scene-tabs img { width: 100%; height: auto; aspect-ratio: 832 / 480; }
  .playback { flex-wrap: wrap; padding: 12px; gap: 10px 12px; }
  .timeline { order: 3; flex-basis: calc(100% - 96px); }
  #time { order: 4; margin-left: auto; }
}

@media (max-width: 520px) {
  .comparison-grid { grid-template-columns: minmax(0, 1fr); }
  .trajv-plate { padding: 10px 6px 4px; }
  .tg-svg text { font-size: 16.5px; }
  .tg-svg .tg-head { font-size: 21px; }
  .tg-svg .tg-sub { font-size: 12.5px; }
  .tg-svg .tg-head .tg-sub { font-size: 14px; }
  .tg-svg .tg-curlab { font-size: 18.5px; }
  .idea-lede { font-size: 19px; }
  :root { --gutter: 16px; --topbar: 52px; }
  body { font-size: 16px; }
  .brand { font-size: 16px; }
  .hero { padding: 32px 0 48px; gap: 34px; }
  .film-heading { gap: 10px; }
  .film-heading .label { font-size: 9px; letter-spacing: .05em; }
  #hero-scene-name { font-size: 14px; }
  .film-controls { gap: 10px; }
  .hero-play { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .film-speed { font-size: 11px; }
  #hero-time { font-size: 10px; }
  .hero-scenes { gap: 10px; margin-top: 14px; padding-top: 14px; }
  .hero-scenes button { gap: 6px; flex-direction: column; align-items: stretch; font-size: 11px; }
  .hero-scenes img { width: 100%; height: auto; aspect-ratio: 832 / 480; }
  .film-caption { font-size: 11px; gap: 5px 14px; }
  .hero-idea-link { margin-top: 18px; }
  .ablation-copy h3 { font-size: 24px; }
  .ablation-evidence { margin-top: 30px; padding-top: 24px; }
  .benchmark-head h3 { font-size: 24px; }
  .benchmark-head .label { font-size: 9px; }
  .benchmark-caption, .protocol-note { font-size: 12.5px; }
  .benchmark-table th, .benchmark-table td { padding: 15px 11px; }
  .benchmark-table tbody th { font-size: 13px; }
  .benchmark-table th:first-child { min-width: 140px; }
  .benchmark + .benchmark { margin-top: 36px; }
  .venue { margin-bottom: 16px; }
  .title-main { font-size: 44px; }
  .title-sub { font-size: 21px; margin-top: 14px; }
  .authors { margin-top: 28px; font-size: 15.5px; gap: 3px 16px; }
  .affiliations { flex-direction: column; gap: 4px; font-size: 14px; margin-top: 12px; }
  .resources { margin-top: 28px; }
  .section { padding: 48px 0 52px; }
  .section h2, .screening h2 { font-size: 27px; }
  .intro { font-size: 16px; margin-bottom: 28px; }
  .zoom { padding: 8px; }
  .zoom::after { top: 6px; right: 6px; }
  .stage-rows div { grid-template-columns: 1fr; gap: 4px; }
  .stage-rows dt { padding-top: 0; }
  .stage h3 { font-size: 22px; }
  .drift-values div { padding: 12px 8px 14px; }
  .drift-values div:first-child { padding-left: 0; }
  .drift-values dt { font-size: 12px; }
  .drift-values dd { font-size: 23px; }
  .setup { margin-top: 44px; }
  .screening { padding: 52px 0 44px; }
  .play { padding: 0 16px 0 12px; }
  .bib { padding: 16px; font-size: 11.5px; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .lightbox-bar { justify-content: space-between; padding: 10px; gap: 6px; }
  .lb-btn { padding: 0 10px; font-size: 13px; }
  .lightbox-stage { padding: 0 8px 16px; }
}

/* The plot uses a portrait asset on phones so all six methods remain visible. */
.tradeoff-figure { width: 100%; max-width: 720px; margin: 48px 0; }
.tradeoff-figure .zoom {
  max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent;
}
.tradeoff-figure .zoom:hover { box-shadow: none; }
.tradeoff-figure picture { display: block; }
.tradeoff-figure img { width: 100%; height: auto; }
.tradeoff-figure figcaption {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-size: 13px; line-height: 1.6; color: var(--ink-3);
}

/* Main results: readable method labels, compact rows, and explicit comparison groups. */
.benchmark-5s th, .benchmark-5s td,
.benchmark-30s th, .benchmark-30s td { padding-top: 12px; padding-bottom: 12px; }
.benchmark-5s thead th, .benchmark-30s thead th { font-size: 12px; }
.benchmark-5s tbody th, .benchmark-30s tbody th { font-size: 17px; line-height: 1.35; }
.benchmark-5s tbody td, .benchmark-30s tbody td { font-size: 18px; }
.benchmark-5s tbody td:nth-child(2), .benchmark-30s tbody td:nth-child(2) { font-size: 22px; }
.benchmark-5s .method-meta, .benchmark-30s .method-meta {
  display: block; margin-top: 5px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 400; line-height: 1.45;
  color: var(--ink-3); letter-spacing: 0;
}
.benchmark-30s tr.long-trained:not(.ours) > th,
.benchmark-30s tr.long-trained:not(.ours) > td,
.benchmark-30s tbody.long-trained > tr:not(.ours) > th,
.benchmark-30s tbody.long-trained > tr:not(.ours) > td { background: #f3f3f0; }
.benchmark-5s tbody tr.group-row > th,
.benchmark-30s tbody tr.group-row > th {
  position: static; left: auto; z-index: auto;
  width: auto; min-width: 0; max-width: none;
  padding: 12px; text-align: left; white-space: normal;
  font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.5;
  letter-spacing: .025em; color: var(--ink-2); background: #f0f0ed;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); border-right: 0;
}

/* Compact selection evidence; the parameter column stays visible while scrolling. */
.selection-evidence { max-width: 600px; margin-inline: 0; }
.selection-table { min-width: 440px; table-layout: fixed; }
.selection-table th, .selection-table td { padding-top: 12px; padding-bottom: 12px; }
.selection-table thead th { padding-top: 12px; padding-bottom: 12px; font-size: 13px; }
.selection-table tbody th, .selection-table tbody td { font-family: var(--serif); font-size: 20px; }
.selection-table tbody td:nth-child(2) { font-size: 22px; }
.selection-table th:first-child { width: 80px; min-width: 80px; max-width: 80px; }
.selection-table tbody tr.selection-near th, .selection-table tbody tr.selection-near td { background: #f0f0ee; }
.sl-ablation-table { min-width: 560px; }

@media (max-width: 760px) {
  .selection-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .selection-figure { margin-inline: auto; }
  .selection-copy { max-width: 560px; }
  .results-guide { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .results-guide li { grid-template-columns: 126px minmax(0, 1fr); gap: 5px 12px; }
  .selection-table th:first-child { position: sticky; left: 0; width: 80px; min-width: 80px; max-width: 80px; padding-right: 10px; background: var(--paper); }
  .selection-table tbody tr.ours th:first-child { background: var(--accent-tint); }
  .selection-table tbody tr.selection-near th:first-child { background: #f0f0ee; }
}
@media (max-width: 520px) {
  .idea-origin { margin-bottom: 30px; }
  .selection-study, .sl-study { margin-top: 32px; padding-top: 24px; }
  .study-head h3 { font-size: 24px; }
  .selection-steps > div { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .selection-steps dd { font-size: 14px; }
  .selection-rule summary span { font-size: 11px; }
  .selection-evidence { margin-top: 24px; }
  .results-guide li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .results-guide li + li { margin-top: 10px; }
  .selection-table th:first-child { width: 80px; min-width: 80px; max-width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* A quiet cue identifies the three methods with matched training settings. */
.comparison-key { max-width: 75ch; padding-left: 12px; border-left: 2px solid #46527a; margin: -16px 0 28px; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.benchmark-5s tr.matched > th:first-child, .benchmark-30s tr.matched > th:first-child { box-shadow: inset 2px 0 #46527a; padding-left: 12px; }
