
/* Visual refinement based on the supplied design. Scientific data stays in the
   existing modules; this layer controls presentation only. */
:root {
  --paper: #f5f4ee;
  --surface: #fbfaf6;
  --ink: #17231d;
  --muted: #56625a;
  --line: #dcdcd2;
  --green: #203e32;
  --lime: #e3c983;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
}
html { scroll-padding-top: 88px; }
body { font-size: 15px; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.container { width: min(1184px, calc(100% - 56px)); }
.section { padding-block: 92px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.section-heading > * { min-width: 0; }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
h1, h2, h3 { font-optical-sizing: auto; }
h1 { font-size: clamp(58px, 6.4vw, 88px); line-height: .99; letter-spacing: -.025em; text-wrap: balance; }
h2, .benchmark-heading h2 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.07; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em { color: var(--green); }
.section-intro, .leaderboard-intro { max-width: 560px; }
.section-intro { font-size: 16px; line-height: 1.7; color: #3d4842; }
.text-link { font-size: 13px; }
.scope-note { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 1020px; }
.site-header { height: 64px; background: rgba(245,244,238,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-shell { gap: 24px; }
.brand { gap: 10px; font: 400 23px/1 var(--serif); letter-spacing: -.025em; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; flex: none; stroke: none; }
.brand-light { font-style: italic; }
.nav-shell nav { gap: 4px; font-size: 13px; }
.nav-shell nav > a { position: relative; padding: 10px; white-space: nowrap; }
.nav-shell nav > a[aria-current="location"]::after { content: ''; position: absolute; inset: auto 10px 3px; height: 2px; background: var(--green); }
.nav-shell nav > a:hover { color: var(--green); }
.nav-shell nav > .nav-resource { border-radius: 999px; padding: 8px 14px; gap: 12px; margin-left: 8px; border-color: var(--green); }
.nav-shell nav > .nav-resource:hover { background: var(--green); color: var(--paper); }
.reading-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--green); pointer-events: none; }
.menu-toggle { border-radius: 50%; width: 40px; height: 40px; align-items: center; flex: none; }
.hero { grid-template-columns: 1fr 1fr; gap: 56px; min-height: 0; padding-block: 72px 48px; }
.hero-copy { padding: 0; min-width: 0; }
.hero .eyebrow { margin-bottom: 28px; font-size: 10px; letter-spacing: .12em; }
.status-dot { background: var(--green); flex: none; }
.hero-description { font-size: 17px; line-height: 1.65; color: #3d4842; max-width: 560px; margin-bottom: 30px; }
.hero-actions { gap: 12px; flex-wrap: wrap; }
.button { border-radius: 999px; min-height: 49px; padding: 14px 20px; font-size: 14px; gap: 12px; }
.button-primary:hover { background: #16301f; }
.button-secondary { border: 1px solid #c9cbbf; }
.button-secondary:hover { border-color: var(--green); background: var(--surface); }
.hero-footnote { flex-wrap: wrap; gap: 8px; margin-top: 32px; font-size: 10px; }
.hero-footnote > span:not(.hero-footnote-end) { border: 1px solid #c9cbbf; border-radius: 999px; padding: 7px 10px; color: var(--ink); }
.hero-footnote > span:first-child { background: var(--green); border-color: var(--green); color: var(--paper); }
.hero-footnote i { display: none; }
.hero-footnote-end { display: inline; font: italic 17px var(--serif); }
.hero-figure { max-width: none; width: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.figure-topline { margin: 0; font-size: 10px; }
.hero-figure > img { margin: 8px auto; max-width: 460px; }
.hero-figure figcaption { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.figure-key { display: grid; grid-template-columns: 8px 1fr; gap: 4px 7px; align-items: center; font: 12px var(--sans); }
.figure-key b { grid-column: 1/-1; font: 30px/1.1 var(--serif); margin: 0; color: var(--ink); }
.stats-strip { padding-block: 28px; }
.stats-strip > div, .stats-strip > div:first-child, .stats-strip > div:last-child { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 0 28px; }
.stats-strip > div:first-child { padding-left: 0; }
.stats-strip strong { font-size: 58px; }
.stats-strip span { font-size: 13px; max-width: none; }
.modality-grid { border: 0; gap: 18px; }
.modality-card, .modality-card:first-child, .modality-card:last-child { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .25s, box-shadow .25s; }
.modality-top { height: 86px; flex-direction: row; }
.modality-top .mono { font-size: 11px; }
.modality-top svg { width: 82px; height: 63px; margin: 0; align-self: flex-start; }
.modality-card h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -.02em; min-height: 0; }
.modality-card > p { font-size: 14px; line-height: 1.7; min-height: 0; flex: 1; }
.modality-numbers { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; padding-bottom: 18px; }
.modality-numbers b { font-size: 30px; }
.domain-link { font-size: 13px; padding-top: 18px; }
.leaderboard-section { background: var(--surface); border-block: 1px solid var(--line); }
.leaderboard-meta { font-size: 11px; gap: 18px; }
.ranking-protocol { border-radius: 6px; padding: 7px 10px; }
.ranking-controls { margin-top: 26px; }
.filters { gap: 6px; flex-wrap: wrap; }
.filters button { border-radius: 999px; font-size: 13px; min-height: 42px; padding: 10px 16px; color: var(--muted); }
.ranking-tabs { padding: 5px; border-radius: 999px; background: #eaeae2; gap: 2px; }
.ranking-tabs button { min-height: 36px; padding: 8px 14px; }
.ranking-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #17231d1a; }
.ranking-tabs button span { font-size: 10px; }
.ranking-setting { font-size: 10px; }
.ranking-setting select, .model-category select { background: #fff; border-radius: 10px; font-size: 14px; min-height: 44px; }
.ranking-subtoolbar > p { font-size: 13px; }
.ranking-search input, .search-field { background: #fff; border: 1px solid #d3d4c9; border-radius: 999px; padding: 12px 17px; }
.ranking-search input { font-size: 14px; width: 250px; }
.search-field { width: 340px; }
.search-field input { font-size: 14px; }
.search-field input::placeholder { color: #68716a; }
.ranking-scroll { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ranking-table thead { border-top: 0; background: #efefe7; }
.ranking-table thead th { font-size: 11px; padding: 18px; }
.ranking-table tbody td, .ranking-table tbody th { padding: 17px 18px; }
.ranking-table tbody tr:last-child { border-bottom: 0; }
.ranking-table tbody tr:hover { background: #f7f7f0; }
.ranking-table .ranking-position { font: 13px var(--mono); }
.ranking-position > span { border-radius: 50%; }
.ranking-leading .ranking-position > span { background: var(--green); color: #fff; }
.ranking-table .ranking-model { font-size: 14px; }
.ranking-first-public { font-size: 11px; }
.ranking-venue { font-size: 12px; }
.ranking-bar { height: 5px; border-radius: 4px; max-width: 120px; background: #eceee5; overflow: hidden; }
.ranking-bar::before { background: var(--green); border-radius: inherit; }
.ranking-bottom button, .pagination button { border-radius: 999px; min-height: 42px; }
.ranking-bottom button { font-size: 13px; padding-inline: 18px; }
.ranking-bottom p, .ranking-reading-note, .ranking-source-note { font-size: 12px; }
.ranking-reading-note { max-width: 1020px; }
.ranking-methods summary { font-size: 15px; padding-block: 22px; }
.ranking-method-grid h3 { font-size: 15px; }
.ranking-method-grid p { font-size: 13px; }
.rank-heatmap { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 28px; }
.heatmap-heading h3 { font-size: 31px; }
#heatmap-summary, .heatmap-direction { font-size: 10px; }
.heatmap-inspect { border-radius: 10px; border: 1px solid var(--line); background: #f1f2ea; font-size: 13px; }
.heatmap-panel { border-radius: 14px; overflow: hidden; }
.heatmap-help { font-size: 12px; }
.category-panel-heading h4 { font: 400 25px var(--serif); }
.category-panel-heading p, .category-scroll-note { font-size: 10px; }
.category-panel-scroll { max-height: 550px; }
.category-heatmap thead { background: #f4f5ef; }
.category-model-line { min-height: 32px; }
.category-cell { height: 30px; line-height: 30px; }
.scaling-section { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.5fr); align-items: center; gap: 26px 40px; margin-top: 0; border-top: 0; }
.scaling-heading { flex-direction: column; align-items: flex-start; gap: 24px; margin: 0; }
.scaling-heading h2 { margin-bottom: 22px; }
.scaling-heading .eyebrow { font-size: 11px; margin-bottom: 18px; }
.scaling-heading p:not(.eyebrow) { font-size: 16px; line-height: 1.7; }
.scaling-links { justify-content: flex-start; }
.scaling-links a { font-size: 13px; }
.scaling-figure { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.scaling-chart-scroll { border: 0; }
.scaling-chart-scroll > a { min-width: 620px; }
.scaling-caption { flex-direction: column; font-size: 10px; gap: 4px; padding: 14px 4px 0; }
.scaling-scope { grid-column: 1/-1; font-size: 12px; max-width: none; }
.memory-section { background: #203e32; color: #eef0ea; scroll-margin-top: 0; --ink: #eef0ea; --green: #eef0ea; --muted: #c8d2cb; --line: #4d6658; --memory-grid: #415d4d; --memory-line: #e3c983; --memory-estimate: #a5d8bd; --memory-selected: #fff4cf; }
.memory-section .eyebrow { color: #b5c5b9; }
.memory-section h2 em { color: #e3c983; }
.memory-section .section-heading > .text-link { justify-self: end; width: fit-content; color: #e3c983; }
.memory-intro { font-size: 16px; max-width: 880px; line-height: 1.7; }
.memory-protocol { font-size: 11px; gap: 12px 20px; color: #c8d2cb; margin-bottom: 16px; }
.memory-layout { grid-template-columns: minmax(270px,.8fr) minmax(0,1.5fr); gap: 20px; background: none; border: 0; align-items: start; }
.memory-controls { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #274738; }
.memory-controls select, .memory-controls > input, .memory-planner-inputs input { font-size: 15px; border-radius: 10px; background: #183629; border-color: #718779; color: #eef0ea; }
.memory-mode span { border-radius: 999px; border-color: #718779; font-size: 13px; }
.memory-mode input:checked + span { background: #e3c983; border-color: #e3c983; color: #17231d; }
.memory-mode input:focus-visible + span { outline-color: #e3c983; }
.memory-controls > label, .memory-planner-inputs label, .memory-mode legend { font-size: 13px; font-weight: 500; }
.memory-controls select { color-scheme: dark; }
.memory-controls input { color-scheme: dark; }
#memory-length-help, #memory-batch-help { font-size: 12px; }
.memory-specs dt { font-size: 10px; line-height: 1.6; }
.memory-specs dd { font-size: 13px; }
.memory-display { padding: 0; }
.memory-section .memory-result { --ink: #17231d; --green: #203e32; --muted: #56625a; border: 0; border-radius: 20px; background: #eef0e8; color: var(--ink); padding: 26px; min-height: 215px; }
.memory-result .eyebrow { color: #56625a; }
.memory-value strong { font-size: 64px; }
#memory-result-note, #memory-tokens { font-size: 13px; }
.memory-section .memory-result[data-status="oom"] .memory-value strong { color: #993d32; }
.memory-chart-heading { margin-top: 26px; padding-inline: 6px; flex-wrap: wrap; }
.memory-chart-heading h3, .memory-grid-heading h3 { font: 400 24px/1.2 var(--serif); }
.memory-chart-heading span, .memory-grid-heading span { font-size: 10px; }
.memory-chart-scroll { padding: 12px 12px 4px; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: #244334; }
.memory-chart-scroll text { fill: #c8d2cb; }
.memory-chart-note { font-size: 12px; margin-top: 12px; }
.memory-length-buttons button { border-radius: 8px; background: #274738; font-size: 12px; padding: 11px 13px; border-color: #657d6c; }
.memory-length-buttons button[aria-pressed="true"] { background: #e3c983; color: #17231d; border-color: #e3c983; outline-color: #e3c983; }
.memory-length-buttons button::before, .memory-legend i { background: #a5d8bd; }
.memory-length-buttons button[data-kind="oom"]::before, .memory-legend [data-kind="oom"] { background: #f4a794; }
.memory-length-buttons button[data-kind="unsupported_length"]::before, .memory-legend [data-kind="unsupported_length"] { background: #c5c8bf; }
.memory-length-buttons button[data-kind="not_measured"]::before, .memory-legend [data-kind="not_measured"] { border-color: #b5c5b9; }
.memory-length-buttons button[aria-pressed="true"]::before { box-shadow: 0 0 0 1px #526454; }
.memory-legend { font-size: 12px; }
.memory-gpu-planner { border-top: 1px solid var(--line); margin-top: 32px; }
.memory-gpu-summary { font-size: 14px; }
.memory-gpu-scroll { border-radius: 16px; background: #244334; }
.memory-gpu-table th { background: #183629; font-size: 11px; line-height: 1.6; }
.memory-gpu-table td { font-size: 14px; }
.memory-gpu-table small { font-size: 12px; }
.memory-gpu-table tr[data-status="candidate"] td:nth-child(3) { background: #2e5140; border-left-color: #a5d8bd; }
.memory-gpu-table tr[data-status="replica_too_large"] td:nth-child(3) { color: #ffc4b5; }
.memory-budget-note, .memory-caveat, .memory-methods { font-size: 12px; }
.memory-methods { border-top: 1px solid var(--line); padding-top: 20px; }
.memory-methods summary { font-size: 15px; }
.memory-methods p:first-of-type { margin-top: 20px; }
.memory-section :is(button,select,input,a,summary,[tabindex]):focus-visible { outline-color: #e3c983; }
#memory-retry { border-radius: 999px; background: #e3c983; color: #17231d; }
.benchmark-section { background: var(--paper); border: 0; padding-block: 92px; }
.benchmark-heading > .text-link { justify-self: end; }
.catalogue-intro { font-size: 16px; color: #3d4842; max-width: 850px; margin: -12px 0 30px; }
.catalogue-toolbar { border: 0; padding-bottom: 8px; }
.table-caption { font-size: 11px; color: var(--muted); padding-block: 18px; }
.table-caption > span:last-child { font-size: 9px; }
.task-table { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; border: 0; }
.task-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 16px 12px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 258px; align-items: start; transition: transform .25s, border-color .25s, box-shadow .25s; }
.task-row:hover { background: #fff; padding-left: 22px; border-color: #9fa596; }
.task-number { grid-area: 1/2; text-align: right; font-size: 10px; color: var(--muted); }
.task-modality { grid-area: 1/1; font-size: 10px; letter-spacing: .08em; }
.task-copy { grid-area: 2/1/3/3; display: flex; flex-direction: column; height: 100%; }
.task-name { font: 400 24px/1.18 var(--serif); letter-spacing: -.015em; }
.task-description { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-category { font-size: 11px; margin-top: auto; padding-top: 14px; color: var(--muted); }
.task-settings { grid-area: 3/1; text-align: left; font-size: 12px; color: var(--muted); }
.task-arrow { grid-area: 3/2; font-size: 20px; color: var(--green); }
.task-table > .empty-state, .task-table > .loading-state { grid-column: 1/-1; }
.pagination > p { font-size: 12px; }
.pagination > div { font-size: 11px; gap: 16px; }
.pagination button { width: 42px; }
.models-section { background: var(--surface); border-block: 1px solid var(--line); }
.model-distribution { margin: 0 0 36px; }
.model-distribution-bar { display: flex; gap: 3px; height: 54px; border-radius: 12px; overflow: hidden; }
.model-distribution-bar span { display: flex; align-items: center; padding: 0 14px; font: 26px var(--serif); min-width: 0; }
.model-distribution-bar span:nth-child(1) { flex: 32; background: #203e32; color: #fff; }
.model-distribution-bar span:nth-child(2) { flex: 6; background: #3f6b55; color: #fff; }
.model-distribution-bar span:nth-child(3) { flex: 11; background: #6f927e; color: #17231d; }
.model-distribution-bar span:nth-child(4) { flex: 11; background: #a9bfae; color: #17231d; }
.model-distribution-bar span:nth-child(5) { flex: 4; background: #d6dfd4; color: #17231d; }
.model-distribution figcaption { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.model-distribution figcaption i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.model-toolbar { border-top: 1px solid var(--line); padding-block: 22px; }
.model-category { font-size: 11px; }
.model-toolbar .search-field { background: #fff; }
.model-scroll-hint { font-size: 12px; }
.model-table-scroll { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.model-comparison-table thead th { border-top: 0; font-size: 11px; background: #efefe7; }
.model-comparison-table tbody th { background: #fff; }
.model-resource-category { font-size: 10px; }
.model-resource-copy h3 { font-size: 16px; }
.model-spec { font-size: 13px; }
.model-spec-parameters, .model-spec-input_length { font-size: 12px; }
.model-reference-details summary { font-size: 12px; }
.model-paper-title, .model-resource-note { font-size: 12px; }
.model-list-footer { border: 0; }
.approach-section { background: var(--paper); color: var(--ink); padding-block: 92px; border-bottom: 1px solid var(--line); }
.approach-section .eyebrow { color: var(--muted); }
.approach-section h2 em { color: var(--green); }
.approach-section .section-intro { color: #3d4842; }
.approach-grid { border-top: 1px solid var(--ink); padding-top: 30px; margin-top: 40px; gap: 32px; }
.approach-grid article, .approach-grid article:first-child, .approach-grid article:last-child { padding: 0; border: 0; }
.step-number { font-size: 48px; color: var(--green); margin-bottom: 22px; }
.approach-grid h3 { font: 400 26px/1.12 var(--serif); min-height: 0; }
.approach-grid p { font-size: 14px; line-height: 1.75; color: var(--muted); min-height: 0; }
.method-tag { font-size: 10px; line-height: 1.6; color: var(--muted); }
.resources-grid { gap: 18px; }
.resource-card { border-radius: 20px; padding: 30px; background: var(--surface); transition: transform .25s, border-color .25s; }
.resource-type { font-size: 11px; color: var(--muted); }
.resource-card h3 { font-size: 32px; }
.resource-card p { font-size: 15px; max-width: 440px; }
.resource-label { font-size: 11px; color: var(--muted); }
.paper-card, .paper-card:hover { background: #203e32; color: #eef0ea; border-color: #203e32; }
.paper-card .resource-type, .paper-card p { color: #c8d2cb; }
.paper-card .resource-label, .paper-card .resource-type > span { color: #e3c983; }
.site-footer { padding-block: 32px; background: var(--paper); }
.footer-wordmark { font-size: 32px; letter-spacing: -.025em; }
.footer-wordmark > span { font-size: 26px; }
.footer-bottom { font-size: 12px; color: var(--muted); padding-top: 22px; margin-top: 20px; }
dialog { border-radius: 20px; padding: 32px; }
.dialog-top button { border-radius: 50%; width: 40px; height: 40px; }
dialog h2 { font-size: 38px; }
#dialog-category { font-size: 14px; }
.task-explanation h3, .task-settings-heading { font-size: 11px; }
.task-explanation p { font-size: 15px; line-height: 1.8; }
.task-significance { background: #eaece2; border-radius: 0 12px 12px 0; }
.setting-detail code { font-size: 12px; }
.setting-labels span { font-size: 11px; border-radius: 5px; }
.dialog-note { font-size: 12px; }
#task-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(580px,100%); max-width: 100%; height: 100%; max-height: 100dvh; border-radius: 20px 0 0 20px; overscroll-behavior: contain; }
#task-dialog .dialog-top { top: -32px; }
#ranking-dialog-task, #ranking-dialog-note, #ranking-dialog-resource-note { font-size: 13px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .modality-card:hover, .task-row:hover, .resource-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -18px #17231d55; }
}
@media (min-width:1500px) { .hero { gap: 56px; } .hero-copy { padding: 0; } }
@media (max-width:1100px) {
  .nav-shell nav { gap: 0; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 72px; }
  .hero-description { font-size: 16px; }
  .section-heading { gap: 32px; }
  .modality-card, .modality-card:first-child, .modality-card:last-child { padding: 22px; }
  .scaling-section { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 24px; }
  .scaling-heading h2 { font-size: 42px; }
}
@media (max-width:900px) {
  .nav-shell nav { top: 100%; border-radius: 0 0 18px 18px; padding: 18px 28px; }
  .nav-shell nav > a { padding: 12px; }
  .nav-shell nav > a[aria-current="location"]::after { left: 12px; right: auto; width: 28px; }
  .nav-shell nav > .nav-resource { margin-left: 0; margin-top: 8px; padding: 12px; }
  .hero { gap: 24px; padding-top: 52px; }
  .hero h1 { font-size: 62px; }
  .hero-figure { padding: 18px; }
  .hero .eyebrow { line-height: 1.8; }
  .hero-footnote-end { flex-basis: 100%; margin: 8px 0 0; }
  .scaling-section { grid-template-columns: 1fr; }
  .scaling-heading { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
  .scaling-heading p:not(.eyebrow) { max-width: 620px; }
  .scaling-links { max-width: 150px; }
  .memory-layout { grid-template-columns: minmax(240px,.85fr) minmax(0,1.15fr); }
  .memory-controls { padding: 22px; }
  .task-table { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
  .container { width: calc(100% - 48px); }
  .site-header { height: 64px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(58px,10vw,80px); }
  .hero-description { font-size: 17px; }
  .hero-footnote-end { flex-basis: auto; margin: 0 0 0 8px; }
  .hero-figure { max-width: 540px; margin: 0 auto; padding: 22px; }
  .section, .benchmark-section, .approach-section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > .text-link, .memory-section .section-heading > .text-link { justify-self: start; }
  .stats-strip { grid-template-columns: repeat(4,1fr); padding-block: 24px; }
  .stats-strip > div, .stats-strip > div:first-child, .stats-strip > div:last-child { padding: 0 16px; border-bottom: 0; }
  .stats-strip > div:first-child { padding-left: 0; }
  .stats-strip > div:nth-child(2) { border-right: 1px solid var(--line); }
  .stats-strip strong { font-size: 46px; }
  .stats-strip span { font-size: 12px; }
  .modality-grid { grid-template-columns: 1fr; gap: 14px; }
  .modality-card, .modality-card:first-child, .modality-card:last-child { padding: 26px; }
  .modality-top { height: 70px; }
  .modality-card > p { max-width: 600px; }
  .modality-numbers { flex-direction: row; }
  .search-field { width: 100%; }
  .table-caption > span:last-child { display: none; }
  .approach-grid { grid-template-columns: 1fr; gap: 30px; }
  .approach-grid article { display: grid; grid-template-columns: 48px 1fr; gap: 0 22px; }
  .step-number { grid-column: 1; grid-row: 1/4; }
  .approach-grid h3, .approach-grid p, .method-tag { grid-column: 2; }
  .approach-grid p { margin-bottom: 14px; }
  .model-distribution-bar span { padding-inline: 10px; }
  .footer-bottom > span { width: auto; }
}
@media (max-width:650px) {
  .memory-layout { grid-template-columns: 1fr; }
  .memory-controls .memory-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .memory-section .memory-result { margin-top: 4px; }
  .memory-chart-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .memory-grid-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .memory-value strong { font-size: 60px; }
  .resources-grid { grid-template-columns: 1fr; }
  .scaling-heading { display: flex; flex-direction: column; align-items: flex-start; }
  .scaling-links { max-width: none; }
}
@media (max-width:550px) {
  .container { width: calc(100% - 40px); }
  .brand { font-size: 21px; }
  .hero { padding-block: 40px 32px; }
  .hero h1 { font-size: clamp(52px,12.8vw,70px); line-height: 1.02; letter-spacing: -.025em; }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .button { font-size: 13px; min-height: 46px; padding: 12px 17px; }
  .hero-footnote { font-size: 10px; }
  .hero-footnote-end { font-size: 16px; }
  .hero-figure { padding: 18px; }
  .figure-topline { font-size: 9px; }
  .hero-figure > img { margin-block: 8px; }
  .hero-figure figcaption { font-size: 12px; gap: 10px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); padding: 0; }
  .stats-strip > div, .stats-strip > div:first-child, .stats-strip > div:last-child { padding: 22px 0 22px 22px; gap: 6px; }
  .stats-strip > div:first-child, .stats-strip > div:nth-child(3) { padding-left: 0; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-strip span { max-width: none; }
  .section, .benchmark-section, .approach-section { padding-block: 60px; }
  .section-heading .eyebrow { font-size: 10px; }
  h2, .benchmark-heading h2 { font-size: 38px; }
  .section-intro, .catalogue-intro, .memory-intro { font-size: 15px; }
  .modality-card, .modality-card:first-child, .modality-card:last-child { padding: 24px; }
  .modality-card h3 { font-size: 28px; }
  .modality-card > p { font-size: 14px; }
  .ranking-tabs { flex-wrap: nowrap; justify-content: space-between; width: 100%; }
  .ranking-tabs button { padding: 9px; font-size: 12px; gap: 5px; }
  .ranking-tabs button span { font-size: 9px; }
  .ranking-search input { width: 100%; }
  .ranking-setting select { font-size: 14px; }
  .ranking-subtoolbar { gap: 14px; }
  .ranking-table tbody td, .ranking-table tbody th { padding: 15px 12px; }
  .ranking-table thead th { font-size: 11px; }
  .ranking-table .ranking-model { font-size: 14px; }
  .ranking-value { font-size: 13px; }
  .ranking-bottom { flex-wrap: wrap; }
  .ranking-bottom p, .ranking-reading-note, .ranking-source-note { font-size: 12px; }
  .ranking-bottom button { font-size: 13px; }
  .ranking-methods summary { font-size: 14px; }
  .ranking-method-grid { grid-template-columns: 1fr; }
  .ranking-method-grid p { font-size: 13px; }
  .heatmap-heading h3 { font-size: 28px; }
  .heatmap-inspect, .heatmap-help { font-size: 12px; }
  .heatmap-panels, .heatmap-panels[data-count="1"] { min-width: 0; }
  .heatmap-panels { grid-template-columns: repeat(3,330px); }
  .heatmap-panels[data-count="1"] { grid-template-columns: minmax(330px,1fr); }
  .category-cell { height: 34px; line-height: 34px; }
  .category-model-line { min-height: 36px; }
  .scaling-heading h2 { font-size: 38px; }
  .scaling-heading p:not(.eyebrow) { font-size: 15px; }
  .scaling-scope { font-size: 12px; }
  .scaling-figure { padding: 12px; }
  .memory-controls { padding: 22px; }
  .memory-grid-heading span { font-size: 10px; }
  .memory-length-buttons { gap: 8px; }
  .memory-gpu-table th, .memory-gpu-table td { padding: 16px; }
  .task-table { grid-template-columns: 1fr; }
  .task-row { padding: 22px; min-height: 238px; }
  .task-row:hover { padding-left: 22px; }
  .task-name { font-size: 25px; }
  .task-modality { font-size: 10px; }
  .task-description { font-size: 14px; }
  .task-settings { font-size: 12px; }
  .filters button { padding: 9px 13px; font-size: 13px; }
  .ranking-tabs button { padding-inline: 9px; font-size: 12px; }
  .pagination { gap: 16px; align-items: flex-start; }
  .pagination > p { font-size: 11px; line-height: 1.6; }
  .pagination > div { gap: 10px; flex: none; }
  .model-category { font-size: 10px; gap: 10px; }
  .model-category select { font-size: 14px; min-width: 0; }
  .model-distribution-bar { height: 48px; }
  .model-distribution-bar span { font-size: 22px; padding-inline: 6px; }
  .model-distribution figcaption { gap: 9px 16px; font-size: 12px; }
  .model-resource-copy h3 { font-size: 15px; }
  .model-resource-category { font-size: 10px; }
  .resource-card { padding: 26px; }
  .resource-card h3 { font-size: 30px; }
  .footer-wordmark { font-size: 29px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  #task-dialog { border-radius: 0; padding: 26px; }
  #task-dialog .dialog-top { top: -26px; }
  dialog h2 { font-size: 34px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors:active) {
  .memory-result, .memory-controls, .resource-card, .task-row { border: 1px solid CanvasText; }
  .ranking-leading .ranking-position > span { border: 1px solid CanvasText; }
}

