/* AI benchmark page. Builds on site.css (tokens, nav, buttons, reveal, footer); everything here is benchmark-only.
   Hidden start states of the scroll effects apply only under html.bm-fx, which benchmark.js sets when it can run
   them — without JavaScript, or with reduced motion, every element is simply there. */

/* ------------------------------------------------------------------ hero */
.bm-hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(32px, 5vw, 56px); overflow: clip; text-align: center; }
.bm-hero .hero-bg { opacity: .85; }
.bm-hero .wrap { position: relative; }
.bm-hero h1 { font-size: clamp(2.3rem, 5.8vw, 4.4rem); font-weight: 760; letter-spacing: -0.035em; margin: 14px auto 18px; max-width: 18ch; text-wrap: balance; }
.bm-hero .lede { margin: 0 auto; }
.bm-stats { list-style: none; margin: clamp(32px, 5vw, 52px) auto 0; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bm-stats li { padding: 18px 10px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.bm-stats b { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.bm-stats b i { font-style: normal; }
.bm-stats li > span { font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .bm-stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ section bar (sticks under the nav) */
/* Numbered tabs with an underline: a caption on the left, the chapters on the right, the one in view marked green. */
.bm-jump { position: sticky; top: var(--nav-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-bottom: 1px solid var(--border); }
.bm-jump .wrap { display: flex; align-items: stretch; gap: clamp(16px, 2.4vw, 30px); height: 56px; white-space: nowrap; }
.bm-jump-cap { align-self: center; margin-right: auto; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.bm-jump a { display: flex; align-items: center; gap: 8px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-size: .9rem; font-weight: 620; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.bm-jump a span { font-size: .72rem; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.bm-jump a:hover { text-decoration: none; color: var(--text); }
.bm-jump a.on { color: var(--text); border-bottom-color: var(--green); }
.bm-jump a.on span { color: var(--green-ink); }
@media (max-width: 1100px) { .bm-jump-cap { display: none; } .bm-jump .wrap { justify-content: space-between; } }
@media (max-width: 860px) { .bm-jump .wrap { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; } }
.bm-page section[id] { scroll-margin-top: calc(var(--nav-h) + 56px); }

/* ------------------------------------------------------------------ shared pieces */
.bm-page .sec-head h2 em, .bm-page h2 em { font-style: normal; background: var(--prism-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bm-alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bm-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: clamp(20px, 2.6vw, 30px); }
.bm-card h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.bm-card p { color: var(--muted); font-size: .97rem; }
.bm-fine, .bm-note { margin-top: 18px; font-size: .88rem; color: var(--faint); max-width: 860px; }
.bm-note { margin-top: 12px; }
.cls-A { --tone: var(--green-ink); } .cls-B { --tone: var(--info); } .cls-C { --tone: var(--wait); } .cls-D { --tone: var(--bad); }

/* Stars: a grey row with a gold row on top, cut to the score (data-stars) — and filled once the row is in view. */
.bm-stars { position: relative; display: inline-block; white-space: nowrap; font-size: 1.05rem; letter-spacing: 2px; color: var(--border-strong); line-height: 1; }
.bm-stars .fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--wait); width: var(--w, 100%); transition: width 1.1s cubic-bezier(.2,.7,.2,1) .35s; }
.bm-stars[data-stars="1"] { --w: 20%; } .bm-stars[data-stars="1.5"] { --w: 30%; } .bm-stars[data-stars="2"] { --w: 40%; }
.bm-stars[data-stars="2.5"] { --w: 50%; } .bm-stars[data-stars="3"] { --w: 60%; } .bm-stars[data-stars="3.5"] { --w: 70%; }
.bm-stars[data-stars="4"] { --w: 80%; } .bm-stars[data-stars="4.5"] { --w: 90%; } .bm-stars[data-stars="5"] { --w: 100%; }
.bm-fx .reveal:not(.in) .bm-stars .fill { width: 0; }

/* ------------------------------------------------------------------ the task: prompt, highlight, note */
.bm-task-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bm-task-grid .sec-head { margin-bottom: 0; }
.bm-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.bm-facts li { position: relative; padding-left: 26px; font-size: .97rem; color: var(--text); }
.bm-facts li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.bm-chat { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--navy) 50%, transparent), var(--shadow); }
.bm-chat .window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.bm-chat .window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.bm-chat .window-bar span { margin-left: 10px; font-size: .78rem; color: var(--faint); font-weight: 600; }
.bm-chat-body { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.bm-msg { justify-self: end; max-width: 92%; padding: 16px 20px; border-radius: 18px 18px 4px 18px; background: var(--navy-soft);
  border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent); font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.5; color: var(--text); }
/* The marker: a highlighter stroke that sweeps across the word. */
.bm-msg mark { color: inherit; font-weight: 700; padding: 0 3px; margin: 0 -1px; border-radius: 4px;
  background: linear-gradient(color-mix(in srgb, var(--wait) 42%, var(--yellow-soft)), color-mix(in srgb, var(--wait) 42%, var(--yellow-soft))) no-repeat left center / 100% 100%;
  transition: background-size .6s cubic-bezier(.6,.1,.3,1); }
.bm-fx .bm-chat:not(.lit) .bm-msg mark { background-size: 0% 100%; }
/* Typing: every character is a span (benchmark.js); unrevealed ones keep their space, so nothing reflows. */
.bm-fx .bm-msg .ch { opacity: 0; }
.bm-fx .bm-msg .ch.on { opacity: 1; }
.bm-msg .ch.cur { position: relative; }
.bm-msg .ch.cur::after { content: ""; position: absolute; right: -3px; top: .12em; width: 2px; height: 1.1em; background: var(--green); animation: bm-blink 1s steps(1) infinite; }
@keyframes bm-blink { 50% { opacity: 0; } }
/* The note under the prompt, its tip on the marked word (benchmark.js sets --arrow-x). */
.bm-bubble { position: relative; margin: 6px 0 0; padding: 14px 18px; border-radius: 14px; font-size: .97rem; color: var(--text);
  background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--wait) 35%, transparent);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--wait) 60%, transparent);
  transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.2,1.15); transform-origin: var(--arrow-x, 70%) top; }
.bm-bubble::before { content: ""; position: absolute; top: -8px; left: var(--arrow-x, 70%); width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: var(--yellow-soft); border-left: 1px solid color-mix(in srgb, var(--wait) 35%, transparent); border-top: 1px solid color-mix(in srgb, var(--wait) 35%, transparent); }
.bm-bubble b { color: var(--text); }
.bm-fx .bm-chat:not(.told) .bm-bubble { opacity: 0; transform: translateY(14px) scale(.96); }
.bm-answers p { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.bm-answers ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bm-answers li { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: .88rem; font-weight: 620;
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 65ms); }
.bm-fx .bm-chat:not(.answered) .bm-answers li { opacity: 0; transform: translateY(8px); }
@media (max-width: 900px) { .bm-task-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ at a glance (dark stage) */
.bm-dark { position: relative; overflow: clip; padding: var(--sec-y) 0; background: var(--stage); color: var(--stage-text); }
.bm-dark .wrap { position: relative; }
.bm-dark h2 { color: white; }
.bm-dark .eyebrow { color: var(--green); }
.bm-glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bm-glance article { padding: 26px; border-radius: 22px; background: color-mix(in srgb, var(--stage-2) 70%, transparent);
  border: 1px solid color-mix(in srgb, white 12%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bm-glance p { color: var(--stage-muted); font-size: .97rem; margin-top: 12px; }
.bm-glance p b { color: white; }
.bm-big { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 790; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--green), color-mix(in srgb, var(--info) 70%, white) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 960px) { .bm-glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bm-glance { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ ranking */
/* Three picks above the table: label, model, one line, the figure that earned the pick. A click opens its row. */
.bm-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 26px; }
.bm-pick { display: flex; flex-direction: column; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bm-pick:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--green); box-shadow: var(--card-shadow); }
.bm-pick-label { display: flex; align-items: center; justify-content: space-between; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.bm-pick-label svg.ic { width: 17px; height: 17px; transition: transform .2s ease; }
.bm-pick:hover .bm-pick-label svg.ic { transform: translate(2px, -2px); }
.bm-pick h3 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; letter-spacing: -0.02em; margin: 14px 0 10px; }
/* The provider's mark on a small neutral tile, so marks of different shapes and colours sit alike. */
.bm-logo { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.bm-logo img { width: 18px; height: 18px; }
.bm-pick .bm-logo { width: 38px; height: 38px; border-radius: 10px; }
.bm-pick .bm-logo img { width: 22px; height: 22px; }
.bm-pick p { font-size: .92rem; color: var(--muted); flex: 1; }
.bm-pick-num { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.bm-pick-num b { font-size: 1.9rem; font-weight: 760; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bm-pick-num b small { font-size: .95rem; font-weight: 500; }
.bm-pick-num span { font-size: .84rem; color: var(--faint); }
/* The table: toolbar, head, one <details> per run. Every row carries its class colour on the left edge. */
.bm-table { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.bm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
html.no-js .bm-toolbar, html.no-js .bm-thead button i { display: none; }
.bm-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.bm-filters button { font: inherit; font-size: .86rem; font-weight: 620; color: var(--muted); background: none; border: 0; border-radius: 7px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.bm-filters button span { margin-left: 6px; font-size: .74rem; color: var(--faint); font-variant-numeric: tabular-nums; }
/* The class name: only on the chosen class, and on A while all runs are shown. */
.bm-filters .nm { display: none; font-style: normal; }
.bm-filters button[aria-pressed="true"] .nm, .bm-filters[data-current="all"] [data-tier="A"] .nm { display: inline; }
.bm-filters button:hover { color: var(--text); }
.bm-filters button[aria-pressed="true"] { background: var(--navy); color: white; }
.bm-filters button[aria-pressed="true"] span { color: color-mix(in srgb, white 70%, transparent); }
.bm-search { display: flex; align-items: center; gap: 8px; width: min(240px, 100%); padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--faint); }
.bm-search:focus-within { border-color: var(--navy); }
.bm-search svg.ic { width: 17px; height: 17px; }
.bm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--text); }
.bm-thead, .bm-run summary { display: grid; grid-template-columns: minmax(0, 1fr) 150px 96px 110px 28px; gap: 18px; align-items: center; }
.bm-thead { padding: 10px 20px 10px 24px; border-bottom: 1px solid var(--border); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.bm-thead button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: right; cursor: pointer; }
.bm-thead button:hover, .bm-thead button.on { color: var(--text); }
.bm-thead button i { font-style: normal; margin-left: 3px; }
.bm-run { border-bottom: 1px solid var(--border); border-left: 4px solid var(--tone); }
.bm-run[hidden] { display: none; }
.bm-run { scroll-margin-top: calc(var(--nav-h) + 72px); }
.bm-run:last-child { border-bottom: 0; }
.bm-run summary { list-style: none; padding: 14px 20px; cursor: pointer; transition: background .15s ease; }
.bm-run summary::-webkit-details-marker { display: none; }
.bm-run summary:hover, .bm-run[open] summary { background: color-mix(in srgb, var(--tone) 7%, var(--surface)); }
.bm-run summary:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.bm-model-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bm-model-cell b { display: block; font-weight: 700; line-height: 1.3; }
.bm-model-cell small { display: block; font-size: .8rem; color: var(--faint); }
.bm-q { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bm-q small { font-size: .76rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.bm-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-v small { font-size: .8rem; font-weight: 400; color: var(--faint); }
/* The open/close mark: a plus that turns into a cross. */
.bm-x { justify-self: end; position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform .25s ease, border-color .2s ease; }
.bm-x::before, .bm-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--muted); transform: translate(-50%, -50%); }
.bm-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.bm-run[open] .bm-x { transform: rotate(45deg); border-color: var(--tone); }
.bm-run-body { padding: 6px 24px 24px 64px; background: color-mix(in srgb, var(--tone) 3%, var(--surface)); }
.bm-verdict { font-size: 1rem; color: var(--text); max-width: 900px; line-height: 1.65; }
.bm-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 18px; }
.bm-pm h4 { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bm-pm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; align-content: start; }
.bm-pm li { display: flex; gap: 8px; font-size: .9rem; color: var(--text); line-height: 1.45; }
.bm-pm svg.ic { width: 16px; height: 16px; margin-top: 3px; stroke-width: 2.4; }
.bm-pm .plus svg.ic { color: var(--ok); }
.bm-pm .minus svg.ic { color: var(--bad); }
.bm-run-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .84rem; }
.bm-run-stats div { display: flex; gap: 6px; }
.bm-run-stats dt { color: var(--faint); }
.bm-run-stats dd { margin: 0; font-weight: 620; color: var(--text); font-variant-numeric: tabular-nums; }
.bm-run-stats dd a { margin-left: 4px; font-weight: 500; font-size: .8rem; }
.bm-empty { padding: 28px; text-align: center; color: var(--muted); }
.bm-table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--faint); background: var(--surface-2); }
/* The class band: a full-width row in the class colour that opens each group. */
.bm-grp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 9px 20px 9px 20px;
  background: color-mix(in srgb, var(--tone) 16%, var(--surface)); border-left: 4px solid var(--tone);
  border-bottom: 1px solid color-mix(in srgb, var(--tone) 30%, var(--border)); }
.bm-grp[hidden] { display: none; }
.bm-grp b { font-size: .8rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tone) 75%, var(--text)); }
.bm-grp span { font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) {
  .bm-picks { grid-template-columns: 1fr; }
  .bm-thead { display: none; }
  .bm-run summary { grid-template-columns: repeat(3, auto) 1fr; gap: 8px 18px; }
  .bm-model-cell { grid-column: 1 / -2; }
  .bm-x { grid-column: -2 / -1; grid-row: 1; }
  .bm-q { flex-direction: row; align-items: center; gap: 8px; }
  .bm-v { text-align: left; }
  .bm-run-body { padding: 6px 20px 22px; }
  .bm-pm { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ charts */
.bm-chart { margin: 0; }
figure.bm-card { margin: 0 0 18px; }
.bm-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.bm-chart figcaption b { font-size: 1.15rem; }
.bm-chart figcaption span { font-size: .86rem; color: var(--faint); }
.bm-sx { overflow-x: auto; }
.bm-svg { display: block; width: 100%; height: auto; min-width: 680px; font-family: inherit; }
/* One type scale for every chart: names 11.5, figures and axes 10.5, caps labels 9.5 (SVG units, about 1:1 on a desktop card). */
.bm-svg .lbl { fill: var(--text); font-size: 11.5px; }
.bm-svg .val { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.bm-svg .val .nt { fill: var(--faint); }
.bm-svg .ax { fill: var(--muted); font-size: 10.5px; }
.bm-svg .grid { stroke: var(--border); stroke-width: 1; }
.bm-svg .axis { stroke: var(--border-strong); stroke-width: 1; }
.bm-svg .s1 { fill: var(--navy); } .bm-svg .s2 { fill: var(--purple); } .bm-svg .s3 { fill: var(--border-strong); }
.bm-svg .bar.cls-A, .bm-svg .bar.cls-B, .bm-svg .bar.cls-C, .bm-svg .bar.cls-D { fill: var(--tone); }
.bm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.bm-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.bm-legend .sw.s1 { background: var(--navy); } .bm-legend .sw.s2 { background: var(--purple); } .bm-legend .sw.s3 { background: var(--border-strong); }
.bm-legend .sw.cls-A, .bm-legend .sw.cls-B, .bm-legend .sw.cls-C, .bm-legend .sw.cls-D { background: var(--tone); }
/* A row lights up as a whole; the bars keep their colour. */
.bm-bar-row .rowbg { fill: transparent; transition: fill .15s ease; }
.bm-bar-row:hover .rowbg { fill: color-mix(in srgb, var(--info) 9%, var(--surface)); }
/* Scatter: quadrants, then the dots with a ring of the card's surface so overlapping ones stay apart. */
/* Scatter: four tinted quadrants, dashed dividers marked on the axes, then the dots with name and cost. */
.bm-scatter .quad { stroke: none; }
.bm-scatter .quad.q-value { fill: color-mix(in srgb, var(--green) 11%, transparent); }
.bm-scatter .quad.q-premium { fill: color-mix(in srgb, var(--navy) 8%, transparent); }
.bm-scatter .quad.q-draft { fill: color-mix(in srgb, var(--wait) 7%, transparent); }
.bm-scatter .quad.q-question { fill: color-mix(in srgb, var(--purple) 8%, transparent); }
.bm-scatter .divider { stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bm-scatter .axis-mark { fill: var(--navy-soft); }
.bm-scatter .ax.mark { fill: var(--navy); font-weight: 700; }
.bm-scatter .ax-title { fill: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bm-scatter .qlbl { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  paint-order: stroke; stroke-width: 7px; stroke-linejoin: round; }
.bm-scatter .qlbl.q-value { fill: var(--green-ink); stroke: color-mix(in srgb, var(--green) 11%, var(--surface)); }
.bm-scatter .qlbl.q-premium { fill: var(--navy); stroke: color-mix(in srgb, var(--navy) 8%, var(--surface)); }
.bm-scatter .qlbl.q-question { fill: var(--purple); stroke: color-mix(in srgb, var(--purple) 8%, var(--surface)); }
.bm-scatter .bm-dot { cursor: pointer; transition: opacity .25s ease; }
.bm-scatter .dot { fill: var(--tone); stroke: var(--surface); stroke-width: 2.5; }
.bm-scatter .ring { fill: none; stroke: var(--green-ink); stroke-width: 1.5; }
.bm-scatter .leader { stroke: var(--faint); stroke-width: 1; }
.bm-scatter .bm-dot .lbl { font-weight: 600; }
.bm-scatter .bm-dot .cost { fill: var(--faint); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.bm-scatter .bm-dot:hover .dot { stroke: var(--text); stroke-width: 2; }
.bm-scatter .bm-dot:hover .lbl { fill: var(--green-ink); }
/* "A · Reliable" dims every other run. */
.bm-chart.only-a .bm-dot:not(.cls-A) { opacity: .12; }
.bm-sc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 6px; }
.bm-sc-bar .bm-legend { margin: 0; }
.bm-seg { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.bm-seg button { font: inherit; font-size: .84rem; font-weight: 620; color: var(--muted); background: none; border: 0; border-radius: 7px; padding: 5px 12px; cursor: pointer; }
.bm-seg button:hover { color: var(--text); }
.bm-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
html.no-js .bm-seg { display: none; }
.bm-sc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; max-width: none; }
/* Grow on scroll: bars from the left, dots from their centre, values after them (benchmark.js staggers --i). */
.bm-svg .bar, .bm-scatter .dot { transform-box: fill-box; }
.bm-svg .bar { transform-origin: left center; transition: transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 45ms); }
.bm-scatter .dot { transform-origin: center; transition: transform .6s cubic-bezier(.3,1.5,.5,1) calc(var(--i, 0) * 70ms); }
.bm-svg .val, .bm-scatter .bm-dot text, .bm-scatter .leader, .bm-scatter .ring { transition: opacity .5s ease calc(var(--i, 0) * 45ms + .5s); }
.bm-fx .bm-chart:not(.in) .bar { transform: scaleX(0); }
.bm-fx .bm-chart:not(.in) .bm-scatter .dot { transform: scale(0); }
.bm-fx .bm-chart:not(.in) .val, .bm-fx .bm-chart:not(.in) .bm-dot text, .bm-fx .bm-chart:not(.in) .leader, .bm-fx .bm-chart:not(.in) .ring { opacity: 0; }
/* Tabs: time / money in one card. */
.bm-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: -6px 0 16px; }
.bm-tabs button { font: inherit; font-size: 1.02rem; font-weight: 650; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 8px 12px 10px; color: var(--muted); cursor: pointer; }
.bm-tabs button:hover { color: var(--text); }
.bm-tabs button.on { color: var(--text); border-bottom-color: var(--green); }
#bm-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 360px; padding: 8px 11px; border-radius: 10px;
  background: var(--text); color: var(--surface); font-size: .84rem; line-height: 1.45; box-shadow: var(--shadow-lg); display: none; }

/* ------------------------------------------------------------------ results */
.bm-why { margin-top: 6px; padding: 24px 28px; border-radius: 22px; background: var(--navy-soft); border: 1px solid color-mix(in srgb, var(--navy) 15%, transparent); }
.bm-why h3 { font-size: 1.15rem; margin: 0 0 12px; }
.bm-why ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.bm-why li { font-size: .95rem; color: var(--muted); }
.bm-why li b { color: var(--text); }
@media (max-width: 760px) { .bm-why ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ behaviour */
.bm-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bm-mid { display: block; font-size: 1.9rem; font-weight: 780; letter-spacing: -0.03em; margin: 2px 0 8px; color: var(--navy); font-variant-numeric: tabular-nums; }
/* Questions: the one finding of this section that carries the most, so it spans the row — the claim on the left,
   the few outliers on the right. */
.bm-questions { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start;
  background: linear-gradient(120deg, var(--green-soft), var(--surface) 60%); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.bm-questions .bm-mid { font-size: clamp(2.2rem, 4vw, 3rem); color: var(--green-ink); }
.bm-questions p b { color: var(--text); }
.bm-outliers { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.bm-outliers > p { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bm-outliers ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.bm-outliers li { font-size: .93rem; color: var(--muted); }
.bm-outliers li b { color: var(--text); }
.bm-card .bm-hint { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--navy-soft); color: var(--text); font-size: .9rem; }
.bm-luna { grid-column: span 2; }
.bm-luna .bm-luna-rows { grid-template-columns: repeat(3, 1fr); }
.bm-luna .bm-luna-rows div { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
.bm-luna .bm-luna-rows span { grid-row: auto; }
.bm-luna-rows { display: grid; gap: 8px; margin: 4px 0 14px; }
.bm-luna-rows div { display: grid; grid-template-columns: 104px 1fr; gap: 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.bm-luna-rows span { grid-row: span 2; align-self: center; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.bm-luna-rows b { font-size: .97rem; }
.bm-luna-rows small { font-size: .84rem; color: var(--faint); }
@media (max-width: 960px) { .bm-insights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .bm-questions { grid-template-columns: 1fr; } .bm-luna .bm-luna-rows { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .bm-insights { grid-template-columns: 1fr; } .bm-luna { grid-column: auto; } }

/* ------------------------------------------------------------------ method and closing card */
.bm-method { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bm-method ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.bm-method li { font-size: .95rem; color: var(--muted); }
.bm-method li b { color: var(--text); }
@media (max-width: 860px) { .bm-method { grid-template-columns: 1fr; } }
.bm-cta { padding-bottom: calc(var(--sec-y) * .6); }

@media (prefers-reduced-motion: reduce) {
  .bm-stars .fill, .bm-svg .bar, .bm-scatter .dot, .bm-bubble, .bm-answers li, .bm-msg mark { transition: none; }
  .bm-msg .ch.cur::after { animation: none; }
}
