:root {
  --ink: #17231e;
  --ink-soft: #26382f;
  --paper: #f7f5ef;
  --white: #ffffff;
  --mist: #e9efeb;
  --line: #c7d0c9;
  --muted: #66736c;
  --green: #1f6b52;
  --green-bright: #6fb27f;
  --teal: #278f8a;
  --gold: #e1b84a;
  --orange: #ea8c38;
  --red: #d85b55;
  --burgundy: #8f332e;
  --unavailable: #9ba19d;
  --content: min(1160px, calc(100vw - 48px));
  --reading: min(720px, calc(100vw - 48px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

/* Actual-terrain fire spread comparison */
.terrain-section {
  position: relative;
  padding: 104px 0 112px;
  overflow: hidden;
  color: var(--white);
  background: #101914;
}
.terrain-heading,
.terrain-context {
  width: var(--content);
  margin-inline: auto;
}
.terrain-heading { margin-bottom: 42px; }
.terrain-heading h2 {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}
.terrain-heading > p:last-child {
  max-width: 810px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 18px;
}
.terrain-stage {
  position: relative;
  width: 100%;
  height: clamp(620px, 76svh, 880px);
  min-height: 620px;
  overflow: hidden;
  background: #101914;
  border-block: 1px solid rgba(255,255,255,.15);
}
#terrain-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#terrain-canvas:active { cursor: grabbing; }
.terrain-loading {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  color: rgba(255,255,255,.8);
  background: rgba(16,25,20,.8);
  font-size: 13px;
}
.terrain-loading[hidden] { display: none; }
.terrain-toolbar {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: max(24px, calc((100vw - 1160px) / 2));
  width: min(340px, calc(100vw - 48px));
  padding: 18px;
  background: rgba(16,25,20,.88);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
}
.terrain-toolbar > label,
.terrain-playback label,
.terrain-sliders label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: rgba(255,255,255,.67);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.terrain-toolbar select {
  width: 100%;
  min-height: 40px;
  margin-bottom: 18px;
  padding: 7px 34px 7px 10px;
  color: var(--white);
  background: #26382f;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 3px;
}
.terrain-playback {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  align-items: end;
  padding-block: 0 17px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.terrain-playback button {
  grid-row: 1 / span 2;
  align-self: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #10231d;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.terrain-playback label { margin: 0; }
.terrain-playback output {
  color: rgba(255,255,255,.92);
  text-align: right;
  text-transform: none;
}
.terrain-playback input { width: 100%; }
.terrain-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.terrain-toggles label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
}
.terrain-toggles input { accent-color: var(--gold); }
.terrain-sliders {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}
.terrain-sliders input { width: 100%; margin-bottom: 8px; accent-color: var(--gold); }
.terrain-sliders output { color: var(--white); }
.terrain-compass {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: max(24px, calc((100vw - 1160px) / 2));
  display: grid;
  justify-items: center;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 800;
}
.terrain-compass i {
  display: block;
  width: 1px;
  height: 46px;
  margin-top: 4px;
  background: linear-gradient(var(--gold) 0 65%, rgba(255,255,255,.2) 65%);
}
.terrain-legend {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  max-width: 600px;
  padding: 10px 12px;
  color: rgba(255,255,255,.8);
  background: rgba(16,25,20,.76);
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 11px;
}
.terrain-legend span { display: flex; align-items: center; gap: 7px; }
.terrain-legend i { display: inline-block; width: 22px; height: 3px; }
.legend-growth { background: #ff6d3a; }
.legend-perimeter { background: #e7a042; }
.terrain-readout {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.terrain-color-scales {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  padding: 26px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.terrain-color-scale { min-width: 0; }
.color-scale-heading,
.color-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.color-scale-heading { align-items: baseline; }
.color-scale-heading strong {
  font-size: 12px;
  text-transform: uppercase;
}
.color-scale-heading span,
.color-scale-labels {
  color: rgba(255,255,255,.5);
  font-size: 10px;
}
.danger-gradient {
  display: block;
  width: 100%;
  height: 12px;
  margin: 10px 0 7px;
  border: 1px solid rgba(255,255,255,.18);
}
.danger-gradient {
  background: linear-gradient(90deg, #456d5c, #65a670, #e1b84a, #ea8c38, #d85b55, #8f332e);
}
.terrain-readout > div {
  min-width: 0;
  padding: 22px 16px 20px;
  border-left: 1px solid rgba(255,255,255,.13);
}
.terrain-readout > div:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.terrain-readout span {
  display: block;
  min-height: 34px;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: uppercase;
}
.terrain-readout strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.1;
}
.terrain-context {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  padding-top: 34px;
}
.terrain-context p { margin: 0; color: rgba(255,255,255,.78); }
.terrain-context-copy { font-size: 19px; }
.terrain-context .terrain-method { color: rgba(255,255,255,.5); font-size: 12px; }

@media (max-width: 900px) {
  .terrain-stage { height: 760px; }
  .terrain-readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .terrain-readout > div:nth-child(4) { border-left: 1px solid rgba(255,255,255,.13); }
  .terrain-context { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 620px) {
  .terrain-section { padding: 78px 0 84px; }
  .terrain-heading { margin-bottom: 28px; }
  .terrain-heading h2 { font-size: 42px; }
  .terrain-heading > p:last-child { font-size: 16px; }
  .terrain-stage {
    height: 790px;
    min-height: 790px;
    display: grid;
    grid-template-rows: 430px 360px;
    overflow: hidden;
  }
  #terrain-canvas {
    grid-row: 1;
    height: 430px;
  }
  .terrain-toolbar {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100%;
    padding: 16px 24px 20px;
    background: #17231e;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.17);
    border-radius: 0;
    box-shadow: none;
  }
  .terrain-compass { top: 18px; right: 18px; }
  .terrain-legend {
    top: 352px;
    right: 12px;
    bottom: auto;
    left: 12px;
    justify-content: center;
    gap: 7px 12px;
  }
  .terrain-loading { top: 210px; }
  .terrain-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terrain-color-scales { grid-template-columns: 1fr; gap: 22px; }
  .terrain-readout > div { padding: 18px 12px; }
  .terrain-readout span { min-height: 28px; }
  .terrain-readout strong { font-size: 22px; }
  .terrain-context { padding-top: 26px; }
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select { color: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--white);
  background: rgba(23, 35, 30, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: transform .3s ease, background .3s ease;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.brand-context { font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,.68); }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--white); }
.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  transform: scale(1.02);
  animation: hero-settle 1.8s cubic-bezier(.2,.8,.2,1) both;
}
.hero-fire-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-fire-perimeter {
  fill: rgba(234, 140, 56, .18);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 20, 15, .48);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: var(--content);
  margin: 0 auto;
  padding: 118px 0 84px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow.dark { color: var(--burgundy); }
.hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8.4vw, 122px);
  font-weight: 500;
  line-height: .91;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-deck {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}
.hero-period {
  margin: 24px 0 0;
  color: var(--gold);
  font-weight: 750;
}
.hero-interaction {
  margin: 10px 0 0;
  color: rgba(255,255,255,.64);
  font-size: 11px;
  letter-spacing: .04em;
}
.hero-interaction.is-error { color: #f0a18b; }
.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 4;
  width: min(390px, 42vw);
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.band-light, .band-paper, .band-ink, .band-green { width: 100%; }
.band-light { background: var(--white); }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: var(--white); }
.band-green { background: var(--ink-soft); color: var(--white); }

.opening { padding: 100px 0 92px; }
.story-column { width: var(--reading); margin: 0 auto; }
.story-column h2, .section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}
.lede {
  margin: 28px 0 0;
  color: #344139;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.52;
}
.fact-line {
  width: var(--content);
  margin: 74px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-line div { padding: 28px 22px 30px; border-right: 1px solid var(--line); }
.fact-line div:first-child { padding-left: 0; }
.fact-line div:last-child { border-right: 0; }
.fact-line strong {
  display: block;
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 45px;
  line-height: 1;
}
.fact-line span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.section-heading { width: var(--reading); margin: 0 auto 58px; }
.section-heading.dark { color: var(--ink); }
.section-heading > p:last-child {
  margin: 24px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 19px;
  line-height: 1.62;
}
.section-heading.dark > p:last-child { color: #4d5a53; }

.map-story { padding: 106px 0 112px; }
.map-layout {
  width: var(--content);
  margin: 0 auto;
}
.map-sync-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}
.map-zoom-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  cursor: pointer;
}
.map-layer-toggle input { accent-color: var(--gold); }
.map-sync-controls button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 3px;
  background: transparent;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.map-sync-controls button:hover,
.map-sync-controls button:focus-visible { border-color: var(--gold); color: var(--gold); }
.map-sync-controls button:disabled { opacity: .3; cursor: default; }
.map-sync-controls input[type="range"] {
  width: min(240px, 34vw);
  margin: 0 4px;
  accent-color: var(--gold);
  cursor: pointer;
}
.map-sync-controls output {
  min-width: 38px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  text-align: center;
}
.map-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.map-panel { min-width: 0; }
.map-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 10px;
  color: var(--white);
  font-size: 13px;
}
.map-panel-heading strong { font-size: 14px; }
.map-panel-heading span { color: rgba(255,255,255,.58); text-align: right; }
.map-panel .map-stage {
  min-height: 0;
}
.map-stage {
  position: relative;
  aspect-ratio: 18 / 13;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--white);
}
#fire-map, #outlook-map {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}
#fire-map.is-panning, #outlook-map.is-panning { cursor: grabbing; }
.map-basemap { pointer-events: none; }
.fireoutlook-tile {
  pointer-events: none;
  image-rendering: auto;
}
.outlook-perimeter-layer.is-hidden { display: none; }
.outlook-fire-perimeter,
.outlook-fire-location {
  fill: none;
  stroke: rgba(255,255,255,.78);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  paint-order: stroke;
  filter: drop-shadow(0 0 .8px rgba(10,18,14,.85));
  cursor: pointer;
  transition: opacity .25s ease;
}
.outlook-fire-location { fill: rgba(20,28,24,.18); stroke-width: 2; }
.outlook-fire-perimeter.hidden,
.outlook-fire-location.hidden { opacity: 0; pointer-events: none; }
.outlook-fire-perimeter:hover,
.outlook-fire-perimeter:focus,
.outlook-fire-location:hover,
.outlook-fire-location:focus {
  outline: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 1.2px rgba(10,18,14,1));
}
.fire-perimeter,
.fire-location {
  stroke-width: 2.4;
  fill-opacity: .6;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), stroke-width .2s ease;
}
.fire-location { stroke-width: 2; }
.fire-perimeter.hidden,
.fire-location.hidden { opacity: 0; transform: scale(.65); pointer-events: none; }
.fire-perimeter:hover,
.fire-perimeter:focus,
.fire-location:hover,
.fire-location:focus { stroke-width: 3.5; fill-opacity: .92; outline: none; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: 100%;
  margin-top: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(23,35,30,.13);
  border-radius: 3px;
  font-size: 11px;
  color: #39483f;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 2px; }
.map-legend .perimeter-unavailable-key i {
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  transform: rotate(45deg) scale(.72);
}
.timeline-controls {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px 8px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 5px;
  background: rgba(23,35,30,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
}
.timeline-controls .range-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 10px;
  color: rgba(255,255,255,.78);
}
.timeline-controls > input[type="range"] {
  min-width: 0;
}
.timeline-controls .slider-actions {
  margin: 0;
  gap: 4px;
  white-space: nowrap;
}
.timeline-controls .slider-actions button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 10px;
}
.basemap-credit {
  position: absolute;
  right: 8px;
  bottom: 5px;
  margin: 0;
  color: rgba(23,35,30,.62);
  font-size: 8px;
  line-height: 1;
  pointer-events: none;
}
.map-tooltip, .plot-tooltip {
  position: absolute;
  z-index: 10;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}
.map-tooltip strong, .plot-tooltip strong { display: block; font-size: 14px; }
.date-rail {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  column-gap: 30px;
  align-items: end;
  margin-top: 28px;
  border-top: 0;
  padding-top: 0;
}
.date-display { margin: 0; color: var(--gold); font-family: Georgia, serif; font-size: 35px; }
.date-stat { margin: 0; }
.date-stat strong { display: block; font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.date-stat span { color: rgba(255,255,255,.58); font-size: 12px; }
.date-rail .range-label,
.date-rail > input,
.date-rail .slider-actions,
.date-rail .micro-note { grid-column: 1 / -1; }
.range-label, .trajectory-control label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 8px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: ew-resize;
}
.slider-actions { display: flex; gap: 8px; margin-top: 18px; }
.slider-actions button, .layer-button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  color: var(--white);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.slider-actions button:hover, .slider-actions button:focus-visible { border-color: var(--gold); }
.slider-actions button:disabled { opacity: .35; cursor: default; }
.micro-note { margin: 24px 0 0; color: rgba(255,255,255,.45); font-size: 10px; line-height: 1.5; }

.imagery-story { padding: 106px 0 112px; }
.signal-controls {
  width: var(--content);
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: auto 1fr minmax(300px, .8fr);
  gap: 18px;
  align-items: center;
}
.compare-toolbar,
.signal-date-control,
.signal-zoom-controls { display: flex; align-items: center; gap: 6px; }
.signal-date-control { justify-content: center; }
.layer-button { color: var(--ink); border-color: var(--line); background: var(--white); }
.layer-button.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.signal-date-button,
.signal-zoom-controls button {
  min-width: 42px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.signal-date-button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.signal-zoom-controls input { min-width: 0; }
.signal-zoom-controls output { min-width: 38px; color: var(--muted); font-size: 12px; text-align: center; }
.signal-zoom-controls button { min-width: 34px; width: 34px; padding: 0; font-size: 18px; }
.signal-date-button:focus-visible,
.signal-zoom-controls button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.signal-zoom-controls button:disabled { opacity: .35; cursor: default; }
.image-compare {
  position: relative;
  width: var(--content);
  aspect-ratio: 18 / 13;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
#signal-compare-map { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
#signal-compare-map.is-panning { cursor: grabbing; }
.street-map-tiles { opacity: .92; }
.street-map-tile { pointer-events: none; }
.signal-map-tile { pointer-events: none; image-rendering: auto; }
.compare-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 10px;
  background: transparent;
  transform: translateX(-5px);
  cursor: ew-resize;
}
.compare-divider::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  background: var(--white);
  color: var(--ink);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 22px rgba(0,0,0,.25);
   pointer-events: none;
}
.signal-split-line {
  stroke: var(--white);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.compare-label {
  position: absolute;
  top: 14px;
  padding: 5px 9px;
  background: rgba(23,35,30,.78);
  color: var(--white);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  pointer-events: none;
}
.compare-label.left { left: 14px; }
.compare-label.right { right: 14px; }
.street-map-attribution {
  position: absolute;
  z-index: 3;
  left: 8px;
  bottom: 7px;
  padding: 2px 4px;
  background: rgba(255,255,255,.82);
  color: #40504a;
  font-size: 8px;
  line-height: 1.2;
  text-decoration: none;
}
.street-map-attribution:hover,
.street-map-attribution:focus-visible { text-decoration: underline; }
.compare-slider-on-figure {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 28px;
  width: calc(100% - 56px);
  height: 42px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.compare-slider-label {
  position: absolute;
  z-index: 3;
  top: calc(50% + 25px);
  left: 50%;
  margin: 0;
  padding: 4px 7px;
  transform: translateX(-50%);
  background: rgba(23,35,30,.78);
  color: var(--white);
  font-size: 10px;
  pointer-events: none;
}
.compare-slider-label output { margin-left: 4px; font-weight: 750; }
.compare-opacity-control {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  align-items: center;
  min-width: 190px;
  padding: 8px 10px;
  background: rgba(23,35,30,.82);
  color: var(--white);
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.2;
}
.compare-opacity-control span { font-weight: 700; }
.compare-opacity-control output { justify-self: end; font-weight: 750; }
.compare-opacity-control input {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2px 0 0;
  accent-color: var(--gold);
}
.signal-legends {
  width: var(--content);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}
.signal-index-legend,
.signal-outlook-legend {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--muted);
  font-size: 10px;
}
.signal-index-scale { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.signal-index-scale i { display: block; height: 9px; border-radius: 2px; }
.signal-outlook-legend { display: flex; flex-wrap: wrap; gap: 6px 11px; }
.signal-outlook-legend span { display: inline-flex; align-items: center; gap: 5px; }
.signal-outlook-legend i { width: 9px; height: 9px; border-radius: 2px; }
.image-caption { width: var(--content); margin: 12px auto 0; color: var(--muted); font-size: 11px; }

.conditions { padding: 106px 0 118px; }
.conditions-layout {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 58px;
  align-items: start;
}
.weather-plot-wrap { position: relative; min-width: 0; }
#weather-plot { width: 100%; aspect-ratio: 1.25; display: block; }
.weather-size-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.weather-size-legend strong { color: var(--ink); font-size: 11px; }
.weather-size-legend span { display: inline-flex; align-items: center; gap: 7px; }
.weather-size-legend i {
  display: inline-block;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: rgba(39,143,138,.18);
}
.weather-size-legend .size-10k { width: 10px; height: 10px; }
.weather-size-legend .size-100k { width: 29px; height: 29px; }
.weather-size-legend .size-350k { width: 54px; height: 54px; }
.chart-frame { fill: none; stroke: var(--line); }
.chart-grid { stroke: #dce3de; stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; }
.axis-title { fill: var(--ink); font-size: 12px; font-weight: 700; }
.weather-point { cursor: pointer; stroke: var(--white); stroke-width: 1.5; transition: r .2s ease, opacity .2s ease; }
.weather-point.muted { opacity: .28; }
.weather-point.selected { stroke: var(--ink); stroke-width: 3; }
.incident-inspector {
  position: sticky;
  top: 98px;
  padding-top: 0;
  border-top: 0;
}
.ledger-controls label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
select {
  width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.inspector-title { margin-top: 0; }
.inspector-title p { margin: 0 0 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.inspector-title h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 31px; line-height: 1.05; }
.category-label { display: inline-block; padding: 3px 8px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; font-weight: 750; }
.weather-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0; background: var(--line); }
.weather-values div { padding: 15px 12px; background: var(--white); }
.weather-values dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.weather-values dd { margin: 4px 0 0; font-family: Georgia, serif; font-size: 21px; }
.trajectory-lines > div { position: relative; margin-top: 20px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.trajectory-lines span { font-size: 12px; color: var(--muted); }
.trajectory-lines strong { float: right; font-size: 12px; }
.trajectory-lines i { position: absolute; left: 50%; bottom: -2px; height: 4px; width: 0; background: var(--teal); transition: width .4s ease, left .4s ease; }

.vegetation { padding: 106px 0 120px; }
.trajectory-layout { width: var(--content); margin: 0 auto; }
.trajectory-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.trajectory-legend span { display: inline-flex; align-items: center; gap: 7px; }
.trajectory-legend i { width: 24px; height: 7px; border-radius: 2px; }
.trajectory-legend .greenness-key { background: #70a8d8; }
.trajectory-legend .moisture-key { background: #4bc0b4; }
.trajectory-legend strong { font-weight: 650; }
.trajectory-legend b { display: inline-block; margin: 0 8px; color: var(--white); }
#trajectory-plot { width: 100%; aspect-ratio: 2.05; min-height: 440px; display: block; }
.trajectory-row { opacity: .68; cursor: pointer; transition: opacity .25s ease; outline: none; }
.trajectory-row.active { opacity: 1; }
.trajectory-row-background { fill: transparent; }
.trajectory-row.active .trajectory-row-background { fill: rgba(255,255,255,.08); }
.trajectory-row:focus .trajectory-row-background { fill: rgba(230,183,61,.12); }
.trajectory-row.active text { font-weight: 750; }
.trajectory-bar.greenness, .trajectory-end.greenness { fill: #70a8d8; }
.trajectory-bar.moisture, .trajectory-end.moisture { fill: #4bc0b4; }
.trajectory-end { stroke: var(--ink-soft); stroke-width: .8; }
.trajectory-control { width: min(720px, 100%); margin: 28px auto 0; }
.trajectory-control p { margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 14px; text-align: center; }

.outlook { padding: 106px 0 118px; }
.performance-layout {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 70px;
  align-items: center;
}
.performance-chart { border-top: 1px solid var(--line); }
.performance-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr 55px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.performance-row .variant { font-size: 13px; font-weight: 700; line-height: 1.3; }
.performance-track { position: relative; height: 22px; background: #e5e9e6; }
.performance-track::after { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: #778079; }
.performance-bar { position: absolute; top: 3px; height: 16px; background: var(--burgundy); transform-origin: right center; transition: width .8s ease; }
.performance-value { font-variant-numeric: tabular-nums; font-size: 12px; text-align: right; }
.performance-note { padding-left: 28px; border-left: 4px solid var(--gold); }
.big-quote { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(30px, 3.2vw, 43px); line-height: 1.17; }
.performance-note p:last-child { color: var(--muted); }

.incident-list-section { padding: 106px 0 118px; }
.ledger-controls {
  width: var(--content);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto minmax(180px, 260px) auto minmax(180px, 260px);
  align-items: center;
  gap: 10px 14px;
}
.ledger-controls label { margin: 0; }
.incident-ledger { width: var(--content); margin: 0 auto; border-top: 2px solid var(--ink); }
.incident-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) 110px 145px 130px 100px;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.incident-row:hover { background: var(--mist); }
.incident-row h3 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.incident-row p, .incident-row span { margin: 0; color: var(--muted); font-size: 12px; }
.incident-row strong { font-size: 14px; }
.incident-row .ledger-category { color: var(--ink); font-weight: 700; }

.evidence { padding: 106px 0 112px; }
.method-sequence { width: var(--content); margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.method-sequence li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.method-sequence li > span { color: var(--gold); font-family: Georgia, serif; font-size: 26px; }
.method-sequence h3 { margin: 0 0 4px; font-size: 18px; }
.method-sequence p { margin: 0; color: rgba(255,255,255,.62); }
.limitations { width: var(--reading); margin: 72px auto 0; padding-left: 26px; border-left: 4px solid var(--red); }
.limitations h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 30px; }
.limitations p { margin: 0; color: rgba(255,255,255,.66); }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 30px;
  padding: 34px max(24px, calc((100vw - 1160px)/2));
  background: #0d1612;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}
footer p { margin: 0; }
footer a { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--gold); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes hero-settle {
  from { opacity: .45; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.02); }
}

@media (max-width: 900px) {
  :root { --content: min(100% - 34px, 760px); --reading: min(100% - 34px, 680px); }
  .site-header { padding: 0 18px; }
  .site-header nav { display: none; }
  .hero { min-height: 84svh; }
  .hero-content { padding: 112px 0 92px; }
  .hero-caption { width: calc(100% - 34px); right: 17px; }
  .fact-line { grid-template-columns: 1fr 1fr; }
  .fact-line div:nth-child(2) { border-right: 0; }
  .fact-line div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact-line div:nth-child(3) { padding-left: 0; }
  .conditions-layout, .performance-layout { grid-template-columns: 1fr; }
  .map-pair { grid-template-columns: 1fr; gap: 26px; }
  .signal-controls { grid-template-columns: auto 1fr; }
  .signal-zoom-controls { grid-column: 1 / -1; }
  .map-stage { min-height: 0; }
  .date-rail { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .date-display, .range-label, .date-rail > input, .slider-actions, .micro-note { grid-column: 1 / -1; }
  .incident-inspector { position: static; }
  .performance-note { padding: 26px 0 0; border-left: 0; border-top: 4px solid var(--gold); }
  .incident-row { grid-template-columns: minmax(180px, 1.4fr) 100px 120px 90px; }
  .incident-row > :last-child { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-context { display: none; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero-deck { font-size: 17px; }
  .hero-caption { font-size: 9px; }
  .opening, .map-story, .imagery-story, .conditions, .vegetation, .outlook, .incident-list-section, .evidence { padding-top: 78px; padding-bottom: 82px; }
  .fact-line { margin-top: 48px; }
  .fact-line div { padding: 22px 12px; }
  .fact-line strong { font-size: 36px; }
  .section-heading { margin-bottom: 40px; }
  .map-sync-controls { align-items: stretch; flex-direction: column; gap: 10px; }
  .map-zoom-control-group { width: 100%; }
  .map-zoom-control-group input[type="range"] { flex: 1; width: auto; min-width: 0; }
  .map-stage { aspect-ratio: 18 / 13; }
  .map-legend { gap: 5px 9px; font-size: 9px; }
  .date-rail { grid-template-columns: 1fr; }
  .date-display, .range-label, .date-rail > input, .slider-actions, .micro-note { grid-column: 1; }
  .compare-toolbar { justify-content: stretch; }
  .layer-button { flex: 1; }
  .signal-controls { grid-template-columns: 1fr; gap: 10px; }
  .signal-date-control { justify-content: stretch; }
  .signal-date-button { flex: 1; }
  .signal-zoom-controls { grid-column: 1; width: 100%; }
  .signal-zoom-controls input { flex: 1; }
  .compare-split-control { grid-template-columns: 1fr; gap: 7px; }
  .signal-legends { grid-template-columns: 1fr; gap: 8px; }
  #weather-plot { aspect-ratio: .92; }
  #trajectory-plot { aspect-ratio: .85; min-height: 560px; }
  .performance-row { grid-template-columns: 1fr 1.4fr 48px; gap: 8px; }
  .performance-row .variant { font-size: 11px; }
  .ledger-controls { grid-template-columns: 1fr 1fr; }
  .ledger-controls label { align-self: end; }
  .incident-row { grid-template-columns: minmax(150px, 1fr) 88px 84px; gap: 10px; }
  .incident-row > :nth-child(4), .incident-row > :last-child { display: none; }
  .incident-row h3 { font-size: 17px; }
  .method-sequence li { grid-template-columns: 44px 1fr; gap: 12px; }
  footer { grid-template-columns: 1fr; }
  footer a { grid-column: 1; grid-row: auto; margin-top: 12px; }
}

/*
 * One-page story rhythm
 *
 * Each narrative section is a viewport page. The visualizations retain their
 * controls and data, but their canvas areas use the available page height
 * instead of their previous content-driven minimums.
 */
html {
  scroll-padding-top: 68px;
  scroll-snap-type: y proximity;
}

#story > section {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow-x: hidden;
  overflow-y: auto;
}

#story > section:not(.hero) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-gutter: stable;
}

.hero {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  scroll-snap-align: start;
}

.opening {
  display: grid;
  align-content: center;
  gap: clamp(24px, 4svh, 54px);
  padding: clamp(38px, 7svh, 82px) 0;
}
.opening .fact-line { margin-top: 0; }

.section-heading {
  margin-bottom: clamp(16px, 2.4svh, 28px);
}
.section-heading h2,
.terrain-heading h2 {
  font-size: clamp(34px, 5vw, 60px);
}
.section-heading > p:last-child,
.terrain-heading > p:last-child {
  margin-top: 14px;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.42;
}

.map-story,
.imagery-story,
.conditions,
.vegetation,
.incident-list-section,
.evidence {
  padding: clamp(64px, 8svh, 100px) 0 clamp(20px, 3svh, 36px);
}

.map-stage {
  height: clamp(220px, 34svh, 350px);
  min-height: 0;
}
.map-legend {
  margin-top: 8px;
}
.date-rail {
  margin-top: clamp(10px, 1.8svh, 20px);
  padding-top: 12px;
}
.range-label {
  margin-top: 12px;
}
.slider-actions {
  margin-top: 10px;
}
.micro-note {
  margin-top: 8px;
}

.imagery-story {
  justify-content: center;
}
.signal-controls {
  margin-bottom: 10px;
}
.image-compare {
  height: clamp(220px, 42svh, 440px);
  aspect-ratio: auto;
}
.compare-split-control,
.signal-legends {
  margin-top: 9px;
}
.image-caption {
  margin-top: 8px;
}

.conditions {
  justify-content: center;
}
.conditions-layout {
  gap: clamp(24px, 3vw, 42px);
}
#weather-plot {
  height: clamp(250px, 43svh, 410px);
  aspect-ratio: auto;
}
.weather-size-legend {
  margin-top: 4px;
  gap: 7px 14px;
}
.incident-inspector {
  padding-top: 12px;
}
.inspector-title {
  margin-top: 16px;
}
.weather-values {
  margin: 16px 0;
}
.weather-values div {
  padding: 10px 12px;
}
.trajectory-lines > div {
  margin-top: 12px;
}

.vegetation {
  justify-content: center;
}
#trajectory-plot {
  height: clamp(240px, 43svh, 420px);
  min-height: 0;
  aspect-ratio: auto;
}
.trajectory-control {
  margin-top: 14px;
}
.trajectory-control p {
  margin-top: 10px;
}

.terrain-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-content: center;
  gap: 0;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  padding: clamp(52px, 7svh, 82px) 0 clamp(14px, 2svh, 24px);
  overflow: hidden;
}
.terrain-heading {
  margin-bottom: clamp(12px, 2svh, 22px);
}
.terrain-heading h2 {
  max-width: 900px;
}
.terrain-heading > p:last-child {
  max-width: 760px;
}
.terrain-stage {
  height: auto;
  min-height: 0;
}
.terrain-color-scales {
  gap: 0;
  padding: 10px 0 8px;
}
.terrain-readout > div {
  padding: 12px 16px 10px;
}
.terrain-readout span {
  min-height: 26px;
}
.terrain-context {
  gap: 28px;
  padding-top: 10px;
}
.terrain-context-copy {
  font-size: 15px;
}
.terrain-context .terrain-method {
  font-size: 10px;
}

.incident-list-section {
  justify-content: center;
}
.incident-list-section .section-heading {
  flex: 0 0 auto;
}
.ledger-controls {
  flex: 0 0 auto;
  margin-bottom: 12px;
}
.incident-ledger {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: auto;
}
.incident-row {
  min-height: 54px;
}

.evidence {
  justify-content: center;
}
.method-sequence {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border-top: 0;
}
.method-sequence li {
  display: block;
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255,255,255,.16);
}
.method-sequence li > span {
  display: block;
  margin-bottom: 14px;
}
.method-sequence h3 {
  font-size: 15px;
}
.method-sequence p {
  font-size: 12px;
  line-height: 1.45;
}
.limitations {
  margin-top: clamp(18px, 3svh, 34px);
}
.limitations h3 {
  font-size: 23px;
}
.limitations p {
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .map-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .map-stage {
    height: clamp(180px, 29svh, 280px);
  }
  .map-panel-heading {
    display: block;
    font-size: 11px;
  }
  .map-panel-heading span {
    display: block;
    margin-top: 3px;
    text-align: left;
    font-size: 10px;
  }
  .conditions-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  }
  #weather-plot {
    height: clamp(220px, 37svh, 330px);
  }
  .incident-row {
    min-height: 50px;
  }
  .method-sequence {
    gap: 8px;
  }
  .method-sequence li {
    padding: 11px 10px;
  }
}

@media (max-width: 600px) {
  /*
   * A phone still gets one viewport per section. Dense sections become
   * contained scrollers rather than clipping maps, controls, or explanatory
   * copy beneath the fold.
   */
  #story > section:not(.hero) {
    overflow-y: auto;
    overscroll-behavior: auto;
  }
  .hero {
    overflow: hidden;
  }
  .opening {
    display: flex;
    gap: 22px;
    padding: 68px 0 34px;
  }
  .opening .fact-line {
    margin-top: 0;
  }
  .section-heading h2,
  .terrain-heading h2 {
    font-size: clamp(32px, 10vw, 46px);
  }
  .section-heading > p:last-child,
  .terrain-heading > p:last-child {
    font-size: 14px;
    line-height: 1.42;
  }
  .map-story,
  .imagery-story,
  .conditions,
  .vegetation,
  .incident-list-section,
  .evidence {
    padding: 72px 0 34px;
  }
  .map-sync-controls {
    gap: 8px;
  }
  .map-pair {
    gap: 8px;
  }
  .map-stage {
    height: 170px;
  }
  .map-panel-heading {
    min-height: 44px;
    padding-bottom: 6px;
  }
  .map-legend {
    max-height: none;
    overflow: visible;
  }
  .date-rail {
    margin-top: 12px;
  }
  .date-display {
    font-size: 30px;
  }
  .date-stat strong {
    font-size: 34px;
  }
  .signal-controls {
    margin-bottom: 8px;
  }
  .image-compare {
    height: 240px;
  }
  .signal-legends {
    max-height: none;
    overflow: visible;
  }
  #weather-plot {
    height: 260px;
  }
  .conditions-layout {
    grid-template-columns: 1fr;
  }
  .incident-inspector {
    position: static;
  }
  #trajectory-plot {
    height: 300px;
  }
  .terrain-section {
    display: block;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: 72px 0 28px;
    overflow-y: auto;
  }
  .terrain-heading {
    margin-bottom: 16px;
  }
  .terrain-stage {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(240px, 46svh) auto;
    overflow: visible;
  }
  #terrain-canvas {
    grid-row: 1;
    height: 100%;
  }
  .terrain-toolbar {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100%;
    padding: 16px 18px 20px;
    background: #17231e;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.17);
    border-radius: 0;
    box-shadow: none;
  }
  .terrain-legend {
    position: static;
    z-index: 2;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    margin: 0 12px 12px;
    justify-content: center;
    gap: 7px 12px;
  }
  .terrain-color-scales {
    padding: 16px 0;
  }
  .terrain-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .terrain-context {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .method-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .method-sequence li:last-child {
    grid-column: 1 / -1;
  }
  .limitations {
    margin-top: 22px;
  }
}

@media (min-width: 901px) {
  /*
   * Keep the reading order simple on desktop: the explanation introduces every
   * graphic, then the graphic uses the complete story column below it.
   */
  #story > section.map-story,
  #story > section.imagery-story,
  #story > section.conditions,
  #story > section.vegetation,
  #story > section.incident-list-section,
  #story > section.evidence {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-inline: 0;
  }
  #story > section.map-story {
    display: flex;
    padding-top: 76px;
    padding-bottom: 24px;
  }
  #story > section.conditions {
    justify-content: flex-start;
    padding-top: 76px;
    padding-bottom: 32px;
    scroll-margin-top: 68px;
  }
  .map-story .section-heading,
  .imagery-story .section-heading,
  .conditions .section-heading,
  .vegetation .section-heading,
  .incident-list-section .section-heading,
  .evidence .section-heading,
  .terrain-heading {
    width: var(--content);
    margin: 0 auto 14px;
  }
  .map-story .section-heading h2,
  .imagery-story .section-heading h2,
  .conditions .section-heading h2,
  .vegetation .section-heading h2,
  .incident-list-section .section-heading h2,
  .evidence .section-heading h2,
  .terrain-heading h2 {
    font-size: clamp(34px, 4vw, 50px);
  }
  .map-layout {
    width: var(--content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "maps"
      "legend"
      "rail";
    row-gap: 8px;
  }
  .map-sync-controls,
  .map-pair,
  .map-legend,
  .date-rail {
    width: 100%;
  }
  .map-story .map-stage {
    width: 100%;
    height: clamp(240px, 34svh, 360px);
    aspect-ratio: auto;
  }
  .date-rail {
    grid-template-columns: 180px 1fr 1fr;
    margin-top: 8px;
    padding: 0;
    border-top: 0;
    border-left: 0;
    column-gap: 30px;
    row-gap: 0;
  }
  .date-rail .date-display {
    grid-column: auto;
    font-size: 30px;
  }
  .date-rail .date-stat:nth-of-type(1) {
    grid-column: auto;
  }
  .date-rail .date-stat:nth-of-type(2) {
    grid-column: auto;
  }
  .date-rail .date-stat strong {
    font-size: 32px;
  }
  .date-rail .micro-note {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .signal-controls,
  .image-compare,
  .compare-split-control,
  .signal-legends,
  .image-caption,
  .conditions-layout,
  .trajectory-layout,
  .ledger-controls,
  .incident-ledger,
  .method-sequence,
  .limitations {
    width: var(--content);
    margin-inline: auto;
  }
  .signal-controls,
  .image-compare,
  .compare-split-control,
  .signal-legends,
  .image-caption,
  .conditions-layout,
  .trajectory-layout,
  .ledger-controls,
  .incident-ledger,
  .method-sequence,
  .limitations {
    grid-area: auto;
  }
  .image-compare {
    height: clamp(240px, 39svh, 360px);
  }
  .conditions-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #weather-plot {
    height: clamp(340px, 52svh, 480px);
  }
  .incident-inspector {
    position: static;
    display: block;
    width: 100%;
  }
  .incident-inspector .inspector-title,
  .incident-inspector .weather-values,
  .incident-inspector .trajectory-lines {
    width: 100%;
  }
  .incident-inspector .inspector-title {
    margin-top: 0;
  }
  .incident-inspector .weather-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0 20px;
  }
  .incident-inspector .weather-values div {
    padding: 10px 12px;
  }
  .incident-inspector .weather-values dd {
    font-size: 18px;
  }
  .incident-inspector .trajectory-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 0;
  }
  .incident-inspector .trajectory-lines > div {
    margin-top: 0;
  }
  #trajectory-plot {
    height: clamp(260px, 42svh, 380px);
  }

  #story > section.terrain-section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: none;
    align-content: center;
    padding-top: 76px;
    padding-bottom: 18px;
  }
  .terrain-heading,
  .terrain-stage,
  .terrain-color-scales,
  .terrain-readout,
  .terrain-context {
    grid-area: auto;
    width: var(--content);
    margin-inline: auto;
  }
  .terrain-stage {
    height: clamp(280px, 43svh, 400px);
    min-height: 0;
  }
  .terrain-toolbar {
    left: 24px;
  }
  .terrain-compass {
    right: 24px;
  }
  .terrain-legend {
    right: 24px;
  }
  .terrain-context {
    grid-template-columns: 1.2fr .8fr;
    padding-top: 10px;
  }

  .method-sequence {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-self: auto;
  }
  .limitations {
    margin-top: 18px;
  }
}

/*
 * This static story is displayed inside the BRIDGE article page. The parent
 * page receives its full height, so nested viewport scrolling and snap points
 * would make reading feel trapped inside the iframe.
 */
html {
  overflow: visible;
  scroll-padding-top: 0;
  scroll-snap-type: none;
}
body {
  overflow: visible;
}
#story {
  height: auto;
  overflow: visible;
}
#story > section {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}
#story > section:not(.hero) {
  overflow: visible;
}
#story > section.hero {
  height: clamp(560px, 62vw, 760px);
  min-height: 0;
  max-height: none;
}
#story > section.terrain-section {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

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