/* MPower Network — broadsheet system
   Brand: Cobalt #2B3CFF, Signal #FFD23F (node only), Ink #14161A, Paper #F4F5F2
   Type:  Archivo Black (display) / Inter (body, and labels tracked out). No monospace. */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/ArchivoBlack-Regular.woff2") format("woff2"),
       url("fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Var";
  src: url("fonts/Inter-Variable.woff2") format("woff2"),
       url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --ink: #14161a;
  --paper: #f4f5f2;
  --cobalt: #2b3cff;
  --signal: #ffd23f;

  --ink-90: rgba(20, 22, 26, 0.90);
  --ink-62: rgba(20, 22, 26, 0.62);
  --ink-45: rgba(20, 22, 26, 0.45);
  --rule: rgba(20, 22, 26, 0.16);
  --rule-soft: rgba(20, 22, 26, 0.08);
  --wash: rgba(20, 22, 26, 0.035);

  --display: "Archivo Black", Impact, sans-serif;
  --body: "Inter Var", system-ui, -apple-system, sans-serif;
  /* Labels and datelines: Inter, tracked out and set small. No monospace anywhere. */
  --slug: "Inter Var", system-ui, -apple-system, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  --page: 1240px;
  --dur: 200ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--cobalt); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Shell ─────────────────────────────────────────────── */

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* Broadsheet band: hanging slug in the left margin, content in the measure. */
.band {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 0 var(--s7);
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--rule);
}
.band:first-of-type { border-top: 0; }

.slug {
  font-family: var(--slug);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
  line-height: 1.7;
  padding-top: 6px;
}
.slug .node {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 7px;
  vertical-align: 1px;
}
.slug b { display: block; color: var(--ink); font-weight: 700; }

/* ── Type ──────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

h1 {
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 18ch;
  text-wrap: balance;
}
h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-90);
  max-width: 54ch;
  text-wrap: pretty;
}

p { max-width: 65ch; text-wrap: pretty; }
p.tight { max-width: 46ch; }

.dim { color: var(--ink-62); }

/* ── Header ────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 245, 242, 0.94);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; gap: var(--s6);
  height: 68px;
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { height: 26px; width: auto; }
/* Wordmark per guidelines v2: lowercase "mpower" + coloured ".network".
   The lockup SVGs in Brand/logo/ came off the v1 PDF and still read mpower.vc,
   so the wordmark is set live in Archivo Black instead. */
.mark span {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.03em;
}
.mark .tld { color: var(--cobalt); }

.nav { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-62);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .nav a:hover { color: var(--ink); border-bottom-color: var(--cobalt); }
}
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform 150ms var(--ease), color var(--dur) var(--ease);
}
.btn .arw { transition: transform var(--dur) var(--ease); }
@media (hover: hover) {
  .btn:hover { background: var(--cobalt); border-color: var(--cobalt); }
  .btn:hover .arw { transform: translateX(4px); }
}
.btn:active { transform: scale(0.97); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }

/* Second hero action: cobalt against the ink primary, so the two read as a pair
   without competing for the same emphasis. */
.btn--cobalt { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }
@media (hover: hover) {
  .btn--cobalt:hover { background: var(--ink); border-color: var(--ink); }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (hover: hover) {
  .btn.ghost:hover { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
}

.textlink {
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--cobalt);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease);
}
@media (hover: hover) { .textlink:hover { color: var(--cobalt); } }

/* ── Hero ──────────────────────────────────────────────── */

.hero { padding-top: clamp(48px, 8vw, 104px); padding-bottom: var(--s8); }
.hero .dateline {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  font-family: var(--slug);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-45);
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--ink);
  margin-bottom: var(--s6);
}
.hero .dateline .sep { color: var(--rule); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: end;
}
.hero-aside { padding-bottom: 6px; }

/* Marked heroes run text down the left and give the graphic its own column.
   Splitting headline and description across the two columns left a void under
   any headline shorter than the paragraph beside it. */
.hero-grid--mark {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
}
.hero-body > * + * { margin-top: var(--s5); }
/* Display type sits tight in its box, so it needs a bigger optical gap below. */
.hero-body h1 + * { margin-top: var(--s6); }
.hero-body .lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 56ch; }
.hero-body p { max-width: 60ch; }
.hero-figure { display: flex; justify-content: center; align-items: center; }

/* Page mark: one recognisable object per section, drawn as a solid form.
   Faces are filled and outlined so the object has weight; a ground shadow sits
   it on the page. Signal yellow appears exactly once per icon. */
.hero-mark {
  width: clamp(150px, 20vw, 250px);
  height: auto; display: block; overflow: visible;
}
.hero-mark * { stroke-linecap: round; stroke-linejoin: round; }

.hero-mark .i-face, .slug-mark .i-face, .band-mark .i-face   { fill: #fdfdfc; stroke: var(--cobalt); stroke-width: 3.5; }
.hero-mark .i-edge, .slug-mark .i-edge, .band-mark .i-edge   { fill: #c9cdf0; stroke: var(--cobalt); stroke-width: 3.5; }
.hero-mark .i-stroke, .slug-mark .i-stroke, .band-mark .i-stroke { fill: none;    stroke: var(--cobalt); stroke-width: 3.5; }
.hero-mark .i-rule, .slug-mark .i-rule, .band-mark .i-rule   { fill: none;    stroke: var(--cobalt); stroke-width: 2.5;
                       stroke-opacity: 0.32; }
.hero-mark .i-accent, .slug-mark .i-accent, .band-mark .i-accent { fill: var(--signal); stroke: var(--cobalt); stroke-width: 3.5; }
.hero-mark .i-accent-c, .slug-mark .i-accent-c, .band-mark .i-accent-c { fill: var(--signal); stroke: none; }
.hero-mark .i-lens, .slug-mark .i-lens, .band-mark .i-lens   { fill: rgba(43, 60, 255, 0.10); stroke: none; }
.hero-mark .i-liquid, .slug-mark .i-liquid, .band-mark .i-liquid { fill: rgba(43, 60, 255, 0.16); stroke: none; }
.hero-mark .i-glint, .slug-mark .i-glint, .band-mark .i-glint  { fill: none; stroke: #fff; stroke-width: 3; stroke-opacity: 0.9; }
.hero-mark .i-handle, .slug-mark .i-handle, .band-mark .i-handle { fill: none; stroke: var(--cobalt); stroke-width: 8; }
.hero-mark .i-handle-c, .slug-mark .i-handle-c, .band-mark .i-handle-c { fill: none; stroke: var(--cobalt); stroke-width: 3.5; }
.hero-mark .i-steam, .slug-mark .i-steam, .band-mark .i-steam  { fill: none; stroke: var(--cobalt); stroke-width: 3;
                       stroke-opacity: 0.42; }
.hero-mark .i-shadow, .slug-mark .i-shadow, .band-mark .i-shadow { fill: rgba(20, 22, 26, 0.10); stroke: none; }
.hero-mark .i-behind, .slug-mark .i-behind, .band-mark .i-behind { fill: none; stroke: var(--cobalt); stroke-width: 3.5;
                       stroke-opacity: 0.42; }
.hero-mark .i-graphite, .slug-mark .i-graphite, .band-mark .i-graphite { fill: var(--ink); stroke: none; }
.hero-mark .i-leg, .slug-mark .i-leg, .band-mark .i-leg { fill: none; stroke: var(--cobalt); stroke-width: 8; }
.hero-mark .i-hub, .slug-mark .i-hub, .band-mark .i-hub { fill: var(--cobalt); stroke: none; }
.hero-mark .i-ferrule, .slug-mark .i-ferrule, .band-mark .i-ferrule  { fill: #d7dae4; stroke: var(--cobalt); stroke-width: 3.5; }
.hero-mark .i-eraser, .slug-mark .i-eraser, .band-mark .i-eraser   { fill: #f4b8b0; stroke: var(--cobalt); stroke-width: 3.5; }
/* Optical stroke compensation: slug marks render at ~half the hero-mark size,
   so the same 3.5-unit stroke reads wispy. Thicken every weight class in step. */
.slug-mark .i-face, .slug-mark .i-edge, .slug-mark .i-accent,
.slug-mark .i-stroke, .slug-mark .i-handle-c,
.slug-mark .i-ferrule, .slug-mark .i-eraser { stroke-width: 5.5; }
.slug-mark .i-rule   { stroke-width: 4; }
.slug-mark .i-steam  { stroke-width: 4.5; }
.slug-mark .i-glint  { stroke-width: 4.5; }
.slug-mark .i-behind { stroke-width: 5.5; }
.slug-mark .i-handle, .slug-mark .i-leg { stroke-width: 11; }

.hero-aside .lede { margin: 0 0 var(--s5); font-size: 17px; }

/* Small section mark: same drawn objects as the hero marks, sitting in the
   slug column above the label. Only some sections carry one — the sections
   that are already graphic (stats, maps) don't. */
.slug-mark {
  width: 104px; height: auto; display: block; overflow: visible;
  margin-bottom: var(--s4);
}
.slug-mark * { stroke-linecap: round; stroke-linejoin: round; }

/* Marked band: text keeps roughly 70% of the measure, the drawn object fills
   its own right column at hero-mark scale. Slug stays pinned to the top. */
.band--figure {
  grid-template-columns: 176px minmax(0, 1.65fr) minmax(0, 0.72fr);
  align-items: center;
}
.band--figure .slug { align-self: start; }
.band-figure { display: flex; justify-content: center; align-items: center; }
.band-mark { width: clamp(150px, 17vw, 230px); height: auto; overflow: visible; }
.band-mark * { stroke-linecap: round; stroke-linejoin: round; }

/* ── Toned bands ──────────────────────────────────────────
   Full-bleed background shifts that break up the paper page.
   .tone is paper tinted with cobalt; .cobalt-band is solid brand blue. */
.tone { background: #e7e9f5; }
.tone .band { border-top: 0; }
.tone + .wrap.band, .cobalt-band + .wrap.band { border-top: 0; }

.cobalt-band { background: var(--cobalt); color: var(--paper); }
.cobalt-band .band { border-top: 0; }
.cobalt-band .slug { color: rgba(244, 245, 242, 0.6); }
.cobalt-band .pull { border-left-color: var(--signal); }
.cobalt-band .pull blockquote { color: var(--paper); }
.cobalt-band .pull cite { color: rgba(244, 245, 242, 0.62); }
.cobalt-band ::selection { background: var(--ink); }

/* Ticker strip */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 14px 0;
  margin-top: var(--s8);
}
.strip ul {
  display: flex; gap: var(--s6);
  list-style: none; margin: 0; padding: 0;
  font-family: var(--slug);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-45);
  flex-wrap: wrap;
}
.strip li::after { content: " ·"; color: var(--rule); margin-left: var(--s6); }
.strip li:last-child::after { content: ""; }

/* ── Numbered editorial list (replaces mono 01/02 chips) ─ */

.ledger { border-top: 1px solid var(--rule); margin-top: var(--s7); }
.row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s5);
  align-items: baseline;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: background var(--dur) var(--ease);
}
@media (hover: hover) { .row:hover { background: var(--wash); } }
.row .num {
  font-family: var(--display);
  font-size: 40px;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.row .num em { font-style: normal; color: var(--cobalt); }
.row h3 { align-self: baseline; }
.row p { margin: 0; color: var(--ink-62); font-size: 16px; }

/* ── Cards / tiles ─────────────────────────────────────── */

.tiles { display: grid; gap: var(--s5); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--s5);
  background: transparent;
  display: flex; flex-direction: column; gap: var(--s3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
@media (hover: hover) { .tile:hover { border-color: var(--ink); background: var(--wash); } }
.tile.feature { border-color: var(--ink); border-width: 1.5px; }
.tile p { margin: 0; font-size: 16px; color: var(--ink-62); }
.tile .price {
  margin-top: auto; padding-top: var(--s4);
  font-family: var(--slug); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-45);
  border-top: 1px solid var(--rule-soft);
}

/* Small label pill — brand colours, body type, no neon */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  font-family: var(--body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-62);
  background: transparent;
}
.pill.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill.blue  { background: rgba(43, 60, 255, 0.08); border-color: rgba(43, 60, 255, 0.28); color: var(--cobalt); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Events ────────────────────────────────────────────── */

.event {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--rule);
}
.event.has-map { grid-template-columns: minmax(0, 1fr) 290px; gap: var(--s6); }
.event-main {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: center;
}

/* Map preview. Google embed, no API key, lazy-loaded. */
.map {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--wash);
  transition: border-color var(--dur) var(--ease);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (hover: hover) { .event:hover .map { border-color: var(--ink); } }
.event:first-child { border-top: 1px solid var(--ink); }
.event .when {
  white-space: nowrap;
  font-family: var(--display);
  font-size: 38px; line-height: 0.9; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.event .when small {
  display: block;
  font-family: var(--slug);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45);
  margin-top: 9px; line-height: 1.5;
}
.event .where h3 { margin-bottom: 5px; }
.event .where p { margin: 0; font-size: 15px; color: var(--ink-62); }
.event .act { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }

/* ── Episodes ──────────────────────────────────────────── */

.episode {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
}
.episode .dur {
  font-family: var(--slug); font-size: 12px; color: var(--ink-45);
  font-variant-numeric: tabular-nums; min-width: 68px;
}
.episode .title { font-weight: 550; font-size: 17px; }
.episode .play {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--rule); display: grid; place-items: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (hover: hover) {
  .episode:hover .play { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }
}

/* ── Quote ─────────────────────────────────────────────── */

.pull {
  border-left: 2px solid var(--cobalt);
  padding-left: var(--s5);
}
.pull blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.pull cite {
  display: block; margin-top: var(--s4);
  font-family: var(--slug); font-style: normal;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-45);
}

/* ── Article ───────────────────────────────────────────── */

.article { max-width: 66ch; }
/* An article's headline is the page's H1. It is set at heading-two scale so the
   change is structural only and nothing moves on screen. */
.article h1 {
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 22ch;
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.article .kicker {
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cobalt);
  margin-bottom: var(--s4);
}
.article h2 { max-width: 22ch; margin-bottom: var(--s4); }
.article .byline {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s6);
}
.article .byline img { width: 30px; height: 30px; border-radius: 50%; }
.article p { font-size: 18px; line-height: 1.68; margin: 0 0 var(--s5); }
.article p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 58px; line-height: 0.82;
  float: left; margin: 5px 12px 0 0; color: var(--cobalt);
}
.article blockquote {
  margin: var(--s6) 0;
  padding-left: var(--s5);
  border-left: 2px solid var(--signal);
  font-size: 21px; line-height: 1.4; font-weight: 500;
}
.article h4 {
  font-family: var(--slug);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-45); font-weight: 700;
  margin: var(--s7) 0 var(--s4);
}

/* ── Forms ─────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--s5); }
.field label {
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-62);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  padding: 11px 2px;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--cobalt);
}
.field select { appearance: none; cursor: pointer; }

/* Honeypot: off-screen, never shown, catches bots that fill everything. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: var(--s4) 0 0;
  font-size: 15px;
  max-width: 46ch;
  padding-left: var(--s3);
  border-left: 2px solid var(--rule);
}
.form-status.ok  { border-left-color: var(--cobalt); color: var(--ink); }
.form-status.err { border-left-color: var(--signal); color: var(--ink); }

/* ── Newsletter / CTA band ─────────────────────────────── */

.invert {
  background: var(--ink);
  color: var(--paper);
  margin-top: var(--s9);
}
.invert h2, .invert h1 { color: var(--paper); }
.invert .slug, .invert .dim { color: rgba(244, 245, 242, 0.55); }
.invert .band { border-top-color: rgba(244, 245, 242, 0.14); }
.invert .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.invert .btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 245, 242, 0.3);
}
@media (hover: hover) {
  .invert .btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }
}
.invert .field input { color: var(--paper); border-bottom-color: rgba(244, 245, 242, 0.24); }
.invert .field label { color: rgba(244, 245, 242, 0.55); }
.invert .field input:focus { border-bottom-color: var(--signal); }
.invert .form-status { color: var(--paper); border-left-color: rgba(244, 245, 242, 0.3); }
.invert .form-status.ok  { border-left-color: var(--signal); }
.invert .form-status.err { border-left-color: var(--cobalt); }

/* ── Footer ────────────────────────────────────────────── */

footer.foot { background: var(--ink); color: rgba(244, 245, 242, 0.62); padding: var(--s8) 0 var(--s6); }
footer.foot .cols {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6);
  padding-bottom: var(--s7);
  border-bottom: 1px solid rgba(244, 245, 242, 0.14);
}
footer.foot h4 {
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244, 245, 242, 0.45);
  margin: 0 0 var(--s4); font-weight: 400;
}
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.foot a { text-decoration: none; font-size: 15px; transition: color var(--dur) var(--ease); }
@media (hover: hover) { footer.foot a:hover { color: var(--paper); } }
footer.foot .footmark {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--s4);
}
footer.foot .footmark img { height: 26px; width: auto; }
footer.foot .footmark span {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--paper);
}
footer.foot .footmark .tld { color: var(--signal); }
footer.foot .brandline p { font-size: 15px; max-width: 34ch; margin: 0; }
footer.foot .base {
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  padding-top: var(--s5);
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244, 245, 242, 0.45);
}

/* Label weight — Inter needs the extra weight to hold at 11px tracked out. */
.slug,
.hero .dateline,
.strip ul,
.event .when small,
.episode .dur,
.pull cite,
.article .kicker,
.article .byline,
.tile .price,
.field label,
footer.foot h4,
footer.foot .base { font-weight: 600; }

.slug b { font-weight: 800; }
.article h4 { font-weight: 700; }
.episode .dur, .event .when small { font-variant-numeric: tabular-nums; }

/* ── Load reveal ───────────────────────────────────────── */

.rise { opacity: 0; transform: translateY(14px); }
@media (scripting: none) { .rise { opacity: 1; transform: none; } }
.rise.in {
  opacity: 1; transform: none;
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}

/* ── Article cards ─────────────────────────────────────── */

.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .cover { aspect-ratio: 1200 / 360; width: 100%; object-fit: cover; }
.card .card-body { padding: var(--s5); }
.card .card-meta {
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
  display: flex; gap: var(--s3); flex-wrap: wrap;
}
.card h3 { margin: var(--s3) 0 var(--s2); }
.card p { margin: 0; font-size: 16px; color: var(--ink-62); }
.card .more {
  display: inline-block; margin-top: var(--s4);
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cobalt);
}
.card:hover .more .arw { transform: translateX(3px); }
.card .more .arw { display: inline-block; transition: transform var(--dur) var(--ease); }

/* The latest article runs full width, cover on top. The covers are typographic,
   so they are never cropped: the image keeps its own 1200x630 ratio. */
.card.feature .card-body { padding: var(--s6); }
.card.feature h3 { font-size: clamp(26px, 3vw, 38px); max-width: 24ch; }
.card.feature p { font-size: 17px; max-width: 62ch; }

.cardgrid { display: grid; gap: var(--s5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cardgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.empty {
  border: 1px dashed var(--rule);
  padding: var(--s7) var(--s5);
  text-align: center; color: var(--ink-62); font-size: 16px;
}

/* Back to the hub, sits above an article's headline. */
.backlink {
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
  text-decoration: none; display: inline-block; margin-bottom: var(--s5);
}
.backlink:hover { color: var(--cobalt); }

.article .hero-cover { margin-bottom: var(--s6); border: 1px solid var(--rule); }

/* The thesis page is argument-dense and meant to be read in one sitting,
   so its sections run tighter than the rest of the site. */
.page-thesis .band { padding-top: clamp(40px, 4.6vw, 60px);
                     padding-bottom: clamp(40px, 4.6vw, 60px); }
.page-thesis .hero { padding-bottom: var(--s6); }

/* ── Figures ───────────────────────────────────────────── */

.figure { border: 1px solid var(--rule); padding: var(--s5) var(--s5) var(--s4); }
.figure__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4); flex-wrap: wrap;
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
  padding-bottom: var(--s4); border-bottom: 1px solid var(--rule-soft);
}
.figure__head b { color: var(--ink); font-weight: 700; }
.figure svg { width: 100%; height: auto; margin-top: var(--s4); display: block; }
.figure__cap {
  margin: var(--s4) 0 0; font-size: 14px; color: var(--ink-62); max-width: 62ch;
}
.fig-axis { stroke: var(--rule); stroke-width: 1; }
.fig-grid { stroke: var(--rule-soft); stroke-width: 1; }
.fig-line { fill: none; stroke: var(--cobalt); stroke-width: 2.5; }
.fig-area { fill: rgba(43, 60, 255, 0.07); }
.fig-dot  { fill: var(--cobalt); }
.fig-bar  { fill: var(--cobalt); }
.fig-bar--soft { fill: rgba(43, 60, 255, 0.34); }
/* Values are data, so they sit in ink and read as text, never in the mark colour. */
.fig-val  { font-family: var(--body); font-size: 13px; font-weight: 600; fill: var(--ink);
            font-variant-numeric: tabular-nums; }
.fig-lab  { font-family: var(--body); font-size: 12.5px; fill: var(--ink-62); }

/* Statistic call-outs */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.stats > div { border-left: 1px solid var(--rule); padding: var(--s4) var(--s5); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats .n {
  font-family: var(--display); font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stats p { margin: var(--s3) 0 0; font-size: 15px; color: var(--ink-62); }
.stats cite {
  display: block; margin-top: var(--s3); font-style: normal;
  font-family: var(--slug); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
}

/* ── Maps ──────────────────────────────────────────────── */

.map-stage { border: 1px solid var(--rule); background: var(--wash); padding: var(--s5); }
.map-svg { width: 100%; height: auto; display: block;
           -webkit-user-select: none; user-select: none; }
.map-svg text { -webkit-user-select: none; user-select: none; }
.map-legend {
  display: flex; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s5);
  font-family: var(--slug); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
}
.map-legend span { display: inline-flex; align-items: center; gap: 9px; }
.map-key { width: 11px; height: 11px; border-radius: 50%; background: var(--cobalt); }
.map-key--next { background: var(--paper); border: 1.5px solid var(--cobalt); }

/* Stacked copies of the outline form the side wall of the extrusion. */
.tx-side path { fill: #b3b7c1; stroke: #b3b7c1; stroke-width: 2;
                stroke-linejoin: round; }
.tx-top  { fill: #fbfbfa; stroke: var(--ink); stroke-width: 2.5;
           stroke-linejoin: round; }
.tx-shadow { fill: rgba(20, 22, 26, 0.22); }
.tx-stem { stroke: var(--ink); stroke-width: 2.5; }
.tx-halo { fill: rgba(43, 60, 255, 0.18); }
.tx-dot  { fill: var(--cobalt); stroke: var(--paper); stroke-width: 2.5; }
.tx-name { font-family: var(--display); font-size: 34px; fill: var(--ink);
           letter-spacing: -0.02em; }

.gl-sphere { fill: #dcdfe8; stroke: none; }
.gl-shade { pointer-events: none; }
.gl-rim { fill: none; stroke: rgba(20, 22, 26, 0.22); stroke-width: 1.5;
          pointer-events: none; }
.globe { cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.globe.is-dragging { cursor: grabbing; }
.globe:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.map-hint {
  margin: var(--s4) 0 0; font-family: var(--slug); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45);
}
.gl-grat path { fill: none; stroke: rgba(20, 22, 26, 0.15); stroke-width: 1; }
.gl-land path { fill: #fafaf8; stroke: rgba(20, 22, 26, 0.22);
                stroke-width: 0.75; }
.gl-arc { fill: none; stroke: var(--cobalt); stroke-width: 2.5; }
.gl-arc--next { stroke-dasharray: 6 7; stroke-opacity: 0.5; }
.gl-lead { stroke: rgba(20, 22, 26, 0.38); stroke-width: 1; }
.gl-halo { fill: rgba(43, 60, 255, 0.15); }
.gl-dot { fill: var(--cobalt); }
.gl-node--next .gl-dot { fill: var(--paper); stroke: var(--cobalt); stroke-width: 2; }
.gl-label { font-family: var(--body); font-size: 14px; font-weight: 600; fill: var(--ink); }

/* Two maps side by side, so Where is one screen rather than two. */
.map-pair { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
            gap: var(--s5); align-items: stretch; }
.map-pair .map-stage { display: flex; flex-direction: column; align-items: center;
                       justify-content: center; }
.map-stage--tx .map-svg { max-width: 520px; margin: 0 auto; }
.map-pair .map-stage--tx .map-svg { max-width: 380px; }

/* ── FAQ ───────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--rule); margin-top: var(--s6); }
.faq > div {
  border-bottom: 1px solid var(--rule);
  padding: var(--s5) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s5); align-items: start;
}
.faq h3 { margin: 0; font-size: 19px; max-width: 26ch; }
.faq p { margin: 0; color: var(--ink-62); font-size: 16px; max-width: 60ch; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1000px) {
  .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.feature .card-body { padding: var(--s5); }
  .band { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s8); padding-bottom: var(--s8); }
  .band--figure { grid-template-columns: 1fr; }
  .band-figure { justify-content: flex-start; order: -1; }
  .band-mark { width: 132px; }
  .slug { padding-top: 0; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: var(--s5); }
  .hero-grid--mark { grid-template-columns: 1fr; }
  .hero-figure { justify-content: flex-start; order: -1; }
  .tiles.three { grid-template-columns: 1fr; }
  .event, .event.has-map { grid-template-columns: 1fr; gap: var(--s5); }
  .event-main { grid-template-columns: 1fr; gap: var(--s4); }
  .map { aspect-ratio: 16 / 9; }
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row p { grid-column: 2; }
  footer.foot .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead .wrap {
    height: auto; flex-direction: column; align-items: stretch;
    gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3);
  }
  .nav {
    margin-left: 0; gap: var(--s4);
    overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13px; white-space: nowrap; }
  .hero .dateline { gap: var(--s3); font-size: 10px; }
  .tiles.two { grid-template-columns: 1fr; }
  .cardgrid, .cardgrid.two { grid-template-columns: 1fr; }
  .faq > div { grid-template-columns: 1fr; gap: var(--s3); }
  .stats { grid-template-columns: 1fr; }
  .map-pair { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; border-top: 1px solid var(--rule);
                 padding: var(--s4) 0; }
  .stats > div:first-child { border-top: 0; padding-top: 0; }
  .tx-name { font-size: 46px; }
  .gl-label { font-size: 19px; }
  footer.foot .cols { grid-template-columns: 1fr; }
  .article p:first-of-type::first-letter { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
}
