/* TokenWave research guidelines: 1120px content, 20px grid gutters,
   48/32/24/18px headings, 14/22px body, 12/18px captions. */
@font-face {
  font-family: 'Franie Test';
  src: local('Franie Test Regular'), local('Franie Test'), local('FranieTest-Regular');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Franie Test';
  src: local('Franie Test SemiBold'), local('FranieTest-SemiBold');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Web';
  src: url('static/fonts/NotoSans-Latin-Variable.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('static/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #fff;
  --white: #fff;
  --ink: #111318;
  --secondary: #737780;
  --muted: #737780;
  --line: #e4e6ea;
  --blue: #1d73ff;
  --blue-tint: #e8f0ff;
  --lime: #acff03;
  --surface: #f6f7f9;
  --forest: #124a09;
  --forest-tint: #ddffd8;
  --indigo: #475cff;
  --violet: #8054ff;
  --sans: 'Franie Test', 'Noto Sans Web', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
  --display: var(--sans);
  --mono: 'Plex Mono', monospace;
  --max: 1120px;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/22px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 600; overflow-wrap: normal; word-break: normal; }
h2 { font-size: 32px; line-height: 40px; letter-spacing: -.035em; margin-bottom: 0; }
h3 { font-size: 24px; line-height: 32px; letter-spacing: -.025em; }
h4 { font-size: 18px; line-height: 26px; }
p { margin-bottom: 16px; }
b, strong { font-weight: 600; }
.quiet { color: var(--secondary); }
.wrap { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.section { padding-top: 96px; }
.eyebrow, .mono { font: 400 12px/18px var(--sans); letter-spacing: .035em; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--secondary); }
.section-index { color: var(--blue); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; flex-shrink: 0; }
.text-link { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--blue); background: none; padding: 0; }
.text-link:hover, .additional-data a:hover { text-decoration: underline; text-underline-offset: 4px; }
.data-note { font-size: 12px; line-height: 18px; color: var(--secondary); margin-bottom: 0; }
.data-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 24px; top: -80px; padding: 12px 24px; background: var(--ink); color: white; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 16px; }

/* Navigation and the opening two-column layout. */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(32px, calc((100% - 1120px)/2)); border-bottom: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 190px; height: auto; }
.site-header nav { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 14px; line-height: 22px; }
.site-header nav a { padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--blue); border-color: var(--blue); }
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; padding-top: 64px; padding-bottom: 96px; }
.hero-copy { grid-column: span 5; padding: 32px 20px 0 0; min-width: 0; }
.hero h1 { font: 600 48px/56px var(--display); letter-spacing: -.045em; margin: 0 0 24px; }
.title-period { color: var(--blue); }
.hero .eyebrow { flex-wrap: wrap; gap: 8px 12px; margin-bottom: 24px; }
.hero-question { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 16px; }
.hero-description { font-size: 14px; line-height: 22px; color: var(--secondary); margin: 0; max-width: 480px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; line-height: 22px; font-weight: 400; padding: 12px 20px; border-radius: var(--radius); white-space: nowrap; border: 1px solid var(--ink); transition: background .16s, color .16s, border-color .16s; }
.hero-actions .button { gap: 8px; padding-inline: 12px; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover, .copy-button:hover { background: var(--blue); border-color: var(--blue); color: white; }
.button.paper-link, .button.github-link { background: white; }
.button.paper-link:hover, .button.github-link:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.github-link svg { flex-shrink: 0; fill: currentColor; }
.hero-specs { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 20px; margin: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-specs div { min-width: 0; }
.hero-specs dt { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.025em; }
.hero-specs dd { font-size: 12px; line-height: 18px; color: var(--secondary); margin: 8px 0 0; }
.hero-vision { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-vision>.mono { display: block; color: var(--blue); margin-bottom: 12px; }
.hero-vision h2 { font-size: 18px; line-height: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.hero-vision p { font-size: 14px; line-height: 22px; color: var(--secondary); margin-bottom: 16px; }
.hero-vision .text-link { font-weight: 400; }
.hero-dossier { grid-column: span 7; min-width: 0; }
.demo-card { padding: 32px; margin-bottom: 96px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.demo-heading .eyebrow { color: var(--blue); margin: 0; }
.demo-duration { font-size: 12px; line-height: 18px; font-variant-numeric: tabular-nums; color: var(--secondary); }
.demo-card h2 { font-size: 32px; line-height: 40px; margin-bottom: 12px; }
.demo-description { max-width: 760px; color: var(--secondary); margin-bottom: 24px; }
.demo-player { position: relative; overflow: hidden; border-radius: 10px; background: var(--ink); aspect-ratio: 16 / 9; }
.demo-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-player video:focus-visible { outline-offset: -4px; }
.demo-play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: white; background: #11131838; }
.demo-play[hidden] { display: none; }
.demo-play:focus-visible { outline-offset: -4px; }
.demo-play-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px #ffffff24, 0 8px 32px #11131840; transition: transform .16s, background .16s; }
.demo-play-icon svg { width: 28px; height: 28px; fill: currentColor; }
.demo-play:hover .demo-play-icon { transform: scale(1.06); background: #1260df; }
.demo-play-label { display: inline-flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 8px; background: #111318e6; font-size: 14px; line-height: 22px; font-weight: 600; }
.demo-play-label>span { font-size: 12px; font-weight: 400; color: #d1d7e2; }
.demo-caption { margin: 16px 0 0; font-size: 12px; line-height: 18px; color: var(--secondary); }
.demo-status { margin: 16px 0 0; font-size: 14px; line-height: 22px; }
.demo-status a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.file-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px; }
.file-tabs button { font-size: 14px; line-height: 22px; padding: 6px 12px; background: var(--surface); border-radius: var(--radius); white-space: nowrap; }
.file-tabs button:hover { color: var(--blue); }
.file-tabs button[aria-pressed=true] { background: var(--blue-tint); color: var(--blue); }
.dossier-sheet { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.dossier-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--secondary); }
.dossier-heading .mono, .dossier-status { font-size: 12px; line-height: 18px; white-space: nowrap; }
.dossier-heading .mono { color: var(--blue); }

/* Results: aligned table, stable precision and visible sorting. */
.leaderboard { border-top: 1px solid var(--line); padding-top: 64px; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.section-top>div:first-child { min-width: 0; }
.section-aside { max-width: 300px; margin: 0; color: var(--secondary); font-size: 14px; line-height: 22px; }
.result-callout { display: flex; align-items: center; gap: 24px; padding-left: 24px; border-left: 3px solid var(--lime); flex-shrink: 0; }
.result-callout strong { font-size: 48px; line-height: 56px; letter-spacing: -.045em; }
.result-callout strong span { font-size: 24px; line-height: 32px; margin-left: 4px; }
.result-callout p { font-size: 12px; line-height: 18px; margin: 0; color: var(--secondary); }
.leaderboard-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.setting { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.setting>span:last-child { color: var(--secondary); font-size: 12px; line-height: 18px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.leaderboard-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; text-align: left; }
.leaderboard-table th, .leaderboard-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); position: relative; }
.leaderboard-table thead { background: var(--surface); }
.leaderboard-table thead th { font-size: 14px; font-weight: 400; color: var(--secondary); }
.leaderboard-table tbody tr:last-child>* { border-bottom: 0; }
.leaderboard-table .rank { width: 56px; font-size: 12px; color: var(--secondary); text-align: center; }
.leaderboard-table th[scope=row] { width: 34%; font-weight: 400; }
.leaderboard-table td { width: 18%; text-align: center; }
.leaderboard-table td small { font-size: 12px; font-weight: 400; color: var(--secondary); margin-left: 3px; }
.leaderboard-table tbody tr:hover { background: #f7faff; }
.model-id { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.model-id img { width: 20px; height: 20px; object-fit: contain; }
.leaderboard-table thead button { padding: 0; background: transparent; width: 100%; text-align: center; font-size: 14px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.leaderboard-table .score-cell, .leaderboard-table thead button[data-sort="f2p"] { text-align: left; }
.leaderboard-table thead button small { display: block; font-size: 12px; line-height: 18px; font-weight: 400; margin-top: 4px; color: var(--secondary); }
.leaderboard-table [aria-sort] button { color: var(--blue); }
.metric-heading { display: inline-block; position: relative; }
.sort-arrow { position: absolute; left: calc(100% + 6px); top: 0; }
.score-bar { position: absolute; left: 8px; bottom: 12px; top: 12px; width: var(--score); max-width: calc(100% - 16px); background: var(--blue-tint); border-radius: 4px; pointer-events: none; }
.metric-value { display: inline-block; position: relative; white-space: nowrap; }
.leaderboard-table .metric-best { color: var(--blue); font-weight: 600; }
.leaderboard-table .metric-best .metric-value:after { content: ''; position: absolute; right: -14px; top: 50%; width: 3px; height: 16px; border-radius: 2px; background: var(--blue); transform: translateY(-50%); }
.metric-notes { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 20px; padding: 24px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.metric-notes p { font-size: 12px; line-height: 18px; margin: 0; color: var(--secondary); }
.metric-notes b { display: block; font-size: 14px; line-height: 22px; color: var(--ink); margin-bottom: 8px; }

/* The walkthrough keeps its existing structure and evidence links. */
.task-section { background: var(--surface); margin-top: 96px; padding: 64px 0; border-block: 1px solid var(--line); }
.case-label { font-size: 12px; line-height: 18px; color: var(--blue); }
.case-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.case-footer p { font-size: 12px; line-height: 18px; color: var(--secondary); margin: 0; }
.case-footer button { white-space: nowrap; }

/* Findings and figures. Existing scientific images remain unaltered. */
.feature-finding { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 32px; padding: 32px 0; border-top: 1px solid var(--line); align-items: center; }
.finding-copy { grid-column: span 5; padding-right: 24px; }
.finding-no { display: block; font-size: 12px; line-height: 18px; color: var(--blue); margin-bottom: 16px; }
.finding-copy h3, .paired-findings h3 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
.finding-copy p, .paired-findings p { font-size: 14px; line-height: 22px; color: var(--secondary); margin-bottom: 0; }
.feature-finding figure { grid-column: span 7; min-width: 0; margin: 0; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.zoom-image { display: block; padding: 0; border: 0; background: white; width: 100%; cursor: zoom-in; }
.zoom-image img { width: 100%; height: auto; object-fit: contain; }
.feature-finding figcaption { font-size: 12px; line-height: 18px; margin-top: 16px; color: var(--secondary); }
.rho-pair { display: flex; gap: 32px; margin: 24px 0; }
.rho-pair>div { display: flex; flex-direction: column; gap: 8px; }
.rho-pair b { font-size: 32px; line-height: 40px; letter-spacing: -.035em; }
.rho-pair>div:first-child b { color: var(--blue); }
.rho-pair span { font-size: 12px; line-height: 18px; color: var(--secondary); }
.finding-copy p.data-note, .paired-findings p.data-note { font-size: 12px; line-height: 18px; }
.paired-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); }
.paired-findings article { padding-top: 32px; min-width: 0; }
.paired-findings article+article { border-left: 1px solid var(--line); padding-left: 32px; }
.failure-strip { display: flex; height: 16px; margin: 24px 0 16px; gap: 2px; border-radius: 4px; overflow: hidden; }
.discovery { background: var(--violet); }
.ask { background: var(--blue); }
.implement { background: var(--forest); }
.strip-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; line-height: 18px; color: var(--secondary); margin-bottom: 16px; }
.strip-legend span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.strip-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.oracle-comparison { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 24px 0 16px; }
.oracle-comparison>div { display: flex; flex-direction: column; gap: 8px; }
.oracle-comparison>div>span { font-size: 12px; line-height: 18px; color: var(--secondary); }
.oracle-comparison b { font-size: 32px; line-height: 40px; letter-spacing: -.035em; white-space: nowrap; }
.oracle-comparison>div:nth-of-type(2) b { color: var(--blue); }
.oracle-comparison small { font-size: 18px; }
.oracle-comparison>span { color: var(--secondary); }
.oracle-comparison .oracle-label { font-size: 12px; line-height: 18px; margin-left: auto; }

/* Method and resources. */
.method-section { background: var(--surface); margin-top: 96px; padding: 64px 0; border-block: 1px solid var(--line); }
/* The vision states the goal; the following benchmark section explains its measurement. */
.vision-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.vision-intro p { font-size: 14px; line-height: 22px; color: var(--secondary); margin: 0; }
.vision-intro p.vision-lead { font-size: 18px; line-height: 26px; color: var(--ink); }
.vision-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.vision-capabilities article { border-top: 1px solid var(--line); padding-top: 24px; min-width: 0; }
.vision-capabilities .mono { display: block; color: var(--blue); margin-bottom: 12px; }
.vision-capabilities h3 { font-size: 18px; line-height: 26px; margin: 0 0 12px; }
.vision-capabilities p { font-size: 14px; line-height: 22px; color: var(--secondary); margin: 0; }
.vision-bridge { margin: 32px 0 0; padding: 16px 20px; border-left: 3px solid var(--blue); background: white; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 22px; }
.benchmark-overview { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.method-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.method-copy { grid-column: span 7; padding-right: 64px; }
.method-copy>p { font-size: 14px; line-height: 22px; color: var(--secondary); }
.method-copy>p.large-copy { font-size: 18px; line-height: 26px; color: var(--ink); margin-bottom: 24px; }
.method-loop { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.method-loop span { font-size: 14px; line-height: 22px; border: 1px solid #11131826; border-radius: var(--radius); padding: 8px 12px; white-space: nowrap; }
.method-stats { grid-column: span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; align-content: start; margin: 0; }
.method-stats>div { border-top: 1px solid var(--line); padding-top: 16px; }
.method-stats dt { font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -.045em; }
.method-stats dd { font-size: 12px; line-height: 18px; color: var(--secondary); margin: 8px 0 0; }
.evaluation { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 112px; }
.evaluation .mono { color: var(--blue); }
.evaluation h3 { margin: 16px 0; }
.evaluation p { font-size: 14px; line-height: 22px; color: var(--secondary); margin: 0; }
.evaluation-equation { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.evaluation-equation>span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.evaluation-equation b { font-size: 24px; line-height: 32px; white-space: nowrap; }
.evaluation-equation small { font-size: 12px; line-height: 18px; color: var(--secondary); }
.evaluation-equation i { font-style: normal; color: var(--secondary); }
.complete-condition b { background: var(--lime); border-radius: 6px; padding: 2px 8px; }
.resource-list { margin-top: 24px; border-top: 1px solid var(--ink); }
.resource-list>a { display: flex; align-items: center; gap: 24px; padding: 24px 16px; border-bottom: 1px solid var(--line); transition: background .15s; }
.resource-list>a:hover { background: var(--blue-tint); }
.resource-index { font-size: 12px; line-height: 18px; color: var(--secondary); width: 24px; flex-shrink: 0; }
.resource-list>a>span:nth-child(2) { flex: 1; min-width: 0; }
.resource-list b { display: block; font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: 8px; }
.resource-list small { font-size: 12px; line-height: 18px; color: var(--secondary); display: block; }
.resource-list>a>span:last-child { font-size: 24px; color: var(--blue); }
.supplement { border-bottom: 1px solid var(--line); }
.supplement summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; cursor: pointer; font-size: 18px; line-height: 26px; font-weight: 600; list-style: none; }
.supplement summary::-webkit-details-marker { display: none; }
.details-count { display: flex; align-items: center; gap: 16px; font-size: 12px; line-height: 18px; color: var(--secondary); font-weight: 400; white-space: nowrap; }
.details-count i { font-style: normal; font-size: 24px; line-height: 26px; }
details[open]>summary .details-count i { transform: rotate(45deg); }
.supplement-content { padding-bottom: 32px; }
.supplement-content>p { font-size: 12px; line-height: 18px; color: var(--secondary); }
.figure-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.paper-figure { margin: 0; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.paper-figure .zoom-image { height: 260px; display: flex; align-items: center; justify-content: center; }
.paper-figure img { max-height: 260px; width: auto; max-width: 100%; object-fit: contain; }
.paper-figure figcaption { font-size: 12px; line-height: 18px; color: var(--secondary); margin-top: 16px; }
.paper-figure figcaption b { color: var(--ink); }
.additional-data { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--blue); }
.copy-button { font-size: 14px; line-height: 22px; background: var(--ink); color: white; padding: 10px 16px; border-radius: var(--radius); white-space: nowrap; }
.supplement pre { overflow: auto; font: 12px/18px var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.authors { margin-top: 64px; }
.authors h3 { margin-bottom: 16px; }
.team-credit { font-size: 14px; line-height: 22px; margin: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); margin-top: 64px; padding-block: 24px; }
.site-footer .brand img { width: 160px; }
.site-footer p, .site-footer>a:last-child { font-size: 12px; line-height: 18px; color: var(--secondary); margin: 0; }
.site-footer>a:last-child:hover { color: var(--blue); }

/* Figure overlays retain complete images. */
.media-dialog { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0; width: min(1120px, 94vw); max-width: 94vw; max-height: 94vh; color: var(--ink); box-shadow: 0 24px 80px #11131830; }
.media-dialog::backdrop { background: #111318cc; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 22px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.dialog-close { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; line-height: 22px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); white-space: nowrap; }
.dialog-close span { font-size: 20px; }
.image-dialog { width: min(1280px, 94vw); }
.image-dialog>img { max-width: calc(100% - 32px); max-height: 70vh; width: auto; height: auto; margin: 16px auto; object-fit: contain; }
.image-dialog>p { font-size: 12px; line-height: 18px; padding: 0 24px 24px; color: var(--secondary); margin: 0; }
.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
  .site-header { gap: 16px; }
  .brand img { width: 160px; }
  .site-header nav { gap: 16px; }
  .hero-copy { padding-right: 12px; }
  .dossier-sheet { padding: 20px; }
  .section-top { gap: 24px; }
  .result-callout { gap: 16px; padding-left: 16px; }
  .result-callout p { max-width: 160px; }
  .method-copy { padding-right: 24px; }
}
@media (max-width: 960px) {
  .site-header { display: grid; grid-template-columns: 1fr; gap: 8px 20px; padding-block: 12px 0; }
  .site-header nav { grid-row: 2; grid-column: 1/-1; justify-content: flex-start; flex-wrap: wrap; gap: 0 24px; }
  html { scroll-padding-top: 160px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy, .hero-dossier { grid-column: 1; padding: 0; }
  .hero-copy { max-width: 640px; }
  .hero-dossier { width: 100%; }
  .hero-description { max-width: 600px; }
  .hero-vision { max-width: 640px; }
  .hero-specs { max-width: 640px; }
  .section-top { align-items: flex-start; flex-wrap: wrap; }
  .result-callout { margin-top: 8px; }
  .finding-copy { grid-column: span 6; padding-right: 12px; }
  .feature-finding figure { grid-column: span 6; }
  .evaluation { gap: 32px; }
  .evaluation-equation { gap: 12px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .section { padding-top: 64px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .hero .eyebrow { margin-bottom: 24px; }
  .desktop-break { display: none; }
  .hero-specs { gap: 16px; }
  .dossier-sheet { padding: 20px; }
  .demo-card { padding: 20px; margin-bottom: 64px; }
  .demo-card h2 { font-size: 24px; line-height: 32px; }
  .leaderboard-toolbar { align-items: flex-start; }
  .metric-notes { grid-template-columns: 1fr; gap: 16px; }
  .metric-notes b { display: inline; margin-right: 8px; }
  .task-section, .method-section { margin-top: 64px; padding-block: 48px; }
  .feature-finding { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .finding-copy { padding-right: 0; }
  .paired-findings { grid-template-columns: 1fr; gap: 32px; }
  .paired-findings article+article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .vision-intro, .vision-capabilities { grid-template-columns: 1fr; gap: 24px; }
  .benchmark-overview { margin-top: 48px; padding-top: 48px; }
  .method-layout { grid-template-columns: 1fr; gap: 32px; }
  .method-copy, .method-stats { grid-column: 1; padding-right: 0; }
  .evaluation { grid-template-columns: 1fr; gap: 32px; }
  .evaluation-equation { max-width: 500px; }
  .figure-gallery { grid-template-columns: 1fr; }
  .paper-figure .zoom-image { height: auto; }
  .paper-figure img { max-height: none; width: 100%; }
  .resource-list>a { padding-inline: 0; gap: 16px; }
  .supplement summary { flex-wrap: wrap; }
  .supplement summary .details-count { margin-left: auto; }
  .authors { margin-top: 48px; }
  .site-footer { margin-top: 48px; gap: 16px 24px; }
  .site-footer>a:last-child { flex-basis: 100%; }
  .dialog-head { padding: 12px 16px; }
  .image-dialog>p { padding: 0 16px 16px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; gap: 8px; }
  .brand img { width: 144px; }
  .site-header nav { gap: 0 20px; }
  .hero-specs { grid-template-columns: 1fr 1fr; }
  .button { padding-inline: 16px; }
  .dossier-sheet { padding: 16px; }
  .demo-card { padding: 16px; }
  .demo-card h2 { font-size: 22px; line-height: 30px; }
  .demo-description { margin-bottom: 20px; }
  .demo-play { gap: 10px; }
  .demo-play-icon { width: 56px; height: 56px; }
  .demo-play-icon svg { width: 24px; height: 24px; }
  .file-tabs { gap: 8px; }
  .file-tabs button { padding-inline: 10px; }
  .result-callout { flex-wrap: wrap; gap: 12px; }
  .evaluation-equation { gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
  .evaluation-equation b { font-size: 18px; line-height: 26px; }
  .evaluation-equation small { font-size: 12px; }
  .oracle-comparison { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
