/* ==========================================================================
   dulus.ai — benchmarks.css
   /benchmarks/, "the proof", loaded after dulus.css. Set like a lab report:
   a title page with three numbers and how to read them, then seven
   numbered chapters — the bill, the window, the cache, how it works, head
   to head, any weighting, method — and the way out. Every class starts
   bench-.

   Charts are HTML and CSS (one inline SVG for the turn-by-turn lines), so
   every number stays text: selectable, translatable, readable without a
   script. Encoding follows one rule: Dulus is the one series in plumage,
   every other harness is a warm gray, the model window is the one signal
   colour, and colour is never the only cue — every value is printed.
   Grays were checked against the card surface (--bg-1): rival marks 4.4:1,
   the control 3.3:1, the window 7:1.

   Motion: the title page enters on CSS from the first paint; charts below
   it grow inside main.js's .reveal, which hides nothing without a script
   and nothing under reduced motion.
   ========================================================================== */

:root {
  --bench-dulus: var(--orange);
  --bench-dulus-bar: linear-gradient(90deg, var(--orange-2) 0%, var(--orange) 55%, var(--gold-1) 100%);
  --bench-rival: #7d7871;
  --bench-control: #68645f;
  --bench-cc: #cfcac2;
  --bench-copilot: #8d8881;
  --bench-limit: var(--danger);
  --bench-limit-ink: #ff8f8f;
  --bench-track: rgba(255, 236, 210, 0.07);
  --bench-grid: rgba(255, 236, 210, 0.065);
  --bench-axis: rgba(255, 236, 210, 0.16);
  --bench-figure: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold-1) 30%, var(--orange) 72%, var(--orange-2) 100%);
}

/* ------------------------------------------------------------- shared -- */

/* A number in plumage: the hero figures, the callouts, the big specs. */
.bench-num__fig,
.bench-callout__fig,
.bench-mech__fig,
.bench-bill__fig,
.bench-high__fig,
.bench-breaks__row.is-dulus .bench-breaks__n,
.bench-prof__score--dulus b {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.055em;
  background: var(--bench-figure);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Inline code in running copy: the site's small gold pill. */
.bench-mech__text code,
.bench-mech__cap code,
.bench-card__foot code,
.bench-fig__title code,
.bench-block__note code,
.bench-kv code,
.bench-h2h__meta code {
  padding: 0.06em 0.4em;
  border-radius: 6px;
  font-size: 0.86em;
  color: var(--gold);
  background: rgba(245, 152, 42, 0.07);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.16) inset;
  white-space: nowrap;
}
.bench-h2h__meta code {
  padding: 0;
  color: inherit;
  background: none;
  box-shadow: none;
}

/* Provenance tags. The mark carries the tier in shape as well as colour:
   a filled dot is measured, a ring is modelled, a square is the shared
   instrument, a half-filled dot is claimed, a hatched dot is the control. */
.bench-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 9px 0 8px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.bench-tag::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px currentColor inset;
}
.bench-tag--measured {
  color: var(--gold-ink);
  background: rgba(245, 152, 42, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.3) inset;
}
.bench-tag--measured::before {
  background: currentColor;
}
.bench-tag--same::before {
  border-radius: 1.5px;
  background: currentColor;
}
.bench-tag--claimed::before {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.bench-tag--control::before {
  background: repeating-linear-gradient(135deg, currentColor 0 1.2px, transparent 1.2px 2.6px);
}

/* A figure is a card with a "Fig. 0n" header, like a plate in a report. */
.bench-card {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.03), rgba(255, 245, 230, 0.01)), var(--bg-1);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-2);
  overflow: hidden;
}
.bench-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 20px clamp(18px, 2.2vw, 28px) 16px;
  border-bottom: 1px solid var(--line);
}
.bench-fig__no {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.bench-fig__title {
  flex: 1 1 24rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.bench-card__pad {
  padding: clamp(22px, 2.6vw, 34px);
}
.bench-card__foot {
  padding: 16px clamp(18px, 2.2vw, 28px) 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}
.bench-notes {
  display: grid;
  gap: 6px;
  padding: 16px clamp(18px, 2.2vw, 28px) 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-3);
}
.bench-notes li {
  position: relative;
  padding-left: 16px;
}
.bench-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--line-3);
  transform: rotate(45deg);
}

/* A small mono label used across tables. */
.bench-board__table thead th,
.bench-mini-table thead th,
.bench-peaks__table thead th,
.bench-kit__table thead th,
.bench-h2h__table thead th,
.bench-field__table thead th,
.bench-scores thead th,
.bench-prov__title,
.bench-duo__metric dt,
.bench-bill__daylabel,
.bench-prof__lab,
.bench-block__title,
.bench-caveats__title,
.bench-dossier__kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Two columns: a section head and its one callout number. */
.bench-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  align-items: end;
  gap: 32px clamp(40px, 6vw, 96px);
}
.bench-callout {
  display: grid;
  gap: 8px;
  padding: 22px 0 4px 24px;
  border-left: 1px solid var(--line-gold);
}
.bench-callout__fig {
  font-size: clamp(2.8rem, 1.9rem + 2.4vw, 4.2rem);
  line-height: 0.9;
  padding-bottom: 0.04em;
}
.bench-callout__label {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.bench-callout__fine {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-3);
}

/* Horizontal scroll for wide tables on small screens, never the page. */
.bench-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
.bench-scroll:focus-visible {
  outline-offset: -3px;
}

/* Squares, one per event (cache-prefix breaks). */
.bench-units {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.bench-units i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--bench-rival);
}
.bench-units--dulus i {
  background: var(--bench-dulus);
  box-shadow: 0 0 10px rgba(245, 152, 42, 0.45);
}

/* ---------------------------------------------------------------- hero -- */

.bench-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px));
  overflow: clip;
  isolation: isolate;
}
.bench-hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 44% at 18% 18%, rgba(245, 152, 42, 0.12), transparent 70%),
    radial-gradient(26% 30% at 20% 12%, rgba(255, 210, 122, 0.07), transparent 70%),
    radial-gradient(50% 40% at 92% 64%, rgba(200, 92, 35, 0.08), transparent 70%);
}
/* Graph paper, fading out from the title: a lab notebook, not a texture. */
.bench-hero__paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 236, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 236, 210, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask: radial-gradient(64% 56% at 24% 26%, #000 10%, transparent 76%);
  mask: radial-gradient(64% 56% at 24% 26%, #000 10%, transparent 76%);
}
.bench-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 32px clamp(40px, 5vw, 96px);
}
.bench-hero__head {
  display: grid;
  justify-items: start;
  gap: 26px;
}
.bench-hero__title {
  font-size: clamp(3.4rem, 0.9rem + 7.6vw, 8.6rem);
}
.bench-hero__title > span,
.bench-hero__title > .serif {
  display: block;
  width: fit-content;
}
.bench-hero__title > span {
  animation: rise 1.1s var(--ease-out) 60ms both;
}
.bench-hero__title > .serif {
  /* room for the descenders, so the plumage reaches them */
  padding: 0 0.1em 0.16em 0;
  margin-bottom: -0.16em;
  animation: rise 1.2s var(--ease-out) 200ms both;
}
.bench-hero__side {
  display: grid;
  justify-items: start;
  gap: 26px;
  padding-bottom: 0.5rem;
}
.bench-hero__lede {
  max-width: 36rem;
}
.bench-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.bench-hero__pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bench-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.4;
}
.bench-stamp div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.bench-stamp dt {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.bench-stamp dd {
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* The three numbers: the page's own fuel-facts strip. */
.bench-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line-2);
}
.bench-num {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.6vw, 44px) 0;
  border-left: 1px solid var(--line-2);
}
.bench-num:first-child {
  padding-left: 0;
  border-left: 0;
}
.bench-num:last-child {
  padding-right: 0;
}
.bench-num__fig {
  justify-self: start;
  padding: 0 0.04em 0.05em 0;
  font-size: clamp(3.6rem, 1.9rem + 4.4vw, 7rem);
  line-height: 0.9;
}
.bench-num__label {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.bench-num__fine {
  max-width: 36ch;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* Micro charts under each number. Decorative: the words beside them say
   the same thing. */
.bench-mini {
  display: grid;
  gap: 9px;
  margin: 6px 0 2px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}
.bench-mini__row {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.bench-mini__row--dulus {
  color: var(--gold-ink);
}
.bench-mini__track {
  position: relative;
  height: 8px;
  border-radius: 2px;
  background: var(--bench-track);
  overflow: hidden;
}
.bench-mini__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 2px;
  background: var(--bench-rival);
}
.bench-mini__row--dulus .bench-mini__fill,
.bench-mini__meter .bench-mini__fill {
  background: var(--bench-dulus-bar);
}
.bench-mini__val {
  min-width: 3.6rem;
  text-align: right;
  color: var(--ink-2);
}
.bench-mini__row--dulus .bench-mini__val {
  color: var(--gold-ink);
}
.bench-mini--units .bench-mini__row {
  grid-template-columns: 6.4rem minmax(0, 1fr);
  align-items: start;
}
.bench-mini--units .bench-units {
  gap: 2px;
  padding-top: 2px;
}
.bench-mini--units .bench-units i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
}
.bench-mini__meter {
  position: relative;
  height: 8px;
  margin: 24px 0 10px;
  border-radius: 2px;
  background: var(--bench-track);
}
.bench-mini__meter::after {
  /* the end of the model window */
  content: "";
  position: absolute;
  right: 0;
  top: -7px;
  bottom: -7px;
  width: 2px;
  border-radius: 1px;
  background: var(--bench-limit);
}
.bench-mini__mark,
.bench-mini__end {
  position: absolute;
  bottom: calc(100% + 8px);
  white-space: nowrap;
}
.bench-mini__mark {
  left: var(--w);
  transform: translateX(-100%);
  color: var(--gold-ink);
}
.bench-mini__end {
  right: 0;
  color: var(--bench-limit-ink);
}

/* How to read the numbers: right under them, not in a footnote. */
.bench-prov {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px clamp(18px, 2.2vw, 28px) 24px;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.025), transparent), var(--sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.bench-prov__title {
  color: var(--gold-ink);
}
.bench-prov__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(24px, 3vw, 44px);
  margin-top: 16px;
}
.bench-prov__list li {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}
.bench-prov__list p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}
.bench-prov__list strong {
  font-weight: 560;
}

/* Contents */
.bench-toc {
  margin-top: clamp(40px, 4vw, 64px);
  border-top: 1px solid var(--line);
  animation: rise 1s var(--ease-out) 880ms both;
}
.bench-toc__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.bench-toc__list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  height: 100%;
  padding: 20px 14px 24px 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  transition: color var(--t) var(--ease);
}
.bench-toc__list a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  top: -1px;
  height: 1px;
  background: var(--plumage-x);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.bench-toc__list a:hover,
.bench-toc__list a:focus-visible {
  color: var(--ink);
}
.bench-toc__list a:hover::before,
.bench-toc__list a:focus-visible::before {
  transform: none;
}
.bench-toc__no {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

/* ------------------------------------------------------------ 01 bill -- */

.bench-board__table {
  width: 100%;
  border-collapse: collapse;
}
.bench-board__table th,
.bench-board__table td {
  padding: 12px clamp(18px, 2.2vw, 28px);
  text-align: left;
  vertical-align: middle;
}
.bench-board__table thead th {
  padding-top: 16px;
  padding-bottom: 12px;
  vertical-align: bottom;
  border-bottom: 1px solid var(--line-2);
}
.bench-board__table thead th:first-child {
  width: 15.5rem;
}
.bench-board__tokh,
.bench-board__tok {
  width: 11rem;
  text-align: right !important;
}
.bench-board__scale {
  position: relative;
  display: block;
  width: calc(100% - 7.5rem);
  height: 1.1em;
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-4);
}
.bench-board__scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.bench-board__scale span:nth-child(1) { left: 0; transform: none; }
.bench-board__scale span:nth-child(2) { left: 25%; }
.bench-board__scale span:nth-child(3) { left: 50%; }
.bench-board__scale span:nth-child(4) { left: 75%; }
.bench-board__scale span:nth-child(5) { left: 100%; }
.bench-board__table tbody tr {
  border-bottom: 1px solid var(--line);
}
.bench-board__table tbody tr:last-child {
  border-bottom: 0;
}
.bench-board__table tbody th {
  font-weight: 400;
}
.bench-board__name {
  display: block;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.bench-board__sub {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
.bench-board__table tbody th .bench-tag {
  margin-top: 7px;
}
.bench-board__table tr.is-dulus {
  background: linear-gradient(90deg, rgba(245, 152, 42, 0.08), rgba(245, 152, 42, 0.015) 60%, transparent);
}
.bench-board__table tr.is-dulus th {
  box-shadow: 2px 0 0 var(--bench-dulus) inset;
}
.bench-bar {
  position: relative;
  display: block;
  width: calc(100% - 7.5rem);
  height: 16px;
  /* the scale's gridlines, at $0, $25, $50 and $75; every row draws its
     own and they line up into continuous rules */
  background-image: linear-gradient(90deg, var(--bench-grid) 1px, transparent 1px);
  background-size: 25% 100%;
  box-shadow: 1px 0 0 var(--bench-grid);
}
.bench-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(min(var(--v), 100) * 1%);
  border-radius: 0 3px 3px 0;
  background: var(--bench-rival);
  transform-origin: left center;
}
.is-dulus .bench-bar__fill {
  background: var(--bench-dulus-bar);
  box-shadow: 0 0 22px -2px rgba(245, 152, 42, 0.45);
}
.is-control .bench-bar__fill {
  background: var(--bench-control);
}
/* A cut bar: the value runs off the scale, so the bar carries a break. */
.bench-bar.is-cut .bench-bar__fill::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  right: 16px;
  width: 6px;
  background: var(--bg-1);
  transform: skewX(-22deg);
}
.bench-bar__val {
  position: absolute;
  left: calc(min(var(--v), 100) * 1% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.96rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.is-dulus .bench-bar__val {
  color: var(--gold-ink);
}
.bench-board__tok {
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.is-dulus .bench-board__tok {
  color: var(--ink);
  font-weight: 560;
}
.bench-board__unit,
.bench-peaks__unit,
.bench-field__unit {
  display: none;
}

/* The bars grow from the baseline as the figure comes in. */
html.js .bench-board.reveal .bench-bar__fill {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(260ms + var(--i, 0) * 70ms);
}
html.js .bench-board.reveal .bench-bar__val {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  transition-delay: calc(780ms + var(--i, 0) * 70ms);
}
html.js .bench-board.reveal.is-in .bench-bar__fill {
  transform: none;
}
html.js .bench-board.reveal.is-in .bench-bar__val {
  opacity: 1;
}

/* ---------------------------------------------------------- 02 window -- */

.bench-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px clamp(18px, 2.2vw, 28px) 0;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.bench-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.bench-legend__key,
.bench-readout__key,
.bench-key {
  flex: none;
  display: inline-block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--bench-rival);
}
.bench-legend__item--dulus .bench-legend__key,
.bench-readout__row--dulus .bench-readout__key,
.bench-key--dulus {
  height: 3px;
  background: var(--bench-dulus);
}
.bench-legend__item--cc .bench-legend__key,
.bench-readout__row--cc .bench-readout__key,
.bench-key--cc {
  background: var(--bench-cc);
}
.bench-legend__item--copilot .bench-legend__key,
.bench-readout__row--copilot .bench-readout__key,
.bench-key--copilot {
  background: var(--bench-copilot);
}
.bench-legend__item--limit .bench-legend__key {
  height: 1.5px;
  background: var(--bench-limit);
}
.bench-legend__item--limit {
  color: var(--bench-limit-ink);
}
.bench-legend__item--naive .bench-legend__key,
.bench-readout__row--naive .bench-readout__key,
.bench-key--naive {
  background: var(--bench-control);
}

.bench-turns__frame {
  position: relative;
  padding: 26px clamp(18px, 2.2vw, 28px) 6px calc(clamp(18px, 2.2vw, 28px) + 3rem);
}
.bench-turns__plot {
  position: relative;
  aspect-ratio: 1190 / 380;
  min-height: 230px;
}
.bench-turns__plot:focus-visible {
  outline-offset: 6px;
}
.bench-turns__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.bench-turns__zone {
  fill: rgba(255, 107, 107, 0.055);
}
.bench-turns__grid,
.bench-turns__base,
.bench-turns__limit,
.bench-turns__line {
  vector-effect: non-scaling-stroke;
}
.bench-turns__grid {
  stroke: var(--bench-grid);
  stroke-width: 1;
}
.bench-turns__base {
  stroke: var(--bench-axis);
  stroke-width: 1;
}
.bench-turns__limit {
  stroke: var(--bench-limit);
  stroke-width: 1.5;
}
.bench-turns__line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bench-turns__line--dulus {
  stroke: var(--bench-dulus);
  stroke-width: 2.5;
}
.bench-turns__line--cc {
  stroke: var(--bench-cc);
}
.bench-turns__line--copilot {
  stroke: var(--bench-copilot);
}
.bench-turns__line--naive {
  stroke: var(--bench-control);
}
.bench-turns__y {
  position: absolute;
  right: calc(100% + 12px);
  top: var(--y);
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-4);
}
.bench-turns__y--limit {
  color: var(--bench-limit-ink);
}
.bench-turns__zone-label,
.bench-turns__exit {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.35;
  pointer-events: none;
}
.bench-turns__zone-label {
  right: 8px;
  top: 8px;
  max-width: 24ch;
  text-align: right;
  color: var(--bench-limit-ink);
  opacity: 0.85;
}
.bench-turns__exit {
  left: var(--x);
  top: 6px;
  max-width: 28ch;
  margin-left: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--ink-3);
  background: rgba(14, 13, 12, 0.86);
}
.bench-turns__cut {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bench-dulus);
  box-shadow: 0 0 0 2px var(--bg-1), 0 0 12px rgba(245, 152, 42, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.bench-turns__x {
  position: relative;
  height: 1.5em;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-4);
}
.bench-turns__x > span {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  white-space: nowrap;
}
.bench-turns__x > span:first-child {
  transform: none;
}
.bench-turns__x > span:last-child {
  transform: translateX(-100%);
}

/* The readout (benchmarks.js): a hairline that snaps to a turn, a dot on
   every line, and one box with every series' value at that turn. */
.bench-turns__cross {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 1px;
  background: rgba(255, 236, 210, 0.38);
  pointer-events: none;
}
.bench-turns__dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bench-rival);
  box-shadow: 0 0 0 2px var(--bg-1);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.bench-turns__dot--dulus {
  width: 11px;
  height: 11px;
  background: var(--bench-dulus);
}
.bench-turns__dot--cc {
  background: var(--bench-cc);
}
.bench-turns__dot--copilot {
  background: var(--bench-copilot);
}
.bench-turns__dot--naive {
  background: var(--bench-control);
}
.bench-readout {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: var(--x);
  min-width: 15.5rem;
  padding: 10px 12px 11px;
  border-radius: 12px;
  font-size: 0.78rem;
  background: rgba(19, 18, 17, 0.95);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 20px 44px -18px rgba(0, 0, 0, 0.95);
  transform: translateX(16px);
  pointer-events: none;
}
.bench-readout.is-left {
  transform: translateX(calc(-100% - 16px));
}
.bench-readout__turn {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bench-readout__turn b {
  font-weight: 500;
  color: var(--ink);
}
.bench-readout__list {
  display: grid;
  gap: 4px;
}
.bench-readout__row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}
.bench-readout__row b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bench-readout__key {
  width: 14px;
}

/* The Marathon summary under the chart. */
.bench-mini-table,
.bench-peaks__table {
  width: 100%;
  border-collapse: collapse;
}
.bench-mini-table {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.bench-mini-table th,
.bench-mini-table td,
.bench-peaks__table th,
.bench-peaks__table td {
  padding: 11px clamp(18px, 2.2vw, 28px);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.bench-mini-table thead th,
.bench-peaks__table thead th {
  padding-top: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.bench-mini-table td,
.bench-mini-table thead th:not(:first-child),
.bench-peaks__over,
.bench-peaks__overh {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}
.bench-mini-table td {
  font-size: 0.94rem;
  color: var(--ink-2);
}
.bench-mini-table tbody th,
.bench-peaks__table tbody th {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.bench-mini-table tbody th .bench-key {
  margin-right: 12px;
  vertical-align: middle;
}
.bench-mini-table tbody tr:last-child > *,
.bench-peaks__table tbody tr:last-child > * {
  border-bottom: 0;
}
.bench-mini-table tr.is-dulus td,
.bench-peaks__table tr.is-dulus td {
  color: var(--ink);
  font-weight: 560;
}
.bench-mini-table tr.is-dulus,
.bench-peaks__table tr.is-dulus {
  background: linear-gradient(90deg, rgba(245, 152, 42, 0.07), transparent 70%);
}

/* All six scenarios: a meter per harness against the 200k window. */
.bench-peaks__table tbody td:nth-child(2) {
  white-space: nowrap;
}
.bench-meter {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: min(300px, 46%);
  height: 8px;
  margin-right: 16px;
  border-radius: 2px;
  background: var(--bench-track);
}
.bench-meter::after {
  content: "";
  position: absolute;
  right: 0;
  top: -6px;
  bottom: -6px;
  width: 2px;
  border-radius: 1px;
  background: var(--bench-limit);
}
.bench-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 100%);
  border-radius: 2px;
  background: var(--bench-rival);
}
.is-dulus .bench-meter__fill {
  background: var(--bench-dulus-bar);
}
/* Past the window: the bar runs through the line and out. */
.bench-meter.is-over .bench-meter__fill {
  right: -12px;
  width: auto;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, var(--bench-rival) 72%, var(--bench-limit));
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 4px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 4px), transparent);
}
.bench-peaks__val {
  display: inline-block;
  min-width: 6.5rem;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.is-over .bench-peaks__val {
  padding-left: 12px;
}
.bench-peaks__over {
  font-size: 0.94rem;
  color: var(--ink-2);
}
.bench-peaks__table tr.is-over .bench-peaks__over {
  color: var(--bench-limit-ink);
  font-weight: 560;
}

/* ----------------------------------------------------------- 03 cache -- */

.bench-cache {
  overflow: clip;
  isolation: isolate;
}
.bench-cache__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 86% 74%, rgba(245, 152, 42, 0.07), transparent 70%),
    radial-gradient(36% 26% at 8% 20%, rgba(200, 92, 35, 0.05), transparent 70%);
}
.bench-breaks__list {
  padding: 4px clamp(18px, 2.2vw, 28px) 10px;
}
.bench-breaks__row {
  display: grid;
  grid-template-columns: 10rem 3.4rem minmax(0, 1fr);
  align-items: start;
  gap: 8px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.bench-breaks__row:last-child {
  border-bottom: 0;
}
.bench-breaks__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.bench-breaks__n {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}
.bench-breaks__row.is-dulus .bench-breaks__n {
  font-size: 1.6rem;
}
.bench-breaks__row .bench-units {
  padding-top: 5px;
}
.bench-breaks__why {
  padding-top: 2px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-3);
}
.bench-breaks__row--none .bench-breaks__n {
  color: var(--ink-3);
}

.bench-cache__pair {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.bench-cache__pair > .bench-card {
  margin-top: 0;
}
.bench-honest__title {
  font-size: var(--fs-3);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.bench-honest__text {
  max-width: 40rem;
  margin-top: 14px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-3);
}
.bench-duo {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}
.bench-duo__metric dd {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.bench-duo__row {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr) 4.6rem;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.bench-duo__row.is-dulus {
  color: var(--gold-ink);
}
.bench-duo__track {
  position: relative;
  height: 10px;
  border-radius: 2px;
  background: var(--bench-track);
  overflow: hidden;
}
.bench-duo__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 2px;
  background: var(--bench-rival);
}
.bench-duo__row.is-dulus .bench-duo__fill {
  background: var(--bench-dulus-bar);
}
.bench-duo__val {
  text-align: right;
  font-size: 0.92rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* On a real bill: a statement, not a chart — one account, its own meter. */
.bench-bill {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(245, 152, 42, 0.11), transparent 62%),
    linear-gradient(180deg, rgba(255, 245, 230, 0.035), rgba(255, 245, 230, 0.01)),
    var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-gold) inset, var(--shadow-2);
}
.bench-bill__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-2);
}
.bench-bill__title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.bench-bill__tag {
  padding: 4px 10px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.bench-bill__fig {
  margin-top: 20px;
  padding-bottom: 0.04em;
  font-size: clamp(3rem, 2rem + 2.8vw, 4.6rem);
  line-height: 0.9;
}
.bench-bill__label {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
.bench-bill__meter {
  position: relative;
  height: 8px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--bench-track);
  overflow: hidden;
}
.bench-bill__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--bench-dulus-bar);
}
.bench-bill__week {
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.bench-bill__week strong {
  font-weight: 600;
  color: var(--ink);
}
.bench-bill__day {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.bench-bill__stack {
  display: flex;
  gap: 2px;
  height: 12px;
  margin-top: 12px;
}
.bench-bill__seg {
  flex: var(--g) 1 0;
  border-radius: 2px;
}
.bench-bill__seg--cached {
  background: var(--bench-dulus-bar);
}
.bench-bill__seg--fresh {
  background: var(--bench-rival);
}
.bench-bill__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.bench-bill__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bench-bill__legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--bench-rival);
}
.bench-bill__li--cached::before {
  background: var(--bench-dulus) !important;
}
.bench-bill__legend strong {
  font-weight: 600;
  color: var(--ink);
}
.bench-bill__fine {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-4);
  text-wrap: pretty;
}

/* ---------------------------------------------------- 04 how it works -- */

.bench-mechs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 5vw, 72px);
}
.bench-mech {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 34px);
}
.bench-mech__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.bench-mech__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.3rem;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--gold-ink);
}
.bench-mech__title {
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.bench-mech__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-3);
  text-wrap: pretty;
}
.bench-mech__text--honest {
  padding-left: 14px;
  border-left: 2px solid var(--line-gold);
  color: var(--ink-2);
}
.bench-mech__spec {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "fig diag"
    "cap diag";
  align-items: end;
  gap: 6px 22px;
  margin-top: auto;
  padding: 18px;
  border-radius: var(--r);
  background: var(--sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.bench-mech__fig {
  grid-area: fig;
  justify-self: start;
  padding: 0 0.04em 0.05em 0;
  font-size: clamp(2.6rem, 1.8rem + 1.9vw, 3.6rem);
  line-height: 0.9;
}
.bench-mech__fig--word {
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.bench-mech__cap {
  grid-area: cap;
  align-self: start;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-3);
}
.bench-gate,
.bench-strip,
.bench-term,
.bench-tree {
  grid-area: diag;
  align-self: center;
  min-width: 0;
}

/* 01: the cache-payoff gate, written as the rule it is. */
.bench-gate {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.bench-gate__row {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.bench-gate__if {
  color: var(--gold);
}
.bench-gate__then::before {
  content: "→ ";
  color: var(--ink-4);
}
.bench-gate__row--else {
  box-shadow: 0 0 0 1px var(--line) inset;
}
.bench-gate__row--else .bench-gate__if {
  color: var(--ink-3);
}

/* 02: twenty turns on the wire, the rest at home, one call away. */
.bench-strip__ticks {
  display: grid;
  grid-template-columns: repeat(32, minmax(0, 1fr));
  gap: 2px;
  height: 28px;
}
.bench-strip__ticks i,
.bench-strip__ticks b {
  border-radius: 1.5px;
}
.bench-strip__ticks i {
  background: rgba(255, 236, 210, 0.11);
}
.bench-strip__ticks b {
  background: linear-gradient(180deg, var(--gold-1), var(--orange));
}
.bench-strip__labels {
  display: grid;
  grid-template-columns: 12fr 20fr;
  gap: 2px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.35;
  color: var(--ink-4);
}
.bench-strip__labels span {
  padding-top: 5px;
  border-top: 1px solid var(--line-2);
}
.bench-strip__labels span:last-child {
  border-top-color: var(--line-gold);
  color: var(--gold-ink);
}
.bench-strip__call {
  margin-top: 10px;
}
.bench-strip__call code {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(245, 152, 42, 0.07);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.2) inset;
}

/* 03: the kernel keeps the data; the context gets the slice. */
.bench-term {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #050506;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.bench-term__line {
  display: grid;
  gap: 2px;
}
.bench-term__line code {
  font-size: 0.76rem;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bench-term__line span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-4);
}
.bench-term__line span::before {
  content: "# ";
}

/* 04: the halls. */
.bench-tree {
  display: grid;
  gap: 3px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.bench-tree li {
  position: relative;
  padding-left: 24px;
}
.bench-tree li::before {
  content: "├─";
  position: absolute;
  left: 0;
  color: var(--ink-4);
}
.bench-tree li:last-child::before {
  content: "└─";
}

/* The toolkit across the field. */
.bench-kit__table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}
.bench-kit__table th,
.bench-kit__table td {
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.bench-kit__table thead th {
  padding-top: 16px;
  padding-bottom: 12px;
  vertical-align: bottom;
  border-bottom: 1px solid var(--line-2);
}
.bench-kit__table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 15rem;
  padding-left: clamp(18px, 2.2vw, 28px);
  text-align: left;
  background: var(--bg-1);
}
.bench-kit__table tbody th {
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.bench-kit__table tbody tr:last-child > * {
  border-bottom: 0;
}
.bench-kit__table .is-dulus {
  background: rgba(245, 152, 42, 0.055);
}
.bench-kit__table thead .is-dulus {
  color: var(--gold-ink);
}
.bench-cell {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1;
}
.bench-cell svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
.bench-cell--yes {
  color: var(--ink);
  background: rgba(255, 236, 210, 0.08);
}
.is-dulus .bench-cell--yes {
  color: #1d1003;
  background: var(--plumage);
  box-shadow: 0 6px 16px -8px rgba(245, 152, 42, 0.8);
}
.bench-cell--no,
.bench-cell--unknown {
  color: var(--ink-4);
}
.bench-tier {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.bench-tier--measured {
  color: var(--gold-ink);
}
.bench-tier--documented,
.bench-tier--vendor {
  color: var(--ink-3);
}

/* ------------------------------------------------------ 05 head to head -- */

.bench-h2h__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
  padding: 10px clamp(12px, 1.6vw, 22px) 4px;
}
.bench-h2h__table thead th {
  padding: 8px 6px 6px;
  text-align: center;
  vertical-align: bottom;
  line-height: 1.35;
}
.bench-h2h__table thead th:first-child {
  width: 15rem;
  text-align: left;
}
.bench-h2h__table tbody th {
  padding: 10px 14px 10px 4px;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}
.bench-h2h__scen {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.bench-h2h__meta {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--ink-4);
}
.bench-h2h__cell,
.bench-ramp__steps span {
  --a: 0.05;
  background: rgba(245, 152, 42, var(--a));
}
[data-b="2"] { --a: 0.11; }
[data-b="3"] { --a: 0.18; }
[data-b="4"] { --a: 0.27; }
[data-b="5"] { --a: 0.38; }
[data-b="6"] { --a: 0.5; }
.bench-h2h__cell {
  padding: 12px 6px 11px;
  border-radius: 10px;
  text-align: center;
  vertical-align: middle;
}
.bench-h2h__x {
  display: block;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bench-h2h__ci {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink-3);
}
/* interval text keeps 4.5:1 on the deeper cells */
.bench-h2h__cell[data-b="4"] .bench-h2h__ci,
.bench-h2h__cell[data-b="5"] .bench-h2h__ci {
  color: var(--ink-2);
}
.bench-h2h__cell[data-b="6"] .bench-h2h__ci {
  color: var(--ink);
}
.bench-ramp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px clamp(18px, 2.2vw, 28px) 20px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.bench-ramp__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.bench-ramp__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.bench-ramp__steps span {
  min-width: 3.4rem;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  text-align: center;
}

.bench-highs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(24px, 3vw, 48px);
  margin-top: clamp(36px, 4vw, 56px);
}
.bench-high {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.bench-high__fig {
  justify-self: start;
  padding: 0 0.04em 0.04em 0;
  font-size: clamp(2.4rem, 1.7rem + 1.8vw, 3.4rem);
  line-height: 0.95;
}
.bench-high__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}
.bench-aside {
  max-width: 62ch;
  margin-top: 28px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-4);
}

/* ----------------------------------------------------- 06 any weighting -- */

.bench-split--weights {
  align-items: end;
}
.bench-card__key {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.bench-dotkey {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bench-dotkey::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bench-rival);
}
.bench-dotkey--dulus::before {
  width: 12px;
  height: 12px;
  background: transparent;
  box-shadow: 0 0 0 2.5px var(--bench-dulus) inset;
}
.bench-dotkey--runner::before {
  background: var(--ink-2);
}
.bench-prof,
.bench-prof__axis {
  --prof-cols: minmax(0, 1.3fr) 6.2rem 10.4rem minmax(0, 1.5fr);
}
.bench-prof {
  padding: 4px clamp(18px, 2.2vw, 28px) 0;
}
.bench-prof__row {
  display: grid;
  grid-template-columns: var(--prof-cols);
  grid-template-areas:
    "name dulus runner strip"
    "who  dulus runner strip";
  align-items: center;
  gap: 2px 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.bench-prof__name {
  grid-area: name;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.bench-prof__who {
  grid-area: who;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--ink-3);
}
.bench-prof__score {
  grid-area: runner;
  display: grid;
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--ink-3);
}
.bench-prof__score b {
  font-size: 1.05rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bench-prof__score--dulus {
  grid-area: dulus;
  color: var(--gold-ink);
}
.bench-prof__score--dulus b {
  color: transparent;
  justify-self: start;
  font-size: 1.7rem;
  line-height: 1.05;
  padding-right: 0.04em;
}
.bench-prof__lab {
  font-size: 0.5625rem;
  color: var(--ink-4);
}
.bench-prof__strip {
  grid-area: strip;
  position: relative;
  height: 30px;
  margin: 0 7px;
  background-image: linear-gradient(90deg, var(--bench-grid) 1px, transparent 1px);
  background-size: 25% 100%;
  box-shadow: 0 -1px 0 var(--bench-axis) inset;
}
.bench-prof__strip::after {
  /* the right edge of the scale, at 1 */
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bench-grid);
}
.bench-dot {
  position: absolute;
  left: calc(var(--s) * 100%);
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bench-rival);
  box-shadow: 0 0 0 2px var(--bg-1);
  transform: translate(-50%, -50%);
}
.bench-dot--runner {
  z-index: 1;
  width: 11px;
  height: 11px;
  background: var(--ink-2);
}
.bench-dot--dulus {
  z-index: 2;
  width: 17px;
  height: 17px;
  background: transparent;
  box-shadow: 0 0 0 3px var(--bench-dulus) inset, 0 0 0 1.5px var(--bg-1), 0 0 16px rgba(245, 152, 42, 0.55);
}
.bench-prof__axis {
  display: grid;
  grid-template-columns: var(--prof-cols);
  gap: 0 22px;
  padding: 10px clamp(18px, 2.2vw, 28px) 4px;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--ink-4);
}
.bench-prof__ticks {
  grid-column: 4;
  position: relative;
  height: 1.2em;
  margin: 0 7px;
}
.bench-prof__ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.bench-prof__ticks span:nth-child(1) { left: 0; }
.bench-prof__ticks span:nth-child(2) { left: 50%; }
.bench-prof__ticks span:nth-child(3) { left: 100%; }

/* All 40 scores, one click away. */
.bench-more {
  border-top: 1px solid var(--line);
}
.bench-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 2.2vw, 28px);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: color var(--t-fast);
}
.bench-more summary::-webkit-details-marker {
  display: none;
}
.bench-more summary:hover {
  color: var(--ink);
}
.bench-more__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.bench-more__icon::before,
.bench-more__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease);
}
.bench-more__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.bench-more[open] .bench-more__icon::after {
  transform: translate(-50%, -50%);
}
.bench-scores {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.bench-scores th,
.bench-scores td {
  padding: 10px clamp(14px, 1.8vw, 22px);
  text-align: right;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.bench-scores th,
.bench-scores td {
  white-space: nowrap;
}
.bench-scores th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--bg-1);
}
.bench-scores tbody th {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.bench-scores td {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.bench-scores td.is-first {
  color: var(--gold-ink);
  font-weight: 560;
}
.bench-rank {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-4);
}

/* ---------------------------------------------------------- 07 method -- */

.bench-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(28px, 3.4vw, 56px);
  margin-top: clamp(48px, 5vw, 72px);
}
.bench-tier-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.bench-tier-card__title {
  margin-top: 4px;
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.bench-tier-card p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-3);
  text-wrap: pretty;
}

.bench-method__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
  gap: clamp(28px, 3.4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}
.bench-method__grid > .bench-card {
  margin-top: 0;
}
.bench-field__table {
  width: 100%;
  border-collapse: collapse;
}
.bench-field__table th,
.bench-field__table td {
  padding: 12px clamp(14px, 1.8vw, 22px);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.bench-field__table thead th {
  padding-top: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.bench-field__table thead th:last-child,
.bench-field__table td:last-child {
  text-align: right;
}
.bench-field__table tbody tr:last-child > * {
  border-bottom: 0;
}
.bench-field__table tbody th {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.bench-field__table tbody th > span:first-child {
  display: block;
}
.bench-field__table tbody th .bench-tag {
  margin-top: 7px;
}
.bench-field__table td {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--ink-3);
}
.bench-field__table tr.is-dulus {
  background: linear-gradient(90deg, rgba(245, 152, 42, 0.07), transparent 70%);
}
.bench-q {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bench-q::before {
  content: "";
  width: calc(var(--q) * 64px);
  height: 6px;
  border-radius: 2px;
  background: var(--bench-rival);
}
.is-dulus .bench-q::before {
  background: var(--bench-dulus-bar);
}
.is-control .bench-q::before {
  background: var(--bench-control);
}

.bench-method__side {
  display: grid;
  gap: 8px;
}
.bench-block {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.bench-block + .bench-block {
  margin-top: 28px;
}
.bench-block__title {
  color: var(--gold-ink);
}
.bench-scen {
  margin-top: 12px;
}
.bench-scen li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.bench-scen__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
.bench-scen__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.bench-scen__desc {
  grid-column: 1 / -1;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-3);
}
.bench-block__note {
  margin-top: 12px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-3);
}
.bench-kv {
  margin-top: 8px;
}
.bench-kv div {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.bench-kv div:last-child {
  border-bottom: 0;
}
.bench-kv dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 2px;
}
.bench-kv dd {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-2);
}

.bench-caveats {
  margin-top: clamp(48px, 5vw, 72px);
  padding: clamp(22px, 2.8vw, 36px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.02), transparent), var(--sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.bench-caveats__title {
  color: var(--gold-ink);
}
.bench-caveats__list {
  counter-reset: caveat;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px clamp(24px, 3vw, 44px);
  margin-top: 22px;
}
.bench-caveats__list li {
  counter-increment: caveat;
  position: relative;
  padding-top: 28px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}
.bench-caveats__list li::before {
  content: counter(caveat, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}
.bench-caveats__list strong {
  font-weight: 560;
}

.bench-legend-tiers {
  margin-top: clamp(40px, 4.4vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.bench-tierlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px clamp(24px, 3vw, 44px);
  margin-top: 12px;
}
.bench-tierlist div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.bench-tierlist .bench-tier {
  margin-top: 0;
  font-size: 0.625rem;
}
.bench-tierlist dd {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-3);
}

.bench-dossier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy btn"
    "copy size";
  align-items: center;
  gap: 10px clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 5vw, 72px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 120% at 100% 50%, rgba(245, 152, 42, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 245, 230, 0.035), rgba(255, 245, 230, 0.01)),
    var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-gold) inset, var(--shadow-2);
}
.bench-dossier__copy {
  grid-area: copy;
  display: grid;
  justify-items: start;
  gap: 10px;
}
.bench-dossier__kicker {
  color: var(--gold-ink);
}
.bench-dossier__title {
  font-size: var(--fs-3);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.bench-dossier__text {
  max-width: 44rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-3);
}
.bench-stamp--dossier {
  margin-top: 8px;
}
.bench-dossier__btn {
  grid-area: btn;
  align-self: end;
}
.bench-dossier__size {
  grid-area: size;
  align-self: start;
  justify-self: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

/* ---------------------------------------------------------------- cta -- */

.bench-cta {
  position: relative;
  padding: clamp(104px, 11vw, 176px) 0;
  border-top: 1px solid var(--line);
  overflow: clip;
  isolation: isolate;
}
.bench-cta__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 58% at 50% 36%, rgba(245, 152, 42, 0.14), transparent 70%),
    radial-gradient(24% 26% at 50% 22%, rgba(255, 210, 122, 0.09), transparent 70%);
}
.bench-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 26px;
  text-align: center;
}
.bench-cta__bird {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(245, 152, 42, 0.55));
}
.bench-cta__inner .h1 {
  max-width: 16ch;
}
.bench-cta__inner .h1 > .serif {
  display: block;
}
.bench-cta__lede {
  margin-inline: auto;
}
.bench-cta__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  margin-top: 6px;
}
.bench-cta__pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1180px) {
  .bench-toc__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bench-mech__spec {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "fig"
      "cap"
      "diag";
  }
  .bench-mech__spec > :last-child {
    margin-top: 12px;
  }
  .bench-caveats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bench-tierlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .bench-method__grid,
  .bench-cache__pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-prof,
  .bench-prof__axis {
    --prof-cols: minmax(0, 1fr) 6rem 9.4rem minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .bench-hero__top,
  .bench-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-hero__side {
    padding-bottom: 0;
  }
  .bench-callout {
    padding: 4px 0 4px 20px;
  }
  .bench-nums {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-num,
  .bench-num:first-child,
  .bench-num:last-child {
    padding: 28px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .bench-num:first-child {
    border-top: 0;
  }
  .bench-num {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "fig mini"
      "label mini"
      "fine fine";
    column-gap: 28px;
    align-items: end;
  }
  .bench-num__fig { grid-area: fig; }
  .bench-num__label { grid-area: label; align-self: start; }
  .bench-num .bench-mini { grid-area: mini; align-self: end; }
  .bench-num__fine { grid-area: fine; max-width: 52ch; }
  .bench-prov__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-mechs {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-mech__spec {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
      "fig diag"
      "cap diag";
  }
  .bench-mech__spec > :last-child {
    margin-top: 0;
  }
  .bench-tiers,
  .bench-highs {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-high {
    grid-template-columns: 7.4rem minmax(0, 1fr);
    align-items: baseline;
    column-gap: 20px;
  }
}

/* The head-to-head grid reflows into one block per scenario. The ARIA
   roles in the markup keep it a table for assistive technology. */
@media (max-width: 900px) {
  .bench-h2h__table,
  .bench-h2h__table tbody {
    display: block;
  }
  .bench-h2h__table {
    padding: 4px clamp(14px, 2.2vw, 24px) 6px;
  }
  .bench-h2h__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .bench-h2h__table tbody tr {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .bench-h2h__table tbody tr:last-child {
    border-bottom: 0;
  }
  .bench-h2h__table tbody th {
    grid-column: 1 / -1;
    padding: 0 0 8px;
  }
  .bench-h2h__cell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 10px;
    padding: 10px 12px;
    text-align: left;
  }
  .bench-h2h__cell::before {
    content: attr(data-label);
    flex: 1 0 100%;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .bench-h2h__cell[data-b="4"]::before,
  .bench-h2h__cell[data-b="5"]::before,
  .bench-h2h__cell[data-b="6"]::before {
    color: var(--ink-2);
  }
  .bench-h2h__x,
  .bench-h2h__ci {
    margin-top: 0;
  }
  .bench-h2h__ci {
    text-align: right;
  }
}

@media (max-width: 760px) {
  /* The cost board reflows into two-line rows; the table keeps its roles. */
  .bench-board__table,
  .bench-board__table tbody {
    display: block;
  }
  .bench-board__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .bench-board__table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 14px;
    padding: 16px clamp(16px, 4vw, 24px);
  }
  .bench-board__table tbody th,
  .bench-board__table tbody td {
    display: block;
    width: auto;
    padding: 0;
  }
  .bench-board__table tbody th {
    grid-column: 1;
    grid-row: 1;
  }
  .bench-board__tok {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 2px !important;
    font-size: 0.875rem;
  }
  .bench-board__cost {
    grid-column: 1 / -1;
  }
  .bench-board__unit {
    display: inline;
    font-size: 0.75rem;
    color: var(--ink-4);
  }
  .bench-bar {
    width: calc(100% - 5.4rem);
  }
  .bench-bar__val {
    font-size: 0.9rem;
  }
  .bench-board__name {
    display: inline;
    margin-right: 8px;
  }
  .bench-board__table tbody th .bench-tag {
    margin-top: 0;
    vertical-align: 2px;
  }
  .bench-board__table tr.is-dulus th {
    box-shadow: none;
  }
  .bench-board__table tr.is-dulus {
    box-shadow: 2px 0 0 var(--bench-dulus) inset;
  }

  .bench-turns__frame {
    padding-left: calc(clamp(16px, 4vw, 24px) + 2.6rem);
    padding-right: clamp(16px, 4vw, 24px);
  }
  .bench-turns__plot {
    aspect-ratio: auto;
    height: 260px;
  }
  .bench-turns__exit,
  .bench-turns__zone-label {
    display: none;
  }

  .bench-mini-table thead th:nth-child(3),
  .bench-mini-table td:nth-child(3),
  .bench-mini-table .bench-key {
    display: none;
  }
  .bench-mini-table th,
  .bench-mini-table td {
    padding-inline: clamp(12px, 3.4vw, 20px);
  }
  .bench-mini-table tbody th {
    white-space: nowrap;
  }

  /* Fig. 03 and Fig. 08 reflow into two-line rows; roles keep them tables. */
  .bench-peaks__table,
  .bench-peaks__table tbody,
  .bench-field__table,
  .bench-field__table tbody {
    display: block;
  }
  .bench-peaks__table thead,
  .bench-field__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .bench-peaks__table tbody tr,
  .bench-field__table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 14px clamp(16px, 4vw, 24px);
    border-bottom: 1px solid var(--line);
  }
  .bench-peaks__table tbody tr:last-child,
  .bench-field__table tbody tr:last-child {
    border-bottom: 0;
  }
  .bench-peaks__table tbody th,
  .bench-peaks__table tbody td,
  .bench-field__table tbody th,
  .bench-field__table tbody td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .bench-peaks__table tbody th,
  .bench-field__table tbody th {
    grid-column: 1;
    grid-row: 1;
  }
  .bench-peaks__over,
  .bench-field__table tbody td:last-child {
    grid-column: 2;
    grid-row: 1;
    text-align: right !important;
  }
  .bench-peaks__table tbody td:nth-child(2) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
  }
  .bench-field__table tbody td:nth-child(2) {
    grid-column: 1 / -1;
  }
  .bench-peaks__unit,
  .bench-field__unit {
    display: inline;
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-4);
  }
  .bench-field__unit {
    display: block;
    margin-bottom: 4px;
  }
  .bench-field__table tbody th .bench-tag {
    margin-top: 6px;
  }
  .bench-meter {
    flex: 1 1 auto;
    width: auto;
    max-width: 60%;
    margin-right: 14px;
  }
  .bench-peaks__val {
    min-width: 0;
    font-size: 0.875rem;
  }

  .bench-breaks__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }
  .bench-breaks__row .bench-units,
  .bench-breaks__why {
    grid-column: 1 / -1;
  }
  .bench-units {
    gap: 2px;
  }
  .bench-units i {
    width: 7px;
    height: 7px;
  }

  .bench-mech__spec {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "fig"
      "cap"
      "diag";
  }
  .bench-mech__spec > :last-child {
    margin-top: 12px;
  }

  .bench-prof__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name name"
      "who who"
      "dulus runner"
      "strip strip";
    gap: 6px 16px;
  }
  .bench-prof__score,
  .bench-prof__score--dulus {
    margin-top: 6px;
  }
  .bench-prof__strip {
    margin-top: 8px;
  }
  .bench-prof__axis {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-prof__ticks {
    grid-column: 1;
  }

  .bench-kit__table {
    min-width: 700px;
  }
  .bench-kit__table th:first-child {
    width: 8.6rem;
    padding-left: 16px;
  }
  .bench-kit__table tbody th {
    font-size: 0.82rem;
  }
  .bench-kit__table thead th {
    font-size: 0.625rem;
  }
  .bench-caveats__list,
  .bench-tierlist {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-dossier {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "btn"
      "size";
    justify-items: start;
  }
  .bench-dossier__size {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .bench-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .bench-hero__ctas .btn,
  .bench-dossier__btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .bench-dossier__btn {
    height: auto;
    min-height: 56px;
    padding: 12px 22px;
    line-height: 1.3;
  }
  .bench-num {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "fig"
      "label"
      "mini"
      "fine";
    gap: 10px;
  }
  .bench-num .bench-mini {
    margin-top: 8px;
  }
  .bench-mini__row,
  .bench-mini--units .bench-mini__row {
    grid-template-columns: 5.8rem minmax(0, 1fr) auto;
  }
  .bench-mini--units .bench-mini__row {
    grid-template-columns: 5.8rem minmax(0, 1fr);
  }
  .bench-toc__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-toc__list li + li {
    border-top: 1px solid var(--line);
  }
  .bench-toc__list a {
    padding: 14px 0;
    font-size: 1rem;
  }
  .bench-toc__list a::before {
    right: 0;
  }
  .bench-callout {
    padding-left: 16px;
  }
  .bench-duo__row {
    grid-template-columns: 5.6rem minmax(0, 1fr) 4rem;
    gap: 10px;
  }
  .bench-high {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench-kv div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .bench-tierlist div {
    grid-template-columns: 7.6rem minmax(0, 1fr);
  }
  .bench-cta__ctas {
    flex-direction: column;
    width: 100%;
  }
  .bench-cta__ctas .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------ accessibility -- */

@media (prefers-reduced-motion: reduce) {
  /* The final state at once, with no delayed pop-in either. */
  .bench-hero .rise,
  .bench-hero__title > span,
  .bench-hero__title > .serif,
  .bench-toc {
    animation: none !important;
  }
  html.js .bench-board.reveal .bench-bar__fill {
    transform: none;
  }
  html.js .bench-board.reveal .bench-bar__val {
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .bench-hero__glow,
  .bench-hero__paper,
  .bench-cache__glow,
  .bench-cta__glow {
    display: none;
  }
  .bench-num__fig,
  .bench-callout__fig,
  .bench-mech__fig,
  .bench-bill__fig,
  .bench-high__fig,
  .bench-breaks__row.is-dulus .bench-breaks__n,
  .bench-prof__score--dulus b {
    color: CanvasText;
    background: none;
  }
  /* Marks keep their shape in system colours: Dulus in Highlight, every
     other harness in CanvasText, the window in Mark. */
  .bench-bar__fill,
  .bench-mini__fill,
  .bench-meter__fill,
  .bench-duo__fill,
  .bench-bill__fill,
  .bench-bill__seg,
  .bench-units i,
  .bench-dot,
  .bench-strip__ticks i,
  .bench-strip__ticks b,
  .bench-turns__cut,
  .bench-legend__key,
  .bench-key,
  .bench-q::before {
    forced-color-adjust: none;
    background: CanvasText;
    box-shadow: none;
  }
  .is-dulus .bench-bar__fill,
  .bench-mini__row--dulus .bench-mini__fill,
  .bench-mini__meter .bench-mini__fill,
  .is-dulus .bench-meter__fill,
  .bench-duo__row.is-dulus .bench-duo__fill,
  .bench-bill__fill,
  .bench-bill__seg--cached,
  .bench-units--dulus i,
  .bench-dot--dulus,
  .bench-strip__ticks b,
  .bench-turns__cut,
  .bench-legend__item--dulus .bench-legend__key,
  .bench-key--dulus {
    background: Highlight;
  }
  .bench-turns__line {
    stroke: CanvasText;
  }
  .bench-turns__line--dulus {
    stroke: Highlight;
  }
  .bench-turns__limit,
  .bench-mini__meter::after,
  .bench-meter::after,
  .bench-legend__item--limit .bench-legend__key {
    stroke: Mark;
    forced-color-adjust: none;
    background: Mark;
  }
  .bench-h2h__cell {
    border: 1px solid CanvasText;
  }
  .bench-toc__list a::before {
    background: CanvasText;
  }
}
