/* ═══════════════════════════════════════════════════════════════════
   MUTUALLY REASSURED DESTRUCTION — Blueprint × StudioEX, 2026
   A climate companion to The Cost of War. Same hand, same restraint;
   its own voice — a serif display, an ice-and-ember palette.
   ═══════════════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ═══ BRAND LAYER ═══════════════════════════════════════════════
     The brand speaks FOREST. Ember and ice are a DATA ENCODING — they
     mean carbon/heat and cryosphere/ocean — so they are never used for
     titles, nav or UI. A title in ember reads as a data value; it isn't.
     This is why the old palette failed on type and worked on graphs. */
  --black: #000;
  --near-black: #070a06;      /* black with green in it, not blue */
  --panel: #0d1310;
  --panel-2: #121a14;

  /* the living world — the brand's own voice */
  --forest: #2d5537;          /* pine (from the reference board) */
  --forest-deep: #1a2a1d;
  --forest-lit: #6f9c72;      /* legible green for links/UI on dark */
  --moss: #8fae86;

  --bone: #f2efe6;            /* paper white — titles, statements */
  --text: #eae7dd;
  --muted: #97a394;           /* greened grey, not blue-grey */
  --faint: #63705f;
  --border: #1a231b;
  --border-2: #26332a;

  /* ═══ DATA ENCODING — DO NOT USE FOR BRAND/UI ═══════════════════
     ember = carbon & heat · ice = cryosphere & ocean. Unchanged. */
  --ember: #ff6b35;
  --ember-deep: #b23a14;
  --ember-glow: rgba(255,107,53,.4);
  --ice: #6ec7e8;
  --ice-deep: #2a6f8c;
  --ice-glow: rgba(110,199,232,.35);

  /* ═══ TYPE ══════════════════════════════════════════════════════
     Heavy grotesque carries the identity; mono keeps the data clinical.
     The serif is retired from titles — it was too polite for a page
     being torn apart. */
  --fd: "Archivo", "Helvetica Neue", Arial, sans-serif;  /* display */
  --fb: "Inter", system-ui, sans-serif;                   /* body / data */
  --fm: "IBM Plex Mono", ui-monospace, monospace;         /* labels */

  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--fb);
  font-feature-settings: "tnum" 1, "lnum" 1; /* tabular figures everywhere */
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* faint scanline grain, like CoW */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.022) 2px, rgba(0,0,0,.022) 4px);
}
canvas#bg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--ember); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }

/* ═══ ELEMENTS ═══ */
.eyebrow {
  font-family: var(--fm); font-size: .62rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ember);
}
.chapter-num {
  font-family: var(--fm); font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem;
}
.sec-title {
  font-family: var(--fd); font-weight: 500; line-height: 1.04;
  font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; color: #fff;
  margin-bottom: 1rem;
}
.sec-title.ember { color: #fff; }
.sec-title em { font-style: italic; color: var(--ember); }
.sec-title.ice em { color: var(--ice); }
.sec-desc {
  font-size: clamp(.95rem, 1.6vw, 1.12rem); color: var(--muted);
  max-width: 60ch; line-height: 1.65; margin-bottom: 2.4rem;
}
.sec-desc b { color: var(--text); font-weight: 600; }
.chapter-epi {
  font-family: var(--fd); font-style: italic; font-size: clamp(1.1rem,2.4vw,1.5rem);
  color: var(--text); max-width: 30ch; line-height: 1.4; margin-bottom: 2rem; opacity: .92;
}

.section { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ═══ HERO / PROLOGUE ═══ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 5rem 1.5rem 3rem;
  position: relative; z-index: 2;
}
.hero-logo {
  position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .5rem; color: var(--text);
  font-family: var(--fm); font-size: .62rem; letter-spacing: .18em; opacity: .8;
}
.hero-logo img { height: 20px; width: auto; }
.fade-up { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .45s; } .d3 { animation-delay: .7s; }
.d4 { animation-delay: 1s; } .d5 { animation-delay: 1.3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-eyebrow { margin-bottom: 2.2rem; }
.hero-title {
  font-family: var(--fd); font-weight: 500; color: #fff;
  font-size: clamp(2.6rem, 9vw, 7rem); line-height: .98; letter-spacing: -.02em;
}
.hero-title em { font-style: italic; display: block; }
.hero-title .mad-ember { color: var(--ember); text-shadow: 0 0 70px var(--ember-glow); }
.hero-sub {
  font-family: var(--fb); font-size: clamp(.9rem, 1.5vw, 1.06rem); color: var(--muted);
  max-width: 50ch; line-height: 1.7; margin-top: 1.8rem;
}

/* ── THE TICKER ── */
.ticker {
  margin: 3rem auto 1.4rem; max-width: 640px; width: 100%;
  border: 1px solid var(--border-2); background: rgba(255,107,53,.04);
  border-radius: 4px; padding: 1.5rem 1.4rem 1.3rem;
}
.ticker-lbl { font-family: var(--fm); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ticker-num {
  font-family: var(--fd); font-weight: 600; color: var(--ember);
  font-size: clamp(2.6rem, 11vw, 5.6rem); line-height: 1; letter-spacing: -.02em;
  text-shadow: 0 0 50px var(--ember-glow); font-variant-numeric: tabular-nums; margin: .35rem 0;
}
.ticker-foot { font-family: var(--fm); font-size: .66rem; color: var(--muted); line-height: 1.6; }
.ticker-foot b { color: var(--text); }
.ticker-src { display: block; margin-top: .5rem; font-size: .58rem; letter-spacing: .04em; }
.ticker-src a { color: var(--faint); }

.scroll-cue { font-family: var(--fm); font-size: .58rem; letter-spacing: .26em; color: var(--faint); text-transform: uppercase; margin-top: 2.4rem; }

/* ── CHAPTER NAV ── */
.itin { position: relative; z-index: 2; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(6,8,10,.7); backdrop-filter: blur(6px); }
.itin-track { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; }
.itin-item { flex: 1 1 0; min-width: 150px; display: flex; gap: .8rem; align-items: baseline; padding: 1.1rem 1.2rem; border-right: 1px solid var(--border); color: var(--text); }
.itin-item:last-child { border-right: none; }
.itin-item:hover { background: rgba(255,255,255,.02); text-decoration: none; }
.itin-n { font-family: var(--fm); font-size: .8rem; color: var(--ember); }
.itin-item.ice .itin-n { color: var(--ice); }
.itin-item.act .itin-n { color: var(--ice); }
.itin-t { font-family: var(--fd); font-size: 1rem; display: block; }
.itin-d { font-family: var(--fm); font-size: .58rem; color: var(--muted); letter-spacing: .04em; }

/* ═══ CHAPTER 01 · THE RECORD ═══ */
.record-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.6rem; }
.record-toolbar .lbl { font-family: var(--fm); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
.sortbtn {
  font-family: var(--fm); font-size: .64rem; letter-spacing: .04em; color: var(--muted);
  background: transparent; border: 1px solid var(--border-2); border-radius: 99px;
  padding: .4rem .8rem; cursor: pointer; transition: all .25s var(--ease);
}
.sortbtn:hover { color: var(--text); border-color: var(--faint); }
.sortbtn.on { color: var(--near-black); background: var(--text); border-color: var(--text); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.indcard {
  background: var(--panel); padding: 1.3rem 1.25rem 1.15rem; cursor: pointer;
  position: relative; transition: background .3s var(--ease); min-height: 200px; display: flex; flex-direction: column;
  border: none; text-align: left; color: inherit; font: inherit;
}
.indcard:hover { background: var(--panel-2); }
.indcard:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.indcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.indcard-name { font-family: var(--fm); font-size: .66rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; line-height: 1.4; }
.indcard-fam { width: 7px; height: 7px; border-radius: 99px; flex-shrink: 0; margin-top: .3rem; }
.fam-heat { background: var(--ember); box-shadow: 0 0 8px var(--ember-glow); }
.fam-ice { background: var(--ice); box-shadow: 0 0 8px var(--ice-glow); }
.indcard-val { font-family: var(--fd); font-weight: 600; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; margin: .7rem 0 .15rem; letter-spacing: -.01em; }
.indcard.heat .indcard-val { color: var(--ember); }
.indcard.ice .indcard-val { color: var(--ice); }
.indcard-val span { font-family: var(--fb); font-weight: 500; font-size: .9rem; color: var(--muted); margin-left: .25rem; }
.indcard-val2 { font-family: var(--fm); font-size: .6rem; color: var(--faint); letter-spacing: .04em; }
.spark { width: 100%; height: 40px; margin: .8rem 0 .7rem; display: block; }
.indcard-cap { font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: auto; }
.indcard-more { font-family: var(--fm); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: .7rem; }

/* detail panel (modal) */
.detail-ov { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.detail-ov.open { display: flex; }
.detail-box { background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 8px; max-width: 600px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 2rem; position: relative; }
.detail-box h3 { font-family: var(--fd); font-weight: 600; font-size: 1.6rem; margin-bottom: .2rem; }
.detail-box .detail-val { font-family: var(--fd); font-size: 3rem; line-height: 1; margin: .6rem 0; }
.detail-box.heat .detail-val { color: var(--ember); } .detail-box.ice .detail-val { color: var(--ice); }
.detail-chart { width: 100%; height: 160px; margin: 1.2rem 0; }
.detail-method { font-size: .92rem; color: var(--muted); line-height: 1.6; margin: 1rem 0; }
.detail-src { font-family: var(--fm); font-size: .66rem; color: var(--faint); border-top: 1px solid var(--border); padding-top: .9rem; margin-top: 1rem; }
.detail-src a { color: var(--ice); }
.detail-close { position: absolute; top: 1rem; right: 1.1rem; font-family: var(--fm); font-size: .66rem; letter-spacing: .1em; color: var(--muted); cursor: pointer; background: none; border: none; text-transform: uppercase; }

/* heat stripes */
.stripes-block { margin-top: 3.5rem; }
.stripes-h { font-family: var(--fm); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.stripes { display: flex; width: 100%; height: 120px; border-radius: 4px; overflow: hidden; }
.stripe { flex: 1 1 0; }
.stripes-axis { display: flex; justify-content: space-between; font-family: var(--fm); font-size: .58rem; color: var(--faint); margin-top: .5rem; }
.stripes-cap { font-size: .8rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }
.stripes-cap a { color: var(--ice); }

/* ═══ CHAPTER 02 · THE MAP / WORLD ANOMALY ═══ */
.anomaly-wrap { margin-top: 1rem; }
.anomaly-svg { width: 100%; height: auto; display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.anomaly-legend { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; font-family: var(--fm); font-size: .6rem; color: var(--muted); }
.anomaly-scale { height: 10px; width: 220px; border-radius: 99px; background: linear-gradient(90deg, var(--ice), #cdd6dc 45%, var(--ember-deep), var(--ember)); }
.map-note { font-size: .82rem; color: var(--muted); margin-top: 1.2rem; line-height: 1.55; max-width: 60ch; }
.map-note a { color: var(--ice); }

/* ═══ CHAPTER 03 · THE LEDGER ═══ */
.sub-h { font-family: var(--fm); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 2.8rem 0 .3rem; }
.sub-t { font-family: var(--fd); font-weight: 500; font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 1.4rem; color: #fff; }

.ledger-tabs { display: flex; gap: .4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.ledger-tab { font-family: var(--fm); font-size: .64rem; color: var(--muted); background: none; border: 1px solid var(--border-2); border-radius: 99px; padding: .4rem .9rem; cursor: pointer; }
.ledger-tab.on { background: var(--text); color: var(--near-black); border-color: var(--text); }

.bars { display: flex; flex-direction: column; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 64px; gap: .8rem; align-items: center; }
.bar-name { font-family: var(--fb); font-size: .82rem; color: var(--text); text-align: right; }
.bar-track { background: var(--border); height: 22px; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 3px; transition: width 1.1s var(--ease); }
.bar-val { font-family: var(--fm); font-size: .76rem; color: var(--muted); text-align: left; }
.bar-meta { font-family: var(--fm); font-size: .58rem; color: var(--faint); }

.majors-stat { margin: 2rem 0; padding: 1.8rem; border: 1px solid var(--border-2); border-radius: 8px; background: rgba(255,107,53,.03); }
.majors-stat .big { font-family: var(--fd); font-weight: 600; font-size: clamp(2.4rem,6vw,3.6rem); color: var(--ember); line-height: 1; }
.majors-stat .body { font-size: .98rem; color: var(--muted); line-height: 1.6; margin-top: .6rem; max-width: 62ch; }
.majors-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 1.4rem; }
.major { background: var(--panel); padding: .85rem 1rem; }
.major-name { font-family: var(--fb); font-size: .86rem; color: var(--text); }
.major-meta { font-family: var(--fm); font-size: .58rem; color: var(--faint); margin-top: .15rem; }
.major-meta .tag { color: var(--ember); }
.major-meta .tag.inv { color: var(--ice); }

/* policy timeline */
.timeline { position: relative; margin-top: 1rem; padding-left: 1.4rem; border-left: 1px solid var(--border-2); }
.tl-item { position: relative; padding: 0 0 1.8rem 1rem; }
.tl-item::before { content: ""; position: absolute; left: calc(-1.4rem - 1px); top: .25rem; width: 11px; height: 11px; border-radius: 99px; background: var(--near-black); border: 2px solid var(--muted); transform: translateX(-50%); }
.tl-item.win::before { border-color: var(--ice); } .tl-item.setback::before { border-color: var(--ember); }
.tl-year { font-family: var(--fm); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.tl-title { font-family: var(--fd); font-weight: 600; font-size: 1.08rem; color: #fff; margin: .1rem 0 .25rem; }
.tl-body { font-size: .88rem; color: var(--muted); line-height: 1.55; max-width: 60ch; }
.lobby-note, .news-feed { margin-top: 1.6rem; }
.news-item { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.news-outlet { font-family: var(--fm); font-size: .6rem; letter-spacing: .08em; color: var(--ember); text-transform: uppercase; min-width: 92px; }
.news-head { font-size: .9rem; color: var(--text); }
.news-date { font-family: var(--fm); font-size: .6rem; color: var(--faint); margin-left: auto; }

/* ═══ CHAPTER 04 · THE FORECAST ═══ */
.forecast-controls { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.8rem; }
.fc-group .fc-lbl { font-family: var(--fm); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; display: block; }
.fc-btns { display: flex; gap: .35rem; flex-wrap: wrap; }
.fc-btn { font-family: var(--fm); font-size: .68rem; color: var(--muted); background: none; border: 1px solid var(--border-2); border-radius: 4px; padding: .45rem .8rem; cursor: pointer; transition: all .25s var(--ease); }
.fc-btn:hover { color: var(--text); border-color: var(--faint); }
.fc-btn.on { background: var(--ember); color: #fff; border-color: var(--ember); }
.fc-btn.on.ice { background: var(--ice); color: var(--near-black); border-color: var(--ice); }

.forecast-main { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: stretch; }
.forecast-card { background: var(--panel); border: 1px solid var(--border-2); border-radius: 8px; padding: 1.8rem; }
.forecast-card .fc-scenario { font-family: var(--fm); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.forecast-card .fc-temp { font-family: var(--fd); font-weight: 600; font-size: clamp(3rem,9vw,5rem); line-height: 1; margin: .3rem 0; }
.forecast-card.ember .fc-temp { color: var(--ember); } .forecast-card.ice .fc-temp { color: var(--ice); }
.forecast-card .fc-range { font-family: var(--fm); font-size: .72rem; color: var(--muted); }
.forecast-card .fc-note { font-size: .9rem; color: var(--text); line-height: 1.55; margin: 1rem 0; }
.forecast-card .fc-basis { font-family: var(--fm); font-size: .62rem; color: var(--faint); line-height: 1.5; border-top: 1px solid var(--border); padding-top: .8rem; }
.forecast-card .fc-basis a { color: var(--ice); }

/* sea-level fill illustration */
.sl-illus { position: relative; height: 150px; border-radius: 6px; overflow: hidden; margin-top: 1.2rem; background: linear-gradient(180deg, #0a1014, #0b0e12); border: 1px solid var(--border-2); }
.sl-water { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(110,199,232,.55), rgba(42,111,140,.85)); transition: height 1.1s var(--ease); border-top: 2px solid var(--ice); }
.sl-water::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255,255,255,.04) 30px, rgba(255,255,255,.04) 60px); }
.sl-label { position: absolute; top: .7rem; left: .9rem; font-family: var(--fm); font-size: .62rem; color: var(--muted); z-index: 2; }
.sl-city { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70%; height: 80px; z-index: 1; opacity: .8; }

/* compare table */
.forecast-compare { margin-top: 2rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.fcmp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1px; background: var(--border); }
.fcmp-row > div { background: var(--panel); padding: .8rem 1rem; font-size: .82rem; }
.fcmp-row.head > div { font-family: var(--fm); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fcmp-row .k { color: var(--text); }
.fcmp-row .v-ice { color: var(--ice); } .fcmp-row .v-ember { color: var(--ember); }

/* ═══ CODA ═══ */
.coda-divider { position: relative; z-index: 2; text-align: center; padding: clamp(5rem,12vw,9rem) 1.5rem; border-top: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, rgba(110,199,232,.05), transparent 60%); }
.coda-eyebrow { font-family: var(--fm); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ice); display: inline-flex; align-items: center; gap: .5rem; }
.live-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.coda-title { font-family: var(--fd); font-weight: 500; font-size: clamp(2.2rem,6vw,4rem); color: #fff; margin: 1.2rem 0; line-height: 1.05; }
.coda-title em { font-style: italic; color: var(--ice); }
.coda-lead { font-size: clamp(.98rem,1.7vw,1.16rem); color: var(--muted); max-width: 56ch; margin: 0 auto; line-height: 1.7; }
.coda-lead b { color: var(--text); }

.step-label { font-family: var(--fm); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); margin-bottom: .8rem; }
.coda-step { padding: clamp(3.5rem,8vw,6rem) 0; border-top: 1px solid var(--border); position: relative; z-index: 2; }

/* priorities ranking */
.prio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.prio-card { background: var(--panel); padding: 1.1rem 1.15rem; cursor: pointer; display: flex; gap: .8rem; align-items: flex-start; transition: background .25s var(--ease); border: none; text-align: left; color: inherit; font: inherit; width: 100%; }
.prio-card:hover { background: var(--panel-2); }
.prio-card:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.prio-rank { font-family: var(--fm); font-size: .7rem; width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--faint); flex-shrink: 0; transition: all .25s var(--ease); }
.prio-card.on .prio-rank { background: var(--ice); color: var(--near-black); border-color: var(--ice); }
.prio-card.on { background: rgba(110,199,232,.05); }
.prio-name { font-family: var(--fd); font-weight: 600; font-size: 1rem; color: #fff; }
.prio-card.on .prio-name { color: var(--ice); }
.prio-desc { font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }

.prio-panel { margin-top: 2rem; border: 1px solid var(--border-2); border-radius: 8px; padding: 1.4rem; background: var(--panel); }
.prio-panel-h { font-family: var(--fm); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.prio-panel-h .hint { color: var(--faint); text-transform: none; letter-spacing: 0; }
.ordered { display: flex; flex-direction: column; gap: .5rem; }
.ordered-row { display: flex; align-items: center; gap: .8rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: .6rem .8rem; }
.ordered-n { font-family: var(--fm); font-size: .8rem; color: var(--ice); width: 22px; }
.ordered-name { flex: 1; font-size: .9rem; }
.ordered-ctrl { display: flex; gap: .3rem; }
.ordered-ctrl button { font-family: var(--fm); background: none; border: 1px solid var(--border-2); color: var(--muted); width: 26px; height: 26px; border-radius: 4px; cursor: pointer; font-size: .8rem; }
.ordered-ctrl button:hover { color: var(--text); border-color: var(--faint); }
.ordered-empty { font-size: .85rem; color: var(--faint); font-style: italic; }

/* country selector */
.country-select { font-family: var(--fb); font-size: 1rem; width: 100%; max-width: 420px; background: var(--panel); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: .9rem 1rem; cursor: pointer; }
.country-card { margin-top: 1.6rem; border: 1px solid var(--border-2); border-radius: 8px; padding: 1.6rem; background: var(--panel); display: none; }
.country-card.show { display: block; }
.cc-name { font-family: var(--fd); font-weight: 600; font-size: 1.6rem; color: #fff; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.cc-stat .cc-v { font-family: var(--fd); font-weight: 600; font-size: 1.8rem; color: var(--ember); }
.cc-stat .cc-v.ice { color: var(--ice); }
.cc-stat .cc-k { font-family: var(--fm); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.cc-rating { display: inline-block; font-family: var(--fm); font-size: .66rem; padding: .25rem .6rem; border-radius: 99px; border: 1px solid var(--border-2); }
.cc-rating.bad { color: var(--ember); border-color: var(--ember-deep); }
.cc-rating.ok { color: var(--ice); border-color: var(--ice-deep); }

/* letter */
.letter-note { background: rgba(255,107,53,.08); border: 1px solid var(--ember-deep); border-radius: 6px; padding: .8rem 1rem; font-size: .82rem; color: var(--text); margin-bottom: 1.2rem; display: none; }
.letter-note.show { display: block; }
.letter-fields { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.field-inp { font-family: var(--fb); font-size: .9rem; flex: 1 1 240px; background: var(--panel); color: var(--text); border: 1px solid var(--border-2); border-radius: 5px; padding: .7rem .9rem; }
.field-inp:focus { outline: 1px solid var(--ice); border-color: var(--ice); }
.letter-wrap { border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.letter-toolbar { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; background: var(--panel-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: .4rem; }
.letter-toolbar-label { font-family: var(--fm); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool-btn { font-family: var(--fm); font-size: .64rem; color: var(--muted); background: none; border: 1px solid var(--border-2); border-radius: 4px; padding: .35rem .7rem; cursor: pointer; margin-left: .3rem; }
.tool-btn:hover { color: var(--text); border-color: var(--faint); }
.letter-body { font-family: "Source Serif 4", Georgia, serif; font-size: .98rem; line-height: 1.75; color: var(--text); padding: 1.6rem; min-height: 320px; background: #0a0d11; white-space: pre-wrap; }
.letter-body:focus { outline: none; }
.letter-redfill { color: var(--ember); border-bottom: 1px dashed var(--ember-deep); }
.letter-contact-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }
.letter-contact-note a { color: var(--ice); }
.letter-primary { margin-top: 1.4rem; }
.letter-secondary { margin-top: 1rem; font-family: var(--fm); font-size: .72rem; color: var(--muted); }
.link-btn { font-family: var(--fm); font-size: .72rem; background: none; border: none; color: var(--ice); cursor: pointer; text-decoration: underline; }
.link-sep { margin: 0 .5rem; color: var(--faint); }

/* ── YOUR AREA · live hazard feed ── */
.area-intro { font-size: .95rem; color: var(--muted); line-height: 1.6; max-width: 58ch; margin-bottom: 1.4rem; }
.area-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.area-search { font-family: var(--fb); font-size: .9rem; flex: 1 1 220px; max-width: 300px; background: var(--panel); color: var(--text); border: 1px solid var(--border-2); border-radius: 5px; padding: .7rem .9rem; }
.radius-btns { display: flex; gap: .3rem; }
.radius-btn { font-family: var(--fm); font-size: .64rem; color: var(--muted); background: none; border: 1px solid var(--border-2); border-radius: 99px; padding: .4rem .7rem; cursor: pointer; }
.radius-btn.on { background: var(--ice); color: var(--near-black); border-color: var(--ice); }
.area-status { font-family: var(--fm); font-size: .62rem; color: var(--faint); margin: .6rem 0; }
.area-feed { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; min-height: 60px; }
.hz-item { background: var(--panel); padding: .8rem 1rem; display: flex; gap: .9rem; align-items: flex-start; }
.hz-icon { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.hz-body { flex: 1; }
.hz-type { font-family: var(--fb); font-size: .9rem; color: var(--text); font-weight: 600; }
.hz-meta { font-family: var(--fm); font-size: .6rem; color: var(--muted); margin-top: .15rem; }
.hz-meta a { color: var(--ice); }
.hz-dist { font-family: var(--fm); font-size: .66rem; color: var(--ice); flex-shrink: 0; }
.area-empty { padding: 1.2rem; font-size: .85rem; color: var(--faint); font-style: italic; }
.privacy-note { font-size: .74rem; color: var(--faint); margin-top: 1rem; line-height: 1.5; max-width: 60ch; }
.privacy-note a { color: var(--muted); }
.area-local-temp { margin: 1.2rem 0; padding: 1.2rem; border: 1px solid var(--border-2); border-radius: 8px; background: var(--panel); display: none; }
.area-local-temp.show { display: block; }
.alt-big { font-family: var(--fd); font-weight: 600; font-size: 2rem; }

/* coalition + globe */
.globe-block { margin: 2rem 0; }
.globe-h { font-family: var(--fd); font-weight: 500; font-size: 1.3rem; color: #fff; }
.globe-sub { font-family: var(--fm); font-size: .62rem; color: var(--muted); margin: .3rem 0 1rem; }
.globe-wrap { width: 100%; height: clamp(300px, 50vw, 460px); position: relative; }
.globe-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-size: .7rem; color: var(--faint); }
.coalition-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.coalition-num { font-family: var(--fd); font-weight: 600; font-size: clamp(3rem,8vw,5rem); color: var(--ice); line-height: 1; text-shadow: 0 0 50px var(--ice-glow); }
.coalition-suffix { font-family: var(--fm); font-size: .68rem; color: var(--muted); margin: .3rem 0 1.2rem; }
.coalition-form { margin-top: 1.4rem; }
.consent-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .76rem; color: var(--muted); line-height: 1.5; margin: .8rem 0; }
.consent-row a { color: var(--ice); }
.coalition-thanks { display: none; margin-top: .8rem; font-size: .85rem; color: var(--ice); }
.global-prio-h { font-family: var(--fm); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.gp-row { display: grid; grid-template-columns: 1fr 1.4fr 44px; gap: .7rem; align-items: center; margin-bottom: .55rem; }
.gp-name { font-size: .8rem; color: var(--text); }
.gp-track { background: var(--border); height: 8px; border-radius: 99px; overflow: hidden; }
.gp-fill { height: 100%; width: 0; border-radius: 99px; transition: width 1.1s var(--ease); }
.gp-pct { font-family: var(--fm); font-size: .68rem; color: var(--muted); }

/* ── BUTTONS ── */
.btn { font-family: var(--fm); font-size: .76rem; letter-spacing: .04em; border: 1px solid var(--border-2); background: none; color: var(--text); padding: .8rem 1.4rem; border-radius: 6px; cursor: pointer; transition: all .25s var(--ease); }
.btn:hover { border-color: var(--faint); }
.btn-primary { background: var(--ice); color: var(--near-black); border-color: var(--ice); font-weight: 500; }
.btn-primary:hover { background: #88d6f2; }
.btn-ember { background: var(--ember); color: #fff; border-color: var(--ember); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.continue-wrap { text-align: center; padding-top: 2rem; }
.continue-btn { font-family: var(--fm); font-size: .82rem; letter-spacing: .06em; background: none; border: 1px solid var(--border-2); color: var(--text); padding: .9rem 1.8rem; border-radius: 99px; cursor: pointer; transition: all .3s var(--ease); }
.continue-btn:hover { border-color: var(--ice); color: var(--ice); }
.continue-btn .ar { color: var(--ice); }

/* breath moment */
.breath { text-align: center; padding: clamp(5rem,14vw,10rem) 1.5rem; position: relative; z-index: 2; }
.breath p { font-family: var(--fd); font-style: italic; font-weight: 400; font-size: clamp(1.4rem,4vw,2.4rem); line-height: 1.4; color: var(--text); max-width: 22ch; margin: 0 auto; }

/* disclaimer + studio + footer */
.disclaimer { max-width: 760px; margin: 4rem auto 0; padding: 0 1.5rem; position: relative; z-index: 2; }
.disc-box { border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.4rem; background: var(--panel); }
.disc-title { font-family: var(--fm); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.disc-text { font-size: .86rem; color: var(--muted); line-height: 1.65; margin-top: 1rem; }
.disc-text a { color: var(--ice); }
.closing-line { text-align: center; font-family: var(--fd); font-style: italic; font-size: clamp(1.1rem,2.6vw,1.6rem); color: var(--text); line-height: 1.5; padding: clamp(4rem,9vw,7rem) 1.5rem; position: relative; z-index: 2; }
.studio { text-align: center; padding: 3rem 1.5rem; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.st-row { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.st-logo { height: 22px; }
.st-x { color: var(--muted); }
.st-wm { font-family: var(--fd); font-weight: 600; font-size: 1.2rem; }
.st-sub { font-family: var(--fm); font-size: .64rem; color: var(--muted); margin-top: .8rem; letter-spacing: .04em; }
.st-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.2rem; font-family: var(--fm); font-size: .68rem; }
.st-links a { color: var(--muted); }
.st-links a:hover { color: var(--ice); }
footer { text-align: center; padding: 2rem 1.5rem 4rem; font-family: var(--fm); font-size: .62rem; color: var(--faint); line-height: 1.9; position: relative; z-index: 2; }
footer a { color: var(--faint); }

/* share card overlay */
.sc-overlay { position: fixed; inset: 0; z-index: 700; background: rgba(0,0,0,.85); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 1.5rem; overflow-y: auto; }
.sc-overlay.open { display: flex; }
.sc-modal { width: 100%; max-width: 380px; }
#shareCard { background: linear-gradient(160deg, #0b0e12, #06080a); border: 1px solid var(--border-2); border-radius: 10px; padding: 2rem 1.8rem; aspect-ratio: 1080/1350; display: flex; flex-direction: column; }
.sc-eyebrow { font-family: var(--fm); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.sc-logo { font-family: var(--fm); font-size: .58rem; color: var(--muted); margin-top: .2rem; }
.sc-headline { font-family: var(--fd); font-weight: 600; font-size: 1.6rem; color: #fff; line-height: 1.15; margin: 1.4rem 0 1rem; }
.sc-issues { display: flex; flex-direction: column; gap: .4rem; }
.sc-issue { font-size: .82rem; color: var(--ice); display: flex; gap: .5rem; }
.sc-issue .n { font-family: var(--fm); color: var(--muted); }
.sc-divider { height: 1px; background: var(--border-2); margin: 1.2rem 0; }
.sc-stat { font-family: var(--fd); font-weight: 600; font-size: 1.1rem; color: var(--ember); }
.sc-stat-sub { font-family: var(--fm); font-size: .6rem; color: var(--muted); }
.sc-footer-row { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--fm); font-size: .58rem; color: var(--muted); }
.sc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.sc-actions .btn { flex: 1 1 auto; }
.sc-close { display: block; text-align: center; margin-top: 1rem; font-family: var(--fm); font-size: .66rem; color: var(--muted); cursor: pointer; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
  .forecast-main { grid-template-columns: 1fr; }
  .coalition-layout { grid-template-columns: 1fr; }
  .fcmp-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: .72rem; }
  .fcmp-row > div { padding: .6rem .5rem; }
  .bar-row { grid-template-columns: 96px 1fr 52px; gap: .5rem; }
  .bar-name { font-size: .74rem; }
}
@media (max-width: 560px) {
  .itin-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .fcmp-row { grid-template-columns: 1fr; }
  .fcmp-row > div { display: flex; justify-content: space-between; }
  .fcmp-row.head { display: none; }
  .fcmp-row > div::before { content: attr(data-k); color: var(--muted); font-family: var(--fm); font-size: .58rem; }
}

/* ═══ ACCESSIBILITY ═══ */
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ice); color: var(--near-black); padding: .6rem 1rem; z-index: 1000; font-family: var(--fm); font-size: .7rem; }
.skip-link:focus { left: .5rem; top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .fade-up { opacity: 1; animation: none; }
}

/* ═══ TICKER · forest + budget counters (P0-6) ═══ */
.ticker-sub { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; gap: .55rem; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.ticker-sub-num { font-family: var(--fd); font-weight: 600; color: var(--ice); font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px var(--ice-glow); }
.ticker-sub-lbl { font-family: var(--fm); font-size: .64rem; color: var(--muted); line-height: 1.6; max-width: 38ch; text-align: left; }
.ticker-sub-lbl b { color: var(--text); }
.ticker-sub-lbl a, .ticker-budget-lbl a { color: var(--faint); }
.ticker-budget { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.ticker-budget-num { font-family: var(--fm); font-weight: 500; color: var(--ember); font-size: .82rem; letter-spacing: .03em; }
.ticker-budget-lbl { font-family: var(--fm); font-size: .64rem; color: var(--muted); line-height: 1.6; }

/* ═══ CHAPTER 02 · THE MAP (P0-2) ═══ */
.map-shell { position: relative; margin: 2.2rem 0 0; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.5rem 1rem; max-width: var(--maxw); margin: 0 auto; }
.map-layer { font-family: var(--fm); font-size: .62rem; color: var(--muted); background: var(--panel); border: 1px solid var(--border-2); border-radius: 99px; padding: .42rem .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: all .2s var(--ease); }
.map-layer.on { color: var(--text); border-color: var(--faint); }
.map-layer:not(.on) { opacity: .45; }
.ml-dot { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; }
.ml-dot.hz { background: var(--ember); } .ml-dot.an { background: linear-gradient(90deg, var(--ice), var(--ember)); }
.ml-dot.fo { background: #7dd66f; } .ml-dot.ww { background: #ffd166; }
.hazard-map { width: 100%; height: 70vh; min-height: 380px; max-height: 680px; position: relative; background: #0a0d11; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-size: .72rem; color: var(--faint); z-index: 5; }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 4; background: rgba(6,8,10,.82); border: 1px solid var(--border-2); border-radius: 6px; padding: .5rem .7rem; font-family: var(--fm); font-size: .56rem; color: var(--muted); pointer-events: none; }
.mlg-row { display: flex; align-items: center; gap: .4rem; }
.mlg-row + .mlg-row { margin-top: .35rem; }
.mlg-scale { width: 64px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--ice), #cdd6dc 45%, var(--ember)); }
.mlg-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.mlg-dot.hz { background: var(--ember); } .mlg-dot.fo { background: #7dd66f; } .mlg-dot.ww { background: #ffd166; }
.map-scrubber { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.5rem 0; max-width: var(--maxw); margin: 0 auto; }
.scrub-lbl { font-family: var(--fm); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#mapYear { flex: 1; accent-color: var(--ice); height: 4px; cursor: pointer; }
.scrub-year { font-family: var(--fd); font-weight: 600; font-size: 1.3rem; color: var(--ice); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.scrub-select { display: none; font-family: var(--fm); font-size: .9rem; background: var(--panel); color: var(--text); border: 1px solid var(--border-2); border-radius: 5px; padding: .5rem .7rem; }
.anomaly-strip { margin-top: 1.8rem; }
.anomaly-strip-h { font-family: var(--fm); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }

/* MapLibre popup + attribution, themed */
.maplibregl-popup-content { background: var(--panel-2) !important; color: var(--text) !important; border: 1px solid var(--border-2); border-radius: 7px; font-family: var(--fb); font-size: .8rem; padding: .85rem .95rem !important; box-shadow: 0 8px 30px rgba(0,0,0,.5) !important; }
.maplibregl-popup-content a { color: var(--ice); }
.maplibregl-popup-close-button { color: var(--muted); font-size: 1.1rem; }
.maplibregl-popup-tip { border-top-color: var(--panel-2) !important; border-bottom-color: var(--panel-2) !important; }
.wwa-pop-h { font-family: var(--fd); font-weight: 600; font-size: .98rem; line-height: 1.2; }
.wwa-pop-meta { font-family: var(--fm); font-size: .58rem; color: var(--muted); margin: .25rem 0 .45rem; letter-spacing: .04em; }
.maplibregl-ctrl-attrib { font-size: 9px !important; background: rgba(6,8,10,.6) !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }

@media (max-width: 560px) {
  .hazard-map { height: 58vh; }
  .map-scrubber { flex-wrap: wrap; }
}
/* reduced motion: discrete year-picker instead of a draggable scrubber */
@media (prefers-reduced-motion: reduce) {
  #mapYear { display: none; }
  .scrub-select { display: inline-block; }
}

/* ═══ CH 03b · CARBON MAJORS bar chart (P1-1) ═══ */
.majors-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; font-family: var(--fm); font-size: .58rem; color: var(--muted); padding: .9rem 1rem .2rem; }
.majors-legend .own-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: .35rem; vertical-align: middle; }
.own-dot.investor, .maj-fill.investor { background: var(--ember); } .own-badge.investor { color: var(--ember); border-color: var(--ember-deep); }
.own-dot.state, .maj-fill.state { background: #e0a458; } .own-badge.state { color: #e0a458; border-color: #7a5a2a; }
.own-dot.nation, .maj-fill.nation { background: var(--ice); } .own-badge.nation { color: var(--ice); border-color: var(--ice-deep); }
.majors-hint { margin-left: auto; color: var(--faint); }
.maj-axis { font-family: var(--fm); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 1rem .6rem; }
.majors-bars { display: flex; flex-direction: column; }
.maj-row { display: grid; grid-template-columns: 148px 1fr 46px; gap: .7rem; align-items: center; width: 100%; background: none; border: none; border-top: 1px solid var(--border); padding: .5rem 1rem; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: background .2s var(--ease); }
.maj-row:hover, .maj-row.on { background: rgba(255,255,255,.03); }
.maj-row:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.maj-name { font-family: var(--fb); font-size: .82rem; color: var(--text); }
.maj-track { height: 16px; background: var(--border); border-radius: 3px; overflow: hidden; }
.maj-fill { height: 100%; width: 0; border-radius: 3px; transition: width 1s var(--ease); }
.maj-val { font-family: var(--fm); font-size: .74rem; color: var(--muted); text-align: right; }
.majors-detail { border-top: 1px solid var(--border-2); padding: 1.2rem 1rem 1rem; background: var(--panel-2); }
.md-name { font-family: var(--fd); font-weight: 600; font-size: 1.25rem; color: #fff; }
.md-tags { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 .8rem; }
.own-badge { font-family: var(--fm); font-size: .6rem; letter-spacing: .04em; padding: .2rem .55rem; border: 1px solid var(--border-2); border-radius: 99px; }
.md-hq { font-family: var(--fm); font-size: .68rem; color: var(--muted); }
.md-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: .7rem; }
.md-stats span { font-size: .82rem; color: var(--muted); } .md-stats b { font-family: var(--fd); font-size: 1.05rem; color: var(--text); font-weight: 600; }
.md-leader { font-size: .9rem; color: var(--text); }
.md-src { font-family: var(--fm); font-size: .58rem; color: var(--faint); margin-top: .7rem; } .md-src a { color: var(--ice); }
@media (max-width: 560px) { .maj-row { grid-template-columns: 104px 1fr 40px; gap: .4rem; } .maj-name { font-size: .74rem; } }

/* ═══ priority source links (P1-6) + clear-state (P1-8) ═══ */
.prio-body { display: flex; flex-direction: column; gap: .12rem; }
.prio-src { font-family: var(--fm); font-size: .56rem; color: var(--faint); margin-top: .4rem; align-self: flex-start; text-decoration: none; }
.prio-src:hover { color: var(--ice); text-decoration: underline; }
.clear-state-row { max-width: 760px; margin: 1rem auto 0; padding: 0 1.5rem; text-align: center; }
.clear-state-btn { font-family: var(--fm); font-size: .64rem; color: var(--faint); background: none; border: 1px solid var(--border-2); border-radius: 99px; padding: .45rem 1rem; cursor: pointer; }
.clear-state-btn:hover { color: var(--text); border-color: var(--faint); }

/* ═══ CH 03c · lobbying lane + journalism (P1-3) ═══ */
.tl-lobby { margin-top: .55rem; padding: .5rem .7rem; border-left: 2px solid var(--ember-deep); background: rgba(255,107,53,.05); border-radius: 0 4px 4px 0; font-size: .8rem; color: var(--muted); line-height: 1.5; max-width: 60ch; }
.tl-lobby-tag { font-family: var(--fm); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); display: inline-block; margin-right: .5rem; }
.news-head-lbl { font-family: var(--fm); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding-bottom: .4rem; }

/* ═══ CH 04 · forecast compare, two selected pathways (P1-4) ═══ */
.fcmp-row.fcmp3 { grid-template-columns: 1.6fr 1fr 1fr; }
.fcmp-src { padding: .7rem 1rem; font-family: var(--fm); font-size: .58rem; color: var(--faint); line-height: 1.6; background: var(--panel); }
.fcmp-src a { color: var(--muted); }
@media (max-width: 560px) { .fcmp-row.fcmp3 { grid-template-columns: 1fr; } }

/* ═══ CH 04 · localise the forecast (P1-5) ═══ */
.forecast-local { margin-top: 2rem; border: 1px solid var(--border-2); border-radius: 8px; padding: 1.6rem; background: var(--panel); }
.fl-title { font-family: var(--fd); font-weight: 600; font-size: 1.25rem; color: #fff; }
.fl-title em { font-style: italic; color: var(--ember); }
.fl-sub { font-size: .82rem; color: var(--muted); line-height: 1.55; margin: .4rem 0 1rem; max-width: 62ch; }
.fl-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.fl-status { font-family: var(--fm); font-size: .66rem; color: var(--faint); margin-top: .7rem; min-height: 1em; }
.fl-result { display: none; margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.fl-result.show { display: block; }
.fl-place { font-family: var(--fm); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1.3rem; }
.fl-v { font-family: var(--fd); font-weight: 600; font-size: 1.7rem; color: var(--ice); line-height: 1; }
.fl-v.ember { color: var(--ember); }
.fl-k { font-family: var(--fm); font-size: .56rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; line-height: 1.4; }
.fl-src { font-family: var(--fm); font-size: .58rem; color: var(--faint); margin-top: 1rem; line-height: 1.5; }
.fl-src a { color: var(--ice); }

/* ═══ P2-3 · sticky chapter-nav pill ═══ */
.navpill { position: fixed; top: 1rem; right: 1rem; z-index: 800; display: flex; gap: .1rem; align-items: center; background: rgba(11,14,18,.85); backdrop-filter: blur(8px); border: 1px solid var(--border-2); border-radius: 99px; padding: .3rem .4rem; font-family: var(--fm); box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.navpill[hidden] { display: flex; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.navpill a { font-size: .68rem; color: var(--muted); padding: .35rem .55rem; border-radius: 99px; }
.navpill a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.navpill .np-say { color: var(--ice); }
.navpill .np-top { color: var(--faint); }
.np-close { background: none; border: none; color: var(--faint); cursor: pointer; font-size: .68rem; padding: .3rem .45rem; }
.np-close:hover { color: var(--text); }
@media (max-width: 640px) {
  .navpill { top: auto; bottom: 1rem; right: 50%; transform: translateX(50%); }
  .navpill[hidden] { transform: translateX(50%) translateY(8px); }
}

/* ═══ P2-4 · CVD stripes toggle ═══ */
.stripes-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.stripes-head .stripes-h { margin-bottom: 0; }
.cvd-toggle { font-family: var(--fm); font-size: .6rem; letter-spacing: .04em; color: var(--muted); background: none; border: 1px solid var(--border-2); border-radius: 99px; padding: .35rem .7rem; cursor: pointer; }
.cvd-toggle:hover { color: var(--text); border-color: var(--faint); }
.cvd-toggle.on { color: var(--near-black); background: var(--text); border-color: var(--text); }

/* ═══ P2-1 · ice counter + forest ribbon ═══ */
.ice-counter { margin-top: 2.5rem; border: 1px solid var(--border-2); border-radius: 8px; padding: 1.6rem; background: rgba(110,199,232,.03); }
.ice-counter-h { font-family: var(--fm); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.ice-counter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ice-num { font-family: var(--fd); font-weight: 600; font-size: clamp(1.8rem,6vw,3rem); color: var(--ice); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px var(--ice-glow); }
.ice-lbl { font-family: var(--fm); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.ice-cap { font-size: .78rem; color: var(--muted); margin-top: 1.2rem; } .ice-cap a { color: var(--ice); }
.forest-ribbon-block { margin-top: 2.5rem; }
.forest-ribbon { display: flex; width: 100%; height: 60px; border-radius: 4px; overflow: hidden; }
.fr-cell { flex: 1 1 0; }

/* ═══ P2-2 · what works ═══ */
.progress-block { margin-top: 2.5rem; border: 1px solid var(--border-2); border-radius: 8px; padding: 1.8rem; background: rgba(110,199,232,.03); }
.pg-eyebrow { font-family: var(--fm); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); margin-bottom: 1.2rem; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pg-stat { font-family: var(--fd); font-weight: 600; font-size: clamp(2.2rem,6vw,3.2rem); line-height: 1; color: var(--ice); }
.pg-body { font-size: .92rem; color: var(--text); line-height: 1.6; margin-top: .6rem; }
.pg-caveat, .pg-lesson { font-size: .84rem; color: var(--muted); line-height: 1.55; margin-top: .7rem; font-style: italic; }
.pg-src { font-family: var(--fm); font-size: .58rem; margin-top: .8rem; } .pg-src a { color: var(--faint); }
@media (max-width: 640px) { .pg-grid { grid-template-columns: 1fr; gap: 1.6rem; } .ice-counter-grid { gap: 1rem; } }

/* ═══ SCENE 01 · THE LIVING WORLD (scroll redesign) ═══
   Generative ring/contour field behind the hero. A scrim keeps type at
   WCAG contrast over it (brief: never let texture bury legibility). */
#lw { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
/* Scrim: darkest BEHIND the type (centre) for WCAG contrast, clearing toward
   the edges so the living ring field reads around the frame. TUNE the centre
   stop if type contrast ever gets marginal. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 62% 55% at 50% 46%, rgba(6,8,10,.88) 0%, rgba(6,8,10,.66) 42%, rgba(6,8,10,.18) 100%);
}
.hero-logo { z-index: 2; }
.hero-eyebrow, .hero-title, .hero-sub, .hero .ticker, .hero .scroll-cue { position: relative; z-index: 2; }

/* ═══ TRANSITION 01→02 · THE SAME MARK AT THREE SCALES ═══
   Generative canvas. A ring → a stump → the fishbone clear-cut from orbit.
   No bitmaps: the zoom-out is the argument. TUNE lives in js/cutscene.js. */
.cut-scene { position: relative; height: 320vh; z-index: 2; }   /* TUNE: scroll length */
.cut-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #10160d; }
#cutCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* scrim keeps the line at contrast over the field */
.cut-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 70% 45% at 50% 50%, rgba(6,8,10,.62), rgba(6,8,10,.18) 70%); }
.cut-copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cut-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateY(12px);
  width: min(90vw, 24ch); margin: 0; opacity: 0; text-align: center;
  font-family: var(--fd); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 4.4vw, 2.9rem); line-height: 1.25; color: var(--text);
  text-shadow: 0 2px 34px rgba(0,0,0,.85);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.cut-line.on { opacity: 1; transform: translate(-50%, -50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .cut-scene { height: auto; }
  .cut-sticky { position: static; height: 62svh; }
  .cut-copy { position: static; padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
  .cut-line { position: static; transform: none; opacity: 1; width: auto; font-size: 1.2rem; }
}

/* ═══ CH01 · THE RECORD, IN RINGS → UNROLLED ═══
   Pinned scrub inside the stripes block. The canvas is the primary reading;
   the static DOM stripes below are the reduced-motion / fallback reading. */
.rr-scene { position: relative; height: 260vh; margin: .4rem 0 1rem; }  /* TUNE: unroll length */
.rr-sticky { position: sticky; top: 0; height: 100svh; display: block; }
#ringCanvas { width: 100%; height: 100%; display: block; }
/* the canvas is authoritative under normal motion — hide the duplicate stripes */
.stripes-block .stripes, .stripes-block .stripes-axis { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rr-scene { display: none; }
  .stripes-block .stripes { display: flex; }
  .stripes-block .stripes-axis { display: flex; }
}

/* ═══ CH01 · THE ICE CORE ═══
   Pinned scrub: the core is raised, the CO₂ it carries traces down it.
   Reduced motion → short, static, no scrub (the canvas draws its end state). */
.icecore-scene { position: relative; height: 240vh; margin: 2.5rem 0 1rem; }  /* TUNE: raise length */
.ic-sticky { position: sticky; top: 0; height: 100svh; }
#coreCanvas { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .icecore-scene { height: 70svh; }
  .ic-sticky { position: static; height: 70svh; }
}

/* ═══ CH03b · THE CARBON MAJORS AS DRILL CORES ═══
   The third of the planet's books, and the only one written by us. These
   entities didn't observe the carbon — they EXTRACTED it. So each bar is
   drawn as the core they pulled, lying in a core tray: length = how much
   they took. A tray is how cores are actually stored and read, which is why
   the existing horizontal rows already had the right geometry.
   TUNE: strata pitch (the 5px), cylinder shading alphas. */
.maj-track {
  height: 18px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(255,255,255,.03));
  border: 1px solid var(--border-2); border-left: 2px solid var(--border-2);
}
.maj-fill { position: relative; border-radius: 0 2px 2px 0; }
/* strata + cylinder shading: the core reads as a solid object, not a bar */
.maj-fill::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.26) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.04) 42%, rgba(0,0,0,.34));
}
/* the cut face at the end of the core */
.maj-fill::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: rgba(239,236,229,.55);
}
.maj-axis-note { font-family: var(--fm); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 1rem .5rem; }

/* FIX: .majors-list was a card grid in the original build; P1 rebuilt its
   contents as a legend + bar chart + detail panel, which must stack. Without
   this the children get laid out as grid cells and the chart collapses. */
.majors-list { display: block; }

/* FIX (latent since P1-1): .maj-fill is a <span> inside .maj-track, so it
   defaulted to display:inline — where width/height do not apply. The fills
   were 0×0 and the chart rendered as empty tracks. The track escaped this
   only because .maj-row is a grid and blockifies its children. */
.maj-fill { display: block; }

/* ═══════════════════════════════════════════════════════════════════
   BRAND REDESIGN · forest voice, heavy grotesque
   The title is BONE, not ember. Ember/ice now appear only where they
   encode data, so when you see ember it means carbon — every time.
   ═══════════════════════════════════════════════════════════════════ */

/* ── display type: heavy, tight, condensed ── */
.hero-title, .sec-title, .coda-title, .md-name, .pg-stat, .fc-temp,
.ticker-num, .ticker-sub-num, .ice-num, .coalition-num, .fl-v,
.detail-box h3, .detail-val, .sub-t, .globe-h, .st-wm, .breath p,
.closing-line, .cut-line, .majors-stat .big, .cc-name, .cc-stat .cc-v {
  font-family: var(--fd);
  font-variation-settings: "wdth" 88;      /* TUNE: condensed-ness */
  letter-spacing: -.025em;
}
.hero-title {
  font-weight: 800; color: var(--bone);
  font-size: clamp(3rem, 11vw, 9rem); line-height: .86;
  text-transform: uppercase;
  font-variation-settings: "wdth" 82;
}
/* the accent word: bone, weighted — NOT ember. Ember means carbon. */
.hero-title .mad-ember {
  color: var(--bone); font-style: normal; display: block;
  -webkit-text-stroke: 0; opacity: .55;    /* TUNE: the quiet word */
  text-shadow: none;
}
.sec-title { font-weight: 800; color: var(--bone); line-height: .94; text-transform: uppercase; font-size: clamp(2.1rem, 6vw, 4.2rem); }
.sec-title em, .sec-title.ice em { font-style: normal; color: var(--forest-lit); }
.coda-title { font-weight: 800; text-transform: uppercase; line-height: .92; }
.coda-title em { font-style: normal; color: var(--forest-lit); }
.breath p, .closing-line, .cut-line { font-style: normal; font-weight: 700; text-transform: none; }

/* ── brand accents move from ember/ice to forest ── */
.eyebrow, .hero-eyebrow { color: var(--moss); }
.itin-n, .itin-item.ice .itin-n, .itin-item.act .itin-n { color: var(--forest-lit); }
.coda-eyebrow { color: var(--forest-lit); }
.live-dot { background: var(--forest-lit); box-shadow: 0 0 10px var(--forest-lit); }
.step-label { color: var(--forest-lit); }
a { color: var(--forest-lit); }
.navpill .np-say { color: var(--forest-lit); }
.btn-primary { background: var(--forest-lit); color: var(--near-black); border-color: var(--forest-lit); }
.btn-primary:hover { background: var(--moss); }
.continue-btn:hover { border-color: var(--forest-lit); color: var(--forest-lit); }
.continue-btn .ar { color: var(--forest-lit); }
:focus-visible { outline-color: var(--forest-lit); }
.skip-link { background: var(--forest-lit); }
::selection { background: var(--forest); color: var(--bone); }
.prio-card.on { background: rgba(111,156,114,.08); }
.prio-card.on .prio-rank { background: var(--forest-lit); color: var(--near-black); border-color: var(--forest-lit); }
.prio-card.on .prio-name { color: var(--forest-lit); }
.ordered-n { color: var(--forest-lit); }
.coalition-num { color: var(--forest-lit); text-shadow: 0 0 50px rgba(111,156,114,.35); }
.cc-stat .cc-v.ice { color: var(--forest-lit); }
.cc-rating.ok { color: var(--forest-lit); border-color: var(--forest); }
.letter-body { background: #0a0f0b; }
.prio-src:hover, .md-src a, .fl-src a, .stripes-cap a, .ice-cap a { color: var(--forest-lit); }

/* body copy: heavier, so it stops feeling thin next to the display */
body { font-weight: 400; }
.sec-desc { font-weight: 450; color: var(--muted); }
.sec-desc b { font-weight: 700; color: var(--bone); }
.hero-sub { font-weight: 450; color: var(--muted); }

/* the counters keep ember/ice — they ARE data */
.ticker-num { font-weight: 800; }
.ticker-sub-num, .ice-num, .fl-v { font-weight: 800; }
.fc-temp { font-weight: 800; }

/* ── hero refinements ──
   "REASSURED" was reading as disabled at low opacity. Instead make it an
   OUTLINE: the word is present but hollow — the reassurance is the empty
   promise in the title. Full contrast, no opacity trick. */
.hero-title .mad-ember {
  opacity: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--bone);
  paint-order: stroke fill;
}
@media (max-width: 640px) { .hero-title .mad-ember { -webkit-text-stroke-width: 1.4px; } }

/* the ticker needs to read as an instrument panel again on the busy field */
.ticker {
  background: rgba(7,10,6,.72);
  backdrop-filter: blur(3px);
  border-color: var(--border-2);
  border-radius: 3px;
}
.ticker-lbl, .ticker-foot, .ticker-sub-lbl, .ticker-budget-lbl { color: var(--muted); }
.ticker-src a { color: var(--faint); }

/* ═══ CH04 · "YOUR MONTH, THEN AND NOW" ═══
   The same calendar month the reader is standing in, 2000s vs 2040s, in
   their own place. Two panels and an arrow: the comparison IS the argument,
   so it's laid out as a before/after rather than a stat grid. */
.fl-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem;
  align-items: center; margin: 1.2rem 0 1rem;
}
.fl-then, .fl-now {
  border: 1px solid var(--border-2); border-radius: 6px;
  padding: 1.1rem 1.2rem; background: rgba(255,255,255,.015);
}
.fl-now { border-color: var(--ember-deep); background: rgba(255,107,53,.05); }
.fl-when {
  font-family: var(--fm); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.fl-temp {
  font-family: var(--fd); font-variation-settings: "wdth" 88; font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; letter-spacing: -.03em;
  color: var(--bone);
}
.fl-temp.ember { color: var(--ember); }
.fl-temp span { font-family: var(--fb); font-weight: 600; font-size: .32em; margin-left: .15em; color: var(--muted); }
.fl-note { font-family: var(--fm); font-size: .62rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
.fl-arrow { font-size: 1.4rem; color: var(--faint); }
.fl-verdict {
  font-size: .95rem; line-height: 1.6; color: var(--text);
  border-left: 2px solid var(--ember-deep); padding-left: .9rem; margin-bottom: .8rem;
}
.fl-verdict b { color: var(--bone); font-weight: 700; }
@media (max-width: 620px) {
  .fl-compare { grid-template-columns: 1fr; gap: .7rem; }
  .fl-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ═══ CH04 · YOUR MONTH, DAY BY DAY (interactive) ═══
   A grid of real days the reader can scrub through time. The instrument is
   the point: drag the year, watch your own month heat up. */
.fl-toolbar { display: flex; align-items: center; gap: .9rem; margin: 1.2rem 0 .9rem; }
.fl-scrub-lbl { font-family: var(--fm); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.fl-scrub { flex: 1; accent-color: var(--ember); height: 4px; cursor: pointer; }
.fl-year {
  font-family: var(--fd); font-variation-settings: "wdth" 88; font-weight: 800;
  font-size: 1.5rem; color: var(--bone); min-width: 4ch; text-align: right;
  font-variant-numeric: tabular-nums;
}
.fl-grid-wrap { margin: .2rem 0 .9rem; }
.fl-daygrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 4px;                                   /* TUNE: day spacing */
}
.fl-day { aspect-ratio: 1; border-radius: 2px; display: block; transition: background .35s var(--ease); }
.fl-day-hot { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }   /* a day over 30 °C */
.fl-day-na { background: var(--border); }
.fl-legend {
  display: flex; align-items: center; gap: .5rem; margin-top: .7rem;
  font-family: var(--fm); font-size: .56rem; color: var(--muted); flex-wrap: wrap;
}
.fl-ramp { width: 110px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, #6ec7e8, #f2efe6 50%, #ff6b35); }
.fl-legend-hot { margin-left: auto; color: var(--faint); }
.fl-readout {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: baseline;
  border-top: 1px solid var(--border); padding-top: .8rem; margin-bottom: .8rem;
}
.fl-r-year { font-family: var(--fm); font-size: .6rem; letter-spacing: .12em; color: var(--muted); }
.fl-r-stat { font-size: .84rem; color: var(--muted); }
.fl-r-stat b { font-family: var(--fd); font-variation-settings: "wdth" 88; font-weight: 800;
  font-size: 1.3rem; color: var(--bone); margin-right: .15rem; }
.fl-r-stat.hot b { color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .fl-day { transition: none; } }

/* ── day-grid presence ──
   The cells were too small and too pale to feel like anything. A month is 31
   days: give them size, let them breathe, and put them on a dark bed so the
   pale/hot end actually reads. TUNE: min cell size. */
.fl-grid-wrap { background: rgba(0,0,0,.35); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 1rem; }
.fl-daygrid { grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: 6px; }
.fl-day { border-radius: 3px; min-height: 34px; }
.fl-scrub { accent-color: var(--ember); height: 6px; }
.fl-year { font-size: 2rem; color: var(--ember); }

/* ═══ CH01 · WHERE THE HEAT WENT ═══
   Pinned drop: 100 units of trapped heat fall, 90 sink into the ocean. */
.heat-scene { position: relative; height: 280vh; margin: 2.5rem 0 1rem; }  /* TUNE: fall length */
.hs-sticky { position: sticky; top: 0; height: 100svh; }
#heatCanvas { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .heat-scene { height: 72svh; }
  .hs-sticky { position: static; height: 72svh; }
}

/* ═══ CH01 · WHAT THE ARCTIC LOST ═══ */
.ice-scene { position: relative; height: 300vh; margin: 2.5rem 0 1rem; }  /* TUNE: scrub length */
.is-sticky { position: sticky; top: 0; height: 100svh; }
#iceCanvas { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .ice-scene { height: 72svh; }
  .is-sticky { position: static; height: 72svh; }
}

/* ═══ CH03a · THE LEDGER ON A GLOBE ═══
   Scroll spins it; the ledger tabs rebuild it. */
.gv-scene { position: relative; height: 260vh; margin: .6rem 0 1.4rem; }  /* TUNE: spin length */
/* the globe sits below the sticky control so the two never overlap */
.gv-sticky { position: sticky; top: 3.2rem; height: calc(100svh - 3.2rem); }
#gvCanvas { width: 100%; height: 100%; display: block; }
/* One control, and it rides with you: the globe scene is 260vh, so tabs that
   scrolled away would strand the reader mid-scene with nothing to switch. */
.ledger-tabs-stick { position: sticky; top: 0; z-index: 3; padding: .7rem 0; margin-bottom: .6rem;
  background: linear-gradient(180deg, var(--near-black) 62%, transparent); }
.ledger-tabs-stick .ledger-tab { background: rgba(7,10,6,.72); backdrop-filter: blur(6px); }
.ledger-tabs-stick .ledger-tab.on { background: var(--text); color: var(--near-black); }
/* Reduced motion last, so nothing below can override the static fallback. */
@media (prefers-reduced-motion: reduce) {
  .gv-scene { height: 70svh; }
  .gv-sticky { position: static; height: 70svh; }
  .ledger-tabs-stick { position: static; background: none; }
}

/* ═══ CH02a · THE SAME WARMING, BY LATITUDE ═══
   Pinned scrub runs the decades. The canvas is the primary reading; the
   static coloured bands below it are the reduced-motion fallback. */
.lat-scene { position: relative; height: 240vh; margin: .6rem 0 1rem; }  /* TUNE: race length */
.lat-sticky { position: sticky; top: 0; height: 100svh; }
#latCanvas { width: 100%; height: 100%; display: block; }
/* under normal motion the canvas is authoritative — don't say it twice */
.anomaly-strip .anomaly-wrap { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lat-scene { display: none; }
  .anomaly-strip .anomaly-wrap { display: block; }
}
