/* UK public campaigns study - Chorus by Navay
   Brand tokens (coral / sand / ink, Satoshi + Manrope + JetBrains Mono) only.
   Layout and components are specific to this site. */

@font-face { font-family: "Satoshi"; src: url("fonts/satoshi.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  /* brand */
  --void: #0d0d12;
  --void-2: #16161d;
  --void-line: #2a2a35;
  --on-void: #f5f5f7;
  --on-void-muted: #a4a4ad;
  --coral: #ff6651;
  --coral-600: #e85c48;
  --coral-800: #a63d2f;

  /* light surfaces */
  --page: #f5efe5;
  --panel: #fcfcfb;
  --panel-2: #f9f6ef;
  --line: #e4dccb;
  --line-strong: #cbbfa6;
  --ink: #222222;
  --ink-2: #4b4a46;
  --ink-3: #6f6d67;
  --link: #a63d2f;

  /* Score tiers: chorus-mvp cut-offs (80 / 65 / 50), diverging warm-to-cool scale.
     Weak scores lean coral, strong scores lean teal, and each arm has a light and a dark
     step so the tiers stay apart by lightness as well as hue (checked for colour-blind
     separation). Fills are shared by both themes. */
  --t1: #00796b; --t1-tx: #00594f; --t1-bg: #e0f2ef; --t1-on: #ffffff;   /* 80 and up: deep teal */
  --t2: #3dbba6; --t2-tx: #15806f; --t2-bg: #e4f6f2; --t2-on: #111111;   /* 65 to 79: mint teal */
  --t3: #e59e2b; --t3-tx: #a3560a; --t3-bg: #fbf0da; --t3-on: #111111;   /* 50 to 64: amber */
  --t4: #d8503b; --t4-tx: #a63d2f; --t4-bg: #fbe7e3; --t4-on: #111111;   /* under 50: coral */
  /* Ad-vs-ad series (validated for colour-blind separation) */
  --series-1: #e85c48;
  --series-2: #0d9488;
  --series-3: #8b5cf6;
  --plot-ink: #222222;
  --band: rgba(34, 34, 34, 0.08);
  --neutral-bar: #a39b8b;
  --grid: #e8e2d3;
  --axis: #b9ae95;

  --shadow: 0 1px 2px rgba(34, 34, 34, 0.06), 0 6px 20px rgba(34, 34, 34, 0.05);
  --radius: 10px;
  --font-display: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d12;
  --panel: #16161d;
  --panel-2: #1c1c25;
  --line: #2a2a35;
  --line-strong: #3d3d4a;
  --ink: #f5f5f7;
  --ink-2: #c9c9d1;
  --ink-3: #9a9aa5;
  --link: #ff8f7d;
  --t1-tx: #5fd6c4; --t1-bg: #0f2f2c;
  --t2-tx: #7fdccb; --t2-bg: #12302b;
  --t3-tx: #f2c065; --t3-bg: #33270e;
  --t4-tx: #ff8f7d; --t4-bg: #3a1a17;
  --series-1: #f08b7d;
  --series-2: #2dd4bf;
  --series-3: #a78bfa;
  --plot-ink: #f5f5f7;
  --band: rgba(245, 245, 247, 0.1);
  --neutral-bar: #6b6b78;
  --grid: #24242d;
  --axis: #4a4a58;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* ---------- masthead ---------- */
.mast { background: var(--void); color: var(--on-void); }
.mast .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-void); font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--coral); color: var(--void); display: grid; place-items: center; font-weight: 800; font-size: 20px; line-height: 1; padding-bottom: 3px; }
.brand small { font-family: var(--font-body); font-weight: 500; color: var(--on-void-muted); font-size: 14px; margin-left: 2px; }
.mast nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.mast nav a { color: var(--on-void-muted); text-decoration: none; padding: 10px 14px; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.mast nav a:hover { color: var(--on-void); }
.mast nav a[aria-current="page"] { color: var(--on-void); border-bottom-color: var(--coral); }
.mast-out { color: var(--on-void-muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mast-out:hover { color: var(--on-void); }
@media (max-width: 640px) { .mast-out { display: none; } }
.theme-btn { background: none; border: 1px solid var(--void-line); color: var(--on-void-muted); border-radius: 8px; min-height: 40px; min-width: 40px; }
.theme-btn:hover { color: var(--on-void); border-color: #4a4a58; }

/* ---------- landing ---------- */
.hero { background: var(--void); color: var(--on-void); padding: clamp(40px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.hero p.lede { margin-top: 22px; max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d0d0d8; }
.hero-strip { width: 100%; max-width: 460px; justify-self: end; opacity: 0.95; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-strip { display: none; } }
.hero-strip .cell { transform-origin: left center; animation: strip-in 900ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes strip-in { from { opacity: 0; transform: scaleX(0.2); } to { opacity: 1; transform: none; } }

.cats { padding-block: 8px 24px; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: inherit; }
.cat-row:first-child { border-top: 1px solid var(--line-strong); }
.cat-row h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
.cat-row .aud { color: var(--ink-2); margin-top: 6px; max-width: 34ch; }
.cat-row .facts { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.thumbs { display: flex; gap: 10px; }
.thumbs .thumb { flex: 1 1 0; max-width: 200px; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--void-2); border-radius: 8px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .score { position: absolute; left: 6px; bottom: 6px; background: rgba(13, 13, 18, 0.86); color: #fff; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 999px; }
.open-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--void); color: var(--on-void); font-weight: 700; font-family: var(--font-display); }
.cat-row:hover .open-btn, .cat-row:focus-visible .open-btn { background: var(--coral); color: var(--void); }
@media (max-width: 900px) { .cat-row { grid-template-columns: 1fr; } .open-btn { justify-self: start; } }

.howto { padding: 40px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.howto h3 { font-size: 1.15rem; margin-bottom: 6px; }
.howto p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 800px) { .howto { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- category header + tabs ---------- */
.cat-head { background: var(--void); color: var(--on-void); padding: 28px 0 0; }
.cat-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
.cat-head .aud { margin-top: 8px; color: #c4c4cc; max-width: 62ch; }
.cat-head .facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 16px; padding-bottom: 22px; color: #dcdce2; font-size: 15px; }
.cat-head .facts b { font-family: var(--font-display); font-size: 1.15em; color: #fff; margin-right: 4px; }
.tabs-bar { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 1px solid var(--line-strong); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 0 18px; min-height: 56px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.tabs .sub { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 6px; }

main { padding-block: 28px 72px; }
.section { margin-top: 44px; }
.section:first-child { margin-top: 0; }
.section > h2 { font-size: 1.6rem; }
.section > .sub { color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.sec-body { margin-top: 18px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: clamp(16px, 2.4vw, 28px); }

/* ad picker */
.ad-pick { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ad-pick button { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 8px 8px; min-height: 68px; flex: 1 1 260px; max-width: 420px; }
.ad-pick button[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral) inset; }
.ad-pick .t { font-weight: 700; line-height: 1.25; font-size: 15px; }
.ad-pick .m { color: var(--ink-3); font-size: 13px; margin-top: 2px; }

/* player + summary */
.ad-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .ad-top { grid-template-columns: 1fr; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe, .player > div { width: 100%; height: 100%; position: absolute; inset: 0; }
.player-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #d9d9df; padding: 20px; background: var(--void-2); }
.ad-meta { margin-top: 14px; }
.ad-meta h2 { font-size: 1.5rem; }
.ad-meta .by { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.ad-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 15px; }
.ad-meta dt { color: var(--ink-3); }
.ad-meta dd { margin: 0; color: var(--ink-2); }

.hero-num { display: flex; align-items: baseline; gap: 10px; }
.hero-num .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 7vw, 5.4rem); line-height: 0.95; letter-spacing: -0.04em; }
.hero-num .of { color: var(--ink-3); font-size: 15px; }
.strip-wrap { margin-top: 16px; }
.strip-note { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.ledger { margin-top: 22px; display: grid; gap: 10px; }
.ledger .row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 10px; align-items: center; }
.ledger .lab { font-size: 14px; font-weight: 600; grid-column: 1 / 2; }
.ledger .val { font-weight: 700; text-align: right; grid-column: 2; grid-row: 1 / 3; font-size: 15px; }
.bar { height: 10px; background: var(--grid); border-radius: 5px; overflow: hidden; grid-column: 1 / 2; }
.bar > i { display: block; height: 100%; background: var(--neutral-bar); border-radius: 5px; }
.verdict-line { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.vbar { display: flex; gap: 2px; height: 12px; margin-top: 8px; border-radius: 6px; overflow: hidden; }
.vbar i { display: block; height: 100%; }
.vlegend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.chip.pass { background: var(--t1-bg); color: var(--t1-tx); }
.chip.warn { background: var(--t3-bg); color: var(--t3-tx); }
.chip.fail { background: var(--t4-bg); color: var(--t4-tx); }
.tier-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); align-items: center; }
.tier-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.tier-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dotk { width: 10px; height: 10px; display: inline-block; vertical-align: -1px; margin-right: 6px; border-radius: 50%; }

/* live panel (timeline console) */
.console { padding: 0; overflow: hidden; }
.console-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.sig-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sig-chip { display: grid; gap: 0; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; min-width: 112px; min-height: 52px; }
.sig-chip .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.sig-chip .v { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.sig-chip[aria-pressed="true"] { background: var(--void); border-color: var(--void); color: var(--on-void); }
.sig-chip[aria-pressed="true"] .k { color: #b8b8c2; }
.clock { margin-left: auto; font-family: var(--font-mono); font-size: 15px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.plot { padding: 8px clamp(8px, 1.6vw, 20px) 4px; touch-action: pan-y; user-select: none; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot-hint { padding: 0 clamp(16px, 2.4vw, 28px) 12px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.plot-hint .k { display: inline-flex; align-items: center; gap: 6px; }
.console { container-type: inline-size; }
.now { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.now-l { padding: 18px clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--line); background: var(--panel-2); }
@container (max-width: 760px) { .now { grid-template-columns: 1fr; } .now-l { border-right: 0; border-bottom: 1px solid var(--line); } }
.now-r { padding: 18px clamp(16px, 2.4vw, 28px); min-height: 220px; }
.now h3 { font-size: 1.05rem; }
.emo { display: grid; gap: 6px; margin-top: 12px; }
.emo .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 8px; align-items: center; font-size: 14px; }
.emo .b { height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.emo .b i { display: block; height: 100%; background: var(--neutral-bar); border-radius: 4px; }
.quotes { display: grid; gap: 14px; margin-top: 12px; }
.quote { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.mono { width: 30px; height: 30px; border-radius: 50%; background: var(--void); color: var(--on-void); display: grid; place-items: center; font-size: 12px; font-weight: 800; font-family: var(--font-display); }
.quote .who { font-weight: 700; font-size: 14px; }
.quote .who span { color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.quote p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

.tt { position: fixed; z-index: 100; pointer-events: none; background: var(--void); color: #f5f5f7; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; max-width: 280px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 80ms; }
.tt.on { opacity: 1; }
.tt b { font-weight: 800; font-size: 14px; }
.tt .s { color: #b6b6c0; }

/* readouts */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.rollup-sum { font-size: 1.05rem; line-height: 1.65; max-width: 72ch; color: var(--ink); }
.list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.list > li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: start; }
.tbtn { font-family: var(--font-mono); font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; min-height: 30px; }
.tbtn:hover { border-color: var(--coral); }
.list .h { font-weight: 700; }
.list .d { color: var(--ink-2); font-size: 15px; }
.tag { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); margin-left: 6px; }
details { border-top: 1px solid var(--line); }
details > summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; align-items: center; gap: 10px; min-height: 48px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 150ms; flex: none; }
details[open] > summary::before { transform: rotate(45deg); }
details > .body { padding: 0 0 18px; }

/* matrix table */
.matrix-wrap { overflow-x: auto; border-radius: var(--radius); }
table.matrix { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 860px; font-size: 13px; }
.matrix th, .matrix td { padding: 0; text-align: center; }
.matrix thead th { font-weight: 600; color: var(--ink-2); vertical-align: bottom; }
.matrix thead .grp { font-family: var(--font-display); font-size: 13px; color: var(--ink); border-bottom: 2px solid var(--line-strong); padding: 0 4px 4px; }
.matrix thead .mname { height: 92px; }
.matrix thead .mname div { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; margin: 0 auto; padding: 4px 0; font-size: 12.5px; }
.matrix tbody th { text-align: left; padding: 0 10px 0 0; white-space: nowrap; position: sticky; left: 0; background: var(--panel); z-index: 1; font-weight: 600; }
.matrix tbody th button { background: none; border: 0; text-align: left; padding: 6px 10px 6px 0; min-height: 40px; font-weight: 700; }
.matrix tbody th .a { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.matrix td button { width: 100%; min-width: 44px; height: 40px; border: 0; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.matrix td button:hover { outline: 2px solid var(--coral); }
.matrix .ovr { font-weight: 800; }
.matrix .avgrow th, .matrix .avgrow td { border-top: 2px solid var(--line-strong); }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(13, 13, 18, 0.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 180ms; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); background: var(--panel); z-index: 70; transform: translateX(100%); transition: transform 220ms cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; }
.drawer.on { transform: none; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25); }
.drawer-head { padding: 20px 24px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.drawer-head h2 { font-size: 1.6rem; }
.drawer-head .meta { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.close-btn { margin-left: auto; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); font-size: 20px; line-height: 1; }
.drawer-body { overflow-y: auto; padding: 20px 24px 40px; }
.drawer-body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.drawer-body h3:first-child { margin-top: 0; }
.drawer-body p { color: var(--ink-2); }
.drawer-body p + p { margin-top: 10px; }
.mrow { padding: 12px 0; border-top: 1px solid var(--line); }
.mrow .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mrow .nm { font-weight: 700; }
.mrow .sc { margin-left: auto; font-weight: 800; font-family: var(--font-display); }
.mrow p { font-size: 15px; margin-top: 6px; }
.mrow.hl { background: color-mix(in srgb, var(--coral) 10%, transparent); margin: 0 -12px; padding: 12px; border-radius: 8px; border-top-color: transparent; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink-2); }
.vignette { font-size: 1.05rem; line-height: 1.7; border-left: 3px solid var(--coral); padding-left: 16px; color: var(--ink); }

/* compare */
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.legend .li { display: grid; grid-template-columns: 14px 88px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 8px 12px; flex: 1 1 260px; }
.legend .sw { width: 14px; height: 14px; border-radius: 50%; }
.legend .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; }
.finding { padding: 18px 0; border-top: 1px solid var(--line); }
.finding h3 { font-size: 1.15rem; }
.finding p { color: var(--ink-2); margin-top: 6px; max-width: 78ch; }
.finding .ev { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.callout { background: var(--void); color: var(--on-void); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 30px); }
.callout h3 { font-size: 1.1rem; color: var(--coral); }
.callout p { margin-top: 8px; color: #e4e4ea; max-width: 76ch; }

/* personas */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: st; }
.pipeline .st { position: relative; padding: 0 16px 0 0; }
.pipeline .st::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--void); color: var(--on-void); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.pipeline .st::after { content: ""; position: absolute; top: 15px; left: 38px; right: 8px; height: 2px; background: var(--line-strong); }
.pipeline .st:last-child::after { display: none; }
.pipeline h4 { font-size: 1rem; margin-top: 12px; }
.pipeline p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.pipeline .big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-top: 6px; }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr; gap: 20px; } .pipeline .st::after { display: none; } }
.src { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.src .dt { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.src .tt2 { font-weight: 700; }
.src p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.roster { width: 100%; border-collapse: collapse; }
.roster th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.roster td { padding: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.roster td button.rowbtn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 12px 10px; min-height: 56px; }
.roster tr:hover td { background: var(--panel-2); }
.roster .nm { font-weight: 700; }
.roster .why { color: var(--ink-2); font-size: 14px; max-width: 52ch; }
.roster-wrap { overflow-x: auto; }
.mini { display: grid; grid-template-columns: 1fr; gap: 3px; min-width: 120px; }
.mini .b { height: 8px; background: var(--grid); border-radius: 4px; }
.mini .b i { display: block; height: 100%; border-radius: 4px; }

/* rubrics */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps h4 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.rub { border-top: 1px solid var(--line-strong); }
.rub > summary { font-family: var(--font-display); font-size: 1.25rem; padding: 18px 0; }
.rub .cnt { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--ink-3); }
.metric { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 32px; }
@media (max-width: 900px) { .metric { grid-template-columns: 1fr; } }
.metric h4 { font-size: 1.05rem; }
.metric .q { font-style: italic; color: var(--ink-2); margin-top: 6px; }
.metric .desc { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.thr { display: grid; gap: 4px; font-size: 14px; margin-top: 10px; }
.thr .chip { min-width: 62px; justify-content: center; }
.doavoid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; margin-top: 12px; }
.doavoid ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.doavoid b { font-size: 13px; }
.mean-dots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-2); }

.notice { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--ink-2); font-size: 15px; }
.notice b { color: var(--ink); }
footer.site { background: var(--void); color: #b8b8c2; padding: 32px 0 44px; font-size: 14px; }
footer.site p { max-width: 82ch; }
footer.site p + p { margin-top: 8px; }
footer.site .site-links { margin-top: 18px; }
footer.site a { color: var(--on-void); }

.viz text { font-family: var(--font-body); fill: var(--ink-2); }
.viz .lbl-strong { fill: var(--ink); font-weight: 700; }
.viz .axis-t { fill: var(--ink-3); font-size: 12px; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .tabs-bar, .theme-btn { display: none; } }

/* landing hero strip */
.hero-strip .cell { transform-box: fill-box; opacity: 0; animation: cell-in 500ms ease-out forwards; }
@keyframes cell-in { from { opacity: 0; } to { opacity: 1; } }
.hero-strip .sweep { animation: sweep 3.2s 400ms cubic-bezier(.4, 0, .2, 1) forwards; transform: translateX(0); opacity: 0; }
@keyframes sweep { 0% { opacity: 1; transform: translateX(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(460px); } }
@media (prefers-reduced-motion: reduce) { .hero-strip .cell { opacity: 1; } .hero-strip .sweep { display: none; } }

/* stage: player beside the live panel; the player stays in view while the chart is used */
.stage { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 68px; }
.stage-left { position: sticky; top: 68px; }
.stage-left .ad-meta h2 { font-size: 1.25rem; }
.stage-left .ad-meta dl { font-size: 14px; }
@media (max-width: 1000px) {
  .stage { display: block; }
  .stage-left { display: contents; }
  .player-wrap { position: sticky; top: 57px; z-index: 25; background: var(--page); padding: 8px 0 10px; max-width: 340px; }
  .stage .ad-meta { margin: 6px 0 22px; }
}
.summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
@media (max-width: 900px) { .summary { grid-template-columns: 1fr; } }
.summary .ledger { margin-top: 0; }
.poster { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; background: #000; }
.poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; display: block; }
.poster .go { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: var(--coral); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.poster .go::after { content: ""; border-left: 20px solid var(--void); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.poster:hover .go, .poster:focus-visible .go { transform: scale(1.06); }
.poster .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); font-size: 14px; }
.poster .cap b { display: block; font-size: 15px; }
