:root {
  color-scheme: dark;
  --bg: #0a0f17;
  --panel: #111a27;
  --panel-2: #152131;
  --text: #edf3f8;
  --muted: #95a4b7;
  --line: #2a3a4e;
  --green: #56da9e;
  --purple: #ad80ff;
  --gold: #ffc953;
  --blue: #50b2ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(80,178,255,.12), transparent 35rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0 54px; }
header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin-bottom: 5px; font-size: 1.25rem; font-weight: 650; }
.eyebrow { margin-bottom: 10px; color: var(--blue); font: 700 .76rem/1.2 ui-monospace, monospace; letter-spacing: .16em; }
.protocol, .section-head p, footer p, .scale-note { color: var(--muted); }
.protocol { max-width: 330px; margin-bottom: 5px; text-align: right; }
section { padding: 24px 0 30px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.section-head p { margin-bottom: 0; }
.section-head.compact { align-items: end; }
.metric-tabs { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
button {
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px;
  background: transparent; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer;
}
button:hover { color: var(--text); border-color: #49617e; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button.active { color: var(--bg); background: var(--text); border-color: var(--text); }
#metric-chart { display: block; width: 100%; height: auto; min-height: 360px; overflow: visible; }
.chart-label { fill: var(--text); font-size: 14px; font-weight: 600; }
.chart-value { fill: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-sub { fill: var(--muted); font-size: 12px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 12px; }
.chart-range { stroke-width: 2; opacity: .68; }
.chart-mean { stroke: var(--text); stroke-width: 2; }
.chart-dot { stroke: var(--bg); stroke-width: 2; opacity: .92; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; text-align: left; }
th { color: var(--muted); font-size: .78rem; font-weight: 550; letter-spacing: .04em; }
td { font-size: .94rem; }
.model { display: inline-flex; align-items: center; gap: 9px; font-weight: 620; }
.model-dot { width: 10px; height: 10px; border-radius: 50%; }
.scale-note { font-size: .82rem; text-align: right; }
video { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.28); }
footer { padding-top: 21px; border-top: 1px solid var(--line); }
footer p { margin-bottom: 5px; }
footer strong { color: var(--text); }
@media (max-width: 760px) {
  main { width: min(100% - 24px, 1180px); padding-top: 28px; }
  header, .section-head { display: block; }
  .protocol { margin-top: 16px; text-align: left; }
  .metric-tabs { justify-content: flex-start; margin-top: 15px; }
  .scale-note { display: block; margin-top: 10px; text-align: left; }
  #metric-chart { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
