:root {
  --ink: #13282c;
  --ink-2: #294147;
  --paper: #eee9dc;
  --paper-2: #e5dfcf;
  --cream: #f8f4e9;
  --line: rgba(19, 40, 44, .18);
  --orange: #d95d39;
  --orange-dark: #a94329;
  --teal: #0b343b;
  --cyan: #78b9bd;
  --gold: #d8c67f;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(19,40,44,.025) 50%, transparent 50.08%),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.5vw;
  color: #f2ecdd;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(7, 24, 29, .88);
  backdrop-filter: blur(18px);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 14px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1px;
  background: currentColor;
  transform: rotate(-18deg);
}
.brand-mark::before { top: 7px; }
.brand-mark::after { bottom: 6px; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .78;
}
.site-header nav a:hover { opacity: 1; }
.header-jump {
  justify-self: end;
  font-size: 11px;
  text-decoration: none;
  letter-spacing: .13em;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 4px;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 128px 7vw 52px;
  color: #eee8d9;
  background:
    radial-gradient(circle at 75% 42%, rgba(42,98,105,.34), transparent 34%),
    linear-gradient(128deg, #07181d 0%, #0a252c 53%, #102f34 100%);
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(420px, .9fr);
  grid-template-rows: 1fr auto;
  gap: 30px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
.hero-copy, .hero-figure, .hero-stats, .scroll-cue { position: relative; z-index: 2; }
.hero-copy { align-self: center; max-width: 790px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .18em;
  color: #b9cbc5;
  margin: 0 0 35px;
}
.kicker span:first-child::after {
  content: "";
  display: inline-block;
  width: 75px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 20px;
  opacity: .45;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 112px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .99;
  margin: 0;
}
.hero h1 em { color: #ee7a54; font-style: normal; }
.hero-lead {
  font-family: var(--serif);
  margin: 36px 0 0;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 2;
  color: #cbd5cb;
}
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 40px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  border: 1px solid transparent;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #fff8eb; }
.button-primary:hover { background: #e46a43; }
.text-link {
  font-size: 12px;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,.32);
}
.text-link span { color: #ee7a54; margin-left: 8px; }
.taxon-settings {
  width: min(100%, 720px);
  margin-top: 28px;
  padding: 16px;
  color: #dce5da;
  background: rgba(4, 22, 27, .62);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
}
.settings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}
.settings-head div { display: grid; gap: 4px; }
.settings-head span, .taxon-settings legend {
  color: #84aaa7;
  font-size: 8px;
  letter-spacing: .16em;
}
.settings-head strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.settings-head button {
  padding: 0;
  color: #d8cf9d;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  cursor: pointer;
}
.taxon-settings fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.taxon-settings legend { margin-bottom: 7px; }
.taxon-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.taxon-options label, .density-options label {
  position: relative;
  cursor: pointer;
}
.taxon-options input, .density-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.taxon-options span, .density-options span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 5px 7px;
  color: #9fb3ae;
  border: 1px solid rgba(255,255,255,.13);
  font-size: 9px;
  text-align: center;
  transition: color .2s, border-color .2s, background .2s;
}
.taxon-options input:checked + span {
  color: #fff2cc;
  border-color: rgba(216,198,127,.55);
  background: rgba(216,198,127,.12);
}
.taxon-options input:focus-visible + span,
.density-options input:focus-visible + span { outline: 2px solid #ee7a54; outline-offset: 2px; }
.density-options {
  display: grid;
  grid-template-columns: auto repeat(3, 62px);
  align-items: end;
  gap: 6px;
  margin-top: 11px !important;
}
.density-options legend { grid-column: 1; margin: 0 8px 8px 0; }
.density-options label { grid-row: 1; }
.density-options label:nth-of-type(1) { grid-column: 2; }
.density-options label:nth-of-type(2) { grid-column: 3; }
.density-options label:nth-of-type(3) { grid-column: 4; }
.density-options span { min-height: 29px; }
.density-options input:checked + span { color: #fff; border-color: #d95d39; background: rgba(217,93,57,.28); }
.settings-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  color: #fff8eb;
  background: var(--orange);
  border: 0;
  cursor: pointer;
}
.hero-figure { display: grid; place-items: center; min-width: 0; }
.hero-globe { width: min(42vw, 580px); aspect-ratio: 1; position: relative; }
.hero-globe svg { width: 100%; filter: drop-shadow(0 34px 50px rgba(0,0,0,.28)); }
.globe-label {
  position: absolute;
  font-size: 9px;
  letter-spacing: .22em;
  color: #dbe1d4;
  padding: 7px 11px;
  background: rgba(7,24,29,.72);
  border: 1px solid rgba(255,255,255,.17);
}
.label-one { top: 20%; left: 0; }
.label-two { top: 44%; right: -2%; }
.label-three { bottom: 18%; left: 11%; }
.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(213,223,198,.09);
  border-radius: 50%;
}
.orbit-a { width: 72vw; height: 34vw; right: -19vw; top: 20vh; transform: rotate(-21deg); }
.orbit-b { width: 57vw; height: 57vw; right: -2vw; top: -8vw; }
.hero-stats {
  display: flex;
  align-items: end;
  gap: 42px;
  align-self: end;
}
.hero-stats div { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.18); padding-left: 16px; }
.hero-stats strong { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.hero-stats span { font-size: 10px; letter-spacing: .12em; color: #9db0ad; margin-top: 5px; }
.scroll-cue {
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: .2em;
  color: #aebfba;
}
.scroll-cue i { display: block; height: 48px; width: 1px; background: linear-gradient(#d8cf9d, transparent); }

.orientation {
  max-width: 1440px;
  margin: 0 auto;
  padding: 130px 6vw 105px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9vw;
  border-bottom: 1px solid var(--line);
}
.section-tag {
  margin: 0 0 20px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
}
.orientation h2,
.method-intro h2,
.uncertainty h2,
.references-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.3;
  margin: 0;
  font-size: clamp(35px, 4.5vw, 64px);
}
.orientation-copy { padding-top: 30px; max-width: 700px; }
.orientation-copy > p:first-child { font-family: var(--serif); font-size: 18px; line-height: 2.1; margin-top: 0; }
.note { font-size: 11px; line-height: 1.8; color: #647477; margin-top: 28px; border-left: 2px solid var(--orange); padding-left: 17px; }

.atlas-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 90px 3vw 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: 32px;
  align-items: start;
}
.comparison-panel {
  position: sticky;
  top: 90px;
  height: calc(var(--viewport-height, 100dvh) - 102px);
  min-height: 0;
  color: #eef0e5;
  background: var(--teal);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(16,39,43,.16);
  padding: clamp(14px, 1.4vw, 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.comparison-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}
.panel-head, .comparison-grid, .panel-foot { position: relative; z-index: 1; }
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex: 0 0 auto;
  padding-bottom: clamp(11px, 1.6vh, 18px);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.panel-head .section-tag { color: #9dbebc; margin-bottom: 7px; }
.age-row { display: flex; align-items: baseline; gap: 8px; }
.age-row strong { font-family: var(--serif); font-size: clamp(42px, 5vw, 76px); font-weight: 500; line-height: .85; color: #f4ead0; }
.age-row > span:nth-child(2) { font-family: var(--serif); font-size: 22px; color: #a9c0bd; }
.confidence {
  margin-left: 12px;
  font-size: 9px;
  letter-spacing: .08em;
  color: #e5c47b;
  border: 1px solid rgba(229,196,123,.3);
  padding: 5px 7px;
}
.period-lockup { text-align: right; }
.period-lockup span { display: block; font-size: 10px; color: #9bb0ad; letter-spacing: .08em; margin-bottom: 6px; }
.period-lockup strong { display: block; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 29px); line-height: 1.15; font-weight: 500; }
.comparison-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  grid-template-rows: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(8px, 1vw, 13px);
  padding: clamp(9px, 1.4vh, 15px) 0;
}
.plate-card { grid-column: 1; grid-row: 1 / -1; }
.climate-card { grid-column: 2; grid-row: 1; }
.life-card { grid-column: 2; grid-row: 2; }
.data-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: rgba(238,233,220,.055);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
}
.data-card header {
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #91aaa7;
  font-size: 10px;
  letter-spacing: .15em;
}
.data-card header a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.map-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(102,165,166,.16), transparent 62%),
    linear-gradient(180deg, rgba(3,25,31,.08), rgba(3,25,31,.28));
}
.map-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(5,27,32,.25) 0 25%, rgba(5,27,32,.04) 49%, rgba(5,27,32,.35) 100%),
    linear-gradient(90deg, rgba(2,20,26,.08), transparent 28%, transparent 72%, rgba(2,20,26,.08));
}
.landscape-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(.78) contrast(.9) brightness(.55);
  transform: scale(1.02);
  transition: opacity 1s ease, transform 1.4s ease;
}
.landscape-layer.is-visible { opacity: .78; transform: scale(1); }
.landscape-labels {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  color: rgba(235,238,220,.7);
  font-size: 8px;
  letter-spacing: .16em;
  pointer-events: none;
}
.map-wrap canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.map-wrap canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(240,231,207,.72); }
.map-wrap canvas.is-dragging { cursor: grabbing; }
.globe-controls {
  position: absolute;
  z-index: 5;
  left: 14px;
  right: 14px;
  bottom: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(186,207,202,.68);
  font-size: 8px;
  letter-spacing: .13em;
  pointer-events: none;
}
.landscape-caption {
  position: absolute;
  z-index: 5;
  right: 14px;
  top: 29px;
  color: rgba(235,238,220,.66);
  font-size: 7px;
  letter-spacing: .12em;
  pointer-events: none;
}
.card-copy { padding: 15px 18px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.card-copy h3, .climate-readout h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: #f0e7cf;
}
.card-copy p, .card-note { margin: 7px 0 0; color: #a9bab5; font-size: 12px; line-height: 1.7; }
.climate-card { padding-bottom: 12px; }
.climate-readout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(74px, 96px) 1fr;
  gap: clamp(10px, 1.2vw, 18px);
  align-content: center;
  align-items: center;
  justify-items: center;
  text-align: left;
  padding: 10px 14px 7px;
}
.climate-orb {
  width: min(7vw, 92px);
  aspect-ratio: 1;
  margin-bottom: 0;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: radial-gradient(circle at 37% 30%, #e6d994 0%, #cc754d 45%, #863929 100%);
  box-shadow: 0 0 45px rgba(217,93,57,.25), inset -16px -18px 30px rgba(22,39,39,.28);
  transition: background .5s, box-shadow .5s;
}
.climate-orb span { font-family: var(--serif); font-size: clamp(34px, 3.5vw, 52px); line-height: .85; color: #fff3db; }
.climate-orb small { font-size: 10px; margin-top: 6px; color: #f6dfc6; }
.micro-label { color: #8ba7a5 !important; font-size: 9px !important; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 5px !important; }
.climate-readout h3 { letter-spacing: .08em; font-family: var(--sans); font-size: 17px; font-weight: 800; }
.climate-readout p:last-child { font-size: 10px; color: #b6c1ba; margin: 6px 0 0; }
.climate-scale { padding: 0 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.climate-scale span { font-size: 8px; color: #819b99; }
.climate-scale i {
  height: 5px;
  position: relative;
  background: linear-gradient(90deg, #6faec7, #d4cf92, #e05938);
}
.climate-scale b {
  position: absolute;
  width: 3px;
  height: 13px;
  top: -4px;
  left: 28%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(7,31,36,.7);
  transition: left .45s;
}
.oxygen-readout {
  margin: 9px 15px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.oxygen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.oxygen-head > a { color: #8ba7a5; font-size: 8px; letter-spacing: .13em; text-decoration: none; border-bottom: 1px solid currentColor; }
.oxygen-head strong { color: #e8dfb0; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.oxygen-head small { margin-left: 2px; color: #a8b9b3; font-family: var(--sans); font-size: 9px; }
.oxygen-scale {
  display: grid;
  grid-template-columns: 12px 1fr 22px;
  align-items: center;
  gap: 6px;
}
.oxygen-scale span { color: #748f8d; font-size: 7px; }
.oxygen-scale i {
  position: relative;
  height: 5px;
  background: linear-gradient(90deg, #344f54, #789f94 40%, #d8c67f 72%, #e17751);
}
.oxygen-scale b {
  position: absolute;
  top: -4px;
  left: 60%;
  width: 3px;
  height: 13px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(7,31,36,.7);
  transition: left .55s;
}
.oxygen-readout p { margin: 5px 0 0; color: #8fa4a0; font-size: 8px; line-height: 1.35; }
.climate-card .card-note { padding: 0 15px; margin-top: 12px; }
.tree-visual { display: none; }
.tree-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 1px;
  height: 82%;
  background: #d1c786;
}
.branch {
  position: absolute;
  height: 1px;
  left: 50%;
  transform-origin: left center;
  background: #d1c786;
  opacity: .9;
}
.branch::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ed7952;
}
.life-card .card-copy {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-top: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(221,229,211,.22) transparent;
}
.life-card ul { list-style: none; margin: 9px 0 0; padding: 0; }
.life-meta { display: flex; align-items: center; gap: 7px; }
.life-meta span { margin-right: auto; }
.life-meta a { color: #d8cf9d; text-decoration: none; border-bottom: 1px solid currentColor; }
.life-meta b { color: #9bb0ad; font-weight: 400; }
.life-research-note {
  margin-top: 8px;
  padding: 8px 9px 7px;
  background: rgba(6, 27, 31, .24);
  border-left: 2px solid rgba(216, 198, 127, .58);
}
.life-research-note > p {
  margin: 0;
  color: #c2ceca;
  font-size: 9.5px;
  line-height: 1.55;
}
.life-research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.life-research-meta > span {
  padding: 3px 5px;
  color: #9eb2ae;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  font-size: 7.5px;
  line-height: 1.25;
}
.life-research-meta a,
.life-event-refs a {
  color: #e3d698;
  text-decoration: none;
  border-bottom: 1px solid rgba(227,214,152,.4);
  margin-left: 3px;
}
.life-card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 7px;
  align-items: start;
  color: #d3ddd5;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.life-card li.life-group-animal { border-left: 2px solid rgba(120,185,189,.45); padding-left: 6px; }
.life-card li.life-group-plant { border-left: 2px solid rgba(142,183,126,.5); padding-left: 6px; }
.life-card li.life-group-microbe { border-left: 2px solid rgba(141,153,193,.55); padding-left: 6px; }
.life-card li.life-group-extinction { border-left: 2px solid rgba(224,113,76,.62); padding-left: 6px; }
.life-card li.life-group-lineage { border-left: 2px solid rgba(216,198,127,.58); padding-left: 6px; }
.life-empty { display: block !important; padding: 18px 0 !important; color: #9db0ac !important; font-size: 10px; line-height: 1.6; }
.life-type {
  margin-top: 1px;
  padding: 3px 2px;
  text-align: center;
  color: #ffd7c7;
  background: rgba(224,113,76,.18);
  border: 1px solid rgba(224,113,76,.36);
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}
.life-type-絶滅, .life-type-激減, .life-type-減少 { color: #ffc0b2; background: rgba(196,63,42,.25); }
.life-type-出現, .life-type-分岐 { color: #f2df92; background: rgba(209,199,134,.13); border-color: rgba(209,199,134,.35); }
.life-type-生存, .life-type-現生 { color: #bfe1d6; background: rgba(120,185,189,.12); border-color: rgba(120,185,189,.32); }
.life-taxon { font-size: 11.5px; line-height: 1.3; font-weight: 700; }
.life-taxon small { display: block; margin-top: 2px; color: #8fa6a2; font-size: 9px; font-weight: 400; line-height: 1.3; }
.life-taxon .life-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-top: 4px;
  color: #809894;
  font-size: 7.5px;
  letter-spacing: .015em;
}
.life-evidence-row > span {
  padding-right: 6px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.life-evidence-row > span:last-child { padding-right: 0; border-right: 0; }
.life-evidence-row .life-age { color: #d9cf9c; }
.panel-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  color: #819b99;
  font-size: 8px;
  letter-spacing: .1em;
}
.depth-meter { height: 2px; background: rgba(255,255,255,.12); }
.depth-meter span { display: block; width: 2%; height: 100%; background: #e4714b; transition: width .45s; }

.chapter-track { padding-bottom: 20vh; }
.chapter {
  min-height: 74vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
}
.chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.chapter::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid #8d9c9d;
  transition: background .3s, transform .3s, border-color .3s;
}
.chapter.is-active::after { background: var(--orange); border-color: var(--orange); transform: scale(1.45); }
.chapter-card {
  width: 100%;
  padding: 27px 25px;
  background: rgba(248,244,233,.66);
  border: 1px solid rgba(19,40,44,.15);
  box-shadow: 0 13px 35px rgba(32,50,50,.04);
  transition: opacity .35s, transform .35s, background .35s;
  opacity: .58;
  transform: translateX(8px);
}
.chapter.is-active .chapter-card { opacity: 1; transform: translateX(0); background: var(--cream); }
.chapter-no { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #758487; font-size: 9px; letter-spacing: .12em; }
.chapter-era { color: var(--orange-dark); text-align: right; line-height: 1.35; }
.chapter-age { font-family: var(--serif); font-size: 52px; letter-spacing: -.06em; margin: 26px 0 0; }
.chapter-age small { font-size: 14px; letter-spacing: 0; color: #78888a; margin-left: 5px; }
.chapter h3 { font-family: var(--serif); font-size: 27px; line-height: 1.35; font-weight: 500; margin: 11px 0 0; }
.chapter-summary { font-size: 12px; line-height: 1.9; color: #586c70; margin: 17px 0 0; }
.chapter-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chapter-tags span { padding: 6px 8px; border: 1px solid var(--line); font-size: 9px; color: #5d7274; }
.chapter-sources { margin-top: 19px; font-size: 9px; }
.chapter-sources a { color: var(--orange-dark); text-decoration: none; border-bottom: 1px solid rgba(169,67,41,.32); margin-right: 10px; }

.method-intro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 6vw 58px;
  text-align: center;
}
.method-intro > p:last-child { max-width: 680px; margin: 30px auto 0; line-height: 2; font-size: 14px; color: #5a6c6f; }
.method-strip {
  max-width: 980px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.method-strip span {
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(19,40,44,.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.case-grid {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 4vw 140px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.case-card {
  min-height: 430px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: #e9e3d5;
}
.case-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -130px;
  top: -100px;
  border: 1px solid rgba(19,40,44,.12);
  box-shadow: 0 0 0 35px rgba(19,40,44,.025), 0 0 0 70px rgba(19,40,44,.02);
}
.case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  letter-spacing: .12em;
  color: #6d7f81;
  position: relative;
  z-index: 1;
}
.case-method {
  max-width: 72%;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(19,40,44,.18);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: right;
}
.case-age { font-family: var(--serif); font-size: 44px; margin: 44px 0 6px; letter-spacing: -.04em; position: relative; z-index: 1; }
.case-age small { font-size: 16px; color: #6a7c7e; }
.case-card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.35; margin: 0; }
.case-card h3 span { font-family: var(--sans); font-size: 10px; color: #687b7e; letter-spacing: .05em; }
.absolute-timebar {
  position: relative;
  z-index: 1;
  margin: 23px 0 19px;
  padding: 24px 12px 12px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(19,40,44,.14);
}
.absolute-axis {
  position: relative;
  height: 20px;
  border-bottom: 1px solid rgba(19,40,44,.28);
}
.absolute-axis::before,
.absolute-axis::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 1px;
  height: 9px;
  background: rgba(19,40,44,.42);
}
.absolute-axis::before { left: 0; }
.absolute-axis::after { right: 0; }
.absolute-window {
  position: absolute;
  left: var(--from);
  right: calc(100% - var(--to));
  bottom: -4px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(217,93,57,.2);
}
.is-open-left .absolute-window {
  left: 0;
  right: calc(100% - var(--to));
  background: repeating-linear-gradient(135deg, rgba(217,93,57,.16) 0 6px, rgba(217,93,57,.36) 6px 11px);
}
.is-point .absolute-window {
  left: var(--marker);
  right: auto;
  width: 2px;
  min-width: 2px;
}
.absolute-marker {
  position: absolute;
  left: var(--marker);
  bottom: -8px;
  width: 2px;
  height: 16px;
  transform: translateX(-1px);
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(248,244,233,.52);
}
.absolute-scale {
  position: relative;
  height: 24px;
  margin-top: 7px;
  color: #728489;
  font-size: 9px;
  letter-spacing: .07em;
}
.absolute-scale span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}
.absolute-scale span:nth-child(1) { left: 0; }
.absolute-scale span:nth-child(2) { left: 56.52%; transform: translateX(-50%); }
.absolute-scale span:nth-child(3) { left: 78.26%; transform: translateX(-50%); }
.absolute-scale span:nth-child(4) { right: 0; }
.absolute-scale .marker-label {
  left: var(--marker);
  top: -33px;
  transform: translateX(-50%);
  padding: 2px 5px;
  color: var(--orange-dark);
  background: rgba(248,244,233,.78);
  border: 1px solid rgba(169,67,41,.2);
  font-weight: 800;
  letter-spacing: .08em;
}
.absolute-scale .marker-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 1px;
  height: 8px;
  background: currentColor;
  opacity: .58;
}
.is-near-present .absolute-scale .marker-label {
  transform: translateX(-100%);
}
.is-near-present .absolute-scale .marker-label::after {
  left: calc(100% - 2px);
}
.absolute-timebar p {
  margin: 0;
  color: #40575c;
  font-size: 12.5px;
  line-height: 1.55;
}
.absolute-timebar p b {
  margin-right: 7px;
  color: #718185;
  font-size: 10px;
  letter-spacing: .13em;
}
.case-card > p:not(.case-age) { font-size: 12px; line-height: 1.9; color: #53686b; margin: 0; max-width: 520px; }
.case-card > a { margin-top: auto; padding-top: 25px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.case-card > a span { color: var(--orange); margin-left: 8px; }
.case-luca { background: var(--teal); color: #eee9d9; }
.case-luca .case-top, .case-luca h3 span, .case-luca .case-age small, .case-luca > p:not(.case-age) { color: #a8bbb6; }
.case-luca .case-method {
  color: #fff1c8;
  background: rgba(216,198,127,.12);
  border-color: rgba(216,198,127,.42);
}
.case-luca .absolute-timebar {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.14);
}
.case-luca .absolute-axis { border-bottom-color: rgba(255,255,255,.28); }
.case-luca .absolute-axis::before,
.case-luca .absolute-axis::after { background: rgba(255,255,255,.4); }
.case-luca .absolute-marker { background: #fff0d2; box-shadow: 0 0 0 2px rgba(8,36,41,.7); }
.case-luca .absolute-scale { color: #9eb7b2; }
.case-luca .absolute-scale .marker-label {
  color: #e2c889;
  background: rgba(8,36,41,.74);
  border-color: rgba(226,200,137,.32);
}
.case-luca .absolute-timebar p { color: #d7e5dc; }
.case-luca .absolute-timebar p b { color: #9ebdb8; }
.case-luca::before { border-color: rgba(255,255,255,.12); box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018); }
.case-eukaryote { background: #d9e0cf; }
.case-animal { background: #ead9c8; }
.case-angiosperm { background: #dbe7db; }
.case-bangio { background: #e8e1c8; }
.case-mammal { background: #d8e3e3; }
.case-penguin { background: #dbe6df; }
.case-human { background: #e4d0bd; }
.case-homo { background: #ece1d8; }

.uncertainty {
  color: #eee9dc;
  background: #b64a30;
  padding: 120px 8vw;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8vw;
}
.uncertainty .section-tag { color: #f4c2a9; }
.uncertainty-list { display: grid; gap: 0; }
.uncertainty-list > div { display: grid; grid-template-columns: 48px 180px 1fr; gap: 18px; align-items: start; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.24); }
.uncertainty-list > div:last-child { border-bottom: 1px solid rgba(255,255,255,.24); }
.uncertainty-list span { font-family: var(--serif); font-size: 17px; color: #f0b99e; }
.uncertainty-list h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0; }
.uncertainty-list p { margin: 0; font-size: 11px; line-height: 1.85; color: #f3d5c6; }
.references-cta {
  padding: 110px 8vw;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  color: #e9ebdf;
  background: #082329;
}
.references-cta .section-tag { color: #82b6b5; }
.references-cta p:last-child { color: #9eb3af; font-size: 12px; line-height: 1.8; }
.button-light { color: var(--ink); background: #eee9dc; min-width: 230px; }
footer {
  min-height: 220px;
  padding: 60px 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
  color: #8ca19d;
  background: #061a1f;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 10px;
  line-height: 1.8;
}
.brand-footer { color: #e9ebdf; align-self: start; }
.footer-meta { text-align: right; }
.footer-meta a { color: #d0d7c9; }

@media (max-width: 1180px) {
  .comparison-panel { min-height: 0; height: calc(var(--viewport-height, 100dvh) - 90px); top: 78px; padding: 16px; }
  .atlas-shell { grid-template-columns: minmax(0,1fr) 320px; gap: 22px; padding-left: 2vw; padding-right: 2vw; }
  .comparison-grid { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 120px; }
  .hero-figure { position: absolute; width: 55vw; right: -15vw; top: 18vh; opacity: .5; }
  .hero-copy { z-index: 3; }
  .taxon-settings { max-width: 640px; }
  .hero-stats { grid-column: 1; }
  .orientation { grid-template-columns: 1fr; gap: 20px; }
  .atlas-shell { display: block; padding: 40px 12px 100px; }
  .comparison-panel { top: 70px; height: auto; min-height: 0; overflow: visible; }
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(390px, 52dvh) minmax(315px, auto);
    min-height: 0;
  }
  .plate-card { grid-column: 1 / -1; grid-row: 1; }
  .climate-card { grid-column: 1; grid-row: 2; }
  .life-card { grid-column: 2; grid-row: 2; }
  .chapter-track { position: relative; z-index: 3; margin-top: 82vh; padding: 0 10px 20vh 28px; }
  .chapter { min-height: 85vh; padding-left: 18px; }
  .chapter-card { background: rgba(248,244,233,.95); backdrop-filter: blur(8px); }
  .case-grid { grid-template-columns: 1fr; }
  .uncertainty { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 18px; }
  .header-jump { font-size: 9px; }
  .hero { padding: 110px 23px 35px; }
  .hero h1 { font-size: 52px; }
  .hero-lead br { display: none; }
  .hero-figure { width: 80vw; top: 25vh; right: -36vw; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .taxon-settings { margin-top: 22px; padding: 12px; }
  .settings-head { align-items: start; }
  .settings-head strong { font-size: 16px; }
  .taxon-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .density-options { grid-template-columns: repeat(3, 1fr); }
  .density-options legend { grid-column: 1 / -1; grid-row: 1; margin-bottom: 2px; }
  .density-options label { grid-row: 2; }
  .density-options label:nth-of-type(1) { grid-column: 1; }
  .density-options label:nth-of-type(2) { grid-column: 2; }
  .density-options label:nth-of-type(3) { grid-column: 3; }
  .hero-stats { gap: 15px; width: 100%; }
  .hero-stats strong { font-size: 20px; }
  .scroll-cue { display: none; }
  .orientation { padding: 90px 24px 70px; }
  .comparison-panel { padding: 12px; }
  .age-row strong { font-size: 44px; }
  .confidence { display: none; }
  .period-lockup strong { font-size: 18px; }
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 310px 390px;
    min-height: 707px;
    gap: 7px;
    padding: 10px 0;
  }
  .plate-card { grid-column: 1 / -1; grid-row: 1; }
  .climate-card { grid-column: 1; grid-row: 2; }
  .life-card { grid-column: 2; grid-row: 2; }
  .map-wrap { min-height: 0; }
  .globe-controls { font-size: 6px; left: 9px; right: 9px; bottom: 7px; }
  .card-copy { padding: 9px 10px; }
  .card-copy h3 { font-size: 18px; }
  .card-copy p { display: none; }
  .data-card header { height: 36px; font-size: 8px; }
  .climate-readout { display: grid; grid-template-columns: 1fr; gap: 7px; text-align: center; padding: 10px 8px 6px; }
  .climate-orb { width: 78px; margin-bottom: 9px; }
  .climate-orb span { font-size: 32px; }
  .climate-card .card-note { display: none; }
  .oxygen-readout { margin: 7px 8px 0; }
  .oxygen-head { display: grid; gap: 2px; text-align: center; }
  .oxygen-head strong { font-size: 18px; }
  .oxygen-readout p { font-size: 7px; text-align: center; }
  .life-card { grid-column: auto; display: flex; }
  .life-card ul { display: block; }
  .life-card li { padding: 3px 0; grid-template-columns: 29px 1fr; gap: 5px; }
  .life-type { font-size: 6px; }
  .life-taxon { font-size: 8.5px; }
  .life-taxon small { display: none; }
  .life-research-note { margin-top: 6px; padding: 6px 7px; }
  .life-research-note > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: 7.5px;
    line-height: 1.45;
  }
  .life-research-meta { gap: 3px; margin-top: 4px; }
  .life-research-meta > span { padding: 2px 3px; font-size: 5.5px; }
  .panel-foot span:last-child { display: none; }
  .chapter-track { margin-top: 70vh; padding-left: 20px; }
  .chapter { min-height: 82vh; }
  .chapter-card { padding: 22px 19px; }
  .chapter-age { font-size: 44px; }
  .chapter h3 { font-size: 23px; }
  .method-intro { padding: 100px 24px 55px; }
  .case-grid { padding: 0 12px 90px; }
  .case-card { min-height: 440px; padding: 22px; }
  .case-age { font-size: 38px; }
  .uncertainty { padding: 90px 24px; }
  .uncertainty-list > div { grid-template-columns: 38px 1fr; }
  .uncertainty-list p { grid-column: 2; }
  .references-cta { padding: 80px 24px; flex-direction: column; align-items: flex-start; }
  footer { grid-template-columns: 1fr; padding: 50px 24px; }
  .footer-meta { text-align: left; }
}

@media (max-height: 800px) and (min-width: 901px) {
  .comparison-panel {
    top: 74px;
    height: calc(var(--viewport-height, 100dvh) - 82px);
    padding: 11px 14px;
  }
  .panel-head { padding-bottom: 9px; }
  .panel-head .section-tag { display: none; }
  .age-row strong { font-size: clamp(42px, 7.5vh, 60px); }
  .period-lockup span { margin-bottom: 2px; }
  .period-lockup strong { font-size: 23px; }
  .comparison-grid { padding: 8px 0; gap: 8px; }
  .data-card header { height: 34px; }
  .card-copy { padding: 10px 13px 12px; }
  .card-copy h3, .climate-readout h3 { font-size: 19px; }
  .card-copy p, .card-note { font-size: 10.5px; line-height: 1.5; }
  .climate-readout { padding: 7px 11px 5px; }
  .climate-orb { width: min(6vw, 76px); }
  .climate-orb span { font-size: 36px; }
  .climate-card .card-note { margin-top: 7px; }
  .oxygen-readout { margin-top: 5px; padding-top: 5px; }
  .oxygen-head strong { font-size: 18px; }
  .oxygen-readout p { margin-top: 3px; font-size: 7px; }
  .life-card li { padding: 3px 0; }
  .life-taxon { font-size: 10.5px; }
  .life-taxon small { font-size: 8px; }
  .panel-foot { gap: 9px; }
}

/* Readability pass: keep dense scientific labels above a practical minimum size. */
.atlas-shell { scroll-margin-top: 78px; }
.site-header nav a { font-size: 13px; }
.header-jump,
.text-link,
.note,
.method-intro > p:last-child,
.references-cta p:last-child { font-size: 12.5px; }
.settings-head span,
.taxon-settings legend,
.settings-head button,
.taxon-options span,
.density-options span,
.section-tag,
.confidence,
.period-lockup span,
.data-card header,
.micro-label,
.landscape-labels,
.globe-controls,
.landscape-caption,
.climate-scale span,
.oxygen-head > a,
.oxygen-head small,
.oxygen-scale span,
.life-research-meta > span,
.life-type,
.life-taxon .life-evidence-row,
.life-empty,
.panel-foot,
.chapter-no,
.chapter-tags span,
.chapter-sources,
.case-top,
.case-card h3 span,
.case-card > a,
.hero-stats span,
footer {
  font-size: 11px;
}
.taxon-options span,
.density-options span {
  min-height: 38px;
  line-height: 1.35;
}
.settings-head strong { font-size: 20px; }
.card-copy p,
.card-note,
.chapter-summary,
.case-card > p:not(.case-age),
.uncertainty-list p {
  font-size: 14px;
  line-height: 1.75;
}
.climate-readout p:last-child,
.oxygen-readout p {
  font-size: 12px;
  line-height: 1.45;
}
.data-card header { min-height: 44px; }
.life-research-note > p {
  font-size: 12px;
  line-height: 1.65;
}
.life-card li {
  grid-template-columns: 44px 1fr;
  gap: 9px;
  padding: 7px 0;
}
.life-type {
  padding: 4px 5px;
  line-height: 1.15;
}
.life-taxon {
  font-size: 13.5px;
  line-height: 1.4;
}
.life-taxon small {
  font-size: 11px;
  line-height: 1.4;
}
.chapter-card { padding: 30px 28px; }
.chapter-age { font-size: 58px; }
.chapter-age small { font-size: 16px; }
.chapter h3 { font-size: 31px; }

/* Keep climate and O2 readouts inside the fixed-height atlas cards. */
.climate-card {
  gap: 0;
}
.climate-readout {
  flex: 0 0 auto;
  grid-template-columns: minmax(64px, 82px) 1fr;
  padding: 8px 13px 5px;
}
.climate-orb {
  width: min(6vw, 78px);
}
.climate-orb span {
  font-size: clamp(30px, 3vw, 44px);
}
.climate-readout p:last-child {
  margin-top: 4px;
  font-size: 11px;
}
.climate-scale {
  flex: 0 0 auto;
  padding: 0 13px;
}
.oxygen-readout {
  flex: 0 0 auto;
  margin: 7px 13px 0;
  padding-top: 6px;
}
.oxygen-head {
  line-height: 1.15;
}
.oxygen-head strong {
  font-size: 22px;
  line-height: 1;
}
.oxygen-readout p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}
.climate-card .card-note {
  flex: 0 1 auto;
  margin-top: 7px;
  padding: 0 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-height: 850px) and (min-width: 901px) {
  .climate-readout {
    grid-template-columns: minmax(58px, 70px) 1fr;
    padding: 6px 11px 4px;
  }
  .climate-orb {
    width: min(5vw, 66px);
  }
  .climate-orb span {
    font-size: 32px;
  }
  .climate-readout h3 {
    font-size: 18px;
  }
  .climate-readout p:last-child,
  .oxygen-readout p {
    font-size: 10.5px;
    line-height: 1.3;
  }
  .oxygen-readout {
    margin-top: 5px;
    padding-top: 5px;
  }
  .climate-card .card-note {
    display: none;
  }
}

@media (max-height: 680px) and (min-width: 901px) {
  .oxygen-readout p {
    display: none;
  }
}

/* Narrow atlas mode: top half is the floating globe panel, bottom half is a scrollable timeline. */
@media (max-width: 900px) {
  .atlas-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(330px, 58%) minmax(200px, 1fr);
    gap: 10px;
    height: calc(var(--viewport-height, 100dvh) - 72px);
    min-height: 560px;
    padding: 10px 8px 12px;
    overflow: hidden;
  }
  .comparison-panel {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 10px;
    z-index: 4;
  }
  .panel-head {
    align-items: center;
    padding-bottom: 8px;
  }
  .panel-head .section-tag { margin-bottom: 4px; }
  .age-row strong { font-size: clamp(38px, 8.5vw, 58px); }
  .age-row > span:nth-child(2) { font-size: 19px; }
  .confidence {
    margin-left: 6px;
    padding: 4px 6px;
  }
  .period-lockup strong { font-size: clamp(20px, 5.2vw, 30px); }
  .comparison-grid {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(210px, .38fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }
  .plate-card {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }
  .climate-card {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: 34px auto auto auto;
    align-content: start;
    min-height: 0;
    padding-bottom: 6px;
  }
  .climate-card header {
    min-height: 34px;
    height: 34px;
    padding: 0 9px;
  }
  .life-card { display: none; }
  .map-wrap { min-height: 0; }
  .card-copy {
    padding: 10px 13px 12px;
  }
  .card-copy h3,
  .climate-readout h3 {
    font-size: 20px;
  }
  .plate-card .card-copy p {
    display: block;
    font-size: 12px;
    line-height: 1.55;
  }
  .climate-readout {
    grid-template-columns: 56px 1fr;
    justify-items: start;
    text-align: left;
    gap: 8px;
    padding: 7px 8px 4px;
  }
  .climate-orb {
    width: 54px;
    margin-bottom: 0;
  }
  .climate-orb span { font-size: 28px; }
  .climate-readout .micro-label,
  .climate-readout p:last-child {
    display: none;
  }
  .climate-readout h3 {
    font-size: 17px;
    line-height: 1.2;
  }
  .climate-scale,
  .oxygen-readout {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 0;
    padding-right: 0;
  }
  .climate-scale {
    gap: 6px;
  }
  .oxygen-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }
  .oxygen-head > a {
    font-size: 0;
  }
  .oxygen-head > a::before {
    content: "O₂ [14]";
    font-size: 10px;
    letter-spacing: .1em;
  }
  .oxygen-head strong { font-size: 20px; }
  .oxygen-readout p {
    display: none;
  }
  .climate-card .card-note {
    display: none;
  }
  .panel-foot {
    gap: 8px;
    font-size: 10.5px;
  }
  .chapter-track {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    margin-top: 0;
    padding: 0 10px 48px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y proximity;
    background: rgba(238, 233, 220, .96);
    border: 1px solid rgba(19, 40, 44, .12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  }
  .chapter {
    min-height: auto;
    align-items: stretch;
    padding: 14px 0 16px 18px;
    scroll-snap-align: center;
  }
  .chapter::after {
    top: 36px;
    margin-top: 0;
  }
  .chapter-card {
    padding: 22px 20px;
    opacity: .78;
    transform: none;
    background: rgba(248,244,233,.94);
    backdrop-filter: none;
  }
  .chapter.is-active .chapter-card {
    box-shadow: 0 15px 40px rgba(32,50,50,.1);
  }
  .chapter-age {
    margin-top: 18px;
    font-size: clamp(44px, 9vw, 60px);
  }
  .chapter h3 { font-size: clamp(25px, 5vw, 33px); }
  .chapter-summary { font-size: 14px; }
}

@media (max-width: 620px) {
  .atlas-shell {
    grid-template-rows: minmax(360px, 56%) minmax(245px, 1fr);
    min-height: 640px;
    padding: 8px 7px 10px;
  }
  .comparison-panel {
    padding: 8px;
  }
  .panel-head {
    padding-bottom: 7px;
  }
  .panel-head .section-tag,
  .confidence {
    display: none;
  }
  .age-row strong {
    font-size: clamp(38px, 12vw, 52px);
  }
  .age-row > span:nth-child(2) {
    font-size: 18px;
  }
  .period-lockup strong {
    font-size: clamp(21px, 7vw, 28px);
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 112px;
    gap: 7px;
    padding: 7px 0;
  }
  .data-card header {
    min-height: 36px;
    height: 36px;
  }
  .plate-card {
    grid-column: 1;
    grid-row: 1;
  }
  .climate-card {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    grid-template-rows: 38px 1fr;
    align-items: center;
    padding-bottom: 0;
  }
  .climate-card header {
    display: none;
  }
  .climate-readout {
    grid-column: 1;
    grid-row: 1 / -1;
    display: grid;
    grid-template-columns: 56px 1fr;
    justify-items: start;
    text-align: left;
    gap: 8px;
    padding: 7px 8px;
  }
  .climate-orb {
    width: 54px;
    margin: 0;
  }
  .climate-orb span {
    font-size: 28px;
  }
  .micro-label,
  .climate-readout p:last-child {
    display: none;
  }
  .climate-readout h3 {
    font-size: 17px;
    line-height: 1.2;
  }
  .climate-scale,
  .oxygen-readout {
    grid-column: 2;
    width: calc(100% - 10px);
    margin: 0 5px;
  }
  .climate-scale {
    grid-row: 1;
    align-self: center;
  }
  .oxygen-readout {
    grid-row: 2;
    align-self: center;
    padding-top: 6px;
  }
  .oxygen-head {
    display: flex;
    justify-content: space-between;
    text-align: left;
  }
  .oxygen-head > a,
  .oxygen-scale span {
    font-size: 10px;
  }
  .oxygen-head > a {
    font-size: 0;
  }
  .oxygen-head > a::before {
    content: "O₂ [14]";
    font-size: 10px;
  }
  .oxygen-head strong {
    font-size: 20px;
  }
  .oxygen-readout p {
    display: none;
  }
  .landscape-labels,
  .globe-controls,
  .landscape-caption {
    font-size: 10px;
  }
  .plate-card .card-copy {
    display: none;
  }
  .panel-foot span:last-child {
    display: none;
  }
  .chapter-track {
    padding: 0 9px 44px 22px;
  }
  .chapter {
    padding-left: 15px;
  }
  .chapter-card {
    padding: 20px 18px;
  }
  .chapter-no,
  .chapter-tags span,
  .chapter-sources {
    font-size: 11px;
  }
  .chapter-age {
    font-size: clamp(42px, 14vw, 56px);
  }
  .chapter h3 {
    font-size: clamp(24px, 7vw, 31px);
  }
}

@media (max-width: 900px) and (max-height: 620px) {
  .atlas-shell {
    grid-template-rows: minmax(250px, 50%) minmax(180px, 1fr);
    min-height: 0;
  }
  .comparison-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .34fr);
  }
  .panel-head {
    padding-bottom: 6px;
  }
  .period-lockup span {
    display: none;
  }
  .card-copy {
    display: none;
  }
  .data-card header {
    min-height: 34px;
    height: 34px;
  }
  .climate-readout {
    padding-top: 5px;
  }
  .climate-orb {
    width: min(64px, 12vw);
  }
  .oxygen-readout p {
    display: none;
  }
  .chapter {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .chapter-card {
    padding: 18px 18px;
  }
}

@media (max-width: 900px) and (max-height: 760px) {
  .panel-head .section-tag {
    display: none;
  }
  .panel-head {
    padding-bottom: 6px;
  }
  .plate-card .card-copy {
    display: none;
  }
  .age-row strong {
    font-size: clamp(36px, 8vw, 52px);
  }
  .period-lockup strong {
    font-size: clamp(20px, 4.7vw, 27px);
  }
}

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