/* ============================================================
   The Answer Garden — garden.css
   Fraunces (display, organic serif) + Poppins (UI/body)
   Palette is driven by CSS custom properties set from js/core.js
   ============================================================ */

:root {
  /* Google brand */
  --g-blue: #4285F4;
  --g-red: #EA4335;
  --g-yellow: #FBBC05;
  --g-green: #34A853;

  /* time-of-day (overwritten by JS) */
  --sky-top: #f4f8ff;
  --sky-mid: #fdfbf4;
  --sky-bottom: #eef6ee;
  --ink: #202124;
  --ink-soft: rgba(32, 33, 36, 0.62);
  --field-bg: rgba(255, 255, 255, 0.82);
  --field-border: rgba(32, 33, 36, 0.14);
  --panel-bg: rgba(255, 255, 255, 0.6);

  /* season (overwritten by JS) */
  --season: #34A853;
  --season-haze: rgba(52, 168, 83, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  transition: color 1.6s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

/* JS animates these variables; body background needs a gentle crossfade.
   We approximate by transitioning a semi-transparent overlay instead. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--season-haze) 50%, var(--sky-bottom) 100%);
  transition: opacity 1.6s ease;
  pointer-events: none;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--ink); color: var(--sky-top);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; text-decoration: none;
  transition: top 0.25s ease;
}
.skip-link:focus-visible { top: 14px; }

/* ---------- atmosphere layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; z-index: 39;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 58%, rgba(20, 18, 30, 0.16) 100%);
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2.5px solid var(--season);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#garden-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.sun-glow {
  position: absolute;
  left: 50%; top: 54%;
  width: min(680px, 92vw); height: 340px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--season-haze) 0%, transparent 68%);
  opacity: 0.55;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero.is-focused .sun-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px 96px;
  width: 100%;
  max-width: 760px;
}

/* --- doodle --- */
.doodle-wrap { margin-bottom: 6px; }
#doodle-canvas {
  width: min(560px, 86vw);
  height: auto;
  display: block;
}
.doodle-caption {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wordmark {
  width: clamp(180px, 34vw, 260px);
  height: auto;
  margin-top: 10px;
  filter: drop-shadow(0 2px 14px rgba(255, 255, 255, 0.35));
}
body[data-phase="night"] .wordmark {
  filter: drop-shadow(0 0 22px rgba(190, 210, 255, 0.35));
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(17px, 2.6vw, 22px);
  color: var(--ink-soft);
  margin: 10px 0 30px;
  letter-spacing: 0.01em;
}
.tagline em { color: var(--season); transition: color 1.6s ease; }

/* --- search: the sun --- */
.search {
  position: relative;
  width: min(600px, 92vw);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 12px 0 22px;
  border-radius: 999px;
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 2px rgba(20, 20, 40, 0.04),
    0 12px 34px -12px rgba(30, 40, 60, 0.18);
  transition: box-shadow 0.45s ease, border-color 0.45s ease, transform 0.45s var(--ease-spring);
}
.search-field:focus-within {
  border-color: var(--season);
  transform: scale(1.025);
  box-shadow:
    0 2px 4px rgba(20, 20, 40, 0.05),
    0 20px 50px -14px var(--season-haze),
    0 0 0 6px var(--season-haze);
}
.search-leaf {
  width: 21px; height: 21px;
  color: var(--ink-soft);
  flex: none;
  transition: color 0.4s ease;
}
.search-field:focus-within .search-leaf { color: var(--season); }
#search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  height: 100%;
}
#search-input::placeholder {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
}
.search-go {
  flex: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--season);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-spring), background 1.6s ease, box-shadow 0.35s ease;
}
.search-go svg { width: 20px; height: 20px; }
.search-go:hover { transform: rotate(18deg) scale(1.1); box-shadow: 0 6px 18px -4px var(--season-haze); }

/* --- petal suggestions --- */
.petal-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  position: relative;
  z-index: 3;
}
.petal-list:empty { display: none; }
.petal {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--panel-bg);
  border: 1px solid var(--field-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px 999px 999px 6px;
  padding: 8px 16px 8px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform-origin: 20% 110%;
  animation: petal-bloom 0.5s var(--ease-spring) backwards;
  animation-delay: calc(var(--n) * 55ms);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease, border-color 0.25s ease;
}
.petal:nth-child(even) { border-radius: 999px 999px 6px 999px; transform-origin: 80% 110%; }
@keyframes petal-bloom {
  from { transform: scale(0.2) rotate(var(--tilt, 0deg)); opacity: 0; }
  to   { transform: scale(1) rotate(var(--tilt, 0deg)); opacity: 1; }
}
.petal::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50% 50% 50% 2px;
  background: var(--pc, var(--g-blue));
  flex: none;
}
.petal:nth-child(4n+1) { --pc: var(--g-blue); }
.petal:nth-child(4n+2) { --pc: var(--g-red); }
.petal:nth-child(4n+3) { --pc: var(--g-yellow); }
.petal:nth-child(4n+4) { --pc: var(--g-green); }
.petal:hover, .petal.is-active {
  transform: scale(1.08) rotate(var(--tilt, 0deg));
  background: var(--field-bg);
  border-color: var(--pc);
}

.hero-hint {
  margin-top: 26px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.scroll-cue svg { width: 20px; height: 20px; animation: cue-bob 2.4s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-cue:hover { color: var(--season); }

/* ============================================================
   SPECIES SECTIONS
   ============================================================ */
#species { position: relative; z-index: 2; }

.garden-map-label {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  padding: 9vh 20px 0;
}

.species {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 11vh 24px;
}
.species:nth-of-type(even) .species-visual { order: 2; }

.species-visual { display: grid; place-items: center; min-height: 280px; }

.viz {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.species-copy { max-width: 420px; }
.species:nth-of-type(even) .species-copy { justify-self: end; text-align: right; }
.specimen-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--field-border);
  background: var(--panel-bg);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.species h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.species h2::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  border-radius: 3px;
  margin-top: 12px;
  background: var(--species-accent, var(--season));
}
.species:nth-of-type(even) h2::after { margin-left: auto; }
.species-line {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* reveal on scroll */
.species .species-visual,
.species .species-copy {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-spring);
}
.species.in-view .species-visual,
.species.in-view .species-copy { opacity: 1; transform: none; }
.species.in-view .species-copy { transition-delay: 0.12s; }

/* --- Gemini: iridescent, generative, curious --- */
.species--gemini { --species-accent: #9b72cb; }
.gemini-halo {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--g-blue), #9b72cb, var(--g-red), var(--g-yellow), var(--g-green), var(--g-blue));
  filter: blur(38px) saturate(1.5);
  opacity: 0.42;
  animation: halo-spin 14s linear infinite;
}
@keyframes halo-spin {
  from { transform: rotate(0deg); filter: blur(38px) saturate(1.5) hue-rotate(0deg); }
  to   { transform: rotate(360deg); filter: blur(38px) saturate(1.5) hue-rotate(360deg); }
}
.viz-gemini {
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.spiro { position: relative; z-index: 1; width: 100%; height: 100%; }
.viz-gemini .viz-icon {
  position: absolute; z-index: 2;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.8));
}

/* --- Search: the classic bloom, steady breathing --- */
.species--search { --species-accent: var(--g-blue); }
.viz-searchbloom { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}
.classic-bloom { position: absolute; inset: 12%; }
.classic-bloom i {
  position: absolute;
  left: 50%; top: 50%;
  width: 26%; height: 44%;
  margin: -44% 0 0 -13%;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-26%);
  transform-origin: 50% 100%;
  opacity: 0.85;
}
.classic-bloom i:nth-child(4n+1) { background: color-mix(in srgb, var(--g-blue) 78%, transparent); }
.classic-bloom i:nth-child(4n+2) { background: color-mix(in srgb, var(--g-red) 78%, transparent); }
.classic-bloom i:nth-child(4n+3) { background: color-mix(in srgb, var(--g-yellow) 78%, transparent); }
.classic-bloom i:nth-child(4n+4) { background: color-mix(in srgb, var(--g-green) 78%, transparent); }
.viz-searchbloom .viz-icon {
  position: relative; z-index: 1;
  background: var(--field-bg);
  border-radius: 50%;
  padding: 14px;
  width: 74px; height: 74px;
  box-shadow: 0 8px 30px -8px rgba(30, 40, 60, 0.25);
}

/* --- Maps: self-drawing stem --- */
.species--maps { --species-accent: var(--g-green); }
.viz-maps svg { width: 100%; height: 100%; overflow: visible; }
.maps-path {
  stroke: var(--g-green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 6 9;
}
.maps-pin .pin-bud {
  fill: var(--field-bg);
  stroke: var(--g-green);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-spring);
  transform: scale(0.2);
}
.maps-pin.bloomed .pin-bud { opacity: 1; transform: scale(1); }
.viz-icon--pin {
  position: absolute;
  left: calc(50% + 66px); top: calc(50% - 122px);
  opacity: 0;
  transform: scale(0.2) translateY(10px);
  transform-origin: 50% 100%;
  transition: opacity 0.5s ease 0.1s, transform 0.7s var(--ease-spring) 0.1s;
}
.viz-maps.bloomed .viz-icon--pin { opacity: 1; transform: scale(1) translateY(0); }

/* --- YouTube: resonant seed pod --- */
.species--youtube { --species-accent: var(--g-red); }
.viz-pod { width: min(300px, 66vw); }
.pod {
  position: relative;
  z-index: 2;
  width: 62%;
  aspect-ratio: 1.25;
  border-radius: 46% 54% 52% 48% / 58% 60% 40% 42%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(150deg, #ff6d5e, var(--g-red) 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px -14px rgba(234, 67, 53, 0.55);
  animation: pod-pulse 4.2s ease-in-out infinite;
  transition: transform 0.4s var(--ease-spring);
}
.viz-pod:hover .pod { transform: scale(1.07) rotate(-2deg); }
@keyframes pod-pulse {
  0%, 100% { border-radius: 46% 54% 52% 48% / 58% 60% 40% 42%; }
  50% { border-radius: 52% 48% 46% 54% / 46% 52% 48% 54%; }
}
.ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 70%; aspect-ratio: 1;
  border: 2px solid var(--g-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: ripple-out 4.2s ease-out infinite;
}
.ripple.r2 { animation-delay: 1.4s; }
.ripple.r3 { animation-delay: 2.8s; }
@keyframes ripple-out {
  0% { width: 46%; opacity: 0.5; }
  70% { opacity: 0.12; }
  100% { width: 108%; opacity: 0; }
}
.viz-pod .viz-icon { position: relative; z-index: 3; }

/* --- Android: springy sprout --- */
.species--android { --species-accent: var(--g-green); }
.viz-sprout { cursor: pointer; }
.sprout-plant {
  position: relative;
  width: 100%; height: 100%;
  transform-origin: 50% 92%;
}
.sprout-stem {
  position: absolute;
  left: 50%; bottom: 10%;
  width: 7px; height: 46%;
  margin-left: -3.5px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7ec850, var(--g-green));
}
.sprout-leaf {
  position: absolute;
  bottom: 38%;
  width: 30%; height: 17%;
  background: linear-gradient(120deg, #8fd95e, var(--g-green));
}
.sprout-leaf.left {
  right: 50%;
  border-radius: 100% 8% 100% 8%;
  transform: rotate(-16deg);
  transform-origin: 100% 100%;
}
.sprout-leaf.right {
  left: 50%;
  bottom: 48%;
  border-radius: 8% 100% 8% 100%;
  transform: rotate(16deg);
  transform-origin: 0 100%;
}
.sprout-bud {
  position: absolute;
  left: 50%; top: 12%;
  transform: translateX(-50%);
  width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #c9f2a8, #8fd95e 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -12px rgba(52, 168, 83, 0.6);
}
.sprout-shadow {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 56%; height: 5%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(30, 50, 30, 0.16);
  filter: blur(4px);
}

/* --- Chrome: orbital petals --- */
.species--chrome { --species-accent: var(--g-yellow); }
.orbit-ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 26s linear infinite;
}
.viz-orbit:hover .orbit-ring { animation-duration: 9s; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-petal {
  position: absolute;
  left: 50%; top: 50%;
  width: 17%; height: 30%;
  margin: -15% 0 0 -8.5%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform-origin: 50% 100%;
  opacity: 0.9;
  box-shadow: 0 6px 18px -6px rgba(30, 40, 60, 0.3);
}
.orbit-petal.p-blue   { background: var(--g-blue);   transform: rotate(0deg)   translateY(-128%); }
.orbit-petal.p-red    { background: var(--g-red);    transform: rotate(90deg)  translateY(-128%); }
.orbit-petal.p-yellow { background: var(--g-yellow); transform: rotate(180deg) translateY(-128%); }
.orbit-petal.p-green  { background: var(--g-green);  transform: rotate(270deg) translateY(-128%); }
.viz-orbit .viz-icon { position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(30, 40, 60, 0.3)); }

/* --- Cloud: drifting vapor --- */
.species--cloud { --species-accent: var(--g-blue); }
#cloud-canvas { width: 100%; height: auto; }
.viz-cloud .viz-icon {
  position: absolute;
  filter: drop-shadow(0 6px 16px rgba(66, 133, 244, 0.4));
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--field-border);
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 28px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-row--fine {
  border-top: 1px solid var(--field-border);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer a:hover { color: var(--season); }
#env-readout { font-variant-numeric: tabular-nums; text-transform: lowercase; }
.footer-note { margin-left: auto; }

/* ============================================================
   ANSWER OVERLAY — "the garden answers"
   ============================================================ */
.answer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(12, 14, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlay-in 0.5s ease;
}
.answer-overlay[hidden] { display: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
#burst-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.answer-panel {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 28px;
  max-width: 620px;
  color: #f4f6ff;
}
.answer-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 18px;
}
.answer-query {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(28px, 5.6vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  text-wrap: balance;
}
.answer-line {
  font-size: 14.5px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 auto 30px;
  max-width: 420px;
}
.answer-close {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #10131f;
  background: #f4f6ff;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.answer-close:hover { transform: scale(1.06); box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.5); }

/* ============================================================
   NIGHT PHASE adjustments
   ============================================================ */
body[data-phase="night"] .vignette {
  background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 52%, rgba(2, 4, 12, 0.5) 100%);
}
body[data-phase="night"] .grain { opacity: 0.09; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .hero-inner { padding-top: 34px; }
  .search-field { height: 56px; }
  .species {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 9vh 22px;
    text-align: center;
  }
  .species:nth-of-type(even) .species-visual { order: 0; }
  .species:nth-of-type(even) .species-copy { justify-self: center; text-align: center; }
  .species h2::after, .species:nth-of-type(even) h2::after { margin-left: auto; margin-right: auto; }
  .species-copy { justify-self: center; }
  .species-visual { min-height: 220px; }
  .viz { width: min(280px, 72vw); }
  .footer-row { justify-content: center; text-align: center; }
  .footer-note { margin-left: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .scroll-cue svg { animation: none; }
  .species .species-visual, .species .species-copy { opacity: 1; transform: none; }
}
