/* ═══════════════════════════════════════════════════════════════════════════
   First Degree — warm paper, ink serif headlines, vibrant data marks on quiet
   surfaces. Editorial-analytical: the chrome recedes so the numbers carry it.
   Chart hues are the validated categorical palette (--s1…--s8), stepped
   separately for each mode rather than flipped.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
table { border-collapse: collapse; }

:root {
  color-scheme: light;
  --paper: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4f0e8;
  --ink: #17151f;
  --ink-2: #55505f;
  --ink-3: #857f90;
  --rule: #e6dfd2;
  --rule-2: #efe9dd;
  --shadow-1: 0 1px 2px rgba(23,21,31,.05), 0 4px 14px -8px rgba(23,21,31,.10);
  --shadow-2: 0 2px 4px rgba(23,21,31,.05), 0 18px 44px -22px rgba(23,21,31,.20);

  /* validated categorical palette — light steps */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;

  --up: #0f7a4a;
  --down: #b4432c;

  --display: 'Instrument Serif', ui-serif, Georgia, serif;
  --body: 'Manrope', ui-sans-serif, system-ui, sans-serif;

  --r: 14px; --r-lg: 22px;
  --pad: clamp(18px, 4vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131119;
  --surface: #1c1926;
  --surface-2: #252134;
  --ink: #f6f2ea;
  --ink-2: #b6afc2;
  --ink-3: #857f95;
  --rule: #2e2940;
  --rule-2: #262133;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px -8px rgba(0,0,0,.6);
  --shadow-2: 0 2px 6px rgba(0,0,0,.45), 0 20px 50px -22px rgba(0,0,0,.8);

  /* dark steps — chosen for the dark surface, not an inversion */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;

  --up: #3ec98a;
  --down: #f08a72;
}

body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

.screen { display: none; }
.screen.is-on { display: block; }

/* ───────────────────────────────────────────────────────────────────── header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(170%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.top-in {
  max-width: var(--maxw); margin: 0 auto; padding: 13px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark span {
  width: 5px; border-radius: 2px 2px 1px 1px; background: var(--s1);
  animation: growbar .9s var(--ease) both;
}
.brand-mark span:nth-child(1) { height: 10px; animation-delay: .05s }
.brand-mark span:nth-child(2) { height: 16px; background: var(--s2); animation-delay: .13s }
.brand-mark span:nth-child(3) { height: 22px; background: var(--s3); animation-delay: .21s }
@keyframes growbar { from { height: 2px !important; opacity: 0 } }
.brand-name { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.015em; }

.top-right { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface);
}
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  cursor: pointer; transition: transform .18s var(--ease), background .18s;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.i-moon { display: none; }
html[data-theme="dark"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: block; }

/* ─────────────────────────────────────────────────────────────────────── hero */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(30px, 6vw, 74px) var(--pad) clamp(36px, 6vw, 78px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 66px); align-items: center;
}
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(46px, 7.4vw, 88px); line-height: 1.02;
  letter-spacing: -.02em;
}
/* One restrained accent rather than a four-stop rainbow — the gradient was the
   thing that read cheap. */
.hero h1 em { font-style: italic; color: var(--s1); }
.lede { margin: 22px 0 30px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 40ch; }
.hero-l > * { animation: rise .75s var(--ease) both; }
.hero-l > :nth-child(2) { animation-delay: .06s }
.hero-l > :nth-child(3) { animation-delay: .12s }
.hero-l > :nth-child(4) { animation-delay: .18s }
.hero-l > :nth-child(6) { animation-delay: .24s }
@keyframes rise { from { opacity: 0; transform: translateY(16px) } }

/* dropzone */
.drop {
  display: block; width: 100%; cursor: pointer; text-align: center;
  padding: clamp(22px, 3.4vw, 32px) 24px;
  background: var(--surface); border: 1.5px dashed var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  transition: transform .26s var(--ease), border-color .2s, box-shadow .26s, background .2s;
}
.drop:hover, .drop:focus-visible, .drop.dragging {
  border-color: var(--s1); border-style: solid; outline: none;
  transform: translateY(-3px); box-shadow: var(--shadow-2);
  background: color-mix(in srgb, var(--s1) 5%, var(--surface));
}
.drop-ic {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--s1) 12%, var(--surface));
  color: var(--s1);
}
.drop-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop.dragging .drop-ic { animation: nudge .6s var(--ease) infinite alternate; }
@keyframes nudge { to { transform: translateY(-5px) } }
.drop-lead { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; }
.drop-sub { font-size: 14.5px; color: var(--ink-3); margin-top: 5px; }
.fauxlink { color: var(--s1); font-weight: 600; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: var(--surface-2); padding: 2px 6px; border-radius: 5px;
}
.err {
  margin-top: 14px; padding: 12px 15px; border-radius: var(--r); font-size: 14.6px;
  background: color-mix(in srgb, var(--s8) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--s8) 45%, transparent);
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.facts dt { font-family: var(--display); font-weight: 400; font-size: 15px; }
.facts dd { font-size: 13.4px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }

/* hero panel */
.hero-r { display: grid; place-items: center; }
.glass {
  width: 100%; max-width: 420px; padding: 20px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  animation: rise .9s .2s var(--ease) both;
}
.glass-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gh-t { font-family: var(--display); font-weight: 400; font-size: 15.5px; }
.gh-b { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }
.spark svg { width: 100%; height: 96px; }
.draw { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.7s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.glass-rows { display: grid; gap: 9px; margin-top: 14px; }
.gr { display: grid; grid-template-columns: 90px 1fr auto; gap: 11px; align-items: center; font-size: 13.4px; }
.gr span { color: var(--ink-2); }
.gr i { height: 8px; border-radius: 4px; width: 0; animation: fillbar 1.1s .6s var(--ease) forwards; }
@keyframes fillbar { to { width: var(--w) } }
.gr b { font-weight: 700; font-size: 13px; }

/* ──────────────────────────────────────────────────────────── steps + faq */
.steps-sec { max-width: 860px; margin: 0 auto; padding: 0 var(--pad) clamp(50px, 8vw, 100px); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.028em; margin-bottom: 22px; }
.steps { display: grid; gap: 12px; margin-bottom: 22px; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-1);
}
.steps li > span {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 700;
}
.steps b { font-family: var(--display); font-weight: 400; font-size: 16.5px; }
.steps p { color: var(--ink-2); font-size: 14.6px; margin-top: 2px; }
.faq { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.faq summary {
  cursor: pointer; padding: 15px 20px; font-family: var(--display); font-weight: 400;
  font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 21px; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-b { padding: 0 20px 18px; display: grid; gap: 10px; color: var(--ink-2); font-size: 14.8px; }

/* ──────────────────────────────────────────────────────────────── loading */
.load { min-height: 72vh; display: none; place-items: center; padding: 60px var(--pad); }
.load.is-on { display: grid; }
.load-in { text-align: center; width: min(400px, 100%); }
.load-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.load-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--s1); animation: hop .9s var(--ease) infinite alternate; }
.load-dots span:nth-child(2) { background: var(--s2); animation-delay: .14s }
.load-dots span:nth-child(3) { background: var(--s3); animation-delay: .28s }
@keyframes hop { to { transform: translateY(-11px) } }
.load-t { font-family: var(--display); font-size: 21px; font-weight: 400; }
.load-track { height: 6px; background: var(--rule); border-radius: 99px; overflow: hidden; margin-top: 18px; }
.load-bar { height: 100%; width: 5%; background: var(--s1); border-radius: 99px; transition: width .35s var(--ease); }

/* ───────────────────────────────────────────────────────────────── report */
.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface);
  transition: border-color .18s, color .18s, transform .18s var(--ease);
}
.ghost-btn:hover { border-color: var(--s1); color: var(--s1); transform: translateY(-1px); }
.ghost-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.demo-banner {
  background: color-mix(in srgb, var(--s4) 16%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--s4) 45%, transparent);
  padding: 11px var(--pad); text-align: center; font-size: 13.8px; color: var(--ink-2);
}
.demo-banner[hidden] { display: none; }
.demo-banner b { color: var(--ink); }

.rep-head { border-bottom: 1px solid var(--rule); background: var(--surface); }
.rep-head-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px, 5vw, 58px) var(--pad) clamp(24px, 4vw, 40px); }
.rep-h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.02; letter-spacing: -.035em;
}
.rep-sub { color: var(--ink-2); margin-top: 12px; font-size: clamp(15px, 1.4vw, 17px); max-width: 62ch; }

.secnav {
  position: sticky; top: 62px; z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 11px var(--pad);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.secnav::-webkit-scrollbar { display: none; }
.secnav a {
  flex: none; font-size: 13.4px; font-weight: 600; text-decoration: none;
  padding: 7px 13px; border-radius: 999px; color: var(--ink-2);
  border: 1px solid transparent; white-space: nowrap; transition: background .18s, color .18s;
}
.secnav a:hover { background: var(--surface-2); color: var(--ink); }
.secnav a.on { background: var(--ink); color: var(--paper); }

/* KPI tiles */
.kpis {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(22px, 3.4vw, 36px) var(--pad) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px;
}
/* No base `opacity: 0` here. `rise` only defines a `from`, so the animation's end
   state is whatever the element's own style says — declaring opacity 0 on the
   element animated these from invisible to invisible. `both` covers the delay. */
.kpi {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 17px 18px; box-shadow: var(--shadow-1);
  animation: rise .6s var(--ease) both;
}
.kpi-l { font-size: 12.4px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kpi-v {
  font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -.03em; line-height: 1.06; margin-top: 7px;
}
.kpi-s { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.kpi-d { font-weight: 700; font-size: 13px; }
.kpi-d.up { color: var(--up) } .kpi-d.down { color: var(--down) }

/* figures */
.figures {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) var(--pad) 0;
  display: grid; gap: clamp(14px, 2vw, 22px);
}
.fig {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fig.seen { opacity: 1; transform: none; }
.fig-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.fig-h { font-family: var(--display); font-weight: 400; font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -.026em; }
.fig-cap { color: var(--ink-2); font-size: 14.8px; margin-top: 6px; max-width: 68ch; }
.fig-cap strong { color: var(--ink); font-weight: 700; }
.fig-body { margin-top: 20px; }
.tbtn {
  font-size: 12.6px; font-weight: 700; padding: 6px 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: 8px;
  color: var(--ink-2); transition: background .18s, color .18s; white-space: nowrap;
}
.tbtn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--rule-2); stroke-width: 1; }
.chart .ax { fill: var(--ink-3); font: 600 11px var(--body); }
.chart .rowlab { fill: var(--ink-2); font: 600 13px var(--body); }
.chart .dlabel { fill: var(--ink); font: 700 12px var(--body); }
.chart .bar, .chart .seg { transition: opacity .16s; }
.chart .bar { fill: var(--s1); opacity: .82; }
.chart .bar-peak { opacity: 1; }
.chart .bar:hover, .chart .seg:hover { opacity: 1; filter: brightness(1.08); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.chart .mile { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .mile-t { fill: var(--ink-3); font: 700 10px var(--body); }
.chart-empty { color: var(--ink-3); font-size: 14.5px; padding: 22px 0; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.lg i { width: 11px; height: 11px; border-radius: 3px; }

/* tables */
.tablewrap { overflow-x: auto; margin-top: 6px; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; font-size: 13.8px; min-width: 420px; }
.dtable th, .dtable td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.dtable th { font-size: 11.6px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.dtable td.num, .dtable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dtable tbody tr:hover { background: var(--surface-2); }

/* labelled horizontal bands (age, builders, roles) ------------------------ */
.bandrow { display: grid; gap: 10px; margin-top: 4px; }
.band { display: grid; grid-template-columns: 158px 1fr 68px; gap: 14px; align-items: center; }
.band-l { font-size: 13.6px; color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band-t { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.band-f { height: 100%; width: 0; border-radius: 7px; transition: width .9s var(--ease); }
.band-v { font-size: 13.4px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* gap cards --------------------------------------------------------------- */
.gapgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 4px; }
.gapcard {
  padding: 18px 16px; border-radius: var(--r); text-align: center;
  background: var(--surface-2); border: 1px solid var(--rule);
}
.gap-n { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.03em; }
.gap-l { font-size: 13.4px; font-weight: 600; margin-top: 4px; }
.gap-s { font-size: 12.4px; color: var(--ink-3); margin-top: 2px; }

/* the illustrated export guide -------------------------------------------- */
.guide { display: grid; gap: 16px; margin-bottom: 22px; }
.gstep {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-1);
}
.gstep > b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700;
}
.gstep h3 { font-family: var(--display); font-weight: 400; font-size: 17.5px; letter-spacing: -.02em; }
.gstep p { color: var(--ink-2); font-size: 14.8px; margin-top: 4px; }
.shot {
  margin-top: 14px; border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; background: var(--surface-2);
}
.shot svg { width: 100%; height: auto; display: block; }
.guide-note {
  font-size: 13.6px; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px;
}

/* mini stat strip inside figures */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.strip div b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.026em; }
.strip div span { font-size: 12.8px; color: var(--ink-3); }

/* era / timeline list */
.tl { display: grid; gap: 2px; }
.tl-row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule-2);
}
.tl-y { font-family: var(--display); font-weight: 400; font-size: 17px; }
.tl-m { font-size: 14px; color: var(--ink-2); }
.tl-m b { color: var(--ink); font-weight: 700; }
.tl-n { font-weight: 700; font-size: 15px; }
.tl-bar { height: 6px; border-radius: 3px; background: var(--s1); opacity: .3; margin-top: 6px; width: 0; transition: width 1s var(--ease); }

/* your roles */
.roles { display: grid; gap: 10px; }
.role { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--s1); margin-top: 7px; position: relative; }
.role-dot::after { content: ''; position: absolute; left: 50%; top: 14px; width: 1px; height: 34px; background: var(--rule); transform: translateX(-50%); }
.role:last-child .role-dot::after { display: none; }
.role-t { font-family: var(--display); font-weight: 400; font-size: 16px; }
.role-c { font-size: 13.8px; color: var(--ink-2); }

/* footer */
.foot { border-top: 1px solid var(--rule); margin-top: clamp(34px, 5vw, 60px); background: var(--surface); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(34px, 5vw, 62px) var(--pad); text-align: center; }
.foot-h { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.03em; margin-bottom: 20px; }
.foot-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.foot-f { margin-top: 20px; font-size: 13px; color: var(--ink-3); }
.btn {
  font-family: var(--body); font-weight: 700; font-size: 14.8px;
  padding: 11px 20px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule);
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-p { background: var(--s1); color: #fff; border-color: transparent; }
.btn-p:hover { filter: brightness(1.06); }

/* tooltip */
.tip {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  background: var(--ink); color: var(--paper);
  font-size: 12.6px; font-weight: 600; padding: 7px 11px; border-radius: 8px;
  box-shadow: var(--shadow-2); white-space: nowrap;
}
.tip[hidden] { display: none; }

/* ──────────────────────────────────────────────────────────── responsive */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .hero-r { order: -1; }
  .glass { max-width: 100%; }
  .secnav { top: 58px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .pill { display: none; }
  .tl-row { grid-template-columns: 50px 1fr auto; gap: 10px; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .chart .ax { font-size: 13px; }
  .chart .rowlab { font-size: 15px; }
  .chart .dlabel { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .fig, .kpi { opacity: 1; transform: none; }
}
:focus-visible { outline: 2.5px solid var(--s1); outline-offset: 3px; border-radius: 5px; }

/* ── quiet attribution ─────────────────────────────────────────────────── */
.byline {
  margin-top: 22px; text-align: center;
  font-size: 12.5px; letter-spacing: .01em; opacity: .75;
}
.byline a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.byline a:hover { opacity: 1; }
.byline span { margin: 0 6px; opacity: .5; }
