/* ============================================================
   IsoGentiX — Global Stylesheet
   css/main.css  |  v2.2  |  April 2026
   Authoritative — supersedes styles.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colours — BRIEF.md section 2 (authoritative) */
  --deep-navy:   #0A1628;
  --ocean-blue:  #1B4F8A;
  --sapphire:    #2E7BC4;
  --sky-blue:    #5BA8E8;
  --ice-blue:    #B8D8F5;
  --gold:        #C8A94A;
  --gold-light:  #F0D98A;
  --slate:       #3A4A5C;
  --pale-blue:   #E8F2FB;
  --off-white:   #F8FAFC;
  --pure-white:  #FFFFFF;
  --white:       #FFFFFF;
  --leaf-green:  #3A9A5C;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Font sizes — fluid scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width:        1320px;
  --max-width-text:   720px;
  --container-pad:    clamp(1rem, 5vw, 3rem);

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.04);
  --shadow-md:   0 4px 16px rgba(10,22,40,0.10), 0 2px 4px rgba(10,22,40,0.06);
  --shadow-lg:   0 16px 40px rgba(10,22,40,0.14), 0 4px 8px rgba(10,22,40,0.08);
  --shadow-card: 0 2px 12px rgba(27,79,138,0.10);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index scale */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     300;
  --z-toast:   400;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sapphire);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--sky-blue); }
a:focus-visible {
  outline: 2px solid var(--sky-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Skip nav ─────────────────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-nav) + 10);
  background: var(--ocean-blue);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-nav:focus { top: 0; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--deep-navy);
  font-weight: 400;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 2.5vw, var(--text-4xl)); }
h4 { font-size: clamp(var(--text-xl), 2vw, var(--text-3xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  max-width: 72ch;
  line-height: 1.7;
}

.lead {
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.6;
  color: var(--slate);
}

.overline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sapphire);
  font-weight: 500;
}

.overline-gold {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sky-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* On dark backgrounds */
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 { color: var(--white); }

.on-dark p,
.on-dark .lead { color: rgba(255,255,255,0.82); }

.on-dark .overline { color: var(--sky-blue); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-sm {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

/* Grid system */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

/* Section-level two-column splits — responsive via class (not inline style) */
.gap-stat-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.gap-stat-col { text-align: right; }

.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
}

/* Split layout (text + image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-content {
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-image {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Section backgrounds ──────────────────────────────────── */
.section-white  { background: var(--white); }
.section-off    { background: var(--off-white); }
.section-pale   { background: var(--pale-blue); }
.section-navy   { background: var(--deep-navy); }
.section-ocean  { background: var(--ocean-blue); }

/* Dark section type utilities */
.section-navy h2,
.section-navy h3,
.section-ocean h2,
.section-ocean h3 { color: var(--white); }

.section-navy p,
.section-ocean p  { color: rgba(255,255,255,0.8); }

/* Gold accent lines */
.section-gold-accent {
  background: var(--deep-navy);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ── Ken Burns / Hero animation ───────────────────────────── */
/* BRIEF.md section 5 — apply to all full-bleed hero images   */

@keyframes kenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.10); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  animation: kenBurns 12s ease-in-out forwards;
  will-change: transform;
}

/* For rotating hero panels (multiple images), restart on each */
.hero-slide.active .hero-bg {
  animation: kenBurns 10s ease-in-out forwards;
}

/* Biome cards — hover-triggered Ken Burns */
.biome-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
  will-change: transform;
}
.biome-card:hover .biome-card-bg {
  transform: scale(1.06);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: #F8FAFC;
  box-shadow: 0 1px 3px rgba(10,22,40,0.10);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding-block: var(--space-4);
}

/* Transparent state — hero visible; solid match with logo background */
.site-header.transparent {
  background: #F8FAFC;
  box-shadow: 0 1px 0 rgba(10,22,40,0.06);
}

/* Solid state — when scrolled past the hero */
.site-header.scrolled {
  background: #F8FAFC;
  box-shadow: 0 1px 3px rgba(10,22,40,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo: use logo-dark.svg (white wordmark) on nav */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(10,22,40,0.80);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ocean-blue); }

/* Nav dropdown */
.nav-has-dropdown {
  position: relative;
}
.nav-chevron {
  font-size: 0.7em;
  opacity: 0.7;
  display: inline-block;
  transition: transform var(--transition-fast);
}
.nav-has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27,79,138,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(91,168,232,0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(10,22,40,0.3);
  padding: var(--space-2) 0;
  padding-top: var(--space-3);
  min-width: 160px;
  z-index: calc(var(--z-nav) + 1);
  white-space: nowrap;
}
.nav-has-dropdown:hover .nav-dropdown {
  display: block;
}
.nav-dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85) !important;
  transition: background var(--transition-fast), color var(--transition-fast) !important;
}
.nav-dropdown li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white) !important;
}

/* CTA nav link — Gold */
.nav-cta {
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--gold);
  padding: var(--space-2) var(--space-5) !important;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast) !important;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-light);
  color: var(--deep-navy) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(10,22,40,0.80);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ocean-blue);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--white);
  text-align: center;
  transition: color var(--transition-fast);
}
.nav-mobile a:hover { color: var(--gold-light); }
.nav-mobile-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-8);
}

/* ── Hero section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep-navy);
}

/* .hero-bg = Ken Burns animated image layer */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.25) 0%,
    rgba(10,22,40,0.35) 50%,
    rgba(10,22,40,0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(90px + var(--space-16)) var(--space-20);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
  display: block;
}

.hero h1 {
  color: var(--white);
  max-width: 900px;
  margin-bottom: var(--space-6);
}

.hero .hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

/* Stat bar inside hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(184,216,245,0.2);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.55;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  background: var(--ocean-blue);
  padding-block: calc(100px + var(--space-12)) var(--space-16);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.page-hero .lead { color: rgba(255,255,255,0.8); max-width: 640px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-lg { font-size: var(--text-base); padding: var(--space-4) var(--space-8); }

.btn-primary {
  background: var(--sapphire);
  color: var(--white);
  border-color: var(--sapphire);
}
.btn-primary:hover {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,168,232,0.35);
}

.btn-gold {
  background: var(--gold);
  color: var(--deep-navy);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--deep-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,169,74,0.4);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-blue {
  background: transparent;
  color: var(--sapphire);
  border-color: var(--sapphire);
}
.btn-outline-blue:hover {
  background: var(--sapphire);
  color: var(--white);
}

/* Arrow decorator */
.btn-arrow::after {
  content: '→';
  font-style: normal;
  transition: transform var(--transition-fast);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Stat / number blocks ─────────────────────────────────── */
.stat-block {
  background: var(--deep-navy);
  padding-block: var(--space-12);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-number em {
  font-style: normal;
  color: var(--sky-blue);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: var(--space-2);
}

/* The Gap section: giant stat */
.giant-stat {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  color: var(--ocean-blue);
  line-height: 1;
  font-style: italic;
  display: block;
}

/* Inline stat blocks (closing window) */
.stat-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.stat-block-item {
  padding: var(--space-6);
  background: var(--pale-blue);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--sapphire);
}
.stat-block-item .stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--ocean-blue);
  line-height: 1;
  display: block;
}
.stat-block-item .stat-desc {
  font-size: var(--text-sm);
  color: var(--slate);
  margin-top: var(--space-2);
  max-width: none;
}

/* ── Biome cards ──────────────────────────────────────────── */
.biome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.biome-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
}

/* .biome-card-bg defined in Ken Burns section above */

.biome-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.05) 0%,
    rgba(10,22,40,0.55) 50%,
    rgba(10,22,40,0.88) 100%
  );
  z-index: 1;
  transition: background var(--transition-slow);
}
.biome-card:hover .biome-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.1) 0%,
    rgba(10,22,40,0.6) 50%,
    rgba(10,22,40,0.92) 100%
  );
}

.biome-card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
}

.biome-endemism {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
  display: block;
}

.biome-card-content h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.biome-chemistry {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  max-width: none;
  margin-bottom: var(--space-3);
}

.biome-signal {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sky-blue);
  letter-spacing: 0.08em;
}

/* ── Seven-ecoregion grid (12-col: top row 4×span-3, bottom row 3×span-4) */
.biome-grid-seven {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.biome-grid-seven .biome-card:nth-child(-n+4) {
  grid-column: span 3;
}

.biome-grid-seven .biome-card:nth-child(n+5) {
  grid-column: span 4;
}

/* Rainfall / endemism overlay badges */
.biome-badge-row {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  z-index: 3;
}

.biome-badge {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(10,22,40,0.78);
  border: 1px solid rgba(184,216,245,0.3);
  color: var(--ice-blue);
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.biome-badge--endemism {
  background: rgba(200,169,74,0.18);
  border-color: rgba(200,169,74,0.5);
  color: var(--gold);
}

/* Source citation — used inside dark (.section-navy) context */
.source-footnote {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  text-align: center;
}

.source-note {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.38);
  margin-top: 0.75rem;
}

/* ── Audience / Service cards ─────────────────────────────── */
.audience-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--ice-blue);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.audience-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.audience-card h3 {
  font-size: var(--text-2xl);
}
.audience-card p {
  font-size: var(--text-sm);
  color: var(--slate);
  flex: 1;
}
.audience-card ul {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.audience-card ul li {
  font-size: var(--text-sm);
  color: var(--slate);
  padding-left: var(--space-5);
  position: relative;
}
.audience-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sapphire);
  font-size: var(--text-xs);
}

/* Audience cards on Ocean Blue background */
.section-ocean .audience-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(184,216,245,0.2);
}
.section-ocean .audience-card h3 { color: var(--white); }
.section-ocean .audience-card p  { color: rgba(255,255,255,0.75); }
.section-ocean .audience-card ul li { color: rgba(255,255,255,0.75); }

/* ── Platform layer cards ─────────────────────────────────── */
.layer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.layer-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--pale-blue);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.layer-item:hover { background: var(--ice-blue); }
.layer-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sapphire);
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 2px;
}
.layer-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--deep-navy);
}
.layer-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sapphire);
  background: rgba(46,123,196,0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

/* ── Compliance / callout boxes ───────────────────────────── */
.callout {
  background: var(--ocean-blue);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  text-align: center;
}
.callout h2 { color: var(--white); max-width: 800px; margin-inline: auto; }
.callout p  { color: rgba(255,255,255,0.75); margin-inline: auto; }

.callout-gold {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #0d2642 100%);
}
.callout-gold h2 { color: var(--gold-light); }

/* Nagoya moat section (deep navy, gold accents) */
.nagoya-section {
  background: var(--deep-navy);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ── Card: pale blue ──────────────────────────────────────── */
.card-pale {
  background: var(--pale-blue);
  border-radius: var(--radius-md);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--deep-navy);
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid rgba(184,216,245,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer logo: use logo-dark.svg */
.footer-logo {
  height: 30px;
  width: auto;
  opacity: 1;
  display: block;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-3);
  display: block;
}

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin-top: var(--space-4);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-blue);
  display: block;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--white); }

.footer-policy-group {
  margin-bottom: var(--space-4);
}
.footer-policy-group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: var(--space-2);
}
.footer-policy-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-policy-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-fast);
}
.footer-policy-links a:hover { color: rgba(255,255,255,0.8); }
.footer-policy-links a.specific { color: rgba(200,169,74,0.6); }
.footer-policy-links a.specific:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  max-width: none;
}
.footer-legal-links {
  display: flex;
  gap: var(--space-6);
}
.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Cookie Consent Banner ────────────────────────────────── */
/* BRIEF.md section 6 — Ocean Blue bar, bottom of screen      */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: var(--ocean-blue);
  border-top: 1px solid rgba(91,168,232,0.3);
  box-shadow: 0 -4px 24px rgba(10,22,40,0.25);
  padding: var(--space-5) var(--container-pad);
  display: none;
}
.cookie-banner.visible {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  line-height: 1.6;
}
.cookie-banner__text a {
  color: var(--sky-blue);
  text-decoration: underline;
}
.cookie-banner__text a:hover { color: var(--ice-blue); }

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie buttons */
.cookie-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--sky-blue);
  color: var(--white);
  border-color: var(--sky-blue);
}
.cookie-btn--accept:hover {
  background: var(--sapphire);
  border-color: var(--sapphire);
}
.cookie-btn--reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
.cookie-btn--reject:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.cookie-btn--manage {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
.cookie-btn--manage:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(10,22,40,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.cookie-modal[hidden] { display: none; }

.cookie-modal__box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.cookie-modal__box h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  color: var(--deep-navy);
}

/* Cookie preference row */
.cookie-pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--ice-blue);
}
.cookie-pref:last-of-type { border-bottom: none; }
.cookie-pref > div { flex: 1; }
.cookie-pref strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--deep-navy);
  display: block;
  margin-bottom: var(--space-1);
}
.cookie-pref p {
  font-size: var(--text-xs);
  color: var(--slate);
  max-width: none;
}

/* Toggle switch */
.cookie-pref input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: var(--ice-blue);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-pref input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cookie-pref input[type="checkbox"]:checked {
  background: var(--sapphire);
}
.cookie-pref input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}
.cookie-pref input[type="checkbox"]:disabled {
  background: var(--sapphire);
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-pref input[type="checkbox"]:disabled::before {
  transform: translateX(20px);
}

.cookie-modal__actions {
  margin-top: var(--space-6);
  text-align: right;
}

/* ── Scroll fade-in animations ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.30s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-gold   { color: var(--gold); }
.text-sky    { color: var(--sky-blue); }
.mx-auto     { margin-inline: auto; }
.mt-4        { margin-top: var(--space-4); }
.mt-6        { margin-top: var(--space-6); }
.mt-8        { margin-top: var(--space-8); }
.mb-4        { margin-bottom: var(--space-4); }
.mb-6        { margin-bottom: var(--space-6); }
.mb-8        { margin-bottom: var(--space-8); }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-modal { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .biome-grid { grid-template-columns: repeat(2, 1fr); }
  .biome-grid-seven { grid-template-columns: repeat(2, 1fr); }
  .biome-grid-seven .biome-card:nth-child(-n+4),
  .biome-grid-seven .biome-card:nth-child(n+5) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split  { grid-template-columns: 1fr; }
  .split-image { min-height: 360px; }

  /* Collapse section splits to single column */
  .gap-stat-split,
  .two-col-split { grid-template-columns: 1fr; }
  .gap-stat-col  { text-align: center; }

  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  /* Reduce hero top padding on tablet */
  .hero-content { padding-block: calc(80px + var(--space-12)) var(--space-16); }

  /* Layer items: allow tag to wrap below on narrow containers */
  .layer-item { flex-wrap: wrap; }
  .layer-tag  { margin-left: 0; margin-top: var(--space-1); }
}

@media (max-width: 640px) {
  .grid-2         { grid-template-columns: 1fr; }
  .grid-4         { grid-template-columns: 1fr; }
  .biome-grid     { grid-template-columns: 1fr; }
  .biome-grid-seven { grid-template-columns: 1fr; }
  .stat-blocks    { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }

  /* Hero stats: 2-column grid so 4 stats fit cleanly */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-6);
  }

  /* Reduce hero top padding on small phones */
  .hero-content { padding-block: calc(72px + var(--space-10)) var(--space-12); }

  .cookie-banner__inner  { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }

  .cookie-modal__box { padding: var(--space-6); }
}

@media (max-width: 480px) {
  .btn-lg { font-size: var(--text-sm); padding: var(--space-3) var(--space-6); }
  .giant-stat { font-size: clamp(4rem, 18vw, 7rem); }
  .biome-card { min-height: clamp(220px, 55vw, 300px); }

  /* Ensure nav mobile links are tap-friendly */
  .nav-mobile a { font-size: var(--text-3xl); }

  /* Footer legal links stack on very small screens */
  .footer-legal-links { flex-direction: column; gap: var(--space-2); }
}

/* ── Global table scroll on mobile ──────────────────────────
   Prevents any table from causing horizontal overflow at 640px
   and below without modifying individual HTML files.          */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER SEARCH
   ══════════════════════════════════════════════════════════════ */

.footer-search-wrap {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-2);
}

.footer-search-inner {
  max-width: 560px;
}

.footer-search-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-3);
}

.footer-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.footer-search-icon {
  position: absolute;
  left: var(--space-4);
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  flex-shrink: 0;
}

.footer-search-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-10) var(--space-3) calc(var(--space-4) + 18px + var(--space-3));
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  /* Remove browser default search decorations */
  -webkit-appearance: none;
  appearance: none;
}
.footer-search-input::-webkit-search-cancel-button,
.footer-search-input::-webkit-search-decoration { display: none; }

.footer-search-input::placeholder { color: rgba(255,255,255,0.3); }

.footer-search-input:focus {
  border-color: rgba(91,168,232,0.6);
  background: rgba(255,255,255,0.1);
}

.footer-search-btn {
  position: absolute;
  right: var(--space-2);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-blue);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.footer-search-btn svg { width: 14px; height: 14px; }
.footer-search-btn:hover { background: var(--sky-blue); }

/* ── Search results page ────────────────────────────────────── */

.sr-result-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-8);
  background: var(--pure-white);
  border: 1px solid var(--ice-blue);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--ocean-blue);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.18s;
}
.sr-result-card:hover {
  box-shadow: 0 6px 24px rgba(27,79,138,0.1);
  transform: translateY(-2px);
}
.sr-result-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sapphire);
}
.sr-result-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--deep-navy);
  line-height: 1.25;
}
.sr-result-desc {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.65;
}
.sr-result-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ocean-blue);
  margin-top: var(--space-1);
}
.sr-result-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Keyword highlight on results page */
.sr-result-title mark,
.sr-result-desc mark {
  background: rgba(200,169,74,0.2);
  color: var(--deep-navy);
  border-radius: 2px;
  padding: 0 2px;
  font-style: normal;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-search-inner { max-width: 100%; }
  .igx-search-panel { width: 100%; left: 0; right: 0; }
}

/* ════════════════════════════════════════════════════════════════
   REDESIGN V2 COMPONENTS — May 2026
   Aliases existing brand tokens to --color-* names so the new
   components compose without breaking the legacy variable system.
   ════════════════════════════════════════════════════════════════ */

:root {
  --color-ocean-blue: var(--ocean-blue);
  --color-deep-navy:  var(--deep-navy);
  --color-sapphire:   var(--sapphire);
  --color-sky:        var(--sky-blue);
  --color-pale-blue:  var(--pale-blue);
  --color-gold:       var(--gold);
  --color-off-white:  var(--off-white);
  --color-slate:      var(--slate);
  --color-ice-blue:   var(--ice-blue);

  --transition-nav: background 0.3s ease, color 0.3s ease;
}

/* ── Counter strip ────────────────────────────────────────────── */
.counter-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-ice-blue);
  border-bottom: 1px solid var(--color-ice-blue);
}
.counter-item {
  padding: 48px 24px;
  text-align: center;
  border-right: 1px solid var(--color-ice-blue);
}
.counter-item:last-child { border-right: none; }
.counter-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-ocean-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.counter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-slate);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .counter-strip { grid-template-columns: 1fr; }
  .counter-item {
    border-right: none;
    border-bottom: 1px solid var(--color-ice-blue);
    padding: 32px 24px;
  }
  .counter-item:last-child { border-bottom: none; }
}

/* ── Section dividers ────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8%;
  margin: 0;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200, 169, 74, 0.35);
}
.section-divider-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  white-space: nowrap;
}

/* ── Parallax full-viewport panels ───────────────────────────── */
.parallax-panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 22, 40, 0.58) 0%,
    rgba(10, 22, 40, 0.30) 60%,
    rgba(10, 22, 40, 0.08) 100%
  );
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 8%;
  padding: 80px 0;
  color: #ffffff;
}
@media (max-width: 768px) {
  .parallax-content {
    margin-left: 0;
    max-width: 100%;
    padding: 60px 24px;
  }
}
.parallax-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.parallax-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}
.parallax-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}
.parallax-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 480px;
}
.parallax-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(200, 169, 74, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.parallax-link:hover { border-color: var(--color-gold); }

/* Inline audience cards inside Panel 4 */
.panel-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
  max-width: 720px;
}
.panel-audience-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
}
.panel-audience-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
}
.panel-audience-card span {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 768px) {
  .panel-audience-grid { grid-template-columns: 1fr; }
}

/* ── Split-screen alternating sections ───────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.split-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-off-white);
}
.split-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-deep-navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.split-content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-slate);
}
@media (max-width: 768px) {
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .split-image { min-height: 280px; }
  .split-content { padding: 40px 24px; }
}

/* ── Biome richness bar chart (ecoregions) ───────────────────── */
.biome-chart { padding: 40px 8%; background: var(--color-off-white); }
.biome-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.biome-bar-label {
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 200px;
  color: var(--color-slate);
}
.biome-bar-track {
  flex: 1;
  height: 32px;
  background: var(--color-ice-blue);
  border-radius: 4px;
}
.biome-bar {
  height: 100%;
  background: var(--color-ocean-blue);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding-left: 10px;
}
@media (max-width: 768px) {
  .biome-bar-row { flex-direction: column; align-items: flex-start; }
  .biome-bar-label { min-width: auto; }
  .biome-bar-track { width: 100%; }
}

/* ── Data layer stack (platform / science) ───────────────────── */
.data-layer-stack { padding: 60px 8%; background: #ffffff; }
.data-layer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-ice-blue);
  align-items: start;
}
.data-layer:last-child { border-bottom: none; }
.data-layer .layer-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-gold);
  padding-top: 4px;
}
.data-layer h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-deep-navy);
  margin-bottom: 6px;
}
.data-layer p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-slate);
  line-height: 1.6;
  margin-bottom: 8px;
}
.data-layer .layer-spec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ocean-blue);
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .data-layer { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Callouts (gold, info) ───────────────────────────────────── */
/* .callout-spec — small inline spec/standards callout (e.g. EBP standards
   on the platform page). Renamed from .callout-gold to avoid collision with
   the original full-bleed dark-navy CTA section class also named .callout-gold. */
.callout-spec {
  border-left: 4px solid var(--color-gold);
  padding: 20px 24px;
  background: rgba(200, 169, 74, 0.07);
  margin: 40px 8%;
}
.callout-spec p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-deep-navy);
  line-height: 1.6;
}
.callout-info {
  border-left: 4px solid var(--color-ocean-blue);
  padding: 20px 24px;
  margin: 0 8% 40px;
  background: var(--color-pale-blue);
}
.callout-info p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-deep-navy);
  line-height: 1.65;
}

/* ── Compliance steps (governance / nagoya) ──────────────────── */
.compliance-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 60px 8%;
  background: var(--color-off-white);
}
.compliance-step {
  flex: 1;
  padding: 0 32px;
  border-right: 1px solid var(--color-ice-blue);
}
.compliance-step:last-child { border-right: none; }
.compliance-step .step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-ocean-blue);
  background: var(--color-pale-blue);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.compliance-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-deep-navy);
  margin-bottom: 8px;
}
.compliance-step p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-slate);
  line-height: 1.6;
}
.compliance-arrow {
  font-size: 20px;
  color: var(--color-gold);
  padding: 0 8px;
  padding-top: 52px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .compliance-steps { flex-direction: column; }
  .compliance-step {
    border-right: none;
    border-bottom: 1px solid var(--color-ice-blue);
    padding: 24px 0;
  }
  .compliance-step:last-child { border-bottom: none; }
  .compliance-arrow { padding: 8px 0; transform: rotate(90deg); }
}

/* ── Mission panel + team grid (about) ───────────────────────── */
.mission-panel {
  background: var(--color-ocean-blue);
  padding: 100px 8%;
  text-align: center;
}
.mission-panel blockquote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 80px 8%;
}
.team-member img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  background: var(--color-pale-blue);
}
.team-member h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-deep-navy);
  margin-bottom: 4px;
}
.team-member .role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ocean-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.team-member p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-slate);
  line-height: 1.65;
}
.presence-note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-slate);
  line-height: 1.7;
  padding: 0 8% 60px;
  max-width: 800px;
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; gap: 48px; padding: 48px 8%; }
  .mission-panel { padding: 60px 8%; }
}
