/* ============================================================
   Grid Mitigation & Data Centers — Advocacy Playbook
   Brand: ARI. Deep navy + cool paper, crimson signal (#D6234D / #151C42).
   Display serif (Fraunces) · reading serif (Newsreader) · Archivo labels.
   ============================================================ */

:root {
  --paper:      #eef1f5;   /* cool paper base */
  --paper-2:    #e4e9ef;   /* deeper panel */
  --ink:        #151c42;   /* near-black, cool */
  --ink-2:      #44505c;   /* muted body */
  --ink-3:      #6b7682;   /* captions */
  --rule:       #d4dae2;   /* hairlines */
  --signal:     #d6234d;   /* amber accent (fills) */
  --signal-2:   #b01a3e;   /* deep amber (hover) */
  --accent-text:#b01a3e;   /* bronze — amber as text on light */
  --slate:      #6f8b96;   /* cool counterpoint */
  --dark:       #0e1330;   /* dark section bg */
  --dark-paper: #eef2f6;   /* text on dark */

  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-text: "Newsreader", Georgia, serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --measure: 48rem;
  --container: 76rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* keep anchored sections clear of the sticky topbar */
:target { scroll-margin-top: 72px; }
section[id] { scroll-margin-top: 72px; }

body {
  font-family: var(--serif-text);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: #ffffff; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.measure { max-width: var(--measure); }

p { margin-bottom: 1.25rem; }
.measure > p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong, b { font-weight: 600; }

/* ── Reading progress bar ───────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--signal); z-index: 200;
  transition: width 0.1s linear;
}

/* ── Top bar ────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 241, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 1.5rem;
}
.org {
  font-family: var(--ui);
  font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; font-weight: 500; color: var(--ink);
  white-space: nowrap;
}
.section-nav { display: flex; gap: 0.85rem; }
.section-nav a {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-3);
  padding: 2px 0; border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.section-nav .nav-pb, .section-nav .nav-home {
  color: var(--ink-3); margin-left: 0.95rem; position: relative;
}
.section-nav .nav-pb::before, .section-nav .nav-home::before {
  content: ""; position: absolute; left: -0.9rem; top: 50%; transform: translateY(-50%);
  height: 0.95rem; width: 1px; background: var(--rule);
}
.section-nav .nav-pb:hover, .section-nav .nav-home:hover { color: var(--accent-text); }
.section-nav a:hover, .section-nav a.active { color: var(--accent-text); border-bottom-color: var(--signal); }
.section-nav a.nav-action {
  color: #ffffff; background: var(--signal); border: none;
  padding: 5px 12px; border-radius: 3px; letter-spacing: 0.04em;
}
.section-nav a.nav-action:hover { background: var(--signal-2); }

/* ── Cover ──────────────────────────────────────────── */
.cover {
  position: relative;
  padding: clamp(5rem, 13vh, 9rem) 0 clamp(9rem, 22vh, 15rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.ekg {
  position: absolute; inset: auto 0 2.5rem 0; height: 120px;
  opacity: 0.1; pointer-events: none;
}
.ekg svg { width: 100%; height: 100%; }
.ekg path { fill: none; stroke: var(--signal); stroke-width: 2.5; }
.cover-inner { position: relative; }
.kicker {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1.6rem;
}
.cover-title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
}
.cover-title .amp {
  font-style: italic; font-weight: 400; color: var(--accent-text);
}
.cover-title .cover-series {
  display: block;
  font-family: var(--serif-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 2.2rem); line-height: 1;
  letter-spacing: -0.01em; color: var(--accent-text);
  margin-bottom: 0.5rem;
}
.standfirst {
  font-family: var(--serif-text);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45; max-width: 34rem; color: var(--ink-2);
  margin-bottom: 2.4rem;
}
.cover-meta {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--ui);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.cover-meta .dot { font-size: 0.4rem; color: var(--accent-text); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 3rem;
  font-family: var(--ui); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

/* ── Section scaffolding ────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: 3rem; }
.section-label {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1.2rem;
  display: flex; align-items: baseline; gap: 0.8rem;
}
.section-label .num {
  font-weight: 600; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.15em 0.5em; font-size: 0.9em;
}
.section-title {
  font-family: var(--serif-display);
  font-weight: 600; letter-spacing: -0.02em; line-height: 0.98;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}
.section-intro {
  font-size: 1.2rem; color: var(--ink-2); max-width: 38rem; margin-top: 1.5rem;
}
.subhead {
  font-family: var(--serif-display);
  font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em;
  margin: 2.6rem 0 1rem;
}

/* ── Executive summary ──────────────────────────────── */
.summary .lead { font-size: 1.4rem; line-height: 1.5; }
.dropcap {
  float: left; font-family: var(--serif-display); font-weight: 600;
  font-size: 4.6rem; line-height: 0.76; padding: 0.1em 0.12em 0 0;
  color: var(--accent-text);
}
.kicker-inline {
  font-family: var(--serif-text); font-style: italic;
  font-size: 1.25rem; color: var(--ink); line-height: 1.55;
  border-left: 3px solid var(--signal); padding-left: 1.4rem; margin-top: 2rem;
}

/* ── Stat strip (inline counters) ───────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  margin: 3rem 0;
}
.stat-strip .stat { background: var(--paper); padding: 1.8rem 1.4rem; }
.section-alt .stat-strip .stat { background: var(--paper-2); }
.stat-value {
  display: block; font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--ui); font-size: 0.74rem; line-height: 1.4;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.03em;
}

/* ── Ledger (incentive / action table) ──────────────── */
.ledger { border-top: 2px solid var(--ink); margin: 2.5rem 0; }
.ledger-row {
  display: grid; grid-template-columns: 16rem 1fr; gap: 2rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
}
.ledger-head {
  font-family: var(--ui); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); padding: 0.7rem 0;
}
.ledger-term {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.ledger-row > div:last-child { color: var(--ink-2); font-size: 1.05rem; }

/* ── Figure row (big single numbers) ────────────────── */
.figure-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 3rem 0;
}
.figure {
  border-top: 3px solid var(--ink); padding-top: 1rem;
}
.figure-hot { border-top-color: var(--signal); }
.figure-value {
  display: block; font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.95; letter-spacing: -0.03em;
}
.figure-hot .figure-value { color: var(--accent-text); }
.figure-label {
  display: block; margin-top: 0.6rem; font-family: var(--ui);
  font-size: 0.76rem; line-height: 1.4; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.03em;
}

/* ── Pull quote ─────────────────────────────────────── */
.quote-block { margin: 3.5rem 0; }
.quote-block blockquote {
  font-family: var(--serif-display);
  font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3;
  letter-spacing: -0.01em; max-width: 46rem;
  padding-left: 2rem; border-left: 4px solid var(--signal);
}

/* ── Field-note case cards ──────────────────────────── */
.field-notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem; margin: 2rem 0;
}
.note {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  border-left: 3px solid var(--signal);
  padding: 1.3rem 1.4rem;
}
.section-alt .note { background: var(--paper); }
.note-tag {
  display: inline-block; font-family: var(--ui);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 0.6rem; font-weight: 500;
}
.note p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
/* notes inside dark sections: dark card, light text (avoids .dark p override) */
.dark .note { background: #181d24; border-color: #2a323c; }
.dark .note p { color: #c3c7d2; }
.dark .note .note-tag { color: var(--signal); }

/* ── Dark section ───────────────────────────────────── */
.dark {
  background: var(--dark); color: var(--dark-paper);
  border-bottom-color: #2a2a30;
}
.dark .section-label { color: #d6234d; }
.dark .section-label .num { color: var(--dark-paper); border-color: #3a3a42; }
.dark .section-title { color: var(--dark-paper); }
.dark p { color: #c3c7d2; }
.dark .subhead { color: var(--dark-paper); }
.dark strong { color: #fff; }

.problems {
  list-style: none; counter-reset: prob;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem;
  margin: 3rem 0;
}
.problems li { counter-increment: prob; position: relative; padding-top: 2.6rem; }
.problems li::before {
  content: counter(prob, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--ui); font-size: 0.85rem; font-weight: 600;
  color: #d6234d; letter-spacing: 0.1em;
}
.problems li::after {
  content: ""; position: absolute; top: 1.9rem; left: 0; width: 2.5rem;
  border-top: 1px solid #3a3a42;
}
.problems h4 {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.01em; margin-bottom: 0.6rem; color: var(--dark-paper);
}
.problems p { font-size: 1.02rem; line-height: 1.55; margin: 0; }

.bigstat {
  display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center;
  margin: 3.5rem 0; padding: 2.5rem 0; border-top: 1px solid #3a3a42;
  border-bottom: 1px solid #3a3a42;
}
.bigstat-figure {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 6rem); line-height: 0.9; letter-spacing: -0.03em;
  color: #d6234d; white-space: nowrap;
}
.bigstat-caption { font-size: 1.15rem; line-height: 1.5; margin: 0; max-width: 34rem; }

/* ── Load chart (signature visual) ──────────────────── */
.loadchart { margin: 3.5rem 0; }
.loadchart-frame {
  border: 1px solid #2f2f37; border-radius: 6px;
  background: #18181d; padding: 1.4rem 1.4rem 0.6rem;
}
.loadchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.lc-grid line { stroke: #27272e; stroke-width: 1; }
.lc-axis-line { stroke: #3a3a42; stroke-width: 1; }
.lc-drop { stroke: #d6234d; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55; }
.lc-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lc-flat { stroke: #6f8b96; opacity: 0.9; }
.lc-spiky { stroke: #d6234d; filter: drop-shadow(0 0 5px rgba(214,35,77,0.35)); }
.lc-pulse { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }
.lc-axis { fill: #6f6a60; font-family: var(--ui); font-size: 11px; letter-spacing: 0.14em; }
.lc-annot { fill: #d6234d; font-family: var(--ui); font-size: 11px; letter-spacing: 0.06em; }

/* draw-in animation, triggered when scrolled into view */
.loadchart .lc-line { stroke-dashoffset: 0; }
.loadchart.armed .lc-line { /* set by JS once lengths are known */ }
.loadchart.in-view .lc-line {
  transition: stroke-dashoffset 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  stroke-dashoffset: 0 !important;
}
.loadchart.in-view .lc-pulse { opacity: 1; transition: opacity 0.5s ease 2s; }

.lc-legend { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 1.1rem; }
.lc-key {
  font-family: var(--ui); font-size: 0.74rem; letter-spacing: 0.03em;
  text-transform: uppercase; color: #c3c7d2;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.lc-key::before {
  content: ""; width: 16px; height: 3px; border-radius: 2px;
}
.lc-key-flat::before { background: #6f8b96; }
.lc-key-spiky::before { background: #d6234d; }

/* ── Actors grid ────────────────────────────────────── */
.actors {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  margin-top: 1rem;
}
.actor { background: var(--paper); padding: 2rem 1.6rem; }
.actor-num {
  font-family: var(--ui); font-size: 0.85rem; font-weight: 600;
  color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em;
}
.actor h4 {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.01em; margin: 0.9rem 0 0.6rem;
}
.actor p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
/* closing-thought cell that fills the grid's empty slot */
.actor--note { background: var(--paper-2); display: flex; align-items: center; }
.actor--note p {
  font-family: var(--serif-text); font-style: italic;
  font-size: 1.15rem; line-height: 1.5; color: var(--ink);
}

/* ── Guide hero (guides page): role image band ──────── */
.guide-hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--dark-paper);
  padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(2.6rem, 6vh, 4.2rem);
  border-bottom: 1px solid #2a2a30;
}
.guide-hero .container { position: relative; z-index: 1; }
.guide-hero .back-home { color: #aeb8c4; }
.guide-hero .back-home:hover { color: var(--signal); }
.guide-hero .section-label { color: var(--signal); }
.guide-hero .section-label .num { color: var(--dark-paper); border-color: #3a414b; }
.guide-hero .section-title { color: #fff; }
.guide-hero .section-intro { color: #cfd6dd; }
.guide-hero .section-head { margin-bottom: 0; }
#guide-hero-photo { transition: opacity 0.25s ease; }

/* faint, very-low-opacity cover photo for document-style pages */
.cover-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.09; filter: url(#duo-amber);
  pointer-events: none;
}
.sources-head { position: relative; overflow: hidden; }
.sources-head .container { position: relative; }

/* back-to-home breadcrumb (guides page) */
.back-home {
  display: inline-block; font-family: var(--ui); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-3); margin-bottom: 1.8rem;
}
.back-home:hover { color: var(--accent-text); }

/* ── Tabs / guides ──────────────────────────────────── */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem; border-bottom: 2px solid var(--ink);
}
.tab {
  font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer;
  background: none; border: none; color: var(--ink-3);
  padding: 0.7rem 1.1rem; margin-bottom: -2px;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-text); border-bottom-color: var(--signal); }

.panel { display: none; animation: fade 0.35s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }
.panel-lead {
  font-family: var(--serif-display); font-weight: 400; font-style: italic;
  font-size: 1.4rem; line-height: 1.4; letter-spacing: -0.01em;
  max-width: 40rem; margin-bottom: 2.5rem; color: var(--ink);
}
.play-group {
  font-family: var(--serif-display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: -0.01em; color: var(--ink);
  margin: 3rem 0 1.2rem;
}
.play-group::after {
  content: ""; display: block; width: 3rem;
  border-top: 3px solid var(--signal); margin-top: 0.5rem;
}
.plays { list-style: none; max-width: 44rem; }
.plays li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.85rem;
  font-size: 1.08rem; line-height: 1.55; color: var(--ink-2);
}
.plays li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 0.55rem; height: 0.55rem; background: var(--signal);
  transform: rotate(45deg);
}
.plays b { color: var(--ink); }
.plays.qlist li { font-style: italic; color: var(--ink); }
.play-note {
  max-width: 44rem; font-size: 1.08rem; line-height: 1.55;
  color: var(--ink-2); margin: 1.2rem 0;
}
.play-note b { color: var(--ink); }
.play-fyi {
  max-width: 44rem; font-size: 1rem; line-height: 1.55;
  color: var(--ink-2); margin: 1rem 0 1.4rem;
  padding: 0.7rem 1rem; border-left: 2px solid var(--signal);
  background: var(--paper-2); border-radius: 0 4px 4px 0;
}
.play-fyi i { color: var(--accent-text); font-style: normal; font-weight: 600; }
.plays a, .subplays a, .play-note a, .note a {
  color: var(--accent-text); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.plays a:hover, .subplays a:hover, .play-note a:hover, .note a:hover { color: var(--signal); }
.field-notes.on-dark .note a { color: var(--signal); }
.subplays {
  list-style: none; max-width: 44rem; margin: 0.4rem 0 1.4rem;
}
.subplays li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem;
  font-size: 1.06rem; line-height: 1.55; color: var(--ink-2);
}
.subplays li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.7em;
  width: 0.45rem; height: 0.45rem; border: 1.5px solid var(--signal);
  border-radius: 50%;
}
.subplays.qlist li { font-style: italic; }
.resources {
  font-family: var(--ui); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--ink-3); margin-top: 2.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.resources b { color: var(--ink); }

/* ── Conclusion ─────────────────────────────────────── */
.conclusion { background: var(--ink); color: var(--paper); border-bottom: none; }
.conclusion .section-label { color: #d6234d; }
.conclusion .section-label .num { color: var(--paper); border-color: #3a3f52; }
.conclusion .section-title { color: var(--paper); margin-bottom: 2rem; }
.conclusion p { color: #cdd1db; }
.conclusion .closing-line {
  font-family: var(--serif-text); font-weight: 400; font-style: normal;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.45; color: var(--paper);
  margin-top: 2rem;
}
.conclusion .closing-line .lead {
  font-family: var(--serif-display); font-style: italic; font-weight: 400;
  color: var(--paper);
}
.conclusion .closing-line em { color: #d6234d; font-style: italic; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #aab0c2; padding: 3.5rem 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  align-items: flex-end;
}
.footer-org {
  font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper); margin-bottom: 0.4rem;
}
.footer-sub { font-size: 0.95rem; margin: 0; color: #7f8598; }
.footer-note {
  font-family: var(--ui); font-size: 0.72rem; line-height: 1.6;
  max-width: 26rem; margin: 0; color: #7f8598; text-align: right;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .section-nav { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .figure-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .problems { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .ledger-head { display: none; }
  .bigstat { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.08rem; }
  .container { padding: 0 1.3rem; }
  .stat-strip { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ui); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem; border-radius: 3px; text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: #ffffff; }
.btn-primary:hover { background: var(--signal-2); }
.btn-ghost { border: 1px solid #4a4a52; color: var(--dark-paper); }
.btn-ghost:hover { border-color: #d6234d; color: #fff; }
.section-alt .btn-ghost, .cta-band .btn-ghost { border-color: rgba(255,255,255,0.35); }

/* ── Action landing: hero ───────────────────────────── */
.action-hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--dark-paper);
  padding: clamp(5rem, 13vh, 9rem) 0 clamp(12rem, 25vh, 16rem);
  border-bottom: 1px solid #2a2a30;
}
.ekg-bold { inset: auto 0 0 0; height: 150px; opacity: 0.16; }
.ekg-bold path { stroke: #d6234d; stroke-width: 3; }
.action-hero-inner { position: relative; }
.action-hero .preline {
  font-family: var(--ui); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.82rem; color: #d6234d; margin-bottom: 1.4rem;
}
.action-hero h1 {
  font-family: var(--serif-display); font-weight: 600; color: #fff;
  font-size: clamp(2.9rem, 9vw, 6.5rem); line-height: 0.92; letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}
.action-hero .standfirst {
  font-family: var(--serif-text); color: #c3c7d2; max-width: 46rem;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.45;
}
.hero-cta { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }

/* ── Role router ────────────────────────────────────── */
.roles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}

/* ── Line icons (shared) ────────────────────────────── */
.ico { display: inline-block; color: var(--accent-text); }
.ico svg {
  display: block; width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.role-ico { width: 40px; height: 40px; margin-bottom: 1.1rem; }
.role-card--muted .role-ico { color: var(--ink-3); }
.move-ico { width: 44px; height: 44px; margin-bottom: 0.7rem; }
.why-ico { width: 38px; height: 38px; margin-bottom: 0.2rem; }

/* ── Hero illustration ──────────────────────────────── */
.hero-art {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(108px, 14vh, 150px); pointer-events: none;
}
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art path, .hero-art rect {
  fill: none; stroke: #d6234d; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ha-ground { opacity: 0.22; }
.ha-tower { opacity: 0.5; }
.ha-line { opacity: 0.34; }
.ha-louver { opacity: 0.3; stroke-width: 1.1; }
.ha-dc { opacity: 0.52; }
.ha-signal { opacity: 0.9; stroke-width: 2.2; }
.role-card {
  background: var(--paper); padding: 2rem 1.7rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: background 0.2s;
}
.role-card:hover { background: #fff; }
.role-card--primary { background: #e7edf4; box-shadow: inset 0 3px 0 var(--signal); }
.role-card--muted { background: var(--paper-2); }
.role-card--muted .role-eyebrow { color: var(--ink-3); }
.role-eyebrow {
  font-family: var(--ui); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.7rem; color: var(--accent-text);
}
.role-card h3 {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.45rem;
  letter-spacing: -0.01em; margin: 0.7rem 0 0.7rem;
}
.role-card p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; flex: 1; }
.role-go {
  font-family: var(--ui); font-weight: 600; font-size: 0.9rem;
  color: var(--accent-text); margin-top: 1.3rem;
}

/* ── First moves ────────────────────────────────────── */
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.move { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.move-num {
  font-family: var(--ui); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; color: var(--accent-text);
}
.move h3 {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.5rem;
  letter-spacing: -0.01em; margin: 0.5rem 0 0.7rem;
}
.move p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.55; margin: 0; }
.moves-more { margin-top: 2.6rem; }

/* ── Wins strip ─────────────────────────────────────── */
.wins {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.6rem;
}
.win { border-top: 3px solid var(--signal); padding-top: 1rem; }
.win-place {
  font-family: var(--ui); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.72rem; color: var(--accent-text);
}
.win p { font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); margin: 0.5rem 0 0; }

/* ── Why-it-matters cards (clickable actors) ────────── */
.why-card { text-decoration: none; color: inherit; transition: background 0.2s; }
.why-card:hover { background: #fff; }
.why-card .actor-num { font-family: var(--serif-display); font-size: 1.4rem; }
.why-card .role-go { display: block; margin-top: 1.1rem; }

/* ── Closing CTA band ───────────────────────────────── */
.cta-band {
  background: var(--ink); color: var(--paper); text-align: center;
  padding: clamp(3.5rem, 9vh, 6rem) 0;
}
.cta-band h2 {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; color: var(--paper);
}
.cta-band > .container > p { color: #c3c7d2; font-size: 1.15rem; margin: 1rem 0 2rem; }

/* ============================================================
   ACTION PAGE — Direction 02 (Grid / Energy, amber-forward)
   Scoped to .action-page so other pages keep the warm theme.
   ============================================================ */
.action-page {
  --paper: #eef1f5; --paper-2: #e4e9ef; --ink: #151c42; --ink-2: #44505c;
  --ink-3: #6b7682; --rule: #d4dae2; --signal: #d6234d; --signal-2: #b01a3e;
  --accent-text: #b01a3e; --dark: #0e1330; --dark-paper: #eef2f6;
}
.action-page .topbar { background: rgba(238, 241, 245, 0.85); }
/* amber is a great fill but too light as small text on light → use bronze */
.action-page .section-label,
.action-page .role-eyebrow,
.action-page .role-go,
.action-page .win-place,
.action-page .move-num,
.action-page .ico,
.action-page .section-nav a:hover,
.action-page .section-nav a.active { color: var(--accent-text); }
.action-page .section-nav a.active { border-bottom-color: var(--signal); }
.action-page .action-hero .preline { color: var(--signal); }
.action-page .action-hero .standfirst { color: #aeb8c4; }
.action-page .btn-primary, .action-page .btn-primary:hover { color: #ffffff; }
.action-page .role-card--primary { background: #e7edf4; }
.action-page .action-hero { padding: clamp(5.5rem, 13vh, 9rem) 0 clamp(5.5rem, 13vh, 9rem); }

/* ── Branded image placeholders (until real photos land) ── */
.ph { position: relative; background: #0e1330; border-radius: 6px; overflow: hidden; display: block; }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(214,35,77,0.13) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(214,35,77,0.13) 0 1px, transparent 1px 26px),
    radial-gradient(130% 120% at 82% 10%, rgba(214,35,77,0.20), transparent 55%);
}
.ph::after {
  content: "Image"; position: absolute; left: 0.8rem; bottom: 0.7rem;
  font-family: var(--ui); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #d6234d;
  border: 1px solid rgba(214,35,77,0.45); padding: 0.22rem 0.5rem; border-radius: 3px;
}
.ph[data-label]::after { content: attr(data-label); }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-wide { aspect-ratio: 3 / 1; }

/* ── Photo-forward hero background placeholder ── */
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #0e1330; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(214,35,77,0.08) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(214,35,77,0.08) 0 1px, transparent 1px 30px),
    radial-gradient(85% 130% at 88% 0%, rgba(214,35,77,0.22), transparent 55%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,19,48,0.95) 0 36%, rgba(14,19,48,0.6) 72%, rgba(14,19,48,0.42) 100%);
}
.action-hero-inner { position: relative; z-index: 1; }
.hero-tag {
  position: absolute; right: 1rem; top: 1rem; z-index: 1;
  font-family: var(--ui); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #d6234d;
  border: 1px solid rgba(214,35,77,0.4); padding: 0.25rem 0.5rem; border-radius: 3px;
}
.ph-caption {
  font-family: var(--ui); font-size: 0.78rem; color: var(--ink-3);
  margin-top: 0.7rem; text-align: center;
}

/* ── Real imagery, amber duotone-treated ── */
.hero-photo, .role-photo, .why-photo, .band-photo { filter: url(#duo-amber); }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(14,19,48,0.94) 0 36%, rgba(14,19,48,0.66) 72%, rgba(14,19,48,0.48) 100%),
    linear-gradient(0deg, rgba(14,19,48,0.55), transparent 42%);
}
.role-photo {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 5px; margin-bottom: 1.2rem;
}
.why-photo {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 6px; margin-bottom: 1.1rem;
}
.band-photo {
  display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .roles, .actors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .moves { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 560px) {
  .roles, .actors { grid-template-columns: 1fr; }
}

/* ── Sources page ───────────────────────────────────── */
.measure-wide { max-width: 52rem; }
.sources-head { border-bottom: none; padding-bottom: 0; }
.sources-head .section-label .num {
  font-family: var(--serif-display); font-size: 1.05em; line-height: 1;
}
.sources-body { padding-top: 2.5rem; }
.src-alpha {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem;
  max-width: 52rem;
}
.src-alpha a {
  font-family: var(--ui); font-size: 0.8rem; text-decoration: none;
  color: var(--ink-3); width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 3px;
  transition: all 0.15s;
}
.src-alpha a:hover { color: #ffffff; background: var(--signal); border-color: var(--signal); }
.src-letter {
  font-family: var(--serif-display); font-weight: 600; font-size: 2.4rem;
  color: var(--accent-text); letter-spacing: -0.02em;
  margin: 2.8rem 0 1rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink); scroll-margin-top: 5rem;
}
.src-letter:first-of-type { margin-top: 0; }
.src-list { list-style: none; counter-reset: src; }
.src-list li {
  position: relative; padding: 0.85rem 0 0.85rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem; line-height: 1.5;
}
.src-list li::before {
  counter-increment: src; content: counter(src);
  position: absolute; left: 0; top: 0.95rem;
  font-family: var(--ui); font-size: 0.72rem; color: var(--ink-3);
}
.src-cite { color: var(--ink-2); }
.src-link {
  font-family: var(--ui); font-size: 0.74rem; white-space: nowrap;
  color: var(--accent-text); text-decoration: none; margin-left: 0.3rem;
}
.src-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* ── ARI logo lockup (replaces the text wordmark) ───── */
.org { display: inline-flex; align-items: center; padding: 2px 0; }
.org img { height: 27px; width: auto; display: block; }
.footer-org a { display: inline-block; }
.footer-org img { height: 34px; width: auto; display: block; }
@media (max-width: 520px) { .org img { height: 23px; } }

/* ── PDF download buttons ───────────────────────────── */
.dl-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ui); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-text); text-decoration: none;
  border: 1.5px solid var(--rule); border-radius: 4px;
  padding: 0.55rem 0.95rem; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dl-btn:hover { border-color: var(--signal); color: var(--signal); background: #fff; }
.dl-btn svg { width: 15px; height: 15px; flex: none; }
.guide-dl { margin: -0.2rem 0 2rem; }
.dl-btn--light { color: #fff; border-color: rgba(255,255,255,0.45); }
.dl-btn--light:hover { color: #fff; border-color: var(--signal); background: rgba(255,255,255,0.08); }
.cover-dl { margin-top: 1.5rem; }
