/* ===========================================================================
   Earth System World Model — main.css
   One black page. Each section is the same four beats: a numbered kicker, a statement, one line
   of context, then the thing itself in a card. Sans for statements, a serif italic for the one
   word that matters, mono for numbers and labels. Moss marks the model's own voice; teal is
   "no action", orange is "your scenario", everywhere.
   =========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-micro: 11px;
  --fs-xs:    clamp(11.5px, .68rem + .12vw, 13px);
  --fs-sm:    clamp(13px, .78rem + .16vw, 14.5px);
  --fs-base:  clamp(15px, .88rem + .2vw, 16.5px);
  --fs-md:    clamp(16px, .92rem + .3vw, 18px);
  --fs-lede:  clamp(16.5px, .94rem + .42vw, 20px);
  --fs-h3:    clamp(17px, .98rem + .4vw, 21px);
  --fs-h2:    clamp(32px, 1.1rem + 2.7vw, 58px);
  --fs-h1:    clamp(38px, 1.1rem + 4.3vw, 78px);
  --fs-num:   clamp(30px, 1.3rem + 1.6vw, 46px);

  --wrap: 1200px;
  --wrap-pad: clamp(18px, 4vw, 48px);
  --sec-y: clamp(96px, 11vw, 168px);
  --nav-h: 60px;
  --pad: clamp(16px, 2.2vw, 28px);

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* surfaces: the page is black; cards lift it by a hair */
  --bg:   #000;
  --bg-1: #0a0c0b;
  --bg-2: #101412;
  --bg-3: #171c1a;
  --line:   rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --line-3: rgba(255, 255, 255, .28);
  --hover:  rgba(255, 255, 255, .05);

  --ink:   #f1f4f2;
  --ink-2: #b3bdb8;
  --ink-3: #7b8681;
  --ink-4: #545e59;

  --moss: #a2cf6e;
  --moss-soft: #c9e3a6;
  --accent: var(--moss);
  --accent-ink: #0a110c;
  --accent-soft: rgba(162, 207, 110, .12);
  --accent-line: rgba(162, 207, 110, .4);
  --focus: #c0e08f;

  --warn: #e6b169;
  --warn-bg: rgba(230, 177, 105, .1);
  --warn-line: rgba(230, 177, 105, .36);

  /* the three series, and the stage's two extra marks */
  --c-free: #4fbb8a;
  --c-act:  #f2994a;
  --c-ed:   #9fb2bc;
  --c-ghost: #b4f5e6;
  --c-gain: #9ce07a;
  --chart-bg: #0b0e0d;

  --sh-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -40px rgba(0, 0, 0, .9);
  --glow: 0 10px 34px -12px rgba(162, 207, 110, .55);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
b, strong { font-weight: 650; color: var(--ink); }
sup, sub { font-size: .66em; line-height: 0; }
code, kbd, pre { font-family: var(--mono); }
table { border-collapse: collapse; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; text-decoration: none; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--nav-h);
  padding: 0 var(--wrap-pad);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(0, 0, 0, .72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}
.nav-mark {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--ink);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-mark:hover { text-decoration: none; }
/* a moss disc carrying three canopy posts: the favicon, miniaturised */
.mark {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  background:
    linear-gradient(#000, #000) 50% 62% / 1.6px 7.5px no-repeat,
    linear-gradient(#000, #000) 26% 64% / 1.6px 5px no-repeat,
    linear-gradient(#000, #000) 74% 64% / 1.6px 4px no-repeat,
    var(--accent);
  box-shadow: 0 0 14px rgba(162, 207, 110, .45);
}
.nav-links { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav-links a { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; transition: color .12s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--ink);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; background: rgba(255, 255, 255, .08); border-color: var(--line-3); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 7px 14px; font-size: var(--fs-xs); }
.btn-lg { padding: 13px 26px; font-size: var(--fs-md); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--moss-soft); border-color: transparent; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(24px, 5vh, 56px)) var(--wrap-pad) clamp(28px, 5vh, 48px);
  background: radial-gradient(70% 60% at 66% 46%, #07100d 0%, #000 72%);
  overflow: hidden;
}
#globe-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; transition: opacity .7s ease; }
/* a left wash for the copy, a fade to the page's black at the bottom */
.hero-grad {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 14%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(96deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 34%, rgba(0, 0, 0, 0) 64%);
}
.hero-inner {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: min(var(--wrap), 760px);
  margin-left: max(0px, calc((100% - var(--wrap)) / 2));
}
.eyebrow {
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  color: var(--accent);
  font: 500 var(--fs-xs)/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 {
  max-width: 13.5em;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.hero h1 .h1-2 { display: block; color: var(--ink-2); }
.hero h1 em { color: var(--accent); font-size: 1.1em; letter-spacing: -.01em; padding-right: .04em; }
.lede {
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  max-width: 32rem;
  color: var(--ink-2);
  font-size: var(--fs-lede); line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3.2vh, 34px); }
.btn-film svg { width: 15px; height: 15px; fill: currentColor; }
.btn-film span { color: var(--ink-3); font: 500 var(--fs-xs)/1 var(--mono); }

/* the film, on the page right after the hero */
.film-band { padding: clamp(40px, 5.5vw, 80px) 0 0; }
.film { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #000; box-shadow: var(--sh-card); }
.film-v { position: relative; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
/* before the first play the poster is a title card, and this its one control: under its two lines */
.film-play { position: absolute; left: 7.8%; top: 74%; display: inline-flex; align-items: center; gap: .75em;
  padding: .4em 1.1em .4em .4em; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(8, 10, 9, .6); color: var(--ink); font: 600 clamp(12px, 1.35vw, 16px)/1 var(--sans);
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.film-play i { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%;
  background: var(--c-act); color: #140b03; transition: transform .2s; }
.film-play svg { width: 1.05em; height: 1.05em; margin-left: .12em; fill: currentColor; }
.film-play b { font-weight: inherit; }
.film-play span { color: var(--ink-3); font: 500 .8em/1 var(--mono); }
.film-play:hover { border-color: rgba(255, 255, 255, .4); background: rgba(8, 10, 9, .75); }
.film-play:hover i { transform: scale(1.07); }
.film-play[hidden] { display: none; }
/* on a phone the poster is small: just the round button (the whole poster plays it too) */
@media (max-width: 600px) {
  .film-play { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 14px; }
  .film-play b, .film-play span { display: none; }
}
.film-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0; padding: 14px var(--pad) 16px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.55; }
.film-k { color: var(--accent); font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

.hero-by {
  margin: clamp(22px, 3.4vh, 36px) 0 0;
  max-width: 34rem;
  color: var(--ink-2);
  font-size: var(--fs-xs); line-height: 1.6;
}
.hero-by span { display: block; margin-top: 2px; color: var(--ink-3); }
/* where to find the authors at the conference: the first thing under the lede, lit in the accent */
.hero-conf {
  align-self: flex-start; max-width: 100%;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  padding: 14px 20px 15px;
  border: 1.5px solid var(--accent); border-radius: var(--r);
  background: linear-gradient(120deg, rgba(162, 207, 110, .17), rgba(162, 207, 110, .05) 70%), rgba(8, 12, 9, .84);
  box-shadow: 0 16px 44px -20px rgba(162, 207, 110, .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hc-k { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--accent);
  font: 600 var(--fs-xs)/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hc-k svg, .hc-list dt svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hc-list { display: grid; gap: 7px; margin: 0; }
.hc-list div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); align-items: baseline; gap: 12px; }
.hc-list dt { display: flex; align-items: center; gap: 8px; align-self: center; color: var(--moss-soft);
  font: 600 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hc-list dd { margin: 0; color: var(--ink); font-size: var(--fs-md); line-height: 1.4; }
.hc-list dd b { font-weight: 650; }
/* on a phone, the day and time get their own line */
@media (max-width: 560px) {
  .hero-conf { padding: 12px 16px 13px; }
  .hc-list div { grid-template-columns: 5.4em minmax(0, 1fr); gap: 10px; }
  .hc-sep { display: none; }
  .hc-when { display: block; color: var(--ink-2); white-space: nowrap; }
}
.hero-note {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  margin: clamp(16px, 2.4vh, 24px) 0 0;
  padding: 6px 14px 6px 10px; max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--ink-3);
  font: 500 var(--fs-micro)/1.35 var(--mono);
}
.dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  translate: -50% 0;
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 7px; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px;
  background: rgba(255, 255, 255, .75);
  animation: scrollcue 1.9s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes scrollcue {
  0%, 12% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  75%, 100% { transform: translateY(12px); opacity: 0; }
}

/* ------------------------------------------------------------------ sections */
.sec { position: relative; padding: var(--sec-y) 0 0; }
.sec:last-of-type { padding-bottom: var(--sec-y); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--wrap-pad)); margin-inline: auto; }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 4.6vw, 60px); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  color: var(--accent);
  font: 500 var(--fs-xs)/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
}
.kicker span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); letter-spacing: .06em; }
.kicker span::after { content: ""; width: 26px; height: 1px; background: var(--line-3); }
.sec h2 {
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.sec h2 em { color: var(--accent); font-size: 1.1em; padding-right: .04em; }
.sec h2 .h2-2 { color: var(--ink-3); }
.sec-lede {
  margin: 20px 0 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: var(--fs-lede); line-height: 1.55;
}
.sec-lede em { color: var(--ink); font-size: 1.08em; }
.sec-next { margin: clamp(32px, 4vw, 48px) 0 0; color: var(--ink-2); font-size: var(--fs-md); }
.sec-next a { margin-left: .3rem; font-weight: 600; white-space: nowrap; }
.sec-next a::after { content: " \2193"; }
.fine { margin: 16px 0 0; max-width: 80ch; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.65; }

/* scroll-in */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ inputs */
select {
  -webkit-appearance: none; appearance: none;
  min-width: 10ch; max-width: 100%;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background-color: var(--bg-2);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 1px), calc(100% - 13px) calc(50% - 1px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--ink);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3;
  transition: border-color .2s;
}
select:hover { border-color: var(--line-3); }
option, optgroup { background: #111; color: var(--ink); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6px;
  border: 0; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(162, 207, 110, .18);
  transition: transform .12s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(162, 207, 110, .18);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--focus); }

/* ------------------------------------------------------------------ cards */
.lab, .vs-card, .tw-view, .step, .stat, .table-scroll, .bib-card, .disclose, .chart {
  background: var(--bg-1);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------------ 01 the lab */
.lab { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card); }
/* a sweeping hairline while the model loads or recomputes */
.lab::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 5; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) no-repeat;
  background-size: 42% 100%;
  opacity: 0; transition: opacity .3s;
}
.lab[data-state="loading"]::before, .lab[data-state="busy"]::before { opacity: 1; animation: sweep 1.25s linear infinite; }
@keyframes sweep { from { background-position: -45% 0; } to { background-position: 145% 0; } }
.lab[data-state="busy"] .answer { opacity: .55; }

.lab-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-grow { flex: 1 1 220px; }
.field > label { color: var(--ink-3); font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lab-bar .btn { margin-left: auto; }

.warn {
  margin: 0; padding: 12px var(--pad);
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
  color: var(--warn);
  font-size: var(--fs-sm); line-height: 1.5;
}

/* the stage: the forest itself */
.stage {
  position: relative;
  aspect-ratio: 1000 / 300;
  min-height: 220px; min-width: 0;   /* min-width: or the ratio widens it past the card */
  overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 50% 70%, #0b1712 0%, #050806 60%, #000 100%);
  color: var(--ink);
}
.stand { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.stage-gl { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; touch-action: pan-y; cursor: grab; }
.stage.is-turning .stage-gl { cursor: grabbing; }
.stage.has-gl { aspect-ratio: auto; height: clamp(340px, 44vw, 580px); }
.stage.has-gl .stand, .stage.has-gl .hud-read { display: none; }

.hud { position: absolute; left: var(--pad); top: clamp(14px, 1.8vw, 22px); z-index: 1; pointer-events: none; text-shadow: 0 1px 10px #000; }
.hud-year { margin: 0; font: 500 clamp(30px, 1.4rem + 1.5vw, 48px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hud-read { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin: .55rem 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
.hud-read span { display: inline-flex; align-items: center; gap: .45rem; }
.hud-read b { font: 600 var(--fs-xs)/1 var(--mono); font-variant-numeric: tabular-nums; }

.where { position: absolute; right: var(--pad); top: clamp(12px, 1.6vw, 20px); z-index: 1; display: flex; align-items: center; gap: 12px; }
.where-txt {
  display: flex; flex-direction: column; align-items: flex-end;
  margin: 0;
  font: 500 var(--fs-micro)/1.55 var(--mono); letter-spacing: .02em;
  color: var(--ink-3);
  text-shadow: 0 1px 10px #000;
}
.where-txt span:first-child { color: var(--ink); }
.loc-wrap { position: relative; width: 64px; height: 64px; flex: none; }
.loc { width: 100%; height: 100%; }
.loc-pin {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff2cf;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 10px rgba(255, 242, 207, .9);
  opacity: 0; transform: scale(.3);
  transition: opacity .3s ease, transform .45s var(--ease-out);
}
.loc-pin.is-on { opacity: 1; transform: none; }
.loc-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(255, 242, 207, .75);
  animation: loc-ping 2.4s var(--ease-out) infinite;
}
@keyframes loc-ping { from { transform: scale(.35); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* what the stage's marks mean, once there are two futures to compare */
.stage-key {
  position: absolute; left: var(--pad); bottom: 14px; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  max-width: 46%;
  margin: 0;
  font-size: var(--fs-micro); color: var(--ink-2);
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
}
.stage-key span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.stage.has-gl[data-diff] .stage-key { opacity: 1; }
.stage[data-diff="loss"] .stage-key span:nth-child(4),
.stage[data-diff="gain"] .stage-key span:nth-child(3),
.stage[data-diff="same"] .stage-key span:nth-child(n+3) { display: none; }
.sw-ghost, .sw-gain { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.sw-ghost { border: 1.5px solid var(--c-ghost); background: rgba(180, 245, 230, .16); box-shadow: 0 0 8px rgba(180, 245, 230, .5); }
.sw-gain { background: radial-gradient(circle at 50% 35%, #d8f5a8, var(--c-gain) 60%, #4f8a3a); box-shadow: 0 0 8px rgba(156, 224, 122, .55); }

.replay {
  position: absolute; right: var(--pad); bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink);
  font: 600 var(--fs-xs)/1 var(--sans);
  transition: border-color .2s, opacity .2s;
}
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.replay:hover { border-color: var(--ink); }
.lab.is-playing .replay { opacity: .45; }

/* the 3D stage's own labels (stage3d.js): each plot named under its slab */
.ptag {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: flex; align-items: center; gap: .55rem;
  white-space: nowrap;
  font-size: var(--fs-xs); color: var(--ink-2);
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
  transition: opacity .35s ease;
  will-change: transform;
}
.ptag-l { display: inline-flex; align-items: center; gap: .45rem; }
.ptag .sw { width: 16px; }
.ptag-v { font: 600 var(--fs-sm)/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
/* the gap between the canopy levels, measured at the scenario plot's corner */
.pdim {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 9px;
  border: 2px solid var(--c-act); border-left: 0;
  pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
}
.pdim[data-sign="pos"] { border-color: var(--c-gain); }
.pdim-t {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px;
  white-space: nowrap;
  font: 500 11px/1.1 var(--mono);
  color: var(--c-act);
  text-shadow: 0 1px 8px #000, 0 0 2px #000;
}
.pdim-t b { font: 600 clamp(14px, .8rem + .3vw, 17px)/1.1 var(--mono); color: inherit; }
.pdim[data-sign="pos"] .pdim-t { color: var(--c-gain); }
.pdim.is-flip { border-left: 2px solid; border-right: 0; }
.pdim.is-flip .pdim-t { left: auto; right: 17px; text-align: right; }
.stage-toast {
  position: absolute; left: 50%; top: clamp(14px, 2vw, 22px); z-index: 1;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 var(--fs-xs)/1 var(--sans);
  opacity: 0; transform: translate(-50%, -6px);
  transition: opacity .25s ease, transform .35s var(--ease-out);
  pointer-events: none;
}
.stage-toast b { font: 600 var(--fs-xs)/1 var(--mono); color: var(--c-act); }
.stage-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the flat stand (stand.js), the stage without WebGL */
.st-grid line { stroke: rgba(162, 207, 110, .17); stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-trunk { fill: #3b3027; }
.st-far .st-trunk { fill: #29241f; }
.st-far .st-crown { opacity: .92; }
.st-stump path { fill: #5e4832; }
.st-cut { fill: #cdaa7e; }
.st-snag path { fill: #4c4139; stroke: #8a6448; stroke-width: .8; }
.st-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: st-sway 6.5s ease-in-out infinite alternate; }
@keyframes st-sway { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
.st-lvl { fill: none; vector-effect: non-scaling-stroke; }
.st-lvl-free, .st-lvl-act.is-free { stroke: var(--c-free); stroke-width: 1.5; stroke-dasharray: 7 6; opacity: .85; }
.st-lvl-act { stroke: var(--c-act); stroke-width: 2.25; }

/* the scenario tiles */
.actions {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;
  padding: var(--pad) var(--pad) 14px;
  border-top: 1px solid var(--line);
}
.scn {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--ink-2);
  font: 600 var(--fs-sm)/1.2 var(--sans);
  transition: transform .16s var(--ease), border-color .16s, background .16s, color .16s;
}
.scn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scn:hover { transform: translateY(-2px); border-color: var(--line-3); color: var(--ink); }
.scn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 26px -10px var(--accent); }
.scn.is-on svg { stroke-width: 1.9; }

/* what the chosen tile does, and when */
.act-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center; gap: 12px 32px;
  padding: 0 var(--pad) var(--pad);
}
.act-hint { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); }
.when, .goal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 20px; }
.goal { padding: 0 var(--pad) var(--pad); }
.when label, .goal label { font: 500 var(--fs-md)/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.when output, .goal output { font-family: var(--mono); font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.when-span { grid-column: 2; display: flex; justify-content: space-between; margin-top: -.4rem; font: 400 var(--fs-micro)/1 var(--mono); color: var(--ink-3); }
.when-span i { font-style: normal; }
.goal .verdict, .goal .policy { grid-column: 1 / -1; }
.verdict {
  margin: .2rem 0 0; padding: .7rem .95rem;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--ink-3);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: var(--fs-sm); line-height: 1.6;
}
.verdict:empty { display: none; }
.verdict[data-status="ok"] { border-left-color: var(--accent); background: var(--accent-soft); }
.verdict[data-status="no"] { border-left-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.verdict b { color: inherit; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.verdict b:first-child { font-family: var(--sans); }

/* the plan, year by year (charts.js Policy) */
.policy { position: relative; margin-top: 10px; }
.policy-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin: 0 0 .5rem; font-size: var(--fs-xs); color: var(--ink-3); }
.policy-title { font-weight: 600; color: var(--ink-2); }
.policy-key { display: inline-flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.policy-key span { display: inline-flex; align-items: center; gap: .45rem; }
.policy-key .sw { width: 16px; }
.policy-svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.pbar { fill: var(--c-act); opacity: .78; transition: opacity .12s; }
.pbar.is-on { opacity: 1; }
.pnat { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.zeroline { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.lbl-u { font-size: 10px; }

/* the response */
.answer { padding: var(--pad); border-top: 1px solid var(--line); transition: opacity .2s ease; }
.answer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 0 0 14px; }
.answer-t { margin: 0; color: var(--ink-3); font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.key { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.key span { display: inline-flex; align-items: center; gap: .5rem; }
.sw { flex: none; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--ink-3); }
.sw-ed { background: repeating-linear-gradient(90deg, var(--c-ed) 0 5px, transparent 5px 9px); }
.sw-free { background: repeating-linear-gradient(90deg, var(--c-free) 0 5px, transparent 5px 8px); }
.key .sw-free, .tip .sw-free, .policy-key .sw-free { background: var(--c-free); }
.sw-act { background: var(--c-act); height: 4px; }
.sw-nat { background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 5px); }

.chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart { position: relative; margin: 0; padding: 18px; border-radius: var(--r); background: var(--chart-bg); }
.chart svg { width: 100%; height: auto; overflow: visible; display: block; margin-top: .4rem; touch-action: pan-y; cursor: crosshair; }
.chart-head { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin: 0; }
.chart-title { font: 600 var(--fs-md)/1.3 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.chart-unit { font: 400 var(--fs-xs)/1.3 var(--mono); color: var(--ink-3); }
.chart-delta {
  margin-left: auto;
  padding: .16rem .55rem;
  border-radius: 999px;
  background: var(--hover);
  color: var(--ink-2);
  font: 500 var(--fs-sm)/1.3 var(--mono);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.chart-delta[data-sign="pos"] { color: var(--c-free); background: rgba(79, 187, 138, .12); }
.chart-delta[data-sign="neg"] { color: var(--c-act); background: rgba(242, 153, 74, .14); }
.chart-delta[data-sign="flat"] { opacity: .55; }

/* SVG primitives the charts emit */
.gridline { fill: none; stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.lbl { fill: var(--ink-3); font: 500 10.5px var(--mono); letter-spacing: .02em; }
.series { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.series.ed { stroke: var(--c-ed); stroke-width: 1.75; stroke-dasharray: 5 4; }
.series.free { stroke: var(--c-free); stroke-width: 2; }
.series.act { stroke: var(--c-act); stroke-width: 2.75; }
.cursor { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.dot-mark { fill: var(--c-act); stroke: var(--chart-bg); stroke-width: 2; }
.dot-mark.ed { fill: var(--c-ed); }
.dot-mark.free { fill: var(--c-free); }
.seed { fill: rgba(255, 255, 255, .04); stroke: none; }
.focus-line { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lab.is-playing .focus-line { stroke: var(--accent); stroke-width: 1.5; }
.focus-dot { stroke: var(--chart-bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.focus-dot.act { fill: var(--c-act); }
.focus-dot.free { fill: var(--c-free); }
.focus-dot.ed { fill: var(--c-ed); }

.tip {
  position: absolute; z-index: 3; pointer-events: none;
  min-width: 156px; padding: 8px 11px 7px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(10, 12, 11, .94);
  box-shadow: 0 12px 30px -10px #000;
  font-size: var(--fs-micro); color: var(--ink-2);
}
.tip b { display: block; margin-bottom: 3px; font: 600 var(--fs-xs)/1.3 var(--mono); color: var(--ink); }
.tip-row { display: flex; align-items: center; gap: 7px; line-height: 1.75; white-space: nowrap; }
.tip-row .sw { width: 12px; }
.tip-v { margin-left: auto; padding-left: 14px; font: 500 var(--fs-micro)/1.75 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }

.compute { margin: 14px 0 0; font: 400 var(--fs-micro)/1 var(--mono); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.compute:empty { display: none; }

.disclose { margin-top: 14px; border-radius: var(--r); }
.disclose > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  list-style: none; cursor: pointer;
  color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: 600;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 3px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.disclose[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.disclose > summary:hover { color: var(--ink); }
.disclose-body { padding: 0 var(--pad) var(--pad); max-width: 82ch; }
.disclose-body p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }

/* ------------------------------------------------------------------ 03 why, and how it works */
/* the analogy, as the film opens on it: video and the Earth system (rows), watched or interacted
   with (columns); three cells are what people know, the fourth is this paper */
.anchor { position: absolute; top: 0; }
.ana { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; margin: 0 0 14px; }
.ana-col { grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0;
  font: 650 var(--fs-h3)/1 var(--sans); letter-spacing: -.02em; }
.ana-col svg { width: 1.05em; height: 1.05em; }
.ana-col-w { grid-column: 2; color: var(--ink-2); }
.ana-col-w svg { fill: currentColor; }
.ana-col-i { grid-column: 3; color: var(--c-act); }
.ana-col-i svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ana-row { grid-column: 1; align-self: center; max-width: 7.5em; margin: 0 6px 0 0; text-align: right;
  font: 650 var(--fs-h3)/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.ana-row-v { grid-row: 2; }
.ana-row-e { grid-row: 3; }
#ana-tl { grid-area: 2 / 2; }
#ana-tr { grid-area: 2 / 3; }
#ana-bl { grid-area: 3 / 2; }
#ana-br { grid-area: 3 / 3; }
.ana-cell { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-2);
  border-radius: var(--r-lg); background: #050706; }
.ana-cell::before { content: ""; position: absolute; inset: 0 0 auto; height: 34%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); }
.ana-walk, .ana-cell img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ana-cell img { object-fit: cover; }
.ana-t { position: absolute; left: 4%; top: 6.5%; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 0; font: 600 var(--fs-md)/1.2 var(--sans); color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.ana-t i { padding: 4px 9px; border-radius: 999px; background: var(--c-act); color: #140b03; text-shadow: none;
  font: 600 var(--fs-micro)/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.ana-k { display: none; }
.ana-l { position: absolute; bottom: 17%; z-index: 2; margin: 0; color: var(--ink-2); font-size: var(--fs-xs); text-shadow: 0 1px 8px #000; }
.ana-l b { color: var(--ink); font-weight: 600; }
.ana-l-w { left: 4%; }
.ana-l-e { left: 54%; }
/* a player's bar: all you can do with a video */
.ana-bar { position: absolute; left: 4%; right: 4%; bottom: 5.5%; z-index: 2; display: flex; align-items: center; gap: 10px;
  color: var(--ink-2); font: 500 var(--fs-micro)/1 var(--mono); text-shadow: 0 1px 6px #000; }
.ana-bar svg { width: 14px; height: 14px; flex: none; fill: var(--ink); }
.ana-tr { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.ana-fl { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--ink); }
.ana-fl::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ana-bar.is-done .ana-fl { width: 100%; }
/* keys: what a world model adds */
.ana-keys { position: absolute; left: 50%; bottom: 5%; z-index: 2; display: flex; gap: 8px; transform: translateX(-50%); }
.ana-keys button { display: grid; place-items: center; width: 46px; height: 38px; padding: 0; border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 9px; background: rgba(8, 10, 9, .72); color: var(--ink); font: 600 20px/1 var(--sans); cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; }
.ana-keys button:hover { border-color: var(--c-act); }
.ana-keys button.is-on { background: var(--c-act); border-color: var(--c-act); color: #140b03; transform: scale(.94); }
#ana-tr:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* the fourth cell: the question, then this paper in its place */
.ana-br { border: 2px dashed var(--line-3); background: transparent; transition: border-color .6s; }
.ana-br::before { opacity: 0; transition: opacity .6s; }
.ana-q, .ana-a { position: absolute; inset: 0; transition: opacity .7s var(--ease); }
.ana-q { display: flex; align-items: center; gap: 6%; padding: 0 8%; }
.ana-qm { margin: 0; color: var(--ink-3); font: italic 400 clamp(64px, 9vw, 150px)/1 var(--serif); }
.ana-qs p { margin: 0; font: 650 var(--fs-h3)/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.ana-qs .ana-qw { margin-bottom: 4px; color: var(--c-act); font: italic 400 calc(var(--fs-h3) * 1.5)/1 var(--serif); letter-spacing: 0; }
.ana-a { opacity: 0; }
.ana-br.is-answered { border: 2px solid var(--c-act); box-shadow: 0 0 46px -10px rgba(242, 153, 74, .35); }
.ana-br.is-answered::before { opacity: 1; }
.ana-br.is-answered .ana-q { opacity: 0; }
.ana-br.is-answered .ana-a { opacity: 1; }
.ana-try { position: absolute; right: 4%; bottom: 6%; z-index: 2; font-size: var(--fs-xs); font-weight: 600; }
.ana-try::after { content: " \2191"; }
/* the cells come in once, in the film's order (analogy.js adds .is-in) */
.ana-cell { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .6s; }
.ana-cell.is-in { opacity: 1; transform: none; }
.sub-h { margin: clamp(56px, 7vw, 96px) 0 0; font-size: calc(var(--fs-h2) * .62); font-weight: 650; line-height: 1.1; letter-spacing: -.03em; }
.sub-h em { color: var(--accent); font-size: 1.1em; }
.sub-lede { margin: 14px 0 clamp(26px, 3.4vw, 40px); max-width: 60ch; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.6; }

.vs { padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.vs-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 18px; }
.vs-q { margin: 0; font: 500 var(--fs-md)/1.3 var(--sans); color: var(--ink); }
.vs-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-act {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font: 600 var(--fs-sm)/1 var(--sans);
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.vs-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vs-act:hover { border-color: var(--line-3); transform: translateY(-1px); }
.vs-act.is-on { background: var(--c-act); border-color: var(--c-act); color: #140b03; box-shadow: 0 8px 22px -10px var(--c-act); }
.vs[data-state="loading"] .vs-acts { opacity: .45; pointer-events: none; }
.vs[data-state="failed"] { display: none; }
.vs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vs-card { position: relative; padding: 20px 20px 16px; border-radius: var(--r); background: var(--chart-bg); }
.vs-world { border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(162, 207, 110, .08), 0 24px 60px -30px rgba(162, 207, 110, .25); }
.vs-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 12px; }
.vs-h h3 { font: 600 var(--fs-md)/1.2 var(--sans); color: var(--ink); }
.vs-h h3 span {
  margin-left: .45rem; padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  vertical-align: 2px;
}
.eq { margin: 0; font: 400 var(--fs-sm)/1.3 var(--mono); color: var(--ink-2); white-space: nowrap; }
.eq b { color: var(--c-act); font-weight: 600; }
.dg { display: block; width: 100%; height: auto; margin: 2px 0 12px; overflow: visible; }
.dg text { font: 500 12px var(--sans); fill: var(--ink-2); }
.dg .dg-sym { font: italic 400 17px var(--serif); fill: var(--ink); text-anchor: middle; }
.dg-dot { fill: var(--bg-3); stroke: var(--line-2); }
.dg-line { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.dg-head { fill: var(--ink-3); }
.dg-head-a { fill: var(--c-act); }
.dg-box { fill: var(--bg-2); stroke: var(--line-3); stroke-width: 1.2; }
.dg .dg-f { font: italic 400 28px var(--serif); fill: var(--ink); text-anchor: middle; }
.dg-out { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.dg .dg-yhat { font-size: 19px; }
.dg-tgt { fill: transparent; }
/* passive: the action has nowhere to go */
.dg-a-no .dg-dot { fill: transparent; stroke: var(--warn); stroke-dasharray: 3 2.5; }
.dg-a-no .dg-sym, .dg-a-no .dg-lbl { fill: var(--ink-3); }
.dg-a-no .dg-line { stroke: var(--ink-4); stroke-dasharray: 4 3; }
.dg-bar { stroke: var(--warn); stroke-width: 3; stroke-linecap: round; }
.dg-ban circle { fill: rgba(230, 177, 105, .12); stroke: var(--warn); stroke-width: 1.6; }
.dg-ban path { stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; }
.dg .dg-why { font: 600 12px var(--sans); fill: var(--warn); }
.dg-a-no.is-hit .dg-bar, .dg-a-no.is-hit .dg-ban { animation: dg-no .6s ease; }
@keyframes dg-no { 30% { opacity: .35; } 60% { opacity: 1; filter: drop-shadow(0 0 6px rgba(230, 177, 105, .9)); } }
/* world model: the action is an input like the others */
.dg-a-yes .dg-dot { fill: var(--c-act); stroke: var(--c-act); }
.dg-a-yes .dg-sym { fill: #140b03; }
.dg-a-yes .dg-lbl { fill: var(--ink); font-weight: 600; }
.dg-a-yes .dg-line { stroke: var(--c-act); stroke-width: 2.2; stroke-dasharray: 6 4; animation: dg-flow 1.2s linear infinite; }
@keyframes dg-flow { to { stroke-dashoffset: -20; } }
.dg-a-yes.is-hit .dg-line { animation: dg-flow .35s linear infinite; filter: drop-shadow(0 0 4px rgba(242, 153, 74, .8)); }
.vs-world.is-answering .dg-box { stroke: var(--c-act); }

.vs-chart { display: block; width: 100%; height: auto; overflow: visible; }
.vs-grid-l { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vs-lbl { font: 400 10px var(--mono); fill: var(--ink-3); }
.vs-free { fill: none; stroke: var(--c-free); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.vs-act-p { fill: none; stroke: var(--c-act); stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
.vs-ask-l { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.vs-ask-l.is-on { stroke: var(--c-act); }
.vs-q circle { fill: var(--chart-bg); stroke: var(--warn); stroke-width: 1.6; }
.vs-q path { stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; }
.vs-q text { font: 600 12px var(--sans); fill: var(--warn); }
.vs-end circle { fill: var(--c-act); }
.vs-end text { font: 600 12px var(--mono); fill: var(--c-act); }
.vs-say { min-height: 3.1em; margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.vs-say b { color: var(--ink); }
.vs-passive.is-refused .vs-say b { color: var(--warn); }
.vs-passive.is-refused { animation: card-no .5s ease; }
@keyframes card-no { 30% { box-shadow: 0 0 0 3px rgba(230, 177, 105, .22); } }
.vs-n { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.vs-token {
  position: fixed; left: 0; top: 0; z-index: 50;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-act); color: #140b03;
  box-shadow: 0 6px 16px -6px var(--c-act);
  pointer-events: none;
}
.vs-token svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ 02 the landscape */
.tw-view {
  position: relative;
  height: clamp(460px, 54vw, 700px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: radial-gradient(60% 55% at 50% 52%, #06100b 0%, #000 80%);
  box-shadow: var(--sh-card);
}
.tw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; touch-action: pan-y; cursor: crosshair; }

/* map labels, projected from the board (twin-geo.js) */
.tw-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.twl {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 2px #000;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.twl.is-on { opacity: 1; }
.twl-town { display: flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--sans); color: #f3f1e8; }
.twl-town::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .7); }
.twl-town.is-big { font-size: 12.5px; font-weight: 600; }
.twl-river { font: italic 400 15px/1 var(--serif); color: #9fd2f2; letter-spacing: .02em; }
.twl-country { font: 600 11px/1 var(--sans); letter-spacing: .32em; color: rgba(255, 255, 255, .5); }
.twl-block { font: 500 var(--fs-micro)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.tw-hud { position: absolute; left: var(--pad); top: clamp(14px, 1.8vw, 22px); pointer-events: none; }
.tw-where { display: flex; align-items: center; gap: 12px; }
.tw-loc { width: 58px; height: 58px; }
.tw-place { display: flex; flex-direction: column; gap: 2px; margin: 0; text-shadow: 0 1px 8px #000; }
.tw-place b { font: 600 var(--fs-sm)/1.2 var(--sans); }
.tw-place span { font: 500 var(--fs-micro)/1.3 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.tw-year { margin: 12px 0 0; font: 500 clamp(34px, 1.5rem + 2vw, 58px)/1 var(--mono); letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px #000; transition: opacity .5s ease; }
.tw-carbon { position: absolute; right: var(--pad); top: clamp(14px, 1.8vw, 22px); width: min(290px, 42%); text-align: right; pointer-events: none; text-shadow: 0 1px 10px #000; transition: opacity .5s ease; }
.tw-c-l { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.tw-c-n { margin: .2rem 0 0; font: 500 clamp(20px, .9rem + 1.1vw, 30px)/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tw-c-d { margin: .4rem 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
.tw-c-d b { font: 600 var(--fs-sm)/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.tw-c-d[data-sign="neg"] b { color: var(--c-act); }
.tw-c-d[data-sign="pos"] b { color: var(--accent); }
.tw-c-d span { display: block; margin-top: .1rem; font-size: var(--fs-micro); color: var(--ink-3); }
.tw-c-chart { display: block; width: 100%; height: 48px; margin-top: .55rem; overflow: visible; }
.tw-c-zero { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tw-c-area { fill: rgba(242, 153, 74, .26); stroke: var(--c-act); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tw-c-head { stroke: var(--ink); stroke-width: 1; opacity: .65; vector-effect: non-scaling-stroke; }
.tw-status {
  position: absolute; left: var(--pad); bottom: 14px;
  display: flex; align-items: center; gap: .55rem;
  max-width: calc(100% - 300px);
  margin: 0;
  font: 500 var(--fs-micro)/1.4 var(--mono);
  color: var(--ink-2);
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
}
.tw-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.tw-status[data-busy="1"]::before { background: #f2c14a; box-shadow: 0 0 9px #f2c14a; animation: tw-pulse 1s ease-in-out infinite; }
@keyframes tw-pulse { 50% { opacity: .3; } }
.tw-views {
  position: absolute; right: var(--pad); bottom: 12px;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tw-views button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 var(--fs-xs)/1 var(--sans); }
.tw-views button.is-on { background: rgba(255, 255, 255, .14); color: var(--ink); }
.tw-legend { display: inline-flex; align-items: center; gap: .45rem; padding: 0 8px; font-size: var(--fs-micro); color: var(--ink-2); white-space: nowrap; }
.tw-legend i { width: 44px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #f2994a, #56635a 50%, #9ce07a); }
.tw-tip {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-micro); color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
}
.tw-tip b { font: 600 var(--fs-xs)/1.35 var(--mono); color: var(--ink); }
.tw-tip i { font-style: normal; color: var(--ink-3); }

.tw-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.tw-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-tool {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 9px 15px 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--ink);
  font: 600 var(--fs-sm)/1 var(--sans);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.tw-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tw-tool:hover { border-color: var(--tool, var(--ink)); }
.tw-tool.is-on { background: var(--tool, var(--ink)); border-color: var(--tool, var(--ink)); color: #0a0c0b; box-shadow: 0 8px 24px -10px var(--tool, var(--ink)); }
.tw-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tw-brush { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.tw-brush button { padding: 6px 11px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 var(--fs-xs)/1 var(--sans); }
.tw-brush button.is-on { background: rgba(255, 255, 255, .14); color: var(--ink); }
.tw-when { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: var(--fs-sm); white-space: nowrap; }
.tw-when output { font: 500 var(--fs-sm)/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.tw-when input { width: 150px; }
.tw-hint { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.tw-time { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 16px; margin-top: 16px; }
.tw-play {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--glow);
}
.tw-play svg { width: 18px; height: 18px; fill: currentColor; }
.tw-play .i-pause, .tw-play.is-playing .i-play { display: none; }
.tw-play.is-playing .i-pause { display: inline; }
.tw-span { display: flex; justify-content: space-between; font: 400 var(--fs-micro)/1 var(--mono); color: var(--ink-3); }
.tw-span i { font-style: normal; }
.twin[data-state="failed"] .tw-bar, .twin[data-state="failed"] .tw-time { display: none; }

/* ------------------------------------------------------------------ 03 how: the contributions */
.contribs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.contrib { display: flex; flex-direction: column; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.cb-fig, .cb-map { width: 100%; margin: 0 0 18px; border-radius: var(--r); background: var(--chart-bg); border: 1px solid var(--line); }
.cb-fig { height: auto; aspect-ratio: 300 / 132; padding: 0; overflow: visible; }
.cb-n { margin: 0 0 8px; color: var(--accent); font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.contrib h3 { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.contrib p:last-child { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
/* 1: each year's rise is an action */
.cb-eq { font: italic 400 19px var(--serif); fill: var(--ink); }
.cb-sub { font-size: 12px; }
.cb-ax { stroke: var(--line-2); stroke-width: 1; }
.cb-run { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; }
.cb-step { fill: none; stroke: var(--c-act); stroke-width: 2.4; stroke-linecap: round; }
.cb-tip { fill: none; stroke: var(--c-act); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-v { fill: var(--c-act); font: 600 10.5px var(--mono); }
.cb-cap { fill: var(--ink-3); font: 500 10px var(--sans); }
/* 2: the edit, the masked rest, all inferred */
.cb-head { fill: var(--ink-2); font: 600 10.5px var(--sans); }
.cb-rows text { fill: var(--ink-3); font: 500 10px var(--sans); }
.cb-edit { fill: var(--c-act); }
.cb-mask rect { fill: url(#cb-hatch); stroke: var(--line-2); }
.cb-hl { stroke: rgba(255, 255, 255, .22); stroke-width: 1.4; }
.cb-pred rect { fill: rgba(162, 207, 110, .75); }
.cb-arrow { stroke: var(--ink-3); stroke-width: 1.6; }
.cb-arrow-h { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; }
.cb-tag { font: 600 9px var(--sans); letter-spacing: .04em; }
.cb-tag-e { fill: #140b03; }
.cb-tag-m { fill: var(--ink); paint-order: stroke; stroke: var(--chart-bg); stroke-width: 3px; }
.cb-tag-p { fill: #0a110c; }
/* 3: the six regions on a dotted Earth */
.cb-map { position: relative; aspect-ratio: 300 / 132; overflow: hidden; display: grid; place-items: center; }
.cb-world { position: relative; height: 92%; aspect-ratio: 2 / 1; }
.cb-world img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.rg { position: absolute; min-width: 7px; min-height: 7px; border: 1.5px solid var(--accent); border-radius: 3px; background: rgba(162, 207, 110, .25); box-shadow: 0 0 10px rgba(162, 207, 110, .6); }

.fig { margin: 14px auto 0; max-width: 900px; }
.fig-wide { max-width: 100%; }
/* the paper's figures are drawn on white: they sit on a plate, dimmed a touch for the black page */
.fig img { width: 100%; padding: clamp(10px, 1.4vw, 20px); background: #fff; border-radius: var(--r-lg); filter: brightness(.94); }
figcaption { margin-top: 12px; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.6; }

/* ------------------------------------------------------------------ 04 results */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.stat { padding: 22px; border-radius: var(--r-lg); }
.stat-n { margin: 0; font: 600 var(--fs-num)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat:first-child .stat-n, .stat:nth-child(2) .stat-n { color: var(--accent); }
.stat-l { margin: 12px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.4; }
.stat-l span { display: block; font-weight: 400; color: var(--ink-3); }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }
.tbl { width: 100%; min-width: 640px; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.tbl caption { caption-side: bottom; padding: 12px 18px 14px; text-align: left; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.55; }
.tbl th, .tbl td { padding: 12px clamp(10px, 1.4vw, 18px); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl thead th { color: var(--ink-3); font: 600 var(--fs-micro)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: bottom; }
.tbl thead tr:first-child th { text-align: center; }
.tbl thead tr:first-child th:first-child { text-align: left; }
.tbl .sub th { padding-top: 4px; border-bottom-color: var(--line-2); }
.tbl tbody th[scope="row"] { text-align: left; color: var(--ink); font-weight: 600; }
.tbl tbody td { font-family: var(--mono); color: var(--ink-2); }
.tbl tbody td b { color: var(--ink); font-weight: 600; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.hi { background: var(--accent-soft); }
.tbl tbody tr.hi th[scope="row"], .tbl tbody tr.hi td b { color: var(--accent); }
.tbl thead tr:first-child th:nth-child(3), .tbl .sub th:nth-child(5), .tbl tbody td:nth-child(5) { border-left: 1px solid var(--line); }

/* ------------------------------------------------------------------ 05 paper */
.cite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px 40px; align-items: start; }
.cite-authors { margin: 0; color: var(--ink); font-size: var(--fs-md); line-height: 1.6; }
.cite-aff { margin: 10px 0 0; color: var(--ink-3); font-size: var(--fs-sm); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.links .btn { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }
.bib-card { border-radius: var(--r-lg); overflow: hidden; }
.bib-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.bib { margin: 0; padding: 18px; overflow-x: auto; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; tab-size: 2; }
.bib code { color: inherit; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot .fine { margin: 0; color: var(--ink-4); }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1040px) {
  .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 14px; }
}
@media (max-width: 860px) {
  .hero-grad {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%),
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .92) 30%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, 0) 86%);
  }
  .hero-inner { justify-content: flex-end; }
  .chart-pair, .vs-grid, .cite { grid-template-columns: minmax(0, 1fr); }
  .act-row { grid-template-columns: minmax(0, 1fr); }
  .contribs, .whatif { grid-template-columns: minmax(0, 1fr); }
  .tw-status { max-width: 52%; }
}
@media (max-width: 760px) {
  :root { --nav-h: 54px; }
  .nav-links { display: none; }
  /* the analogy stacks, row by row; each cell says which column it is from */
  .ana { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ana-col, .ana-row { display: none; }
  #ana-tl, #ana-tr, #ana-bl, #ana-br { grid-area: auto; }
  .ana-k { display: inline; color: var(--ink-2); font: 500 var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
  #ana-tr .ana-k, #ana-br .ana-k { color: var(--c-act); }
}
@media (max-width: 560px) {
  .actions { gap: 8px; padding: 16px 16px 12px; }
  .scn { gap: .35rem; padding: .65rem .2rem .6rem; border-radius: 12px; font-size: 12px; }
  .scn svg { width: 20px; height: 20px; }
  .lab-bar .btn { margin-left: 0; }
  .when, .goal { grid-template-columns: minmax(0, 1fr); }
  .when-span { grid-column: 1; }
  .chart .lbl { font-size: 14px; }
  .where-txt { display: none; }
  .loc-wrap { width: 50px; height: 50px; }
  .stage.has-gl { height: 340px; }
  .stage-key { display: none; }
  .ptag { gap: .4rem; font-size: 11px; }
  .ptag-n { display: none; }
  .ptag .sw { width: 12px; }
  .pdim-t span { display: none; }
  .eq { white-space: normal; }
  .dg text { font-size: 15px; }
  .dg .dg-why { font-size: 14px; }
  .wf-lab { font-size: 16px; }
  .wf-yr { font-size: 14px; }
  .tip { min-width: 0; padding: 6px 8px 5px; }
  .tip-l { display: none; }
  .tip-v { padding-left: 8px; }
  .tw-view { height: 500px; }
  /* the readouts stack in two short rows above the board */
  .tw-hud { right: 16px; display: flex; align-items: center; justify-content: space-between; }
  .tw-year { margin: 0; font-size: 30px; }
  .tw-carbon { left: 16px; right: 16px; top: 76px; width: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-align: left; }
  .tw-c-l, .tw-c-chart, .tw-c-d span { display: none; }
  .tw-c-n { margin: 0; font-size: 17px; }
  .tw-c-d { margin: 0; }
  .tw-loc { width: 46px; height: 46px; }
  .tw-tool { padding: 8px 12px 8px 9px; font-size: var(--fs-xs); }
  .tw-when input { width: 120px; }
  .tw-legend { display: none !important; }
  .twl-river { font-size: 13px; }
  .twl-river.is-minor { display: none; }
  .twl-town { font-size: 10.5px; }
  .twin:not([data-view="map"]) .twl-country { display: none; }
  /* the map from above needs the whole frame; the readouts wait for the board */
  .twin[data-view="map"] .tw-carbon, .twin[data-view="map"] .tw-year { opacity: 0; }
  .tw-status { bottom: 54px; max-width: calc(100% - 32px); }
  .tbl th, .tbl td { padding-inline: 9px; }
  .hero-by { font-size: 11px; }
}
@media (max-height: 700px) and (min-width: 861px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero-conf { margin-top: 16px; padding: 11px 18px 12px; }
  .hc-list { gap: 5px; }
}
/* short laptop screens: the headline scales with the height, so the conference box stays on the first screen */
@media (max-height: 800px) and (min-width: 861px) {
  .hero h1 { max-width: 9em; font-size: min(var(--fs-h1), 8.6vh); }
}
@media (min-width: 1700px) {
  :root { --wrap: 1320px; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .rise { opacity: 1; transform: none; }
  .hero-scroll span, .st-sway, .loc-pin::after { animation: none; }
  .wf-br { transition: none; }
  .wf-ring, .dg-a-yes .dg-line, .dg-a-no.is-hit .dg-bar, .dg-a-no.is-hit .dg-ban, .vs-passive.is-refused { animation: none; }
  .lab[data-state="loading"]::before, .lab[data-state="busy"]::before { background-size: 100% 100%; opacity: .7; }
}
