@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07152e;
  --ink-soft: #193253;
  --ink-muted: #52647d;
  --blue: #1877c9;
  --blue-bright: #35a7ff;
  --blue-deep: #0c3f70;
  --sky: #dcefff;
  --ivory: #f7f3ea;
  --paper: #fffdf8;
  --mist: #eef5f7;
  --lavender: #d9d4ff;
  --mint: #dcefe7;
  --gold: #d6a85f;
  --white: #fff;
  --black: #030b18;
  --border-light: rgba(7, 21, 46, .14);
  --border-dark: rgba(255, 255, 255, .18);
  --shadow-soft: 0 20px 60px rgba(7, 21, 46, .12);
  --shadow-deep: 0 30px 90px rgba(3, 11, 24, .28);
  --page-padding: clamp(20px, 4vw, 72px);
  --content-wide: 1680px;
  --content-standard: 1440px;
  --content-narrow: 880px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 88px;
  --space-9: 120px;
  --space-10: 160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: clamp(1rem, .25vw + .96rem, 1.125rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-locked, body.modal-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(4rem, 7vw, 8.5rem); }
h2 { font-size: clamp(2.8rem, 5vw, 6.25rem); }
h3 { font-size: clamp(1.7rem, 2.4vw, 3rem); line-height: 1.06; }
p { margin-bottom: 1.15rem; }
em, .latin { font-family: var(--serif); font-style: italic; }
::selection { color: var(--white); background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 4px; }

.container-wide {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-wide));
  margin-inline: auto;
}
.container {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-standard));
  margin-inline: auto;
}
.container-narrow {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-narrow));
  margin-inline: auto;
}
.section { position: relative; padding-block: clamp(72px, 8vw, 136px); }
.section-tight, .section-compact { padding-block: clamp(48px, 6vw, 96px); }
.section-dark { color: var(--white); background: var(--ink); }
.section-blue { color: var(--white); background: var(--blue-deep); }
.section-mist { background: var(--mist); }
.section-paper { background: var(--paper); }
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.noscript-nav { padding: 18px var(--page-padding); color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--border-light); font-size: .82rem; }
.noscript-nav a { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { width: 32px; height: 1px; content: ""; background: currentColor; }
.section-dark .eyebrow, .section-blue .eyebrow { color: #87cfff; }
.lede {
  max-width: 66ch;
  color: var(--ink-muted);
  font-size: clamp(1.08rem, .6vw + 1rem, 1.38rem);
  line-height: 1.65;
}
.section-dark .lede, .section-blue .lede { color: rgba(255, 255, 255, .72); }
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > .lede, .section-head > :last-child:not(:first-child) { grid-column: 9 / -1; margin-bottom: 0; }
.section-head h2 { text-wrap: balance; }
.intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-3px); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); }
.button-ghost { color: inherit; background: transparent; border-color: currentColor; }
.button-ghost:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button-cream { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 700;
}
.text-link::after { content: "↗"; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px, -3px); }
.plain-button {
  padding: 0;
  color: var(--blue);
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #176346;
  background: var(--mint);
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
}
.tag.warn { color: #754b0c; background: #f4e4c4; }
.tag.risk { color: #862e40; background: #f4d7de; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled, .site-header.inner-header {
  color: var(--ink);
  background: rgba(255, 253, 248, .94);
  border-color: var(--border-light);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.brand-mark { width: 28px; height: 30px; display: inline-block; position: relative; }
.brand-mark::before, .brand-mark::after {
  position: absolute;
  top: 4px;
  width: 12px;
  height: 21px;
  content: "";
  background: linear-gradient(155deg, #7dd6ff 0%, #2485dd 58%, #6b64d7 100%);
  border-radius: 90% 18% 82% 28%;
}
.brand-mark::before { left: 1px; transform: rotate(-12deg); }
.brand-mark::after { right: 1px; transform: scaleX(-1) rotate(-12deg); }
.nav-cluster { display: flex; align-items: center; gap: clamp(22px, 2vw, 36px); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.35vw, 26px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  position: relative;
  font-size: clamp(.78rem, .18vw + .75rem, .94rem);
  font-weight: 650;
}
.nav-links a::after {
  position: absolute;
  right: 45%;
  bottom: 7px;
  left: 45%;
  height: 2px;
  content: "";
  background: var(--blue-bright);
  border-radius: 2px;
  transition: inset .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 8%; left: 8%; }
.nav-cta { min-height: 44px; padding: 9px 15px; font-size: .82rem; }
.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-content: center;
  gap: 6px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 9px;
}
.menu-toggle span { width: 20px; height: 2px; display: block; background: currentColor; transition: transform .25s ease; }

/* Homepage hero */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #0b2d50 url("../assets/images/hero-poster.webp") center / cover no-repeat;
  isolation: isolate;
}
.hero-video { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 11, 24, .9) 0%, rgba(5, 22, 45, .7) 31%, rgba(5, 22, 45, .14) 67%, rgba(5, 22, 45, .02) 100%),
    linear-gradient(0deg, rgba(3, 11, 24, .62) 0%, transparent 38%);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-top: 100px;
}
.hero-content { grid-column: 1 / span 6; max-width: 820px; }
.hero .eyebrow { color: #b9e5ff; }
.hero-title {
  max-width: 820px;
  font-size: clamp(4.4rem, 7.2vw, 8.5rem);
  line-height: .91;
  letter-spacing: -.048em;
  text-shadow: 0 14px 50px rgba(0, 0, 0, .22);
}
.hero-title span { display: block; white-space: nowrap; }
.hero-copy { max-width: 620px; margin: 28px 0 34px; color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, .55vw + .97rem, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  position: absolute;
  right: var(--page-padding);
  bottom: 42px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 18px;
  padding: 16px 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .4);
  color: rgba(255, 255, 255, .78);
  font-size: .76rem;
  line-height: 1.45;
}
.hero-meta strong { grid-row: span 2; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--white); }
.hero-controls { position: absolute; left: var(--page-padding); bottom: 38px; display: flex; align-items: center; gap: 14px; }
.video-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(3, 11, 24, .34);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.scroll-cue::before { width: 44px; height: 1px; content: ""; background: currentColor; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 50% { opacity: .3; transform: scaleX(.55); transform-origin: left; } }

/* Introduction */
.atlas-intro { background: var(--paper); }
.intro-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2vw, 34px);
  align-items: start;
}
.intro-kicker { grid-column: 1 / span 4; }
.intro-title { grid-column: 1 / span 7; max-width: 980px; font-size: clamp(3.4rem, 6.4vw, 7.6rem); }
.intro-observation {
  grid-column: 9 / -1;
  padding-top: 10px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.3vw, 3rem);
  line-height: 1.15;
}
.intro-visual {
  grid-column: 5 / -1;
  min-height: 620px;
  margin-top: -12px;
  position: relative;
}
.intro-visual img {
  width: 100%;
  height: clamp(520px, 42vw, 760px);
  object-fit: cover;
  object-position: center 46%;
  clip-path: polygon(10% 0, 100% 0, 100% 88%, 86% 100%, 0 100%, 0 14%);
}
.specimen-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 13px 16px;
  color: var(--white);
  background: rgba(3, 11, 24, .82);
  font-size: .75rem;
  line-height: 1.45;
}
.intro-copy { grid-column: 1 / span 4; align-self: end; margin-top: -250px; padding-bottom: 54px; }
.intro-copy p { color: var(--ink-muted); }
.stats-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  margin-top: 34px;
  border-block: 1px solid var(--border-light);
}
.stat {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(20px, 3vw, 48px);
  border-right: 1px solid var(--border-light);
}
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--serif); font-size: clamp(3.6rem, 6vw, 7.5rem); font-weight: 500; line-height: .8; color: var(--blue); letter-spacing: -.05em; }
.stat span { max-width: 18ch; color: var(--ink-muted); font-size: .82rem; line-height: 1.45; }

/* Editorial species */
.species-section { overflow: hidden; background: var(--mist); }
.species-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(16px, 1.7vw, 28px);
}
.species-feature {
  min-height: 420px;
  overflow: hidden;
  position: relative;
  color: var(--white);
  background: var(--ink);
}
.species-feature:nth-child(1) { grid-column: 1 / span 6; grid-row: span 2; min-height: 780px; }
.species-feature:nth-child(2) { grid-column: 7 / span 3; }
.species-feature:nth-child(3) { grid-column: 10 / span 3; }
.species-feature:nth-child(4) { grid-column: 7 / span 2; }
.species-feature:nth-child(5) { grid-column: 9 / span 2; }
.species-feature:nth-child(6) { grid-column: 11 / span 2; }
.species-feature img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .6s ease; }
.species-feature::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(3, 11, 24, .92), transparent 64%); }
.species-feature:hover img { transform: scale(1.035); }
.species-index { position: absolute; z-index: 2; top: 18px; left: 18px; font-family: var(--serif); font-size: 1.2rem; }
.species-info { position: absolute; z-index: 2; right: 20px; bottom: 20px; left: 20px; }
.species-info h3 { margin-bottom: 3px; color: var(--white); font-size: clamp(1.55rem, 2vw, 2.8rem); }
.species-feature:nth-child(n+4) .species-info h3 { font-size: clamp(1.3rem, 1.45vw, 2rem); }
.species-info .latin { margin: 0 0 12px; color: rgba(255, 255, 255, .7); }
.species-info .feature-description { max-width: 48ch; margin-bottom: 18px; color: rgba(255, 255, 255, .76); font-size: .86rem; line-height: 1.55; }
.species-feature:nth-child(n+4) .feature-description { display: none; }
.species-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .72rem; }
.species-meta span { color: rgba(255, 255, 255, .68); }
.species-meta .tag { color: var(--white); background: rgba(255, 255, 255, .14); }
.section-action { display: flex; justify-content: flex-end; margin-top: 34px; }

/* Lifecycle story */
.cycle-home { color: var(--white); background: #07192d; }
.cycle-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.cycle-intro { grid-column: 1 / span 4; align-self: start; position: sticky; top: 130px; }
.cycle-intro h2 { margin-bottom: 28px; }
.cycle-nav { display: grid; gap: 0; margin: 38px 0; border-top: 1px solid var(--border-dark); }
.cycle-tab {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: rgba(255, 255, 255, .48);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-dark);
  cursor: pointer;
  text-align: left;
  transition: color .25s ease;
}
.cycle-tab strong { font-family: var(--serif); font-size: 1.38rem; font-weight: 500; }
.cycle-tab.active, .cycle-tab:hover { color: var(--white); }
.cycle-tab.active::after { width: 32px; height: 2px; content: ""; background: var(--blue-bright); }
.cycle-progress { height: 2px; overflow: hidden; background: rgba(255,255,255,.12); }
.cycle-progress span { width: 25%; height: 100%; display: block; background: var(--blue-bright); transition: width .4s ease; }
.cycle-stage-view {
  grid-column: 6 / -1;
  min-height: min(78vh, 820px);
  overflow: hidden;
  position: relative;
}
.cycle-stage-view img { width: 100%; height: min(78vh, 820px); object-fit: cover; transition: opacity .35s ease; }
.cycle-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 70px);
  background: linear-gradient(0deg, rgba(3, 11, 24, .94), transparent);
}
.cycle-caption .stage-count { font-family: var(--serif); font-size: clamp(3rem, 6vw, 7rem); line-height: .8; color: var(--blue-bright); }
.cycle-caption h3 { color: var(--white); }
.cycle-caption p { max-width: 56ch; margin: 12px 0 0; color: rgba(255,255,255,.7); }

/* Museum specimen */
.specimen-section {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 35% 50%, rgba(24, 119, 201, .15), transparent 38%),
    #030b18;
}
.specimen-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.specimen-catalog {
  grid-column: 1 / span 2;
  align-self: start;
  padding-top: 20px;
  color: rgba(255,255,255,.52);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.specimen-catalog strong { display: block; margin-bottom: 18px; color: var(--white); font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.specimen-viewer {
  grid-column: 2 / span 8;
  min-height: 760px;
  display: grid;
  place-items: center;
  position: relative;
}
.specimen-viewer::before, .specimen-viewer::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.11);
}
.specimen-viewer::before { width: 68%; height: 1px; top: 50%; left: 16%; }
.specimen-viewer::after { width: 1px; height: 68%; top: 16%; left: 50%; }
.specimen-image { width: min(92%, 860px); position: relative; z-index: 2; filter: drop-shadow(0 34px 60px rgba(0,0,0,.48)); transition: transform .35s ease; }
.specimen-viewer:has(.anatomy-label.active) .specimen-image { transform: scale(1.025); }
.anatomy-label {
  position: absolute;
  z-index: 4;
  min-height: 44px;
  padding: 8px 12px;
  color: rgba(255,255,255,.7);
  background: rgba(3,11,24,.76);
  border: 1px solid var(--border-dark);
  border-radius: 5px;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.anatomy-label::after { position: absolute; top: 50%; width: 46px; height: 1px; content: ""; background: rgba(255,255,255,.35); }
.anatomy-label:nth-of-type(1) { top: 20%; left: 1%; }
.anatomy-label:nth-of-type(2) { bottom: 22%; left: 3%; }
.anatomy-label:nth-of-type(3) { top: 12%; right: 3%; }
.anatomy-label:nth-of-type(4) { top: 31%; right: 0; }
.anatomy-label:nth-of-type(5) { top: 43%; left: 0; }
.anatomy-label:nth-of-type(6) { bottom: 35%; right: 1%; }
.anatomy-label:nth-of-type(7) { bottom: 19%; right: 4%; }
.anatomy-label:nth-of-type(8) { bottom: 8%; left: 18%; }
.anatomy-label:nth-of-type(odd)::after { right: 100%; }
.anatomy-label:nth-of-type(even)::after { left: 100%; }
.anatomy-label:hover, .anatomy-label.active { color: var(--white); background: var(--blue); border-color: var(--blue-bright); }
.anatomy-info {
  grid-column: 10 / -1;
  padding-left: clamp(12px, 2vw, 34px);
  border-left: 1px solid var(--border-dark);
}
.anatomy-info h2 { margin-bottom: 18px; font-size: clamp(2.7rem, 4.5vw, 5.6rem); color: var(--white); }
.anatomy-info p { color: rgba(255,255,255,.66); }
.anatomy-measure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-block: 22px;
  margin: 24px 0;
  border-block: 1px solid var(--border-dark);
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  text-transform: uppercase;
}
.anatomy-measure strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.35rem; font-weight: 500; text-transform: none; }

/* Habitats editorial */
.habitat-section { background: var(--paper); }
.habitat-editorial { display: grid; gap: clamp(52px, 7vw, 110px); }
.habitat-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
}
.habitat-row:nth-child(odd) .habitat-image { grid-column: 1 / span 7; }
.habitat-row:nth-child(odd) .habitat-copy { grid-column: 9 / -1; }
.habitat-row:nth-child(even) .habitat-image { grid-column: 6 / -1; order: 2; }
.habitat-row:nth-child(even) .habitat-copy { grid-column: 1 / span 4; }
.habitat-image { overflow: hidden; position: relative; }
.habitat-image img { width: 100%; height: clamp(420px, 42vw, 680px); object-fit: cover; transition: transform .7s ease; }
.habitat-row:hover .habitat-image img { transform: scale(1.025); }
.habitat-number { position: absolute; top: 20px; left: 22px; color: var(--white); font-family: var(--serif); font-size: 1.4rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.habitat-copy h3 { margin-bottom: 22px; font-size: clamp(2.6rem, 4vw, 5rem); }
.habitat-copy > p { color: var(--ink-muted); }
.habitat-data { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--border-light); }
.habitat-data div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: .78rem; }
.habitat-data dt { color: var(--ink-muted); }
.habitat-data dd { margin: 0; font-weight: 650; }

/* Magazine feature */
.month-feature { color: var(--white); background: #0a3155; }
.month-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-deep);
}
.month-grid > img { grid-column: 1 / span 7; width: 100%; height: min(82vh, 840px); object-fit: cover; }
.month-copy { grid-column: 8 / -1; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 86px); color: var(--ink); }
.month-copy h2 { margin-bottom: 8px; font-size: clamp(4rem, 7vw, 8.5rem); }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 30px 0; }
.fact-list div { padding: 12px 0; border-top: 1px solid var(--border-light); }
.fact-list small { display: block; color: var(--ink-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.fact-list strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }

/* Conservation */
.conservation-home { overflow: hidden; position: relative; color: var(--white); background: #09203a; isolation: isolate; }
.conservation-home::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("../assets/images/meadow-4.webp") center / cover no-repeat;
  opacity: .28;
}
.conservation-home::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(3,11,24,.97), rgba(3,11,24,.64)); }
.conservation-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; }
.conservation-statement { grid-column: 1 / span 8; }
.conservation-statement h2 { max-width: 1100px; margin-bottom: 30px; }
.threat-strip { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.threat-strip span { padding: 8px 10px; border: 1px solid var(--border-dark); font-size: .74rem; }
.action-list { grid-column: 9 / -1; padding: clamp(24px, 3vw, 46px); background: rgba(255,255,255,.08); border-top: 2px solid var(--blue-bright); backdrop-filter: blur(12px); }
.action-list h3 { margin-bottom: 20px; color: var(--white); font-size: 2rem; }
.action-list ol { padding: 0; margin: 0 0 28px; list-style: none; counter-reset: action; }
.action-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-dark); color: rgba(255,255,255,.76); font-size: .84rem; }
.action-list li::before { counter-increment: action; content: "0" counter(action); color: var(--blue-bright); font-family: var(--serif); }
.action-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 36px 0; }
.action { padding: 20px; background: rgba(255,255,255,.08); border-top: 1px solid var(--border-dark); }
.action span { color: var(--blue-bright); font-family: var(--serif); font-size: 1.6rem; }
.action h3 { margin-top: 24px; color: var(--white); font-family: var(--sans); font-size: .9rem; letter-spacing: 0; }

/* Gallery */
.gallery-section { background: #050d1c; color: var(--white); }
.masonry { columns: 4 320px; column-gap: 14px; }
.gallery-item {
  width: 100%;
  display: block;
  break-inside: avoid;
  padding: 0;
  margin: 0 0 14px;
  overflow: hidden;
  position: relative;
  color: var(--white);
  background: var(--ink-soft);
  border: 0;
  cursor: zoom-in;
  text-align: left;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .55s ease; }
.gallery-item:nth-child(4n+2) img { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(5n+3) img { aspect-ratio: 4 / 6; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 72px 18px 18px;
  background: linear-gradient(0deg, rgba(3,11,24,.88), transparent);
  font-size: .78rem;
  transform: translateY(7px);
  transition: transform .25s ease;
}
.gallery-item:hover .gallery-caption { transform: none; }
.nojs-gallery figure { break-inside: avoid; margin: 0 0 18px; overflow: hidden; background: var(--paper); }
.nojs-gallery img { width: 100%; min-height: 320px; object-fit: cover; }
.nojs-gallery figcaption { padding: 12px 14px; color: var(--ink); font-size: .78rem; }
.lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  place-items: center;
  padding: 70px;
  color: var(--white);
  background: rgba(3, 11, 24, .97);
}
.lightbox.open { display: grid; }
.lightbox figure { max-width: min(1200px, 88vw); margin: 0; text-align: center; }
.lightbox img { max-height: 78vh; margin: auto; }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.72); }
.lightbox button {
  position: absolute;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { top: 50%; left: 20px; }
.lightbox-next { top: 50%; right: 20px; }

/* Facts and newsletter */
.facts-home { background: var(--lavender); }
.fact-rotator { max-width: 1300px; margin: auto; }
.fact-rotator blockquote {
  max-width: 20ch;
  min-height: 0;
  margin: 18px 0 28px;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.rotator-controls { display: flex; gap: 8px; }
.round-control {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  cursor: pointer;
}
.newsletter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  padding: clamp(44px, 7vw, 110px);
  color: var(--white);
  background: var(--blue-deep);
}
.newsletter > div:first-child { grid-column: 1 / span 7; }
.newsletter > div:last-child { grid-column: 9 / -1; }
.newsletter h2 { margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 8px; padding: 6px; background: var(--white); border-radius: 10px; }
.newsletter-form input { min-width: 0; min-height: 48px; flex: 1; padding: 0 14px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.form-note, .form-status { margin: 9px 0 0; font-size: .74rem; }
.form-status { min-height: 1.4em; font-weight: 700; }

/* Internal page hero */
.page-hero {
  min-height: min(78vh, 820px);
  display: grid;
  align-items: end;
  padding: 150px 0 clamp(54px, 7vw, 100px);
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}
.page-hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background: linear-gradient(90deg, rgba(3,11,24,.92) 0%, rgba(3,11,24,.36) 68%, transparent); }
.page-hero-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.page-hero .container { width: min(calc(100% - (var(--page-padding) * 2)), var(--content-wide)); }
.page-hero h1 { max-width: 1150px; font-size: clamp(4rem, 7vw, 8rem); text-wrap: balance; }
.page-hero p:not(.eyebrow) { max-width: 62ch; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, .5vw + 1rem, 1.28rem); }
.page-hero .eyebrow { color: var(--sky); }
.breadcrumbs { margin-bottom: 22px; color: rgba(255,255,255,.62); font-size: .78rem; }
.breadcrumbs a { border-bottom: 1px solid currentColor; }

/* Directory and reusable content */
.filter-bar {
  display: grid;
  grid-template-columns: 2.1fr repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--border-light);
}
.control, .field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.filter-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 18px 0 34px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 24px); }
.species-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-top: 3px solid var(--ink);
  transition: transform .25s ease;
}
.species-card:hover { transform: translateY(-5px); }
.card-image { height: 250px; overflow: hidden; background: var(--mist); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.species-card:hover .card-image img { transform: scale(1.03); }
.card-body { padding: 22px; }
.card-kicker { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--ink-muted); font-size: .7rem; text-transform: uppercase; }
.card-body h3 { margin-bottom: 4px; font-size: clamp(1.65rem, 1.8vw, 2.25rem); }
.card-body > p:not(.latin) { min-height: 4.6em; color: var(--ink-muted); font-size: .84rem; }
.card-facts { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; margin: 12px 0; border-block: 1px solid var(--border-light); font-size: .74rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.empty-state { display: none; padding: 64px 24px; text-align: center; border-block: 1px solid var(--border-light); }
.species-modal { position: fixed; z-index: 280; inset: 0; display: none; place-items: center; padding: 22px; background: rgba(3,11,24,.9); }
.species-modal.open { display: grid; }
.modal-panel { width: min(980px, 96vw); max-height: 90vh; overflow: auto; position: relative; background: var(--paper); box-shadow: var(--shadow-deep); }
.modal-panel > [data-modal-body] { display: grid; grid-template-columns: 1fr 1fr; }
.modal-panel img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.modal-content { padding: clamp(28px, 5vw, 64px); }
.modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 48px; height: 48px; color: var(--white); background: rgba(3,11,24,.78); border: 1px solid rgba(255,255,255,.4); border-radius: 8px; cursor: pointer; font-size: 1.3rem; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 5vw, 78px);
}
.sticky-aside { grid-column: 1 / span 3; align-self: start; position: sticky; top: 120px; }
.sticky-aside nav { display: grid; margin-top: 26px; border-top: 1px solid var(--border-light); }
.sticky-aside a { padding: 12px 0; color: var(--ink-muted); border-bottom: 1px solid var(--border-light); font-size: .82rem; }
.prose { grid-column: 5 / -1; max-width: 1050px; }
.prose section { scroll-margin-top: 120px; padding-bottom: clamp(58px, 6vw, 96px); }
.prose h2 { max-width: 18ch; margin-bottom: 24px; font-size: clamp(2.6rem, 4vw, 5rem); }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { max-width: 70ch; color: var(--ink-muted); }
.prose img { width: 100%; max-height: 620px; margin: 30px 0; object-fit: cover; }
.section-dark .prose p, .section-dark .prose li { color: rgba(255,255,255,.7); }
.section-dark .sticky-aside a { color: rgba(255,255,255,.65); border-color: var(--border-dark); }
.section-dark .sticky-aside nav { border-color: var(--border-dark); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 30px 0; background: var(--border-light); border: 1px solid var(--border-light); }
.info-card { padding: clamp(22px, 3vw, 38px); color: var(--ink); background: var(--paper); }
.info-card h3 { margin: 0 0 10px; font-size: 1.5rem; }
.info-card p { color: var(--ink-muted); }
.accordion { border-top: 1px solid var(--border-light); }
.accordion details { border-bottom: 1px solid var(--border-light); }
.accordion summary { padding: 18px 40px 18px 0; cursor: pointer; font-weight: 700; }
.accordion details p { padding-bottom: 18px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 17px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.compare-table th { color: var(--blue); }
.step-list { counter-reset: steps; display: grid; gap: 0; padding: 0; margin: 28px 0; list-style: none; border-top: 1px solid var(--border-light); }
.step-list li { min-height: 90px; padding: 20px 20px 20px 76px; position: relative; background: var(--paper); border-bottom: 1px solid var(--border-light); }
.step-list li::before { position: absolute; top: 19px; left: 18px; counter-increment: steps; content: "0" counter(steps); color: var(--blue); font-family: var(--serif); font-size: 1.65rem; }

/* Legacy timeline and anatomy page fallback */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dark); }
.timeline-stage { padding: 28px; color: var(--white); background: var(--ink); }
.stage-number { color: var(--blue-bright); font-family: var(--serif); font-size: 2rem; }
.stage-image { width: 100%; aspect-ratio: 1; margin: 18px 0; object-fit: cover; }
.timeline-stage p { color: rgba(255,255,255,.7); }
.anatomy-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.anatomy-wrap .anatomy-figure { grid-column: 1 / span 7; min-height: 650px; display: grid; place-items: center; position: relative; background: var(--black); }
.anatomy-wrap .anatomy-figure img { width: 78%; }
.anatomy-wrap .anatomy-info { grid-column: 9 / -1; color: var(--ink); border-color: var(--border-light); }
.anatomy-wrap .anatomy-info h2 { color: var(--ink); }
.anatomy-wrap .anatomy-info p { color: var(--ink-muted); }

/* Habitats legacy visual links */
.visual-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.visual-card { min-height: 430px; overflow: hidden; position: relative; color: var(--white); }
.visual-card:nth-child(1) { grid-column: span 7; min-height: 560px; }
.visual-card:nth-child(2) { grid-column: span 5; min-height: 560px; }
.visual-card:nth-child(3) { grid-column: span 4; }
.visual-card:nth-child(4) { grid-column: span 8; }
.visual-card:nth-child(5), .visual-card:nth-child(6) { grid-column: span 6; }
.visual-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .55s ease; }
.visual-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(3,11,24,.88), transparent 70%); }
.visual-card:hover img { transform: scale(1.035); }
.visual-card-content { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; }
.visual-card-content p { color: rgba(255,255,255,.72); }

/* Facts page and quiz */
.fact-card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 12px;
}
.flip-card { grid-column: span 3; min-height: 250px; perspective: 1200px; cursor: pointer; }
.flip-card:nth-child(1), .flip-card:nth-child(6) { grid-column: span 6; }
.flip-inner { width: 100%; height: 100%; min-height: 250px; position: relative; transition: transform .55s ease; transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 42px);
  color: var(--ink);
  background: var(--paper);
  border-top: 3px solid var(--blue);
  backface-visibility: hidden;
}
.flip-face h3 { font-size: clamp(1.8rem, 2.6vw, 3.4rem); }
.flip-back { color: var(--white); background: var(--ink); border-color: var(--blue-bright); transform: rotateY(180deg); }
.flip-face small { color: var(--blue); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flip-back small { color: var(--blue-bright); }
.no-js .flip-card { min-height: auto; perspective: none; }
.no-js .flip-inner { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; transform: none !important; }
.no-js .flip-face { min-height: 240px; position: static; transform: none; backface-visibility: visible; }
.quiz-shell { color: var(--white); background: var(--ink); }
.quiz {
  width: min(calc(100% - (var(--page-padding) * 2)), 1180px);
  padding: clamp(28px, 5vw, 72px);
  margin: auto;
  color: var(--ink);
  background: var(--paper);
  border-top: 5px solid var(--blue);
}
.quiz h2 { margin-bottom: 22px; }
.quiz-progress { height: 5px; margin: 24px 0 34px; background: var(--mist); }
.quiz-progress span { width: 0; height: 100%; display: block; background: var(--blue); transition: width .3s ease; }
.quiz-question { padding: 30px 0; margin: 0; border: 0; border-top: 1px solid var(--border-light); }
.quiz-question legend { width: 100%; padding: 0; font-family: var(--serif); font-size: clamp(1.65rem, 2.3vw, 2.8rem); line-height: 1.12; }
.question-number { display: block; margin-bottom: 8px; color: var(--blue); font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.quiz-options label {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.quiz-options label:has(input:checked) { background: var(--sky); border-color: var(--blue); }
.quiz-options input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.quiz-feedback { min-height: 1.7em; margin: 20px 0 0; color: var(--ink-soft); font-weight: 700; }
.answer-explanation { margin-top: 12px; color: var(--ink-muted); font-size: .82rem; }

/* Forms */
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; }
.field textarea { min-height: 190px; resize: vertical; }
.field-error { min-height: 1.2em; color: #9d2941; font-size: .72rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .82rem; }
.checkbox input { margin-top: 5px; }

/* Footer */
.site-footer { padding: clamp(64px, 8vw, 120px) 0 30px; color: rgba(255,255,255,.66); background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); }
.site-footer .brand { margin-bottom: 18px; color: var(--white); }
.footer-col h3 { margin-bottom: 18px; color: var(--white); font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; font-size: .84rem; }
.footer-col a:hover { color: var(--white); }
.site-footer .newsletter-form { max-width: 520px; margin-top: 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 70px; border-top: 1px solid var(--border-dark); font-size: .74rem; }
.footer-legal { display: flex; gap: 18px; }
.back-to-top {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .25s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

@media (min-width: 1900px) {
  :root { --page-padding: clamp(56px, 4vw, 96px); }
  .nav-wrap { min-height: 92px; }
  .hero-content { grid-column: 1 / span 5; }
  .species-feature:nth-child(1) { min-height: 880px; }
  .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .nav-cta { display: none; }
  .nav-links { gap: 14px; }
  .intro-title { grid-column: 1 / span 8; }
  .intro-observation { grid-column: 9 / -1; }
  .intro-copy { margin-top: -190px; }
  .species-feature:nth-child(1) { grid-column: 1 / span 6; }
  .species-feature:nth-child(2), .species-feature:nth-child(4) { grid-column: 7 / span 3; }
  .species-feature:nth-child(3), .species-feature:nth-child(5) { grid-column: 10 / span 3; }
  .species-feature:nth-child(6) { grid-column: 7 / -1; }
  .specimen-viewer { grid-column: 1 / span 8; }
  .specimen-catalog { display: none; }
  .anatomy-info { grid-column: 9 / -1; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flip-card { grid-column: span 4; }
}

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
  .nav-cluster {
    position: fixed;
    z-index: 110;
    inset: 0 0 0 auto;
    width: min(440px, 92vw);
    height: 100dvh;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    padding: 88px 34px 34px;
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow-deep);
    transform: translateX(102%);
    transition: transform .35s ease;
  }
  .nav-cluster.open { transform: none; }
  .nav-links { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-links a { min-height: 54px; display: flex; border-bottom: 1px solid var(--border-dark); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
  .nav-links a::after { display: none; }
  .nav-cta { display: inline-flex; align-self: stretch; }
  .site-header.menu-open .menu-toggle { position: relative; z-index: 120; color: var(--white); }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero-content { grid-column: 1 / span 7; }
  .hero-title { font-size: clamp(4rem, 9.5vw, 6.5rem); }
  .intro-title { grid-column: 1 / span 8; }
  .intro-observation { grid-column: 9 / -1; }
  .intro-visual { grid-column: 4 / -1; }
  .intro-copy { grid-column: 1 / span 4; margin-top: -140px; }
  .stats-rail { grid-template-columns: 1.2fr 1fr 1fr; }
  .stat { grid-template-columns: 1fr; }
  .cycle-intro { grid-column: 1 / span 5; }
  .cycle-stage-view { grid-column: 6 / -1; }
  .specimen-viewer { grid-column: 1 / -1; min-height: 650px; }
  .anatomy-info { grid-column: 2 / -2; padding: 34px 0 0; border-left: 0; border-top: 1px solid var(--border-dark); }
  .habitat-row:nth-child(odd) .habitat-image, .habitat-row:nth-child(even) .habitat-image { grid-column: 1 / span 7; order: 0; }
  .habitat-row:nth-child(odd) .habitat-copy, .habitat-row:nth-child(even) .habitat-copy { grid-column: 8 / -1; }
  .month-grid > img { grid-column: 1 / span 6; }
  .month-copy { grid-column: 7 / -1; }
  .conservation-statement { grid-column: 1 / span 7; }
  .action-list { grid-column: 8 / -1; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .filter-bar .search { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-aside { grid-column: 1 / span 4; }
  .prose { grid-column: 5 / -1; }
  .anatomy-wrap .anatomy-figure { grid-column: 1 / -1; }
  .anatomy-wrap .anatomy-info { grid-column: 2 / -2; }
  .newsletter > div:first-child { grid-column: 1 / span 7; }
  .newsletter > div:last-child { grid-column: 8 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --page-padding: clamp(18px, 5.5vw, 24px); }
  body { font-size: 1rem; }
  .section { padding-block: 72px; }
  .nav-wrap { min-height: 70px; }
  .brand { font-size: 1.15rem; }
  .hero { min-height: 100svh; align-items: end; }
  .hero-video { object-position: 63% center; }
  .hero::before { background: linear-gradient(0deg, rgba(3,11,24,.95) 0%, rgba(3,11,24,.62) 57%, rgba(3,11,24,.06) 100%); }
  .hero-grid { display: block; padding: 110px 0 108px; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(3.6rem, 17vw, 5.2rem); }
  .hero-title span { white-space: normal; }
  .hero-copy { margin: 22px 0 28px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: none; }
  .hero-controls { right: var(--page-padding); bottom: 24px; left: var(--page-padding); justify-content: space-between; }
  .section-head { display: block; }
  .section-head > * { margin-bottom: 20px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-editorial { display: block; }
  .intro-title { margin-bottom: 26px; }
  .intro-observation { margin-bottom: 40px; }
  .intro-visual { min-height: 0; margin: 0; }
  .intro-visual img { height: 430px; clip-path: polygon(8% 0,100% 0,100% 92%,86% 100%,0 100%,0 10%); }
  .intro-copy { margin: 34px 0 0; padding: 0; }
  .stats-rail { grid-template-columns: 1fr; margin-top: 40px; }
  .stat { min-height: 130px; grid-template-columns: auto 1fr; border-right: 0; border-bottom: 1px solid var(--border-light); }
  .species-editorial { display: block; }
  .species-feature, .species-feature:nth-child(1) { min-height: 470px; margin-bottom: 14px; }
  .species-feature:nth-child(n+4) .feature-description { display: block; }
  .cycle-layout { display: block; }
  .cycle-intro { position: static; }
  .cycle-nav { grid-template-columns: repeat(4, minmax(100px,1fr)); overflow-x: auto; display: grid; }
  .cycle-tab { min-width: 108px; grid-template-columns: 1fr; padding: 12px; }
  .cycle-tab::after { display: none; }
  .cycle-stage-view { min-height: 560px; }
  .cycle-stage-view img { height: 560px; }
  .cycle-caption { grid-template-columns: 1fr; gap: 10px; }
  .specimen-viewer { min-height: auto; padding: 52px 0 20px; }
  .specimen-image { width: 100%; }
  .specimen-viewer::before, .specimen-viewer::after { display: none; }
  .anatomy-label {
    min-width: 0;
    position: static;
    margin: 4px;
    transform: none !important;
  }
  .anatomy-label::after { display: none; }
  .specimen-viewer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
  .specimen-image { width: 100%; flex-basis: 100%; margin-bottom: 22px; }
  .anatomy-info { grid-column: 1 / -1; }
  .habitat-editorial { gap: 68px; }
  .habitat-row { display: block; }
  .habitat-image { margin-bottom: 28px; }
  .habitat-image img { height: 410px; }
  .habitat-copy h3 { font-size: 3.2rem; }
  .month-grid { display: block; }
  .month-grid > img { height: 520px; }
  .month-copy { padding: 34px 24px 44px; }
  .fact-list { grid-template-columns: 1fr; }
  .conservation-layout { display: block; }
  .conservation-statement { margin-bottom: 34px; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2 150px; }
  .fact-rotator blockquote { font-size: clamp(3rem, 13vw, 5rem); }
  .newsletter { display: block; padding: 42px 22px; }
  .newsletter > div:first-child { margin-bottom: 28px; }
  .newsletter-form { align-items: stretch; flex-direction: column; background: transparent; padding: 0; }
  .newsletter-form input { background: var(--white); border-radius: 8px; }
  .page-hero { min-height: 70svh; padding: 120px 0 52px; }
  .page-hero h1 { font-size: clamp(3.5rem, 15vw, 5.4rem); }
  .filter-bar { grid-template-columns: 1fr; padding: 12px; }
  .filter-bar .search { grid-column: auto; }
  .filter-meta { align-items: stretch; flex-direction: column; }
  .filter-meta > div { display: grid; gap: 8px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-image { height: 300px; }
  .modal-panel > [data-modal-body] { display: block; }
  .modal-panel img { min-height: 0; height: 330px; }
  .content-grid { display: block; }
  .sticky-aside { position: static; margin-bottom: 48px; }
  .prose { max-width: none; }
  .info-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .anatomy-wrap { display: block; }
  .anatomy-wrap .anatomy-figure { min-height: auto; padding: 40px 0; }
  .visual-grid { grid-template-columns: 1fr; }
  .visual-card, .visual-card:nth-child(n) { grid-column: auto; min-height: 410px; }
  .fact-card-grid { display: block; }
  .flip-card { min-height: 260px; margin-bottom: 12px; }
  .quiz { width: calc(100% - (var(--page-padding) * 2)); padding: 28px 18px; }
  .quiz-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .lightbox { padding: 70px 12px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 3.55rem; }
  .masonry { columns: 1; }
  .action-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-video { display: none; }
}

/* Continuous hero atmosphere
   The whole atlas now lives in the hero's midnight-blue environment. */
:root {
  --ocean-0: #020812;
  --ocean-1: #041326;
  --ocean-2: #072744;
  --ocean-3: #0a3d69;
  --ocean-panel: rgba(9, 34, 61, .88);
  --ocean-panel-soft: rgba(12, 45, 78, .72);
  --ocean-line: rgba(148, 211, 255, .2);
  --ocean-copy: rgba(232, 245, 255, .76);
}

body {
  position: relative;
  color: #f5f9ff;
  background: var(--ocean-0);
  isolation: isolate;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -28vmax;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(42, 145, 235, .32) 0, rgba(42, 145, 235, 0) 27%),
    radial-gradient(circle at 82% 18%, rgba(77, 82, 203, .24) 0, rgba(77, 82, 203, 0) 24%),
    radial-gradient(circle at 67% 78%, rgba(0, 119, 193, .25) 0, rgba(0, 119, 193, 0) 30%),
    linear-gradient(135deg, var(--ocean-0) 12%, var(--ocean-2) 54%, #04101f 88%);
  background-size: 115% 115%, 120% 120%, 118% 118%, 100% 100%;
  animation: ocean-drift 26s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .46;
  background:
    linear-gradient(115deg, transparent 20%, rgba(126, 204, 255, .045) 47%, transparent 73%),
    radial-gradient(circle at 50% 0, rgba(154, 220, 255, .1), transparent 45%);
  animation: light-breathe 10s ease-in-out infinite;
}

@keyframes ocean-drift {
  0% { background-position: 0% 0%, 100% 8%, 65% 100%, 0 0; transform: scale(1); }
  50% { background-position: 12% 9%, 88% 18%, 55% 86%, 0 0; }
  100% { background-position: 22% 18%, 76% 4%, 44% 72%, 0 0; transform: scale(1.035); }
}

@keyframes light-breathe {
  0%, 100% { opacity: .34; }
  50% { opacity: .64; }
}

@keyframes museum-glow {
  0%, 100% { box-shadow: 0 28px 90px rgba(0, 10, 25, .38), 0 0 0 1px rgba(111, 198, 255, .1); }
  50% { box-shadow: 0 32px 110px rgba(0, 10, 25, .5), 0 0 38px rgba(38, 143, 226, .18), 0 0 0 1px rgba(150, 220, 255, .22); }
}

main { position: relative; z-index: 0; }
main > .section { border-top: 1px solid var(--ocean-line); }
.section,
.atlas-intro,
.habitat-section,
.section-paper {
  color: #f5f9ff;
  background: rgba(4, 17, 34, .82);
}
.species-section,
.section-mist,
.facts-home {
  color: #f5f9ff;
  background: rgba(8, 34, 62, .75);
}
.section-dark,
.cycle-home,
.quiz-shell {
  color: #f5f9ff;
  background: rgba(2, 11, 25, .88);
}
.section-blue,
.month-feature,
.gallery-section {
  color: #f5f9ff;
  background: rgba(5, 30, 56, .82);
}
.conservation-home { background-color: rgba(3, 18, 35, .88); }

h1, h2, h3, h4,
.intro-title,
.intro-observation,
.habitat-copy h3,
.fact-rotator blockquote { color: #f8fbff; }

.lede,
.intro-copy p,
.habitat-copy > p,
.prose p,
.prose li,
.card-body > p:not(.latin),
.answer-explanation,
.quiz-feedback,
.anatomy-wrap .anatomy-info p,
.modal-content p {
  color: var(--ocean-copy);
}

.eyebrow,
.text-link,
.plain-button,
.question-number,
.stat strong,
.step-list li::before,
.compare-table th { color: #72c6ff; }
.text-link:hover, .plain-button:hover { color: #b8e5ff; }

.site-header.scrolled,
.site-header.inner-header {
  color: #f7fbff;
  background: rgba(2, 13, 28, .84);
  border-color: var(--ocean-line);
  box-shadow: 0 12px 45px rgba(0, 5, 16, .22);
  backdrop-filter: blur(18px) saturate(135%);
}
.noscript-nav {
  color: #eef8ff;
  background: var(--ocean-1);
  border-color: var(--ocean-line);
}

.atlas-intro,
.species-section,
.cycle-home,
.anatomy-home,
.habitat-section,
.month-feature,
.facts-home,
.newsletter {
  overflow: hidden;
}

.intro-visual,
.cycle-stage-view,
.specimen-viewer,
.month-grid {
  animation: museum-glow 9s ease-in-out infinite;
}
.intro-visual::after,
.cycle-stage-view::after,
.month-grid::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(130, 209, 255, .17);
  background: linear-gradient(115deg, transparent 25%, rgba(128, 214, 255, .08) 48%, transparent 67%);
  background-size: 220% 100%;
  animation: surface-shimmer 12s ease-in-out infinite;
}
@keyframes surface-shimmer {
  0%, 28% { background-position: 130% 0; }
  70%, 100% { background-position: -120% 0; }
}

.intro-observation { color: #cceaff; }
.intro-copy p { color: var(--ocean-copy); }
.stats-rail,
.stat,
.habitat-data,
.habitat-data div,
.prose section,
.accordion,
.accordion details,
.compare-table th,
.compare-table td,
.quiz-question {
  border-color: var(--ocean-line);
}
.stat { border-right-color: var(--ocean-line); }
.stat small,
.habitat-data dt,
.card-kicker,
.latin { color: rgba(202, 231, 250, .66); }

.species-feature,
.habitat-image,
.visual-card {
  border: 1px solid rgba(130, 209, 255, .13);
  box-shadow: 0 24px 70px rgba(0, 8, 22, .36);
}
.species-feature::after {
  background: linear-gradient(0deg, rgba(2, 12, 28, .97), rgba(4, 29, 55, .08) 68%);
}

.habitat-row {
  padding-block: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--ocean-line);
}
.habitat-copy > p,
.habitat-data dt { color: var(--ocean-copy); }
.habitat-data dd { color: #f5f9ff; }

.month-grid {
  position: relative;
  background: rgba(7, 30, 54, .94);
  border: 1px solid rgba(137, 211, 255, .2);
}
.month-copy { position: relative; z-index: 1; color: #f5f9ff; }
.month-copy p { color: var(--ocean-copy); }
.fact-list { border-color: var(--ocean-line); }
.fact-list > div { border-color: var(--ocean-line); }

.filter-bar,
.species-card,
.modal-panel,
.info-card,
.step-list li,
.flip-face,
.quiz,
.nojs-gallery figure {
  color: #f4f9ff;
  background: var(--ocean-panel);
  border-color: var(--ocean-line);
  box-shadow: 0 18px 60px rgba(0, 7, 20, .24);
}
.species-card { border-top-color: #4daef0; }
.card-image { background: var(--ocean-1); }
.card-kicker,
.card-body > p:not(.latin),
.modal-content p,
.info-card p,
.info-card .lede { color: var(--ocean-copy); }
.modal-content h2,
.info-card h3,
.card-body h3,
.quiz h2,
.quiz-question legend { color: #f8fbff; }

.control,
.field input,
.field textarea,
.field select,
.quiz-options label {
  color: #eef8ff;
  background: rgba(3, 19, 38, .86);
  border-color: var(--ocean-line);
}
.control option,
.field select option { color: #eef8ff; background: var(--ocean-1); }
input::placeholder,
textarea::placeholder { color: rgba(215, 237, 252, .48); }
.quiz-progress { background: rgba(255, 255, 255, .1); }
.quiz-options label:has(input:checked) {
  color: #fff;
  background: rgba(24, 119, 201, .42);
  border-color: #65bdff;
}
.flip-face { border-top-color: #4eafea; }
.flip-back {
  color: #fff;
  background: linear-gradient(145deg, #06162c, #0b3a62);
  border-color: #83d0ff;
}
.nojs-gallery figcaption { color: #eef8ff; }

.anatomy-wrap .anatomy-info,
.anatomy-info,
.anatomy-info h2 { color: #f5f9ff; }
.anatomy-wrap .anatomy-info {
  background: rgba(5, 24, 46, .72);
  border-color: var(--ocean-line);
}
.anatomy-label {
  color: #edf8ff;
  background: rgba(3, 20, 40, .9);
  border-color: rgba(149, 216, 255, .3);
  backdrop-filter: blur(10px);
}
.anatomy-label.active {
  background: #147aca;
  box-shadow: 0 0 34px rgba(58, 169, 244, .34);
}

.prose img {
  border: 1px solid rgba(130, 209, 255, .18);
  box-shadow: 0 24px 70px rgba(0, 7, 20, .3);
}
.sticky-aside a,
.section-dark .sticky-aside a {
  color: rgba(215, 238, 253, .7);
  border-color: var(--ocean-line);
}
.sticky-aside nav,
.section-dark .sticky-aside nav { border-color: var(--ocean-line); }
.sticky-aside a:hover { color: #fff; }

.newsletter {
  color: #f6fbff;
  background:
    radial-gradient(circle at 80% 30%, rgba(49, 146, 222, .28), transparent 30%),
    rgba(3, 18, 36, .92);
  border-top: 1px solid var(--ocean-line);
}
.newsletter-form {
  background: rgba(244, 250, 255, .96);
  box-shadow: 0 16px 50px rgba(0, 6, 18, .25);
}
.newsletter-form input { color: var(--ink); }
.newsletter-form input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}
.site-footer {
  color: rgba(224, 242, 255, .68);
  background: rgba(1, 7, 16, .96);
  border-top: 1px solid var(--ocean-line);
}

@media (max-width: 720px) {
  body::before { inset: -60vmax; animation-duration: 32s; }
  .intro-visual,
  .cycle-stage-view,
  .specimen-viewer,
  .month-grid { animation-duration: 12s; }
  .newsletter-form { background: transparent; box-shadow: none; }
  .newsletter-form input { color: var(--ink); background: rgba(244, 250, 255, .96); }
}
