/* =============================================================================
   THE DESERT SPEAKS — Modern Edition
   Light warm palette · map-as-base · editorial field-journal
   ============================================================================= */

:root {
  /* Palette — warm desert, bone, ink */
  --bone:        #F5EFE4;
  --bone-2:      #EDE4D3;
  --sand:        #E0D1B3;
  --clay:        #B8804A;
  --clay-deep:   #8C5A2E;
  --ink:         #1F1A14;
  --ink-2:       #3A3228;
  --mute:        #7A6E5D;
  --line:        rgba(31, 26, 20, 0.14);
  --line-2:      rgba(31, 26, 20, 0.06);
  --oasis:       #4F6B3F;
  --night-heron: #2B3A3F;

  /* Type */
  --serif:  "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body:   "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans:   "Inter Tight", "Inter", system-ui, sans-serif;
  --mono:   "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Space */
  --pad-edge: clamp(1.25rem, 3vw, 2.25rem);
  --maxw: 620px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bone); color: var(--ink); }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ============================================================================
   MAP BASE — full-viewport fixed layer
   ============================================================================ */
#map-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bone-2);
}
#map { width: 100%; height: 100%; }

/* warm the tiles a touch — make them feel like parchment */
.leaflet-tile-pane {
  filter: sepia(22%) saturate(78%) brightness(1.04) contrast(0.96) hue-rotate(-6deg);
  mix-blend-mode: multiply;
}
.leaflet-container { background: var(--bone-2) !important; font-family: var(--mono) !important; }
.leaflet-control-attribution {
  background: rgba(245,239,228,0.8) !important;
  color: var(--mute) !important;
  font-family: var(--mono);
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--clay-deep) !important; }
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 12px rgba(31,26,20,0.12) !important;
}
.leaflet-control-zoom a {
  background: var(--bone) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  font-family: var(--sans);
}

/* ============================================================================
   TOP BAR
   ============================================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad-edge);
  background: linear-gradient(to bottom, rgba(245,239,228,0.92), rgba(245,239,228,0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.55rem;
}
.mark .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(184,128,74,0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(184,128,74,0.18); }
  50%     { box-shadow: 0 0 0 9px rgba(184,128,74,0.02); }
}
.top-meta {
  display: flex; gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.top-meta span { display: flex; gap: .4rem; align-items: center;}
.top-meta .key { color: var(--ink); }

/* ============================================================================
   HERO — rotatable via data-hero on <body>
   ============================================================================ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 8rem var(--pad-edge) 6rem;
  display: flex; align-items: flex-end;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clay-deep);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--clay);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay-deep);
}
.hero .lede {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero .byline {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.hero .byline strong { color: var(--ink); font-weight: 500; }

/* Hero side panel */
.hero-side {
  position: relative;
  display: grid;
  gap: 1rem;
}

/* Variant A: photo */
body[data-hero="photo"] .hero-photo { display: block; }
body[data-hero="photo"] .hero-spectro,
body[data-hero="photo"] .hero-type { display: none; }

.hero-photo {
  display: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
  position: relative;
  border-radius: 2px;
  box-shadow:
    0 30px 60px -20px rgba(31,26,20,0.35),
    0 10px 20px -10px rgba(31,26,20,0.2);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.hero-photo .cap {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(245,239,228,0.92);
  padding: .5rem .75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Variant B: spectrogram / audio player */
body[data-hero="audio"] .hero-spectro { display: flex; }
body[data-hero="audio"] .hero-photo,
body[data-hero="audio"] .hero-type { display: none; }

.hero-spectro {
  display: none;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  color: var(--bone);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(31,26,20,0.35);
}
.hero-spectro .spectro-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,239,228,0.6);
  margin-bottom: 1rem;
}
.hero-spectro .spectro-head .rec {
  color: var(--clay); display: flex; align-items: center; gap: .4rem;
}
.hero-spectro .spectro-head .rec::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--clay);
  animation: pulse 2s ease-in-out infinite;
}
.hero-spectro .wave { flex: 1; position: relative; margin: 1rem 0; }
.hero-spectro svg { width: 100%; height: 100%; }
.hero-spectro .wave-info {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245,239,228,0.85);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.hero-spectro .play-row {
  display: flex; align-items: center; gap: 1rem;
}
.play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--clay);
  color: var(--bone);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  font-size: 1rem;
  transition: transform .2s;
}
.play-btn:hover { transform: scale(1.08); }
.play-meta {
  font-family: var(--mono); font-size: 0.72rem;
  color: rgba(245,239,228,0.65);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.play-meta strong { color: var(--bone); font-weight: 500; }

/* Variant C: typography / route drawing */
body[data-hero="type"] .hero-type { display: grid; }
body[data-hero="type"] .hero-photo,
body[data-hero="type"] .hero-spectro { display: none; }

.hero-type {
  display: none;
  aspect-ratio: 4 / 5;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(245, 239, 228, 0.6);
  backdrop-filter: blur(8px);
}
.hero-type .route-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute);
}
.hero-type .route-head .on { color: var(--clay-deep); }
.hero-type svg { width: 100%; height: 100%; }
.hero-type .route-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .5rem; font-family: var(--mono);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.hero-type .route-meta div { display: grid; gap: .1rem; }
.hero-type .route-meta .n {
  font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1;
}
.hero-type .route-meta .l {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem; left: var(--pad-edge);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  display: flex; align-items: center; gap: .75rem;
}
.scroll-cue .tick { width: 40px; height: 1px; background: currentColor; animation: tick 2s ease-in-out infinite; }
@keyframes tick {
  0%,100% { transform: scaleX(1); opacity: .5; }
  50%     { transform: scaleX(1.5); opacity: 1; }
}

/* ============================================================================
   STORY CHAPTERS — scroll over the map
   ============================================================================ */
.story {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-edge);
}
.chapter {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9rem 0;
  position: relative;
}
.chapter.wide { max-width: 880px; }

.chap-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .8rem;
}
.chap-num::before {
  content: ""; width: 32px; height: 1px; background: var(--clay);
}
.chap-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.chap-title em { font-style: italic; color: var(--clay-deep); font-weight: 300; }

.chapter p {
  margin-bottom: 1.25rem;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.75;
}
.chapter p strong { color: var(--ink); font-weight: 600; }
.chapter p em { font-style: italic; }

/* Drop cap on first para of certain chapters */
.chapter.with-dropcap > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.8rem;
  line-height: 0.9;
  float: left;
  margin: 0.1em 0.08em 0 -0.02em;
  color: var(--clay-deep);
  font-weight: 400;
}

/* Chapter card on map background */
.card {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 20px 50px -25px rgba(31,26,20,0.25), 0 6px 15px -10px rgba(31,26,20,0.12);
}

/* Pull quote */
.pull {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.25;
  color: var(--clay-deep);
  margin: 3rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 2px solid var(--clay);
  max-width: 30ch;
}

/* Stat block */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  display: grid; gap: 0.35rem;
}
.stat .v {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}
.stat .l {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.3;
}

/* Section label (between chapters) */
.section-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--mute);
  padding: 4rem 0 2rem;
  position: relative;
}
.section-label span {
  background: var(--bone);
  padding: 0 1rem;
  position: relative; z-index: 1;
}
.section-label::before {
  content: ""; position: absolute; left: 20%; right: 20%; top: 50%;
  height: 1px; background: var(--line);
}

/* Field photo full-bleed */
.field-photo {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 var(--pad-edge);
  position: relative; z-index: 2;
}
.field-photo figure {
  background: var(--sand);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(31,26,20,0.3);
}
.field-photo img {
  width: 100%; height: auto;
  aspect-ratio: 16/9; object-fit: cover;
  display: block;
}
.field-photo figcaption {
  display: grid; grid-template-columns: auto 1fr;
  gap: 1.5rem; padding: 1rem 1.25rem;
  background: var(--bone);
  border: 1px solid var(--line); border-top: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.05em;
}
.field-photo figcaption .n {
  color: var(--clay-deep); font-weight: 500;
}
.field-photo figcaption p { margin: 0; color: var(--ink-2); line-height: 1.5; font-family: var(--body); font-size: 0.88rem; }

/* Notable species cards */
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
@media (max-width: 780px) { .species-grid { grid-template-columns: 1fr; } }
.species-card {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 1.5rem;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.species-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -15px rgba(31,26,20,0.3);
}
.species-card .illus {
  aspect-ratio: 1;
  background: var(--bone-2);
  margin-bottom: 1rem;
  display: grid; place-items: center;
  overflow: hidden;
}
.species-card .illus img { width: 80%; height: 80%; object-fit: contain; }
.species-card .com {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.1;
  margin-bottom: 0.2rem;
}
.species-card .sci {
  font-family: var(--body); font-style: italic; color: var(--mute);
  font-size: 0.88rem; margin-bottom: .75rem;
}
.species-card .meta {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute);
  display: flex; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--line);
}
.species-card .meta strong { color: var(--ink); font-weight: 500;}
.species-card .tag {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: .2rem .5rem;
  background: var(--clay); color: var(--bone);
}

/* ============================================================================
   CHART SECTION
   ============================================================================ */
.charts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem var(--pad-edge);
  position: relative; z-index: 2;
}
.charts-head {
  max-width: var(--maxw);
  margin: 0 auto 4rem;
  text-align: left;
}
.chart-block {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  box-shadow: 0 15px 40px -25px rgba(31,26,20,0.2);
}
.chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.chart-head .ft {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em;
}
.chart-head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.2;
  letter-spacing: -0.01em;
}
.chart-note {
  font-family: var(--body); font-style: italic;
  color: var(--mute); font-size: 0.9rem;
  margin-top: 1rem; line-height: 1.55;
  max-width: 70ch;
}

.chart-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin: 2rem 0;
}
@media (max-width: 780px) { .chart-grid-2 { grid-template-columns: 1fr; } }

/* SVG chart primitives */
.svg-chart { width: 100%; height: auto; overflow: visible; }
.svg-chart .axis-line { stroke: var(--line); stroke-width: 1; }
.svg-chart .tick-label {
  font-family: var(--mono); font-size: 10px; fill: var(--mute);
}
.svg-chart .axis-title {
  font-family: var(--mono); font-size: 10px; fill: var(--mute);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.svg-chart .bar { fill: var(--clay); transition: fill .2s; }
.svg-chart .bar:hover { fill: var(--clay-deep); }
.svg-chart .bar-label {
  font-family: var(--body); font-size: 11px; fill: var(--ink);
}
.svg-chart .bar-sci {
  font-family: var(--body); font-size: 10px; fill: var(--mute);
  font-style: italic;
}
.svg-chart .line { stroke: var(--clay); stroke-width: 2; fill: none; }
.svg-chart .area { fill: var(--clay); opacity: 0.14; }
.svg-chart .dot { fill: var(--clay); transition: r .2s; }
.svg-chart .dot:hover { r: 6; fill: var(--clay-deep); }
.svg-chart .grid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }

.chart-tip {
  position: absolute;
  background: var(--ink);
  color: var(--bone);
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(31,26,20,0.3);
}
.chart-tip.on { opacity: 1; }
.chart-tip strong { color: var(--clay); font-weight: 500; }

/* Diel ring chart */
.diel-ring { max-width: 380px; margin: 0 auto; }

/* Legend */
.legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mute);
  margin-top: 1rem;
}
.legend span { display: flex; align-items: center; gap: .4rem; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  position: relative; z-index: 2;
  background: var(--ink);
  color: var(--bone);
  padding: 6rem var(--pad-edge) 3rem;
  margin-top: 6rem;
}
footer .foot-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
@media (max-width: 780px) { footer .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
footer h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 2rem; line-height: 1.1; margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--clay); margin-bottom: 1rem;
}
footer p { color: rgba(245,239,228,0.78); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer li { padding: .3rem 0; font-size: 0.88rem; }
footer li a { color: rgba(245,239,228,0.85); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
footer li a:hover { border-bottom-color: var(--clay); }
footer .colophon {
  max-width: 1100px; margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,239,228,0.12);
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(245,239,228,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ============================================================================
   TWEAKS PANEL
   ============================================================================ */
.tweaks {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  z-index: 100;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  box-shadow: 0 15px 30px -10px rgba(31,26,20,0.3);
  display: none;
  min-width: 220px;
}
.tweaks.on { display: block; }
.tweaks .t-head { display: flex; justify-content: space-between; margin-bottom: .75rem; color: var(--ink); }
.tweaks .t-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.tweaks button {
  background: transparent;
  border: 1px solid var(--line);
  padding: .55rem .4rem;
  font-family: inherit; font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
}
.tweaks button:hover { border-color: var(--clay); color: var(--clay-deep); }
.tweaks button.active {
  background: var(--ink); color: var(--bone); border-color: var(--ink);
}

/* ============================================================================
   SCROLL PROGRESS
   ============================================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 60;
}
.scroll-progress > i {
  display: block; height: 100%;
  background: var(--clay);
  width: 0;
  transition: width 0.1s linear;
}

/* ============================================================================
   REVEAL on scroll
   ============================================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
