/* ──────────────────────────────────────────────────────────────────────────
   bench.innerpulse.net · site styles
   innerpulse brand, dark-first on ink with a paper light theme. Ember is reserved for the mark and the grades;
   coral (#ff7a59, the AI & agents family accent) marks focus and the model a view is about. Single-series bars
   are a quiet ink reading with no hue. Each model keeps one categorical colour for good (--s0 … --s7, picked by the
   "series" index in its data file), validated in order on adjacent pairs for CVD against both figure surfaces, and
   always beside its name. Series 8–15 reuse those eight hues drawn hollow (.s-hollow), so sixteen models get an
   identity each without a ninth hue. Where marks can touch (the dimension profile), models get a panel each instead of
   colours that must tell them apart. Status colours only ever mean a verdict, and always travel with an icon.
────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: "Syne"; src: url("../fonts/syne-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #05070b;
  --ink-1: #090d14;
  --ink-2: #0e141e;
  --ink-3: #151d2a;
  --text-1: #e8edf5;
  --text-2: #a3afc2;
  --text-3: #7d89a1;
  --line: rgba(170, 196, 255, .09);
  --line-2: rgba(170, 196, 255, .17);
  --hover: rgba(170, 196, 255, .06);

  --accent: #ff7a59;
  --accent-wash: rgba(255, 122, 89, .1);
  --pulse-from: #e5102e;
  --pulse-to: #ff6a1f;
  --pulse: #f23d26;

  --mark: #c9d2e0;
  --mark-quiet: #3a4556;
  --s0: #3987e5;
  --s1: #d95926;
  --s2: #199e70;
  --s3: #c98500;
  --s4: #d55181;
  --s5: #008300;
  --s6: #9085e9;
  --s7: #e66767;
  --grid: #1a2230;
  --axis: #2d3748;
  --zone-1: rgba(170, 196, 255, .035);
  --zone-2: rgba(170, 196, 255, .075);

  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --good-ink: #52d16b;
  --warning-ink: #fab219;
  --serious-ink: #f29c77;
  --critical-ink: #ff6b6b;

  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --measure: 68ch;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #f4f1ec;
    --ink-1: #eeeae3;
    --ink-2: #fbf9f5;
    --ink-3: #ebe6dd;
    --text-1: #10141b;
    --text-2: #465063;
    --text-3: #5f6877;
    --line: rgba(16, 20, 27, .1);
    --line-2: rgba(16, 20, 27, .18);
    --hover: rgba(16, 20, 27, .05);
    --accent: #b4411f;
    --accent-wash: rgba(180, 65, 31, .08);
    --pulse-from: #c20f2a;
    --pulse-to: #e04a12;
    --pulse: #d12c1e;
    --mark: #2b3444;
    --mark-quiet: #c9c2b5;
    --s0: #2a78d6;
    --s1: #eb6834;
    --s2: #1baf7a;
    --s3: #eda100;
    --s4: #e87ba4;
    --s5: #008300;
    --s6: #4a3aa7;
    --s7: #e34948;
    --grid: #e6e1d8;
    --axis: #cbc4b7;
    --zone-1: rgba(16, 20, 27, .03);
    --zone-2: rgba(16, 20, 27, .065);
    --good-ink: #1d7a1d;
    --warning-ink: #855600;
    --serious-ink: #a4451c;
    --critical-ink: #b42323;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--text-1); font: 400 16.5px/1.62 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--pulse) 35%, transparent); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--ink-3); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; overflow-wrap: anywhere; }
q { quotes: "“" "”"; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink-3); padding: 8px 12px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.55; }

h1, h2 { font-family: var(--display); color: var(--text-1); text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2rem, 6vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-weight: 700; font-size: clamp(1.55rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 16px; }
h3 { font: 600 1.08rem/1.35 var(--sans); margin: 0 0 8px; text-wrap: balance; }
.eyebrow { display: block; font: 500 11.5px/1.3 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.label { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 62ch; }
.link-arrow { font: 500 14px/1.4 var(--mono); color: var(--text-2); text-decoration: none; }
.link-arrow:hover { color: var(--text-1); }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--text-1); color: var(--ground); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--line-2); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text-1) 40%, transparent); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── brand ── */
.ip-bars { fill: none; stroke: var(--pulse); stroke: url(#ip-ember) var(--pulse); stroke-linecap: round; }
@media (prefers-color-scheme: light) { .ip-bars { stroke: url(#ip-ember-deep) var(--pulse); } }
.lockup { display: block; height: 30px; width: auto; overflow: visible; }
.lockup-word { fill: currentColor; }

/* ── masthead ── */
.mast { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--text-1); text-decoration: none; border-radius: 6px; }
.brand-label { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-left: 16px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: 999px; font: 500 14.5px/1 var(--sans); color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-1); background: var(--hover); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 999px 999px 4px 4px; }
@media (max-width: 860px) { .brand-label { display: none; } }
@media (max-width: 560px) {
  .mast-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 10px 6px; min-height: 0; }
  .lockup { height: 26px; }
  .nav { margin-left: -10px; width: calc(100% + 10px); overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}

/* ── hero ── */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 5vw, 56px); }
.hero h1 { max-width: 17ch; margin-bottom: 20px; }
.hero .lede { margin-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--ink-1); min-width: 0; }
.tile .t-label { font-size: 13.5px; color: var(--text-2); line-height: 1.35; }
.tile .t-value { font: 600 2rem/1.1 var(--sans); letter-spacing: -.02em; margin-top: 6px; color: var(--text-1); overflow-wrap: anywhere; }
.tile .t-value small { font: 600 1rem/1 var(--sans); color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.tile .t-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.tile .t-sub a { color: var(--text-2); }

/* ── sections ── */
.section { padding-block: clamp(44px, 7vw, 84px); border-top: 1px solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: 26px; }
.section-head p { color: var(--text-2); }
.section-head .brief { color: var(--text-1); font-size: 1.08rem; }
.section-head .brief .label { margin-bottom: 4px; }
.hw { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--text-3); }
.task-sub { margin: -2px 0 14px; font-size: 1.02rem; color: var(--text-2); }
/* the frozen rules of a ruleset */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; display: grid; gap: 10px; max-width: 86ch; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; color: var(--text-2); }
.rules li::before { content: counter(rule); font: 600 13px/1.6 var(--mono); color: var(--accent); }
.runs { font-size: 14px; color: var(--text-3); }
.runs a { color: var(--text-2); white-space: nowrap; }
.runs a:hover { color: var(--text-1); }
.section-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }

/* status chips: icon + label, never colour alone */
.chip { --c: var(--text-3); --ci: var(--text-2); display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ci); padding: 5px 9px 5px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; vertical-align: middle; }
.chip svg { width: 12px; height: 12px; flex: none; }
.chip.good { --c: var(--good); --ci: var(--good-ink); }
.chip.warning { --c: var(--warning); --ci: var(--warning-ink); }
.chip.serious { --c: var(--serious); --ci: var(--serious-ink); }
.chip.critical { --c: var(--critical); --ci: var(--critical-ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.tag.stealth { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-wash); }
/* model colours: .s-N sets --sc for the element and whatever inside it draws in that model's colour */
.s-0 { --sc: var(--s0); } .s-1 { --sc: var(--s1); } .s-2 { --sc: var(--s2); } .s-3 { --sc: var(--s3); }
.s-4 { --sc: var(--s4); } .s-5 { --sc: var(--s5); } .s-6 { --sc: var(--s6); } .s-7 { --sc: var(--s7); } .s-x { --sc: var(--mark); }
/* the ninth to sixteenth models reuse the eight hues in order, drawn hollow (.s-hollow): a tint of the hue inside a solid
   outline for dots, bars and chips, and a trace line with no fill beneath it. Never a ninth hue. */
.s-8 { --sc: var(--s0); } .s-9 { --sc: var(--s1); } .s-10 { --sc: var(--s2); } .s-11 { --sc: var(--s3); }
.s-12 { --sc: var(--s4); } .s-13 { --sc: var(--s5); } .s-14 { --sc: var(--s6); } .s-15 { --sc: var(--s7); }
.s-hollow { --sc-tint: color-mix(in srgb, var(--sc) 26%, var(--ink-2)); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--sc, var(--mark)); box-shadow: 0 0 0 2px var(--ink-2); }
.swatch.s-hollow { background: var(--sc-tint); box-shadow: inset 0 0 0 2.5px var(--sc), 0 0 0 2px var(--ink-2); }

/* ── figures ── */
.figure { container-type: inline-size; margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 24px); min-width: 0; }
.figure > h3 { margin-bottom: 4px; }
.fig-sub { font-size: 14px; color: var(--text-2); margin: 0 0 16px; max-width: 80ch; }
.figure figcaption { font-size: 13.5px; color: var(--text-3); margin-top: 14px; max-width: 90ch; line-height: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 13.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .chip { font-size: 10px; }
.stack { display: grid; gap: 22px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }

.tip { position: fixed; z-index: 60; pointer-events: none; min-width: 170px; max-width: 320px; background: var(--ink-3); color: var(--text-1); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; font: 400 12.5px/1.35 var(--sans); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(2px); transition: opacity .12s ease, transform .12s ease; }
.tip.on { opacity: 1; transform: none; }
.tip .tt { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.tip .row { display: grid; grid-template-columns: 16px auto 1fr; align-items: baseline; gap: 2px 8px; margin: 3px 0; }
.tip .row .k { width: 14px; height: 0; border-top: 2px solid var(--sc, var(--text-3)); align-self: center; }
.tip .row .k.mark { border-color: var(--mark); } .tip .row .k.acc { border-color: var(--accent); } .tip .row .k.none { border-color: transparent; } .tip .row .k.ref { border-color: var(--text-3); }
.tip .row .k.s-hollow { width: 10px; height: 10px; margin-inline: 2px; border: 2px solid var(--sc); border-radius: 50%; background: var(--sc-tint); }
.tip .row .k.good { border-color: var(--good); } .tip .row .k.warning { border-color: var(--warning); } .tip .row .k.critical { border-color: var(--critical); }
.tip .row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.tip .row .n { color: var(--text-2); }
.tip .note { margin-top: 6px; color: var(--text-2); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

details.data { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.data summary { cursor: pointer; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; color: var(--text-2); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
details.data summary::-webkit-details-marker { display: none; }
details.data summary::before { content: "+"; display: inline-block; width: 14px; color: var(--accent); }
details.data[open] summary::before { content: "−"; }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }   /* positioned, so hidden labels inside stay clipped */
details.data .table-scroll { margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.center, th.center { text-align: center; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font: 400 14px/1.4 var(--sans); letter-spacing: normal; text-transform: none; color: var(--text-1); white-space: normal; }
tr.total th { border-top: 1px solid var(--line-2); font-weight: 600; }
tr.total td { border-top: 1px solid var(--line-2); font-weight: 600; }

/* ── grade readout ── */
.readout { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 22px 18px; }
.readout .label { font-size: 11px; }
.readout .oneliner { margin: 16px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.verdict { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 780px) { .verdict { grid-template-columns: minmax(0, 1fr); } }
.verdict > * { min-width: 0; }
.summary p { max-width: 66ch; }
.summary .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
@media (max-width: 520px) { .summary .tiles { grid-template-columns: minmax(0, 1fr); } }
.conditions { display: flex; gap: 10px; align-items: baseline; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text-2); }
.conditions .label { flex: none; margin: 0; }
.conditions.runline { margin-top: 10px; }
.runline-note { display: block; margin-top: 3px; font-size: 13px; color: var(--text-3); }
/* run facts: descriptive only, a plain table in grade order */
.runfacts tbody th[scope="row"] { min-width: 13em; }
.runfacts tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--ink-2); box-shadow: inset -1px 0 0 var(--line); }
@media (max-width: 560px) {
  .runfacts tbody th[scope="row"] { min-width: 10.5em; }
  .conditions { flex-direction: column; gap: 6px; }
}
.runfacts-who { display: inline-flex; align-items: baseline; gap: 9px; }
.runfacts-who small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.runfacts-tokens { border-bottom: 1px dotted color-mix(in srgb, var(--text-3) 70%, transparent); cursor: help; }
.runfacts-none { color: var(--text-3); }
.runfacts-foot { margin: 10px 0 0; color: var(--text-3); }

/* ── ranking: one quiet bar per model over the grade zones ── */
.rank { display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 30px minmax(150px, 250px) minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 10px 8px; margin-inline: -8px; border-radius: 10px; color: inherit; text-decoration: none; }
.rank-row:hover, .rank-row:focus-visible { background: var(--hover); }
.rank-pos { font: 600 13px/1 var(--mono); color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.rank-who { min-width: 0; }
.rank-name { display: block; font-weight: 600; color: var(--text-1); line-height: 1.3; }
.rank-meta { display: block; font-size: 13px; color: var(--text-3); line-height: 1.35; }
.rank-plot { position: relative; min-width: 0; padding-right: 76px; }
.rank-track { display: block; position: relative; height: 24px; border-radius: 3px; background: linear-gradient(90deg, var(--zone-1) 0 50%, var(--zone-2) 50% 65%, var(--zone-1) 65% 80%, var(--zone-2) 80% 90%, var(--zone-1) 90% 100%); }
.rank-bar { position: absolute; left: 0; top: 4px; bottom: 4px; width: var(--v); background: var(--mark); border-radius: 0 4px 4px 0; transition: filter .15s; }
.rank-row:hover .rank-bar, .rank-row:focus-visible .rank-bar { filter: brightness(1.15); }
/* the label rides the bar's tip, out into the plot's reserved right padding */
.rank-val { position: absolute; top: 50%; left: calc(var(--v) + 10px); transform: translateY(-50%); white-space: nowrap; font: 400 13px/1 var(--mono); color: var(--text-2); }
.rank-val b { font: 600 15px/1 var(--sans); color: var(--text-1); margin-right: 5px; }
.rank.has-focus .rank-row:not(.is-focus) .rank-bar { background: var(--mark-quiet); }
.rank.has-focus .rank-row.is-focus .rank-bar { background: var(--accent); }
.rank-axis { display: grid; grid-template-columns: 30px minmax(150px, 250px) minmax(0, 1fr); gap: 0 16px; margin-top: 4px; }
.rank-axis .zones { grid-column: 3; position: relative; height: 30px; margin-right: 76px; border-top: 1px solid var(--axis); }
.rank-axis .zones span { position: absolute; top: 6px; transform: translateX(-50%); font: 500 11px/1 var(--mono); color: var(--text-3); }
.rank-axis .zones b { position: absolute; top: 0; height: 5px; border-left: 1px solid var(--axis); }
.rank-axis .zones em { position: absolute; top: 18px; transform: translateX(-50%); font: 400 10px/1 var(--mono); font-style: normal; color: var(--text-3); opacity: .8; }
@container (max-width: 600px) {
  .rank-row, .rank-axis { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
  .rank-plot, .rank-axis .zones { grid-column: 2; }
  .rank-axis .zones em { display: none; }
  .rank-axis .zones { height: 22px; }
}

/* leaderboard table */
.board td, .board tbody th { vertical-align: middle; }
.board thead th { vertical-align: bottom; }
.board th, .board td { padding-inline: 8px; }
.board .board-model { position: sticky; left: 0; z-index: 1; background: var(--ground); box-shadow: inset -1px 0 0 var(--line); min-width: 200px; }
.board thead .board-model { z-index: 2; }
.board-cell { display: flex; gap: 10px; align-items: baseline; }
.board-rank { flex: none; min-width: 2ch; text-align: right; font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text-3); }
.board-who { min-width: 0; }
.board-who a { font-weight: 600; text-decoration: none; }
.board-who a:hover { text-decoration: underline; }
.board-who small { display: block; color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.board-score { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.board-score b { font-weight: 700; color: var(--text-1); min-width: 20px; }
.ring { display: block; flex: none; overflow: visible; }
.ring-track { fill: none; stroke: var(--ink-3); stroke-width: 3.5; }
.ring-arc { fill: none; stroke: var(--pulse); stroke: url(#ring-ember) var(--pulse); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100 100; }
@media (prefers-color-scheme: light) { .ring-arc { stroke: url(#ring-ember-deep) var(--pulse); } }
.board thead th { white-space: normal; letter-spacing: .03em; }
.board th .sort { padding: 9px 15px 9px 6px; }
.board .sort-icon { right: 4px; }
.board td { padding-inline: 6px; }
.board .dim-col small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .04em; color: var(--text-3); }
.board .dim-cell { min-width: 62px; }
.board .links a { margin-right: 0; }
@media (max-width: 560px) { .board .board-model { min-width: 150px; max-width: 176px; } .board-who small { font-size: 11.5px; white-space: normal; } }
/* a dimension score: the number over an SVG micro-bar; the best score in each dimension takes the accent */
.dimc { display: inline-grid; justify-items: end; gap: 6px; vertical-align: middle; }
.dimc-n { font-variant-numeric: tabular-nums; color: var(--text-2); line-height: 1; }
.board .dimc-n { font-size: 14.5px; }
.dimc.best .dimc-n { color: var(--text-1); font-weight: 700; }
.mbar { display: block; overflow: visible; }
.mbar-track { fill: var(--zone-2); }
.mbar-fill { fill: var(--mark); fill-opacity: .72; transform-box: fill-box; transform-origin: left center; }
.dimc.best .mbar-fill { fill: var(--accent); fill-opacity: 1; }
.points .context-col { color: var(--text-2); }
.points thead .swatch { width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; box-shadow: none; }
.points tbody th { min-width: 10.5em; }
/* sortable headers (buttons added by site.js) */
th[data-sort] { position: relative; padding: 0; }
th[data-sort]:not(:has(> .sort)) { padding: 9px 8px; }
th .sort { display: block; width: 100%; box-sizing: border-box; padding: 9px 20px 9px 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: inherit; background: none; border: 0; border-radius: 4px; cursor: pointer; }
th .sort:hover { color: var(--text-1); }
th .sort:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sort-icon { position: absolute; right: 7px; bottom: 11px; width: 7px; height: 10px; background: currentColor; opacity: .35; clip-path: polygon(50% 0, 100% 40%, 50% 40%, 50% 60%, 100% 60%, 50% 100%, 0 60%, 50% 60%, 50% 40%, 0 40%); }
th[aria-sort="ascending"] .sort-icon, th[aria-sort="descending"] .sort-icon { opacity: 1; background: var(--accent); }
th[aria-sort="ascending"] .sort-icon { clip-path: polygon(50% 0, 100% 45%, 0 45%); }
th[aria-sort="descending"] .sort-icon { clip-path: polygon(0 55%, 100% 55%, 50% 100%); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--text-1); }
.board .g, .g-letter { font: 800 1.35rem/1 var(--display); letter-spacing: -.03em; color: var(--pulse); }
/* grades sit left, under their header, so the letters line up down the column and a + or − always has its own room */
.board .grade-col { text-align: left; }
.board .g { white-space: nowrap; }
.board .links a { font: 500 13px/1.4 var(--mono); color: var(--text-2); margin-right: 12px; white-space: nowrap; }
.board .links a:hover { color: var(--text-1); }
.conds { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-3); }
.conds b { color: var(--text-2); font-weight: 600; }

/* ── dimension scorecard: one quiet bar per dimension, reasons in the open ── */
.dims { display: grid; gap: 0; }
.dim { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dim:first-child { padding-top: 4px; }
.dim:last-child { border-bottom: 0; padding-bottom: 4px; }
.dim-head { display: flex; flex-direction: column; gap: 2px; }
.dim-label { font-weight: 600; line-height: 1.3; }
.dim-weight { font: 500 12px/1.4 var(--mono); color: var(--text-3); }
.dim-body { min-width: 0; }
.dim-plot { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; align-items: center; }
.dim-track { position: relative; height: 22px; border-radius: 3px; background-color: var(--zone-1); background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 25% 100%; }
.dim-bar { position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--v); background: var(--mark); border-radius: 0 4px 4px 0; }
.dim-score { font: 400 13px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.dim-score b { font: 600 15px/1 var(--sans); color: var(--text-1); margin-right: 6px; }
.dim-why { margin: 10px 0 0; font-size: 14.5px; color: var(--text-2); max-width: 80ch; }
@container (max-width: 640px) { .dim { grid-template-columns: minmax(0, 1fr); } .dim-head { flex-direction: row; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; } }

/* ── dimension profile (SVG): grade bands, a range per dimension, a profile line per compared model, context dots ── */
.pf-key { margin-bottom: 16px; }
.pf-key-mark { flex: none; overflow: visible; }
.pf-key-mark path { fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.pf-key-mark circle { fill: var(--text-1); stroke: var(--ink-2); stroke-width: 2.5; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.pf-panel { container-type: inline-size; min-width: 0; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 12px; }
.pf-head { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font: 600 15px/1.3 var(--sans); letter-spacing: normal; }
.pf-head a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-1); text-decoration: none; }
.pf-head a:hover { text-decoration: underline; }
.pf-score { margin-left: auto; font: 500 13px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.pf-score b { font-weight: 700; color: var(--text-1); }
.pf-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pf-narrow { display: none; }
@container (max-width: 420px) { .pf-wide { display: none; } .pf-narrow { display: block; } }
.pf-band { fill: var(--zone-1); }
.pf-band.z1, .pf-band.z3 { fill: var(--zone-2); }
.pf-divider { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.pf-hit { fill: transparent; }
.pf-hit:hover { fill: var(--hover); }
.pf-label { font: 400 13.5px var(--sans); fill: var(--text-2); pointer-events: none; }
.pf-label.total { font-weight: 600; fill: var(--text-1); }
.pf-ctx { fill: color-mix(in srgb, var(--mark) 42%, var(--ink-2)); stroke: var(--ink-2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.pf-ctx:hover { fill: var(--mark); }
.pf-line { fill: none; stroke: var(--sc); stroke-width: 2; stroke-opacity: .8; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; pointer-events: none; }
.pf-dot { fill: var(--sc); stroke: var(--ink-2); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.s-hollow .pf-dot { fill: var(--sc-tint); stroke: var(--sc); stroke-width: 2.25; }
.pf-zone { font: 600 10.5px var(--mono); fill: var(--text-3); text-anchor: middle; }
.swatch.context { background: color-mix(in srgb, var(--mark) 42%, var(--ink-2)); }

/* ── claim check: holds / qualified / wrong as a 100% bar per model ── */
.claimbars { display: grid; gap: 14px; }
.claimbar { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 6px 20px; align-items: center; }
.claimbar-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.claimbar-who b { font-weight: 600; }
.claimbar-who small { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.segs { display: flex; gap: 2px; height: 26px; min-width: 0; }
.seg { position: relative; flex: 1 1 0; min-width: 3px; display: flex; align-items: center; justify-content: center; font: 600 12.5px/1 var(--sans); color: #05070b; }
.seg:first-child { border-radius: 4px 0 0 4px; }
.seg:last-child { border-radius: 0 4px 4px 0; }
.seg:only-child { border-radius: 4px; }
.seg.good { background: var(--good); }
.seg.warning { background: var(--warning); }
.seg.critical { background: var(--critical); color: #fff; }
.seg:hover, .seg:focus-visible { filter: brightness(1.12); }
.seg .seg-lab { pointer-events: none; }
@container (max-width: 560px) { .claimbar { grid-template-columns: minmax(0, 1fr); } }

/* ── issue coverage matrix ── */
.cov td.issue-cell { min-width: 250px; }
.cov td.cov-n { width: 1%; }
.cov th.col { text-align: center; white-space: normal; min-width: 104px; }
.cov th.col small { display: block; font-size: 10px; letter-spacing: .04em; text-transform: none; color: var(--text-3); margin-top: 2px; }
.cov th.col .swatch { margin-right: 6px; vertical-align: -1px; box-shadow: none; width: 10px; height: 10px; }
.cov th.ref, .cov td.ref { background: color-mix(in srgb, var(--text-3) 5%, transparent); }
.cov td.cell { text-align: center; }
.cov .issue { display: block; }
.cov .flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cov .flags .chip { font-size: 9.5px; padding: 3px 7px 3px 5px; }
.cov .note { display: block; font: 400 11px/1.35 var(--mono); color: var(--text-3); margin-top: 3px; }
.cov tr.is-critical td:first-child { box-shadow: inset 2px 0 0 var(--critical); padding-left: 12px; }
.mark-yes, .mark-no, .mark-part { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 11.5px/1 var(--mono); }
.mark-yes::before, .mark-part::before, .mark-no::before { content: ""; width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.mark-yes::before { background: var(--text-1); }
.mark-part::before { background: linear-gradient(90deg, var(--text-1) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--text-1); }
.mark-no::before { box-shadow: inset 0 0 0 1.5px var(--text-3); }
.mark-yes { color: var(--text-1); } .mark-part { color: var(--text-2); } .mark-no { color: var(--text-3); }
.cov-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }

/* ── headline findings ── */
.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .findings { grid-template-columns: minmax(0, 1fr); } }
.finding { padding: 22px 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.findings .finding:nth-child(odd) { padding-right: 28px; }
.findings .finding:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 820px) { .findings .finding:nth-child(n) { padding: 20px 0; border-left: 0; } }
.finding h3 { margin-top: 12px; font-size: 1.12rem; }
.finding p { color: var(--text-2); margin-bottom: 10px; }
.refs { font: 400 12px/1.55 var(--mono); color: var(--text-3); overflow-wrap: anywhere; margin: 0; }

/* model cards on the leaderboard */
.model-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.model-card { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.model-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; }
.model-card-head h3 { font: 700 1.45rem/1.15 var(--display); letter-spacing: -.02em; margin: 2px 0 8px; }
.model-card-head h3 a { text-decoration: none; }
.model-card-head h3 a:hover { text-decoration: underline; }
.model-card .rank-no { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.mini-grade { text-align: right; }
.mini-grade .g { display: block; font: 800 2.6rem/.9 var(--display); letter-spacing: -.04em; color: var(--pulse); background: linear-gradient(135deg, var(--pulse-from), var(--pulse-to)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mini-grade .s { font: 600 13px/1 var(--mono); color: var(--text-2); }
.model-card .oneliner { font: 600 1.05rem/1.4 var(--sans); color: var(--text-1); margin: 14px 0 12px; }
/* the verdict chips share one column per card, as wide as its longest chip, so the text beside them lines up */
.headlines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 14px; }
.headlines li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.headlines li .chip { justify-self: start; }
@media (max-width: 480px) { .headlines { grid-template-columns: minmax(0, 1fr); } .headlines li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.model-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* head to head */
.versus { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
/* beside a tall chart (a whole task compared) the verdict stays in view instead of floating mid-column */
@media (min-width: 861px) { .versus:not(.stack) .versus-text { position: sticky; top: 96px; } }
@media (max-width: 860px) { .versus { grid-template-columns: minmax(0, 1fr); } }
.versus-text p { color: var(--text-2); max-width: 60ch; }
.versus-text .source { font-size: 13px; color: var(--text-3); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.versus.stack { grid-template-columns: minmax(0, 1fr); align-items: start; }
.versus.stack .pair { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 460px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.pair-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; text-decoration: none; color: inherit; display: block; }
.pair-card:hover { border-color: var(--line-2); }
.pair-card .who { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.pair-card .s { font: 600 13px/1.5 var(--mono); color: var(--text-2); }
.pair-card .s span { white-space: nowrap; }
.versus.stack .pair-card .s span { display: block; }
.versus.stack .pair-card .s .sep { display: none; }
.pair-card p { margin: 10px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* rubric weights: proportions with labels, no identity colour needed */
.weights { display: flex; gap: 2px; height: 40px; }
.weights span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; background: var(--mark-quiet); color: var(--text-1); font: 600 12.5px/1 var(--sans); min-width: 0; overflow: hidden; }
.weights span:nth-child(odd) { background: color-mix(in srgb, var(--mark) 22%, var(--ink-2)); }
.weights span:first-child { border-radius: 4px 0 0 4px; }
.weights span:last-child { border-radius: 0 4px 4px 0; }
.weights-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.weights-key b { font: 600 12px/1 var(--mono); color: var(--text-1); margin-right: 6px; }
@media (max-width: 640px) { .weights-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.method-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
@media (max-width: 860px) { .method-teaser { grid-template-columns: minmax(0, 1fr); } }
.method-teaser p { color: var(--text-2); }

/* ── model page ── */
.model-hero { padding-block: clamp(34px, 6vw, 72px) clamp(28px, 5vw, 52px); }
.model-hero h1 { margin-bottom: 14px; }
.model-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 28px; }
.model-meta .dotsep { color: var(--text-3); }
.model-meta span.m { font: 500 13px/1.4 var(--mono); color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(120deg, var(--accent-wash), transparent 60%), var(--ink-2); }
.cta h3 { margin: 0 0 4px; font: 700 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.cta p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.toc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.toc-chips a { font: 500 12px/1 var(--mono); color: var(--text-2); text-decoration: none; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; }
.toc-chips a:hover { color: var(--text-1); border-color: var(--line-2); }
.hunch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .hunch { grid-template-columns: minmax(0, 1fr); } }
.odds { display: grid; gap: 10px; }
.odd { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.odd-track { height: 18px; position: relative; background: var(--zone-1); border-radius: 3px; }
.odd-bar { position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--v); background: var(--mark); border-radius: 0 4px 4px 0; }
.odd:first-child .odd-bar { background: var(--accent); }
.odd-v { font: 600 13px/1 var(--mono); text-align: right; }
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.signals li { padding-left: 16px; border-left: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; }
.signals li strong { color: var(--text-1); }

/* ── compare page ── */
.picker { display: grid; gap: 16px; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-1); }
.picker-task { display: grid; gap: 6px; justify-self: start; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.picks legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.picks legend span { margin-left: 8px; letter-spacing: .06em; color: var(--text-2); }
/* a model toggle: the chip takes the model's colour when it's in the comparison */
.pick { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 15px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2); color: var(--text-2); font: 500 14.5px/1.2 var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.pick:hover { border-color: color-mix(in srgb, var(--sc) 55%, var(--line-2)); color: var(--text-1); }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick-box { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sc) 75%, var(--line-2)); transition: background-color .2s, box-shadow .2s; }
.pick small { font: 500 12px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.pick:has(input:checked) { border-color: color-mix(in srgb, var(--sc) 50%, var(--line-2)); background: color-mix(in srgb, var(--sc) 12%, var(--ink-2)); color: var(--text-1); }
.pick input:checked ~ .pick-box { background: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 25%, transparent); }
.pick.s-hollow input:checked ~ .pick-box { background: var(--sc-tint); box-shadow: inset 0 0 0 3px var(--sc), 0 0 0 3px color-mix(in srgb, var(--sc) 25%, transparent); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.picker-hint { font-size: 13.5px; color: var(--text-3); }
.picker select { min-width: 210px; min-height: 42px; padding: 0 36px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text-1); font: 500 15px/1 var(--sans); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.picker select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .picker-task, .picker select { width: 100%; } }
.readouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
/* card and panel grids on a wide screen: the page sets --cols so rows come out even (5 → 3 + 2, not 4 + 1) */
@media (min-width: 1080px) { .versus.stack .pair, .readouts, .pf-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
.readouts + .runs { margin: 16px 0 0; }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); text-align: center; }

/* ── reviews index ── */
.review-cards { display: grid; gap: 18px; }
.review-card { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (max-width: 760px) { .review-card { grid-template-columns: minmax(0, 1fr); } }
.review-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 8px; border: 1px solid var(--line); background: var(--ground); }
.review-card h3 { font: 700 1.4rem/1.15 var(--display); letter-spacing: -.02em; margin: 6px 0 8px; }
.review-card h3 a { text-decoration: none; }
.review-card h3 a:hover { text-decoration: underline; }
.review-card .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font: 500 12.5px/1.4 var(--mono); color: var(--text-3); }
.review-card .g { font: 800 1.2rem/1 var(--display); color: var(--pulse); }
.review-card p { color: var(--text-2); margin: 10px 0; }

/* ── method ── */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); font: 700 1.9rem/1 var(--display); letter-spacing: -.03em; color: var(--text-3); grid-row: span 2; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--text-2); margin: 0; max-width: 80ch; }
@media (max-width: 560px) { .steps > li { grid-template-columns: minmax(0, 1fr); } .steps > li::before { grid-row: auto; font-size: 1.3rem; } }
.rubric-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 22px; }
.rubric-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--ink-1); }
.rubric-item .w { font: 700 1.9rem/1 var(--display); letter-spacing: -.03em; color: var(--text-1); }
.rubric-item .w small { font: 500 12px/1 var(--mono); color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.rubric-item h3 { margin: 8px 0 4px; }
.rubric-item p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .issues { grid-template-columns: minmax(0, 1fr); } }
.issues li { border: 1px solid var(--line); border-left: 2px solid var(--critical); border-radius: 4px 12px 12px 4px; padding: 14px 16px; background: var(--ink-1); }
.issues h3 { margin-bottom: 4px; }
.issues p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.limits li { color: var(--text-2); margin-bottom: 6px; }
.quote { margin: 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--text-1); font-size: 1.05rem; max-width: 70ch; }

/* ── grade gauge: a 240° dial, F·D·C·B·A zones, ember arc to the reading ── */
.gauge { display: block; width: 100%; height: auto; overflow: visible; }
.gauge-lg { max-width: 270px; margin: 10px auto 0; }
.gauge-sm { max-width: 230px; margin: 8px auto 2px; }
.gauge-zone { fill: none; stroke: var(--ink-3); stroke-width: 11; }
.gauge-zone.on { stroke: color-mix(in srgb, var(--pulse) 24%, var(--ink-3)); }
.pair-card .gauge-zone, .readout .gauge-zone { stroke: color-mix(in srgb, var(--text-3) 22%, var(--ink-2)); }
.pair-card .gauge-zone.on, .readout .gauge-zone.on { stroke: color-mix(in srgb, var(--pulse) 30%, var(--ink-2)); }
.gauge-arc { fill: none; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 100 100; stroke: var(--pulse); stroke: url(#gauge-ember) var(--pulse); }
.gauge-marker { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--rot)); }
.gauge-marker circle { fill: var(--text-1); stroke: var(--ink-2); stroke-width: 3; }
.gauge-letter { font: 600 10px var(--mono); fill: var(--text-3); text-anchor: middle; dominant-baseline: central; }
.gauge-letter.on { fill: var(--text-1); font-weight: 700; }
.gauge-grade { font: 800 50px var(--display); letter-spacing: -.04em; text-anchor: middle; dominant-baseline: central; fill: var(--pulse); fill: url(#gauge-ember-text) var(--pulse); }
.gauge-score { font: 500 12px var(--mono); fill: var(--text-3); text-anchor: middle; }
.gauge-value { fill: var(--text-1); font-weight: 700; }
@media (prefers-color-scheme: light) {
  .gauge-arc { stroke: url(#gauge-ember-deep) var(--pulse); }
  .gauge-grade { fill: url(#gauge-ember-text-deep) var(--pulse); }
}

/* ── points meter: the 100-point grade split into weighted rubric slots, earned vs lost ── */
.meter { display: grid; gap: 12px; }
.meter-head, .meter-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 92px; gap: 6px 18px; align-items: center; }
.meter-cols { grid-column: 2; display: grid; column-gap: .4%; font: 500 11px/1.2 var(--mono); letter-spacing: .04em; color: var(--text-3); }
.meter-cols span { display: flex; gap: 7px; align-items: baseline; min-width: 0; padding-left: 2px; white-space: nowrap; }
.meter-cols b { color: var(--text-1); font-weight: 700; }
.meter-cols i { font-style: normal; }
.meter-who { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; line-height: 1.3; }
.meter-svg { display: block; width: 100%; height: 30px; overflow: visible; }
.meter-track { fill: var(--zone-2); }
.meter-fill { fill: var(--sc, var(--mark)); transform-box: fill-box; transform-origin: left center; }
.meter-fill.fill-acc { fill: var(--accent); } .meter-fill.fill-quiet { fill: var(--mark-quiet); }
.meter-fill.s-hollow { fill: var(--sc-tint); stroke: var(--sc); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.meter-slot { outline: none; }
.meter-slot:hover .meter-fill, .meter-slot:focus-visible .meter-fill { filter: brightness(1.18); }
.meter-slot:hover .meter-track, .meter-slot:focus-visible .meter-track { fill: color-mix(in srgb, var(--text-2) 16%, transparent); }
.meter-slot:focus-visible .meter-track { stroke: var(--accent); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.meter-row:not(.is-focus) .meter-who { color: var(--text-1); }
.meter.has-focus .meter-row:not(.is-focus) .meter-who { color: var(--text-2); font-weight: 500; }
.meter-total { font: 400 13px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.meter-total b { font: 600 22px/1 var(--sans); color: var(--text-1); margin-right: 5px; }
.meter-key { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 6px 22px; font-size: 13.5px; color: var(--text-2); }
.meter-key li { display: flex; gap: 8px; align-items: baseline; }
.meter-key b { font: 700 12px/1 var(--mono); color: var(--text-1); min-width: 10px; }
.meter-key span { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
@container (max-width: 860px) { .meter-cols i { display: none; } }
@container (max-width: 600px) {
  .meter-head, .meter-row { grid-template-columns: minmax(0, 1fr) auto; }
  .meter-head .meter-cols { grid-column: 1 / -1; }
  .meter-svg { grid-column: 1 / -1; grid-row: 2; }
}

/* ── claim grid: one cell per checked claim, status colour + icon ── */
.claimgrids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px 36px; }
.claimgrid { margin: 0; min-width: 0; }
.claimgrid-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; }
.claimgrid-who b { font-weight: 600; }
.claimgrid-who small { color: var(--text-3); font-size: 13px; }
.claimgrid-svg { display: block; width: 100%; max-width: 330px; height: auto; overflow: visible; }
.cell { cursor: default; }
.cell-body { transform-box: fill-box; transform-origin: center; }
.cell-body.hold rect { fill: var(--good); } .cell-body.hold { color: #05070b; }
.cell-body.qualified rect { fill: var(--warning); } .cell-body.qualified { color: #05070b; }
.cell-body.wrong rect { fill: var(--critical); } .cell-body.wrong { color: #ffffff; }
.cell:hover .cell-body { filter: brightness(1.14); }
.cell:hover rect { stroke: var(--text-1); stroke-width: 1.5px; }
.segs.thin { height: 8px; max-width: 330px; margin-top: 14px; }
.claimgrid-count { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); }
.claimgrid-count b { color: var(--text-1); font-weight: 600; }
.claimgrid-count span { color: var(--text-3); }

/* ── issue traces: each review as a logic-analyser channel across the tracked issues ── */
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trace { display: block; width: 100%; min-width: 760px; height: auto; }
.trace-label { font: 600 12.5px var(--sans); fill: var(--text-1); }
.trace-sub { font: 400 10px var(--mono); fill: var(--text-3); }
.trace-num { font: 500 10.5px var(--mono); fill: var(--text-3); text-anchor: middle; }
.trace-num.crit { fill: var(--critical-ink); font-weight: 700; }
.trace-crit { fill: color-mix(in srgb, var(--critical) 10%, transparent); }
.trace-col { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.trace-sep { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.trace-line { fill: none; stroke: var(--sc, var(--mark)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; }
.trace-line.s-ref { stroke: var(--text-3); stroke-width: 1.5; }
.trace-area { stroke: none; fill: color-mix(in srgb, var(--sc, var(--mark)) 12%, transparent); }
.trace-area.s-ref { fill: color-mix(in srgb, var(--text-3) 7%, transparent); }
.trace-area.s-hollow { fill: none; }
.trace-hit { fill: transparent; }
.trace-hit:hover { fill: var(--hover); }
.trace-scan { stroke: var(--text-1); stroke-width: 1.5; opacity: 0; pointer-events: none; }
.trace-legend li { color: var(--text-2); }
.trace-legend svg { color: var(--text-2); flex: none; }
.trace-key-crit { display: inline-block; width: 14px; height: 12px; border-radius: 2px; background: color-mix(in srgb, var(--critical) 22%, transparent); box-shadow: inset 2px 0 0 var(--critical); }
.cov td.cov-n { color: var(--text-3); font: 500 12px/1.6 var(--mono); padding-right: 4px; }

/* ── motion: charts render final; a [data-motion] block replays its entrance once in view (site.js), the hero gauge
   plays with the page. Only the start pose is ever hidden, and only while script is holding it. ── */
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.35); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes reveal-x { from { clip-path: inset(0 100% 0 0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes gauge-arc { from { stroke-dashoffset: 100; } }
@keyframes gauge-marker { from { transform: rotate(0deg); } }
@keyframes scan { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: .95; } 88% { opacity: .95; } 100% { opacity: 0; transform: translateX(var(--scan)); } }
.rank-bar, .dim-bar, .odd-bar { transform-origin: left center; }
.motion-wait .rank-bar, .motion-wait .dim-bar, .motion-wait .odd-bar, .motion-wait .meter-fill, .motion-wait .mbar-fill { transform: scaleX(0); }
.motion-wait .ring-arc { stroke-dashoffset: 100; }
.motion-wait .pf-line { stroke-dashoffset: 1; }
.motion-wait .pf-band, .motion-wait .pf-dot, .motion-wait .pf-ctx { opacity: 0; }
.motion-wait .rank-val, .motion-wait .cell-body, .motion-wait .trace-area { opacity: 0; }
.motion-wait .weights, .motion-wait .segs { clip-path: inset(0 100% 0 0); }
.motion-wait .trace-line { stroke-dashoffset: 1; }
.motion-wait .gauge-arc { stroke-dashoffset: 100; }
.motion-wait .gauge-marker { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .motion-play .rank-bar { animation: grow-x .9s var(--ease) calc(var(--i, 0) * 120ms) both; }
  .motion-play .rank-val { animation: fade-in .5s ease calc(var(--i, 0) * 120ms + .5s) both; }
  .motion-play .dim-bar { animation: grow-x .85s var(--ease) calc(var(--i, 0) * 80ms) both; }
  .motion-play .odd-bar { animation: grow-x .85s var(--ease) calc(var(--i, 0) * 90ms) both; }
  .motion-play .ring-arc { animation: gauge-arc 1.3s var(--ease) calc(var(--row, 0) * 120ms + .1s) both; }
  .motion-play .mbar-fill { animation: grow-x .8s var(--ease) calc(var(--row, 0) * 90ms + var(--i, 0) * 45ms + .15s) both; }
  .motion-play .pf-band { animation: fade-in .6s ease calc(var(--panel, 0) * 120ms) both; }
  .motion-play .pf-ctx { animation: fade-in .45s ease calc(var(--panel, 0) * 120ms + var(--i, 0) * 45ms + .15s) both; }
  .motion-play .pf-line { animation: draw 1.15s cubic-bezier(.45, 0, .2, 1) calc(var(--panel, 0) * 120ms + .35s) both; }
  .motion-play .pf-dot { animation: pop-in .45s var(--ease) calc(var(--panel, 0) * 120ms + var(--i, 0) * 80ms + .3s) both; }
  .motion-play .meter-fill { animation: grow-x .8s var(--ease) calc(var(--row, 0) * 170ms + var(--i, 0) * 90ms) both; }
  .motion-play .weights, .motion-play .segs { animation: reveal-x 1.1s var(--ease) .1s both; }
  .motion-play .claimgrid .segs { animation-delay: calc(var(--grid, 0) * 140ms + .6s); }
  .motion-play .cell-body { animation: pop-in .42s var(--ease) calc(var(--grid, 0) * 140ms + var(--i, 0) * 24ms) both; }
  .motion-play .trace-line { animation: draw 1.6s cubic-bezier(.45, 0, .2, 1) calc(var(--lane, 0) * 150ms) both; }
  .motion-play .trace-area { animation: fade-in .7s ease calc(var(--lane, 0) * 150ms + 1.2s) both; }
  .motion-play .trace-scan { animation: scan 1.9s cubic-bezier(.45, 0, .2, 1) both; }
  .gauge.autoplay .gauge-arc, .motion-play .gauge-arc { animation: gauge-arc 1.5s var(--ease) .2s both; }
  .gauge.autoplay .gauge-marker, .motion-play .gauge-marker { animation: gauge-marker 1.5s var(--ease) .2s both; }
}

/* ── footer ── */
.foot { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 64px); }
.foot-inner { padding-block: 44px 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px 32px; align-items: center; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } }
innerpulse-mark.foot-band { width: 120px; }
.foot .credit { font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; color: var(--text-2); margin: 0 0 6px; }
.foot p { margin: 0; color: var(--text-3); font-size: 13.5px; max-width: 64ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 13px/1.4 var(--mono); }
.foot-nav a { color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--text-1); }

/* ── 404 ── */
.lost { padding-block: clamp(60px, 12vw, 140px); text-align: left; }
.lost svg { width: 96px; height: 96px; margin-bottom: 18px; }

@media print {
  body { background: #fff; color: #000; }
  .mast, .tip, .foot, .picker { display: none; }
  .figure, .readout, .tile, .model-card { break-inside: avoid; }
}
