/* ============================================================
   Finafinau — Deep Sea Mining campaign site
   Mockup build (placeholder copy & assets)
   ============================================================ */

:root {
  /* OCEAN DEPTH ZONES — each section evokes a real ocean layer.
     The page reads as a descent: surface → mesopelagic → bathypelagic → abyss.
     Eight deliberate tokens, not 59 near-duplicates. */
  --epipelagic:  #1a3d4a;   /* 0-200m — the sunlight zone */
  --mesopelagic: #102a3a;   /* 200-1000m — twilight */
  --bathypelagic:#0a1e2d;   /* 1000-4000m — midnight */
  --abyss:       #050f1a;   /* 4000m+ — abyssal */
  --bioluminescence: #4fb3ad; /* the only light down there */
  --teal:        #2d8a86;
  --teal-dark:   #1f5c5e;
  --coral:       #e0563f;   /* warning / mining source */

  /* legacy aliases (kept so older rules still resolve cleanly) */
  --navy:        var(--epipelagic);
  --navy-deep:   var(--bathypelagic);
  --navy-mid:    var(--mesopelagic);
  --teal-light:  var(--bioluminescence);
  --lime:        #99cc00;
  --ink:         #213338;
  --muted:       #5a6b6e;
  --muted-light: #b6cccd;
  --line:        #e2e9ea;
  --white:       #ffffff;
  --radius:      0;   /* design uses square corners on all boxes/cards/photos */
  --radius-sm:   0;
  --shadow:      0 18px 40px -18px rgba(13, 34, 53, .35);
  --shadow-sm:   0 8px 24px -12px rgba(13, 34, 53, .30);
  --maxw:        1180px;
  --nav-h:       100px;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.08; font-weight: 700; font-family: "Bricolage Grotesque", "Montserrat", sans-serif; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* Bricolage Grotesque has an opsz axis — bigger headings get a slightly different cut.
   Editorial campaign work earns a distinctive face; it is not generic Montserrat. */
.display { font-family: "Bricolage Grotesque", "Montserrat", sans-serif; font-weight: 700; letter-spacing: -.025em; font-variation-settings: "opsz" 48; }
.mono   { font-family: "Montserrat", sans-serif; }
.tabular { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: 84px 0; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
}
.center { text-align: center; }
.underline-mark::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  background: var(--teal);
  margin: 14px auto 0;
}

/* ---------- buttons (redesigned) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 10px 22px -10px rgba(46,133,133,.7); }
.btn-white  { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef4f4; }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* Ghost donate button — quieter so it doesn't fight the primary petition CTA.
   Reads as a secondary action against the dark/transparent nav. */
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.92);
  border: 1.5px solid rgba(255,255,255,.45);
  padding: 11px 22px;
  font-size: .76rem;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.7);
}
.nav.scrolled .btn-ghost { border-color: rgba(255,255,255,.35); }

.btn-lg { padding: 16px 34px; font-size: .85rem; }
/* Loud primary CTA — bigger, brighter, with a soft glow so it owns the page */
.btn-xl {
  padding: 19px 42px;
  font-size: .92rem;
  letter-spacing: .14em;
  background: var(--bioluminescence);
  color: #07232a;
  font-weight: 700;
}
.btn-xl:hover { background: #6ecdc7; color: #07232a; }
.btn-glow {
  box-shadow: 0 0 0 0 rgba(79,179,173,.55), 0 12px 26px -8px rgba(79,179,173,.55);
  animation: ctaGlow 3s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,179,173,0),    0 12px 26px -8px rgba(79,179,173,.45); }
  50%     { box-shadow: 0 0 0 10px rgba(79,179,173,0), 0 16px 32px -8px rgba(79,179,173,.75); }
}
@media (prefers-reduced-motion: reduce) { .btn-glow { animation: none; } }

/* ============================================================
   NAVIGATION (redesigned, categorized + dropdowns)
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
/* transparent over the hero — just a faint legibility scrim, no solid bar */
.nav--transparent { background: linear-gradient(180deg, rgba(9,22,34,.42), rgba(9,22,34,0)); }
.nav--solid       { background: linear-gradient(180deg, rgba(9,22,34,.42), rgba(9,22,34,0)); }
/* stays sticky; on scroll becomes a translucent frosted bar (still not a solid tab) */
.nav.scrolled {
  height: 66px;
  background: rgba(13,34,53,.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -16px rgba(0,0,0,.55);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; width: min(100% - 48px, 1280px); }

.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
/* prominent logo with breathing room; shrinks to fit the compact bar on scroll */
.brand img { width: 84px; height: 84px; transition: width .3s ease, height .3s ease; }
.nav.scrolled .brand img { width: 46px; height: 46px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eaf1f5;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
}
.nav-link:hover { color: #fff; }
.nav-link .caret { width: 9px; height: 9px; transition: transform .2s ease; opacity: .8; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .18s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.dropdown a:hover { background: #eef5f5; color: var(--teal-dark); }

.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  border: none; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* ============================================================
   HERO (carousel on homepage / static on campaign)
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  color: #fff;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,34,53,.78) 0%, rgba(13,34,53,.45) 45%, rgba(13,34,53,.15) 100%);
}

/* hero background video */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* Hero overlay: heavy dark on the left where text sits, fades to ~30% right.
   A second bottom-anchored layer adds contrast under the subhead/CTA without
   killing the photo's colour on the right. */
.hero--video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,15,26,.95) 0%, rgba(5,15,26,.88) 30%, rgba(5,15,26,.62) 55%, rgba(5,15,26,.30) 100%),
    linear-gradient(180deg, rgba(5,15,26,0) 35%, rgba(5,15,26,.55) 100%);
}
/* scene gradients used in place of placeholder photos */
.scene-coast { background-image:
  radial-gradient(120% 80% at 80% 10%, #bfe3e8 0%, rgba(191,227,232,0) 45%),
  linear-gradient(180deg, #5fa9bf 0%, #2f7d86 38%, #235b4a 64%, #1c4a37 100%); }
.scene-coast2 { background-image: linear-gradient(180deg, #6fb7c4 0%, #2c7f8a 45%, #1d5a5a 100%); }
.scene-coast3 { background-image: linear-gradient(180deg, #7cc0bd 0%, #2f8a86 45%, #1f5450 100%); }
.scene-deepsea { background-image:
  radial-gradient(70% 50% at 65% 38%, rgba(120,200,210,.55) 0%, rgba(120,200,210,0) 55%),
  linear-gradient(180deg, #123246 0%, #0c2236 45%, #07131f 100%); }
.scene-youth { background-image: linear-gradient(180deg, #3a6a72 0%, #234a55 100%); }

.hero-inner {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  padding-top: var(--nav-h);
}
.hero h1 { font-size: clamp(2rem, 3.3vw, 2.9rem); font-weight: 700; line-height: 1.14; max-width: 600px; }
.hero p { font-size: 1.18rem; color: #dceaf0; max-width: 480px; margin-bottom: 1.9rem; }

.hero-arrows {
  position: absolute;
  z-index: 3;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; gap: 14px;
}
.hero-arrows button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.hero-arrows button:hover { background: var(--teal); }
.hero-arrows svg { width: 18px; height: 18px; }

/* ============================================================
   ABOUT US
   ============================================================ */
.about { background: #fff; }
.about p { max-width: 760px; margin-inline: auto; color: var(--muted); font-size: 1.05rem; }
.about .eyebrow { color: var(--navy); margin-bottom: 18px; }

/* ============================================================
   TAKE ACTION / campaign cards (dark)
   ============================================================ */
.dark { background: var(--navy); color: #fff; }
/* "What's at stake" sits one zone deeper so the teal timeline below reads as its own section */
.section.dark.stake { background: var(--bathypelagic); }
.dark .eyebrow { color: #fff; }
.dark .lead { color: var(--muted-light); }

.action-cards { display: grid; gap: 26px; margin-top: 48px; }
.action-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.action-card .media { min-height: 230px; background-size: cover; background-position: center; }
.action-card .media img { width: 100%; height: 100%; object-fit: cover; }
.action-card .body { padding: 32px 36px; align-self: center; }
.action-card .badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-dark);
  background: #e7f3f3;
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
.action-card h3 { font-size: 1.5rem; font-family: "Montserrat", sans-serif; }
.action-card p { color: var(--muted); }

/* ============================================================
   FULL-WIDTH IMAGE BANNER
   ============================================================ */
.banner {
  position: relative;
  color: #fff;
  padding: 96px 0;
  background:
    linear-gradient(90deg, rgba(13,34,53,.85), rgba(13,34,53,.55)),
    linear-gradient(180deg, #3a6a72, #1d4451);
  background-size: cover; background-position: center;
}
.banner h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); text-transform: uppercase; letter-spacing: .04em; max-width: 760px; }
.banner p { max-width: 560px; color: var(--muted-light); }

/* ============================================================
   IN THE MEDIA
   ============================================================ */
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 46px; }
.media-card { background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow); }
.media-card .media { aspect-ratio: 16/10; }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 22px 24px 26px; }
.media-card p { font-size: .96rem; color: var(--ink); }
.media-card .read-more { color: var(--teal-dark); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.media-card .read-more:hover { text-decoration: underline; }
.center-cta { text-align: center; margin-top: 46px; }

/* ============================================================
   FROM THE YOUTH (testimonials)
   ============================================================ */
.youth {
  position: relative;
  color: #fff;
  padding: 96px 0;
  background:
    linear-gradient(180deg, rgba(13,34,53,.82), rgba(13,34,53,.86)),
    linear-gradient(180deg, #34636b, #1c4350);
  background-size: cover; background-position: center;
}
.youth .eyebrow { color: #fff; }
.testi { max-width: 720px; margin: 40px auto 0; text-align: center; position: relative; }
.testi-avatars { display: flex; justify-content: center; gap: -10px; margin-bottom: 22px; }
.testi-avatars img {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85);
  object-fit: cover; margin-left: -12px;
}
.testi-avatars img:first-child { margin-left: 0; }
.testi-quote { font-family: "Montserrat", sans-serif; font-size: 1.25rem; font-style: italic; color: #eef6f6; }
.testi-name { margin-top: 16px; font-weight: 700; letter-spacing: .02em; }
.testi-role { color: var(--muted-light); font-size: .9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-cta {
  text-align: center;
  color: #fff;
  padding: 56px 0;
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--teal-dark) 60%, var(--teal-light) 100%);
}
.footer-cta h2 { font-family: "Montserrat", sans-serif; font-size: 1.9rem; }
.footer-cta p { color: rgba(255,255,255,.85); }
.footer-petition { margin-top: 26px; }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center; color: #fff;
  transition: background .2s ease;
}
.socials a:hover { background: rgba(255,255,255,.30); }
.socials svg { width: 20px; height: 20px; }
.footer-bar {
  background: #0a1722;
  color: #8aa0b0;
  font-size: .82rem;
  text-align: center;
  padding: 18px 0;
}

/* ============================================================
   CAMPAIGN — info sections (image + copy)
   ============================================================ */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.info.reverse .info-media { order: -1; }
.info h2 { font-family: "Montserrat", sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); }
/* square corners — matches mockup (no curve on photos) */
.info .info-media img { border-radius: 0; width: 100%; }
.dark.section .info p { color: var(--muted-light); }
.info p:last-child { margin-bottom: 0; }

/* protest sign accent block */
.protest {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   SCROLL REVEAL utility
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .10s; }
.reveal.d2 { transition-delay: .20s; }
.reveal.d3 { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   TIMELINE (parallax frame — the frame itself scrolls; page never locks)
   ============================================================ */
.timeline-section {
  position: relative;
  padding: clamp(64px, 7vw, 92px) 0 clamp(56px, 7vw, 88px);
  background: linear-gradient(180deg, var(--epipelagic) 0%, var(--mesopelagic) 55%, var(--bathypelagic) 100%);
  color: #fff;
}
.tl-scroller { position: relative; }
.tl-sticky { position: relative; }
.tl-sticky .wrap { width: 100%; max-width: none; margin: 0; padding: 0 clamp(28px, 5vw, 64px); }
.tl-head { max-width: 620px; margin-bottom: clamp(22px, 3vw, 38px); }
.tl-head .info-eyebrow { color: var(--bioluminescence); margin-bottom: 12px; }
.tl-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 10px; color: #fff; }
.tl-lead { color: var(--muted-light); line-height: 1.6; margin: 0; max-width: 58ch; }

/* ---- the frame: a fixed window; layers drift through it ---- */
.tl-stage {
  position: relative; height: clamp(330px, 46vh, 430px);
  overflow: hidden;            /* clips the horizontal parallax; frame border removed */
}
/* soften the hard edges where the neighbouring cards get clipped */
.tl-stage::before, .tl-stage::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 6vw, 90px);
  z-index: 2; pointer-events: none;
}
.tl-stage::before { left: 0;  background: linear-gradient(90deg, var(--mesopelagic) 0%, rgba(16,42,58,0) 100%); }
.tl-stage::after  { right: 0; background: linear-gradient(270deg, var(--mesopelagic) 0%, rgba(16,42,58,0) 100%); }

/* ---- horizontal-scroll nudge ---- */
.tl-hint {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
  z-index: 4; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(5,15,26,.55); border: 1px solid rgba(79,179,173,.28);
  backdrop-filter: blur(4px);
  font-family: "Montserrat", sans-serif; font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bioluminescence);
  transition: opacity .5s ease;
}
.tl-hint svg { width: 16px; height: 16px; animation: tlNudgeArrow 1.6s ease-in-out infinite; }
.tl-hint.is-gone { opacity: 0; }
@keyframes tlNudgeArrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* ---- background chapter-year layer (deepest, slowest) ---- */
.tl-years { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.tl-year {
  position: absolute; top: 50%; transform: translateY(-56%);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(8rem, 19vw, 17rem); line-height: 1; letter-spacing: -.04em;
  color: #fff; opacity: 0; white-space: nowrap; user-select: none;
  transition: opacity .5s ease;
}

/* ---- the scroll viewport: this is what actually scrolls horizontally ---- */
.tl-viewport {
  position: absolute; inset: 0; z-index: 1;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab;
}
.tl-viewport::-webkit-scrollbar { display: none; }
.tl-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* ---- foreground strip of panels ---- */
.tl-track {
  position: relative; height: 100%; width: max-content;
  display: flex; flex-direction: row; align-items: center;
  padding-inline: calc(50% - clamp(210px, 19vw, 280px));
}
.tl-panel {
  position: relative; flex: 0 0 clamp(420px, 38vw, 560px); width: clamp(420px, 38vw, 560px);
  height: 100%;
  display: flex; align-items: center; gap: clamp(18px, 2vw, 30px);
  padding: 0 clamp(18px, 2vw, 34px);
  opacity: .4; will-change: opacity, filter;
  scroll-snap-align: center;
}
/* vertical stagger so it never reads as one flat line */
.tl-panel:nth-child(odd)  { transform: translateY(-7%); }
.tl-panel:nth-child(even) { transform: translateY(8%); }

.tl-photo {
  flex: 0 0 clamp(170px, 17vw, 240px); height: clamp(220px, 32vh, 320px);
  overflow: hidden; will-change: transform; transform-origin: center;
}
.tl-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
  /* slow ken-burns drift so each milestone photo feels alive as it passes through */
  animation: tlKenburns 24s ease-in-out infinite alternate;
}
@keyframes tlKenburns {
  from { transform: scale(1.06) translate(-2%, -1.2%); }
  to   { transform: scale(1.16) translate(2%, 1.5%); }
}
.tl-panel.is-active .tl-photo {
  box-shadow: 0 0 0 1px rgba(79,179,173,.45), 0 30px 70px -24px rgba(5,15,26,.9);
}

/* text-only milestones (no photo yet) read as clean timeline points, not broken cards */
.tl-panel--text .tl-copy {
  position: relative; padding-left: 26px; max-width: 30ch;
}
.tl-panel--text .tl-copy::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, rgba(79,179,173,.7), rgba(79,179,173,.05));
}
.tl-panel--text h3 { max-width: 22ch; }
.tl-panel--text p { max-width: 32ch; }

.tl-copy { flex: 1 1 auto; min-width: 0; }
.tl-date {
  font-family: "Montserrat", sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(182,204,205,0.55); margin-bottom: 10px;
  transition: color .4s ease;
}
.tl-panel.is-active .tl-date { color: var(--bioluminescence); }
.tl-copy h3 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.18;
  color: #fff; margin: 0 0 12px; max-width: 20ch;
}
.tl-rule { display: block; width: 34px; height: 2px; background: var(--bioluminescence); opacity: .8; margin-bottom: 14px; }
.tl-copy p { color: var(--muted-light); font-size: .92rem; line-height: 1.6; margin: 0; max-width: 30ch; }

/* ---- pinned date-axis (the navigation spine; never moves) ---- */
.tl-axis {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px clamp(20px, 3vw, 40px) 18px;
  background: linear-gradient(180deg, rgba(5,15,26,0) 0%, rgba(5,15,26,.4) 60%);
  pointer-events: none; /* let drags pass through; only the date buttons are clickable */
}
.tl-axis-item { pointer-events: auto; }
.tl-axis::before { content: ""; position: absolute; top: 16px; left: clamp(20px,3vw,40px); right: clamp(20px,3vw,40px); height: 2px; background: rgba(182,204,205,.2); }
.tl-axis::after  { content: ""; position: absolute; top: 16px; left: clamp(20px,3vw,40px); height: 2px; width: var(--tl-fill, 0%); max-width: calc(100% - 2 * clamp(20px,3vw,40px)); background: var(--bioluminescence); }
.tl-axis-item {
  position: relative; flex: 1 1 0; min-width: 0; text-align: center; cursor: pointer;
  font-family: "Montserrat", sans-serif; font-size: .55rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted-light);
  padding-top: 14px; transition: color .25s; white-space: nowrap; opacity: .6;
}
.tl-axis-item::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 2px; height: 8px; background: rgba(182,204,205,.35); transition: all .25s; }
.tl-axis-item:hover { color: #fff; opacity: 1; }
.tl-axis-item.is-active { color: var(--bioluminescence); opacity: 1; }
.tl-axis-item.is-active::before { width: 12px; height: 12px; border-radius: 50%; top: -5px; background: var(--bioluminescence); box-shadow: 0 0 12px rgba(79,179,173,.8); }

/* ---- footer: slim scroll-progress hairline + minimal arrows ---- */
.tl-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: clamp(16px, 2.4vh, 26px); }
.tl-arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: none; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28);
}
.tl-arrow:hover { background: var(--teal); border-color: var(--teal); }
.tl-arrow svg { width: 17px; height: 17px; }
.tl-progress { flex: 1; max-width: 420px; height: 2px; background: rgba(182,204,205,.2); border-radius: 2px; overflow: hidden; }
.tl-progress-fill { display: block; height: 100%; width: 0; background: var(--bioluminescence); }

/* ---- mobile: native horizontal swipe, stacked cards ---- */
@media (max-width: 760px) {
  .tl-stage { height: auto; border: none; border-radius: 0; overflow: visible; }
  /* keep the swipe cue on mobile (this is where it matters most), pinned to the top of the cards */
  .tl-hint { display: flex; top: 6px; bottom: auto; }
  .tl-years { display: none; }
  .tl-viewport { position: static; scroll-snap-type: x mandatory; cursor: default; }
  .tl-track { padding: 6px 8vw; align-items: stretch; }
  .tl-panel { flex: 0 0 84vw; width: 84vw; height: auto; opacity: 1 !important; filter: none !important; transform: none !important; flex-direction: column; align-items: flex-start; gap: 18px; padding: 8px 12px 0; }
  .tl-photo { flex: none; width: 100%; height: 54vw; max-height: 320px; transform: none !important; }
  .tl-copy h3 { font-size: 1.35rem; }
  /* text-only milestones have short content; center it so the card doesn't read
     as text-jammed-at-top with a big empty void below */
  .tl-panel--text { justify-content: center; }
  .tl-panel--text .tl-copy { flex: 0 0 auto; }
  /* clear breathing room between the cards and the date-axis / progress controls */
  .tl-axis { position: static; background: none; padding: 38px 0 6px; overflow-x: auto; scrollbar-width: none; }
  .tl-axis::before, .tl-axis::after { left: 0; right: 0; }
  .tl-axis-item { flex: 0 0 auto; padding: 14px 14px 0; }
  .tl-foot { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-photo { transform: none !important; filter: none !important; }
  .tl-photo img { animation: none !important; transform: none !important; }
  .tl-viewport { scroll-behavior: auto; }
}

/* ============================================================
   FAQ accordion (moratorium) — matches reference screenshot
   ============================================================ */
/* centered header above a single, grouped accordion column */
.faq-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.faq-head .info-eyebrow { justify-content: center; }
.faq-head h2 { margin-bottom: 14px; }
.faq-intro { color: var(--muted-light); line-height: 1.75; margin: 0 auto; max-width: 56ch; }

/* accordion: single centered column, split into labelled groups */
.faq { margin: 0 auto; max-width: 1060px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 56px; align-items: start; }
.faq-group-label {
  font-family: "Montserrat", sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bioluminescence);
  margin: 0 0 2px;
}
.faq-group .faq-group-label + .faq-item { border-top: 1px solid rgba(255,255,255,.16); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.16); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; gap: 0; } .faq-group + .faq-group { margin-top: 34px; } }
.faq-item.open { background: rgba(255,255,255,.04); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  color: #fff; text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: color .2s;
}
.faq-q:hover { color: var(--teal-light); }
/* the toggle: a thin square with + or — inside */
.faq-q .pm {
  flex: none; width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.35);
  font-size: 1.2rem; line-height: 1;
  color: rgba(255,255,255,.7); transition: transform .2s, border-color .2s;
}
.faq-item.open .faq-q .pm { border-color: var(--teal-light); color: var(--teal-light); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,.0,.2,1); }
.faq-a .inner { padding: 4px 20px 28px; color: var(--muted-light); line-height: 1.75; }

/* ============================================================
   LATEST NEWS — three equal cards, differentiated through editorial detail
   (category labels, type, bioluminescent dots) rather than size.
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; }
.news-card .media { overflow: hidden; }
.news-card .media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.news-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.015em; }
.news-card p { color: var(--muted); font-size: .95rem; }
.news-card .read-more { color: var(--teal-dark); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-top: auto; }
.news-card .read-more:hover { text-decoration: underline; }

/* tiny mono category label on each card — feels editorial / dispatch-from-the-field */
.news-card .cat {
  font-family: "Montserrat", sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
}
.news-card .cat::before { content: ""; width: 6px; height: 6px; background: var(--bioluminescence); border-radius: 50%; box-shadow: 0 0 8px var(--bioluminescence); }

/* ---- Case Studies: even 4-card grid, reusing the news-card look ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
/* first card is a wide horizontal feature so the eye has a path into the row of three */
.case-card--feature { grid-column: 1 / -1; }
.case-card--feature .case-card__link { flex-direction: row; }
.case-card--feature .media { flex: 1 1 54%; }
.case-card--feature .media img { height: 100%; aspect-ratio: auto; min-height: 300px; }
.case-card--feature .body { flex: 1 1 46%; justify-content: center; padding: 40px 44px; }
.case-card--feature h3 { font-size: 1.7rem; }
.case-card--feature p { font-size: 1.02rem; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; }
.case-card__link { display: flex; flex-direction: column; height: 100%; }
.case-card .media { overflow: hidden; }
.case-card .media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.case-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.case-card h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1rem; line-height: 1.22; letter-spacing: -.015em; }
.case-card p { color: var(--muted); font-size: .92rem; }
.case-card .cat {
  font-family: "Montserrat", sans-serif; font-size: .64rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
}
.case-card .cat::before { content: ""; width: 6px; height: 6px; background: var(--bioluminescence); border-radius: 50%; box-shadow: 0 0 8px var(--bioluminescence); }
.case-card .read-more { color: var(--teal-dark); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: auto; }
.case-card .read-more:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card--feature .case-card__link { flex-direction: column; }
  .case-card--feature .media img { aspect-ratio: 16/11; min-height: 0; }
  .case-card--feature .body { padding: 22px 22px 24px; }
  .case-card--feature h3 { font-size: 1.2rem; }
}

/* ============================================================
   SPREAD MAP (interactive)
   ============================================================ */
/* no top/bottom border — section blends flush with neighbours, map is flush at bottom */
.spread {
  background: var(--abyss); color: #fff;
  padding: 0 !important;
  position: relative;
}
.spread > .wrap { padding: 0 !important; max-width: none; width: 100%; }

/* ----- DESKTOP: overlay header floats on top-left of the map -----
   ----- MOBILE: spread-head--mobile shows above; overlay is hidden ----- */

/* mobile-only header (hidden at desktop) */
.spread-head--mobile { display: none; }

/* desktop overlay header — positioned over the ocean, never over a marker */
.map-wrap {
  position: relative; overflow: hidden;
  width: 100%; margin: 0;
  background: radial-gradient(80% 80% at 60% 50%, var(--bathypelagic) 0%, var(--abyss) 70%);
  height: 88vh; min-height: 620px; max-height: 920px;
}
.map-overlay {
  position: absolute; top: clamp(40px, 6vw, 80px); left: clamp(28px, 5vw, 64px);
  z-index: 3; max-width: 30ch; pointer-events: none;
}
.map-overlay .info-eyebrow { color: var(--bioluminescence); margin-bottom: 14px; }
.map-overlay h2.display {
  color: #fff; margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -.03em; line-height: .98;
}
.map-overlay__lead {
  color: rgba(255,255,255,.75);
  font-size: .98rem; line-height: 1.65;
  margin: 0; max-width: 32ch;
}

@media (max-width: 980px) {
  /* hide overlay, show stacked header instead */
  .map-overlay { display: none; }
  .spread-head--mobile {
    display: block;
    padding: clamp(48px, 8vw, 72px) 0 clamp(24px, 4vw, 36px);
  }
  .spread-head--mobile .info-eyebrow { color: var(--bioluminescence); }
  .spread-head--mobile h2 {
    color: #fff;
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: -.03em; line-height: 1; margin: 8px 0 18px;
  }
  .spread-head__lead {
    color: rgba(255,255,255,.7);
    font-size: 1rem; line-height: 1.65; margin: 0; max-width: 56ch;
  }
  /* map is more compact on phones, no aggressive 88vh */
  .map-wrap {
    height: auto; min-height: 0; max-height: none;
    aspect-ratio: 1 / 1;     /* squarer so the Pacific reads well */
  }
}
@media (max-width: 600px) {
  .map-wrap { aspect-ratio: 4 / 5; }   /* taller crop on phones */
  /* the 1000-unit-wide map scales to ~375px on phones, so default 3.5u markers
     and 6.5u labels render ~1-2px — invisible. Scale them up for legibility and
     easier tapping, and drop the tiny per-marker labels that just become noise. */
  /* the map is zoomed 1.4x on mobile (see computeOffsets), which compounds with
     marker size, so keep the radius modest */
  .map-wrap .mk .core { r: 6.5; stroke-width: 1.8; }
  .map-wrap .mk:hover .core { r: 8; }
  /* names back on at a legible size now that the zoom spreads the markers out */
  .map-wrap .mk .lbl { display: block; font-size: 8px; }
  .map-wrap .mk.source .lbl { font-size: 9px; }
  .map-wrap .mk .ring { animation: pulseMobile 2.6s ease-out infinite; }
  .map-legend { font-size: .82rem; gap: 14px; left: 14px; bottom: 14px; }
  .map-legend i { width: 12px; height: 12px; }
}
@keyframes pulseMobile { 0%{opacity:.5; r:6.5} 70%{opacity:0; r:22} 100%{opacity:0; r:22} }

/* Vertical depth scale on the right side — anchors the entire piece in
   the deep-sea context. Real ocean depth zones, in real numbers. */
/* map key: "what the currents carry" — meaningful, colour-coded, replaces the depth facts */
.map-key {
  position: absolute; top: 50%; right: clamp(20px, 3vw, 48px);
  transform: translateY(-50%);
  z-index: 4; pointer-events: none;
  font-family: "Montserrat", sans-serif;
  display: grid; gap: 14px;
}
.map-key__title {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bioluminescence);
  padding-bottom: 10px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.map-key__row {
  display: flex; align-items: center; gap: 11px;
  font-size: .8rem; color: rgba(255,255,255,.82); font-weight: 500;
}
.map-key .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
}
.map-key .dot--teal  { background: var(--bioluminescence); box-shadow: 0 0 8px rgba(79,179,173,.7); }
.map-key .dot--coral { background: var(--coral); box-shadow: 0 0 8px rgba(224,86,63,.7); }

/* hide the key on narrower viewports so it doesn't overlap the map markers */
@media (max-width: 1400px) {
  .map-key { display: none; }
}
@media (max-width: 820px) {
  .map-overlay { padding: 24px; }
}
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-zoom { transform-box: view-box; cursor: grab; }
/* land colours matching the reference — dark olive/brown + orange coastline */
.map-wrap .country {
  fill: #3d3920;
  stroke: #c9924a;
  stroke-width: .9;
  stroke-linejoin: round;
}
/* countries that have a stance marker take that marker's colour on their landmass */
.map-wrap .country--moratorium { fill: rgba(79,179,173,.50); stroke: var(--bioluminescence); }
.map-wrap .country--exploring  { fill: rgba(232,161,58,.52);  stroke: #e8a13a; }
.map-wrap .country--home       { fill: rgba(224,86,63,.55);   stroke: var(--coral); }
.map-reset {
  position: absolute; top: 14px; right: 16px; z-index: 6;
  display: none; align-items: center; gap: 7px;
  background: rgba(13,34,53,.7); color: #cfe6e4; border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px; font: 600 .72rem "Noto Sans",sans-serif; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.map-wrap.zoomed .map-reset { display: inline-flex; }
.map-reset:hover { background: rgba(13,34,53,.9); }
.map-wrap .link {
  fill: none; stroke: #4fb3ad; stroke-width: 1.2; stroke-opacity: .55;
  stroke-dasharray: 5 6;
  animation: dash 18s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -200; } }
.map-wrap .mk { cursor: pointer; }
.map-wrap .mk .hit { fill: transparent; }   /* invisible enlarged tap target */
.map-wrap .mk .ring { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map-wrap .mk .core { fill: #4fb3ad; stroke: #fff; stroke-width: 1.4; transition: r .2s; }
.map-wrap .mk:hover .core { r: 5; }
.map-wrap .mk.source .core { fill: #e0563f; }
.map-wrap .mk.source .ring { fill: #e0563f; }
.map-wrap .mk .lbl { fill: #cfe6e4; font: 600 6.5px "Noto Sans", sans-serif; pointer-events: none; transition: opacity .3s ease; }
.map-wrap .mk.source .lbl { fill: #ffb3a3; font-weight: 700; }
.map-wrap.zoomed .mk .lbl { opacity: 0; }   /* declutter while zoomed in */
@keyframes pulse { 0%{opacity:.55; r:3.5} 70%{opacity:0; r:14} 100%{opacity:0; r:14} }
.map-legend { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 18px; font-size: .76rem; color: #cfe6e4; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.map-legend .s1 { background: #4fb3ad; } .map-legend .s2 { background: #e0563f; }

.map-popup {
  position: absolute;
  width: 280px; max-width: 78vw;
  background: var(--teal-dark);
  color: #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  font-size: .9rem;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  z-index: 5;
  pointer-events: none;
}
.map-popup.show { opacity: 1; visibility: visible; transform: translateY(0); }
/* pinned (after a click) — let the mouse reach the reference links */
.map-popup.pinned { pointer-events: auto; }
.mp-close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0; cursor: pointer;
  color: rgba(255,255,255,.55); font-size: 20px; line-height: 1;
  padding: 2px 6px; border-radius: 6px;
}
.mp-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.map-popup h4 { margin: 0 0 6px; font-size: 1rem; }
.map-popup p { margin: 0; color: rgba(255,255,255,.9); }

/* ============================================================
   PETITION FORM  — dark section, background photo, white inputs
   ============================================================ */
.petition {
  position: relative; color: #fff; overflow: hidden;
  /* dark depth gradient like the old Potential Effects section */
  background:
    radial-gradient(120% 90% at 50% -10%, #16455a 0%, rgba(22,69,90,0) 55%),
    linear-gradient(180deg, #0e2a3d 0%, #0a1f2e 100%);
}
.petition-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  /* the form card is much taller than the short copy — center the copy against it
     so the left side isn't all empty space below a few lines */
  align-items: center;
}
.petition h2 { font-family: "Montserrat", sans-serif; font-size: clamp(1.7rem,3.2vw,2.5rem); line-height: 1.15; }
.petition .copy p { color: rgba(255,255,255,.78); line-height: 1.75; }

/* the form sits directly on the dark section (no white card) */
.form-card { color: #fff; padding: 0; }
.form-card h3 { font-family: "Montserrat",sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 5px; letter-spacing: .03em; }
.field input {
  width: 100%; padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.18);
  font: inherit; font-size: .95rem;
  color: #fff;
  background: rgba(255,255,255,.08);
  transition: border-color .2s, background .2s;
}
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; font-size: .9rem; letter-spacing: .14em; padding: 17px; }
.form-note { font-size: .8rem; color: var(--teal-light); margin-top: 14px; text-align: center; }

/* ---- Action Network petition embed: clean white card on the dark section ---- */
.an-embed {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
  max-width: 520px;            /* keep the card from feeling oversized */
}
/* AN ships its own styles; just keep things readable and on-brand inside the card */
.an-embed,
.an-embed * { color: #16323f; }
.an-embed a { color: var(--teal-dark); }
.an-embed .an-fallback { display: inline-block; margin-top: 12px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .92rem; color: var(--teal-dark); text-decoration: underline; }
.an-embed .an-fallback[hidden] { display: none; }
/* AN's default type + spacing run large, making the card tower over the copy.
   Trim the headline/target/divider and field rhythm so it reads compact. */
.an-embed #can_embed_form { padding: 2px !important; }
.an-embed #can_embed_form h2 { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 8px !important; }
.an-embed #can_embed_form h3 { font-size: 14px !important; line-height: 1.4 !important; margin-bottom: 14px !important; padding-bottom: 12px !important; }
.an-embed #can_embed_form h4 { font-size: 13px !important; margin-bottom: 8px !important; padding-bottom: 12px !important; }
.an-embed #can_embed_form .floatlabel-input { margin-bottom: 10px !important; }
/* full-width, brand-teal submit button to match the rest of the page.
   AN styles its button via #can_embed_form input[type=submit] !important, so we
   match that ID with a higher-specificity selector to win the cascade. */
.an-embed #can_embed_form input[type="submit"],
.an-embed #can_embed input[type="submit"],
.an-embed input[type="submit"],
.an-embed .can_button,
.an-embed .button {
  background: var(--teal) !important;
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  width: 100% !important;
  border-radius: 8px !important;
  font-family: "Montserrat", sans-serif !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}
.an-embed #can_embed_form input[type="submit"]:hover,
.an-embed #can_embed input[type="submit"]:hover,
.an-embed input[type="submit"]:hover,
.an-embed .can_button:hover,
.an-embed .button:hover { background-color: var(--teal-dark) !important; border-color: var(--teal-dark) !important; }
/* trim AN's default outer margins so it fills the card cleanly */
.an-embed #can_embed,
.an-embed .can_embed { margin: 0 !important; max-width: 100% !important; }

/* ============================================================
   MOBILE NAV PANEL
   ============================================================ */
.mobile-panel {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--navy-deep);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel .group { border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
.mobile-panel .group > span { color: var(--teal-light); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.mobile-panel a { display: block; color: #eaf1f5; padding: 10px 0 2px; }
.mobile-panel .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .info, .faq-grid, .petition-grid { grid-template-columns: 1fr; gap: 34px; }
  .info.reverse .info-media { order: 0; }
  .action-card { grid-template-columns: 1fr; }
  .action-card .media { min-height: 200px; }
  .media-grid, .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* drop the peeking neighbours; show only the focused card */
  .tl-slide.is-prev, .tl-slide.is-next { opacity: 0; pointer-events: none; }
  .tl-slide { width: 90%; }
  .tl-figure { height: 230px; }
  .tl-ghost { font-size: clamp(6rem, 30vw, 11rem); }
  .tl-stage { min-height: 460px; }
  /* let the 10-date axis scroll sideways instead of crushing labels */
  .tl-axis { overflow-x: auto; gap: 22px; justify-content: flex-start; }
  .tl-axis-item { flex: 0 0 auto; font-size: .56rem; }
  .tl-progress { max-width: none; }
}
@media (max-width: 820px) {
  .nav-links, .nav-tools .icon-btn.search, .nav-tools .btn { display: none; }
  .nav-toggle { display: grid; }
  /* push the hamburger to the far right now that the links/buttons are hidden */
  .nav-tools { margin-left: auto; }
  /* shorter bar + smaller logo so the enlarged logo fits the mobile header */
  :root { --nav-h: 82px; }
  .brand img { width: 60px; height: 60px; }
  .nav.scrolled { height: 60px; }
  .nav.scrolled .brand img { width: 44px; height: 44px; }
  .section { padding: 60px 0; }
  .hero { min-height: 78vh; }
  .field-row { grid-template-columns: 1fr; }
}
@media (min-width: 821px) { .mobile-panel { display: none; } }

/* ============================================================
   POLISH — micro-interactions & motion
   ============================================================ */
/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  z-index: 200; pointer-events: none; transition: width .08s linear;
}

/* nav link animated underline */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--teal-light);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* card hover lift + image zoom */
.action-card, .media-card, .news-card {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.action-card:hover, .media-card:hover, .news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -24px rgba(13,34,53,.5);
}
.action-card .media, .media-card .media, .news-card .media { overflow: hidden; }
.action-card .media img, .media-card .media img, .news-card .media img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.action-card:hover .media img, .media-card:hover .media img, .news-card:hover .media img {
  transform: scale(1.06);
}

/* info-section photos: subtle zoom on hover */
.info-media { overflow: hidden; }
.info-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.info-media:hover img { transform: scale(1.05); }

/* button micro-interaction */
.btn-teal:hover, .btn-white:hover { transform: translateY(-2px); }

/* hero entrance */
.hero h1 { animation: heroUp .75s .05s both; }
.hero p  { animation: heroUp .75s .20s both; }
.hero .btn { animation: heroUp .75s .34s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .hero .btn { animation: none; }
  .action-card, .media-card, .news-card, .info-media img,
  .action-card .media img, .media-card .media img, .news-card .media img { transition: none; }
}

/* ============================================================
   POTENTIAL EFFECTS — interactive cascade + currents
   ============================================================ */
.effects {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #16455a 0%, rgba(22,69,90,0) 55%),
    linear-gradient(180deg, #0e2a3d 0%, #0a1f2e 100%);
  color: #fff;
}
.effects .eyebrow { color: var(--teal-light); }
.effects h2 { font-family: "Montserrat", sans-serif; font-size: clamp(1.6rem,3.2vw,2.3rem); }
.effects .lead { color: var(--muted-light); max-width: 620px; margin-inline: auto; }

/* animated currents behind the cascade */
.currents { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.currents svg { width: 100%; height: 100%; }
.currents path { fill: none; stroke: #4fb3ad; stroke-width: 1.4; stroke-opacity: .35; stroke-dasharray: 9 14; animation: flow 14s linear infinite; }
.currents path:nth-child(2) { stroke-opacity: .22; animation-duration: 20s; animation-direction: reverse; }
.currents path:nth-child(3) { stroke-opacity: .28; animation-duration: 17s; }
.currents path:nth-child(4) { stroke-opacity: .18; animation-duration: 24s; animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -460; } }

/* drifting particles (the plume carried by currents) */
.drift { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.drift span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(180,225,222,.9), rgba(180,225,222,0)); opacity: .0; animation: drift linear infinite; }
@keyframes drift { 0%{ transform: translate(0,0); opacity:0 } 10%{opacity:.8} 90%{opacity:.5} 100%{ transform: translate(120px,-40px); opacity:0 } }

/* cascade columns (chevrons, like the infographic) */
.effects-flow { position: relative; z-index: 2; display: flex; gap: 0; margin-top: 46px; }
.effect-col {
  flex: 1; position: relative;
  padding: 30px 40px 34px 58px;
  margin-left: -26px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  cursor: default;
}
.effect-col:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); padding-left: 34px; }
.effect-col.c1 { background: linear-gradient(135deg, #2f7d5e, #1f5a52); }
.effect-col.c2 { background: linear-gradient(135deg, #2a7d7a, #1c5360); z-index: 1; }
.effect-col.c3 { background: linear-gradient(135deg, #2b6f93, #1d3f63); }
.effect-col:hover { transform: translateY(-6px) scale(1.015); filter: brightness(1.12); z-index: 5; }
.effect-col h3 { font-family: "Montserrat", sans-serif; font-size: 1.15rem; letter-spacing: .02em; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.effect-col h3 svg { width: 22px; height: 22px; }
.effect-list li {
  position: relative; padding: 7px 0 7px 22px; font-size: .96rem; color: #eaf6f5;
  opacity: .9; transition: transform .3s ease, opacity .3s ease;
}
.effect-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px;
  border-radius: 50%; background: rgba(255,255,255,.5); transition: all .3s ease;
}
.effect-col:hover .effect-list li { opacity: 1; transform: translateX(4px); }
.effect-col:hover .effect-list li::before { background: var(--lime); box-shadow: 0 0 10px rgba(153,204,0,.8); }
/* stagger the reveal on hover */
.effect-col:hover .effect-list li:nth-child(1){ transition-delay:.02s } .effect-col:hover .effect-list li:nth-child(2){ transition-delay:.06s }
.effect-col:hover .effect-list li:nth-child(3){ transition-delay:.10s } .effect-col:hover .effect-list li:nth-child(4){ transition-delay:.14s }
.effect-col:hover .effect-list li:nth-child(5){ transition-delay:.18s } .effect-col:hover .effect-list li:nth-child(6){ transition-delay:.22s }

/* ============================================================
   TIDE — water moving back and forth
   ============================================================ */
.tide { position: relative; height: 90px; overflow: hidden; line-height: 0; background: var(--navy-deep); margin-top: -1px; }
.tide svg { position: absolute; left: -50%; width: 200%; height: 100%; }
.tide .w1 { fill: rgba(79,179,173,.45); animation: tideX 9s ease-in-out infinite; }
.tide .w2 { fill: rgba(45,138,134,.6);  animation: tideX 12s ease-in-out infinite reverse; }
.tide .w3 { fill: var(--teal-dark);     animation: tideX 7s ease-in-out infinite; }   /* crest meets the footer */
@keyframes tideX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6%); } }

@media (max-width: 820px) {
  .effects-flow { flex-direction: column; gap: 10px; }
  .effect-col, .effect-col:first-child {
    margin-left: 0; clip-path: none; padding: 24px 24px 26px;
    border-left: 4px solid rgba(255,255,255,.25);
  }
  /* map on phones: shorter frame (less empty ocean), zoomed into the cluster
     in JS, with names shown */
  .map-wrap { aspect-ratio: auto; height: 52vh; min-height: 360px; max-height: 440px; }
  .map-wrap .mk .lbl { display: block; }
  .map-legend { font-size: .68rem; gap: 10px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .currents path, .drift span, .tide .w1, .tide .w2, .tide .w3 { animation: none; }
}

/* ============================================================
   STAT BAND — editorial pull quote + scale-of-impact numbers
   Makes the campaign specific: real depths, real km², not generic.
   ============================================================ */
.stat-band {
  background: var(--mesopelagic);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.stat-band .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.stat-band__quote { display: flex; gap: 18px; align-items: flex-start; }
.stat-band__mark {
  font-family: "Bricolage Grotesque", serif;
  font-size: 5rem; line-height: .7; color: var(--bioluminescence);
  font-weight: 400; opacity: .9;
}
.stat-band blockquote { margin: 0; max-width: 36ch; }
.stat-band blockquote p {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.4; font-weight: 500;
  letter-spacing: -.01em; color: #fff;
  margin: 0 0 18px;
  font-variation-settings: "opsz" 24;
}
.stat-band blockquote cite {
  font-family: "Montserrat", sans-serif;
  font-style: normal; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* the numbers grid — broken into 4 with a fine top rule each */
.stat-band__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px;
}
.stat { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.stat__num {
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1;
  color: #fff; letter-spacing: -.035em;
  font-variation-settings: "opsz" 48;
}
.stat__num span {
  font-size: .42em; font-weight: 600; margin-left: 6px;
  color: var(--bioluminescence); letter-spacing: 0;
}
.stat__lbl {
  font-family: "Montserrat", sans-serif;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-top: 12px;
}

@media (max-width: 820px) {
  .stat-band .wrap { grid-template-columns: 1fr; }
  .stat-band__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   GRAIN OVERLAY — subtle film grain. Editorial / not flat.
   Applied globally so the whole page feels like printed matter,
   not a CSS template. Very low opacity, invisible-ish but felt.
   ============================================================ */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================================
   BIOLUMINESCENT GLOW — only the source / featured moments.
   Used sparingly so it actually means something.
   ============================================================ */
@keyframes biolum {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,179,173,0); }
  50%     { box-shadow: 0 0 28px 4px rgba(79,179,173,.35); }
}
.biolum { animation: biolum 3.6s ease-in-out infinite; }

/* ============================================================
   EDITORIAL EYEBROWS — mono "§ NN" markers above each major section.
   Treats the campaign like a paginated piece of editorial work,
   not a generic landing page. Section numbers + depth coordinates.
   ============================================================ */
.info-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
/* coral-tinted index number: the colour pop + hierarchy, no random facts */
.info-eyebrow .eyebrow-num {
  color: var(--coral);
  font-weight: 800;
  margin-right: -2px;
}
/* (removed the little line after each section eyebrow) */
/* on dark sections + over the map, label brightens to bioluminescent teal */
.section.dark .info-eyebrow,
.map-overlay .info-eyebrow,
.spread-head--mobile .info-eyebrow { color: var(--bioluminescence); }

/* Section heads in dispatches / similar */
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Refine hero typography — bigger, more editorial */
.hero h1.display {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  line-height: .98;
  font-variation-settings: "opsz" 48;
  max-width: 15ch;
}
.hero p {
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.55;
  max-width: 50ch;
  margin-bottom: 2.2rem;
  color: rgba(255,255,255,.82);
}


/* Display headings everywhere lean on Bricolage now */
.info h2, .info-copy h2, .timeline-section .tl-title, .petition h2, .effects h2, .stat-band h2,
.spread h2, .tl-slide h3, .news-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-variation-settings: "opsz" 48;
  letter-spacing: -.025em;
}

/* On mobile the broken news grid stacks cleanly */
@media (max-width: 820px) {
  .news-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .news-card:first-child { grid-row: auto; }
  .news-card:first-child .media img { aspect-ratio: 16/11; }
}

/* ============================================================
   PRIMER — process diagram + drop cap + depth annotation
   Breaks the boring "image+text split" with editorial moments.
   ============================================================ */
.primer { background: #fff; }
.primer__head { max-width: 880px; margin-bottom: 56px; }
.primer__head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1; letter-spacing: -.03em; margin: 8px 0 28px;
}
.primer__head h2 em {
  font-style: italic; font-weight: 700;
  color: var(--teal-dark);
}
.primer__intro {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.7; max-width: 60ch; color: var(--ink);
}
/* magazine-style drop cap */
.dropcap {
  float: left;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-variation-settings: "opsz" 48;
  font-size: 4.4em; line-height: .85;
  padding: 6px 14px 0 0;
  color: var(--teal-dark);
  letter-spacing: -.05em;
}

/* photo + depth-scale annotation alongside */
.primer__visual {
  display: grid; grid-template-columns: 1fr 200px; gap: 40px; align-items: stretch;
  margin-bottom: 72px;
}
.primer__photo { margin: 0; }
.primer__photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.primer__photo figcaption {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px;
}
.primer__depths {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-left: 24px;
  font-size: .72rem;
}
.primer__depths::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, #cdd5d7 0%, #cdd5d7 50%, var(--coral) 60%, var(--coral) 75%, #cdd5d7 85%);
}
.primer__depths .d-row {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0;
}
.primer__depths .d-row::before {
  content: ""; position: absolute; left: -28px; top: 8px;
  width: 10px; height: 1px; background: var(--muted);
}
.primer__depths .d-num {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink);
}
.primer__depths .d-zone {
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-size: .65rem;
}
.primer__depths .d-row--danger .d-num { color: var(--coral); }
.primer__depths .d-row--danger .d-zone { color: var(--coral); }
.primer__depths .d-row--danger::before { background: var(--coral); width: 16px; }

/* three-step process — numbered "stages" */
.primer__steps-title {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-dark); margin: 0 0 28px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 12px;
}
.primer__steps-title::after {
  content: ""; width: 80px; height: 1px; background: var(--teal-dark);
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  list-style: none; padding: 0; margin: 0;
}
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -.04em; line-height: 1; color: var(--teal-dark);
  display: block; margin-bottom: 16px;
  position: relative;
}
.step__num::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px;
  height: 2px; background: var(--bioluminescence);
  width: 40px;
}
.step h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem; line-height: 1.25; margin: 0 0 10px;
  letter-spacing: -.01em;
}
.step p { color: var(--muted); font-size: .94rem; line-height: 1.65; margin: 0; }

@media (max-width: 820px) {
  .primer__visual { grid-template-columns: 1fr; }
  .primer__depths { padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 16px 24px; }
  .primer__depths::before { display: none; }
  .primer__depths .d-row::before { display: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PLACE CARD — Why American Samoa
   Coordinates as graphic, fact file sidebar, at-stake list
   ============================================================ */
.place-card { background: var(--mesopelagic); }
.place-card__head { margin-bottom: 56px; max-width: 1000px; }
.place-card__head h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -.035em; line-height: 1;
  color: #fff; margin: 8px 0 16px;
}
.place-card__head h2 em {
  font-style: italic; color: var(--bioluminescence); font-weight: 700;
}
.place-card__coords {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  letter-spacing: .2em; color: var(--bioluminescence);
  padding-top: 8px;
}

.place-card__body {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: start;
}
.place-card__photo { margin: 0; }
.place-card__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.place-card__photo figcaption {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-top: 12px;
}
.place-card__text p {
  color: rgba(255,255,255,.78);
  font-size: 1rem; line-height: 1.75;
}

/* the fact file — looks like a real document panel */
.fact-file {
  background: rgba(255,255,255,.04);
  border-left: 2px solid var(--bioluminescence);
  padding: 22px 24px 26px;
  margin-top: 36px;
}
.fact-file__title {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bioluminescence); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.fact-file dl {
  margin: 0; display: grid; grid-template-columns: 1fr auto;
  gap: 12px 24px; font-size: .82rem;
}
.fact-file dt {
  color: rgba(255,255,255,.55);
  letter-spacing: .08em; text-transform: uppercase; font-size: .72rem;
  align-self: center;
}
.fact-file dd {
  margin: 0; color: #fff; font-weight: 600;
  font-variant-numeric: tabular-nums; text-align: right;
}
.fact-file__alert { color: var(--coral) !important; }

/* what's at stake — bioluminescent bullets, reinforces brand mood */
.place-card__stakes {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.place-card__stakes .info-eyebrow { color: var(--bioluminescence); margin-bottom: 24px; }
.stakes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px;
}
.stakes li {
  position: relative; padding-left: 26px;
  color: rgba(255,255,255,.82); line-height: 1.65; font-size: 1rem;
}
.stakes li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bioluminescence);
  box-shadow: 0 0 10px rgba(79,179,173,.6);
}
.stakes b { color: #fff; font-weight: 700; }

@media (max-width: 820px) {
  .place-card__body { grid-template-columns: 1fr; gap: 32px; }
  .stakes { grid-template-columns: 1fr; }
}

/* ============================================================
   LOGO MARKS replacing the § section sign
   Small logo glyph in eyebrows, large logo in pull-quote
   ============================================================ */
.eyebrow-mark {
  display: none;
  width: 14px; height: 14px;
  vertical-align: -3px;
  margin-right: 6px;
  object-fit: contain;
  opacity: .95;
  filter: brightness(1.05);
}
/* On light sections (where the eyebrow is bright teal on white), 
   tint the white logo so it's visible */
.section:not(.dark) .eyebrow-mark,
.primer .eyebrow-mark { filter: invert(36%) sepia(45%) saturate(431%) hue-rotate(135deg) brightness(.95) contrast(.9); }

.stat-band__mark {
  flex: none; width: 60px; height: 60px;
  opacity: .9; margin-top: 2px;
}
.stat-band__mark img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   NEWS CARD — entire card is now a real link to the article
   ============================================================ */
.news-card__link {
  display: flex; flex-direction: column;
  flex: 1;
  color: inherit; text-decoration: none;
  height: 100%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.news-card__link:hover { transform: translateY(-3px); }
.news-card__link:hover .read-more { color: var(--teal); }
.news-card__link:hover h3 { color: var(--teal-dark); }
.news-card h3 { transition: color .2s; }
.news-card .cat { display: block; }
.news-card .read-more { display: inline-block; }

/* ============================================================
   MAP ZOOM — when zoomed in, declutter and counter-scale so the
   focused marker doesn't grow into a 50px disc at 2.4× scale
   ============================================================ */
/* fade the other markers + their pulses so attention stays on the focused one */
.map-wrap.zoomed .mk:not(.is-focused) {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
/* shrink the source/American Samoa marker too if it's not the focused one */
.map-wrap.zoomed .mk.source:not(.is-focused) .ring { animation: none; }

/* focused marker: coral, small enough to look right at 2.4× zoom */
/* keep the marker's STANCE colour when focused — just add a bright white halo
   so it reads as 'selected' without changing its meaning */
.map-wrap.zoomed .mk.is-focused .core {
  r: 1.7;
  stroke: #fff;
  stroke-width: 1.4;
}
.map-wrap.zoomed .mk.is-focused .ring {
  animation: focusZoomPulse 2s ease-out infinite;
}
.map-wrap.zoomed .mk.is-focused .lbl {
  opacity: 1 !important;
  font-size: 4.5px;        /* * 2.4 zoom ≈ 11px on-screen, readable */
  fill: #fff;
  font-weight: 700;
}
@keyframes focusZoomPulse {
  0%   { opacity: .8; r: 2; }
  100% { opacity: 0;  r: 7; }
}

/* ============================================================
   WAVE DIVIDER — organic, torn-paper transition between sections.
   Two overlapping curves create the watery, hand-cut feel.
   The wave sits absolute at the bottom of the dark section,
   overlapping into it so the wavy white shape "cuts" the section.
   ============================================================ */

/* the parent section needs position relative for the absolute wave to anchor */
.hero,
section.section.dark { position: relative; }
/* every section that hosts a wave-divider must be a positioning context,
   otherwise an absolutely-positioned divider escapes and paints over another
   section (the flashcards wave was landing on the Basics photo). */
.section, .timeline-section, .spread { position: relative; }

.wave-divider {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;             /* tiny overlap kills sub-pixel gaps between sections */
  width: 100%;
  height: clamp(70px, 9vw, 130px);
  pointer-events: none;
  z-index: 4;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* dark → light: front wave is the next section's colour (white) */
.wave-divider--to-light .wave-back  { fill: rgba(255,255,255,.18); }
.wave-divider--to-light .wave-front { fill: #ffffff; }

/* dark → flashcards: front wave matches the flashcards section colour (no white seam) */
.wave-divider--to-flash .wave-back  { fill: rgba(238,246,245,.5); }
.wave-divider--to-flash .wave-front { fill: #eef6f5; }

/* dark → dark variant (kept for later use) */
.wave-divider--to-dark .wave-back  { fill: rgba(13,34,53,.5); }
.wave-divider--to-dark .wave-front { fill: var(--bathypelagic); }

/* deep section → teal timeline: front wave is the timeline's top colour rising up */
.wave-divider--to-deep .wave-back  { fill: rgba(26,61,74,.45); }
.wave-divider--to-deep .wave-front { fill: var(--epipelagic); }

/* ============================================================
   STANCE MAP — markers colour-coded by position on DSM
   teal = moratorium/opposed · amber = exploring · coral = American Samoa
   ============================================================ */
.map-wrap .mk--moratorium .core,
.map-wrap .mk--moratorium .ring { fill: var(--bioluminescence); }
.map-wrap .mk--exploring .core,
.map-wrap .mk--exploring .ring { fill: #e8a13a; }
.map-wrap .mk--home .core,
.map-wrap .mk--home .ring { fill: var(--coral); }

/* legend dots (narrow-screen bottom legend) */
.map-legend .s-mor  { background: var(--bioluminescence); }
.map-legend .s-exp  { background: #e8a13a; }
.map-legend .s-home { background: var(--coral); }

/* right-side stance key dots */
.map-key .dot--moratorium { background: var(--bioluminescence); box-shadow: 0 0 8px rgba(79,179,173,.7); }
.map-key .dot--exploring  { background: #e8a13a; box-shadow: 0 0 8px rgba(232,161,58,.7); }
.map-key .dot--home       { background: var(--coral); box-shadow: 0 0 8px rgba(224,86,63,.7); }

/* ---- richer popup (region / stance / gov / community / refs) ---- */
.map-popup { width: 310px; max-width: 84vw; padding: 16px 18px 14px; }
.map-popup .mp-region {
  font-family: "Montserrat", sans-serif; font-size: .6rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}
.map-popup h4 { margin: 0 0 8px; font-size: 1.08rem; font-family: "Bricolage Grotesque", sans-serif; }
.map-popup .mp-stance {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 9px; margin-bottom: 12px; color: #07232a;
}
.mp--moratorium .mp-stance { background: var(--bioluminescence); }
.mp--exploring  .mp-stance { background: #e8a13a; }
.mp--home       .mp-stance { background: var(--coral); color: #fff; }
.map-popup .mp-line { margin: 0 0 8px; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.88); }
/* the location profile can run long — keep popups from overflowing the map */
.map-popup .mp-blurb { font-size: .78rem; line-height: 1.55; max-height: 200px; overflow-y: auto; }
.map-popup .mp-line b {
  display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bioluminescence); font-weight: 700; margin-bottom: 2px;
}
.mp--exploring .mp-line b { color: #f0b757; }
.mp--home .mp-line b { color: #ff8f7a; }
.map-popup .mp-refs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.map-popup .mp-refs a {
  font-family: "Montserrat", sans-serif; font-size: .66rem; font-weight: 600;
  letter-spacing: .04em; color: rgba(255,255,255,.7); text-decoration: none;
}
.map-popup .mp-refs a:hover { color: #fff; text-decoration: underline; }
/* phones: let the whole popup scroll within the map so nothing (blurb or refs) gets clipped */
@media (max-width: 760px) {
  .map-popup { max-height: calc(100% - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .map-popup .mp-blurb { max-height: none; overflow: visible; }
}

/* ============================================================
   PACIFIC POSITIONS — browsable list under the stance map
   ============================================================ */
.pacific-positions { padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 72px); background: var(--abyss); }

/* compact at-a-glance tally */
/* new scoreboard layout */
.pac-board { }
.pac-board__intro { color: rgba(255,255,255,.5); font-size: .9rem; margin: 0 0 36px; }
.pac-board__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pac-col {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}
.pac-col__head {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 28px;
  border-bottom: 3px solid transparent; /* overridden inline per stance */
  border-left: none; border-right: none; border-top: none;
  background: rgba(255,255,255,.04);
}
.pac-col__count {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1;
  flex: none;
  letter-spacing: -.04em;
}
.pac-col__label {
  display: block; color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 5px;
}
.pac-col__sub { margin: 0; color: rgba(255,255,255,.5); font-size: .82rem; line-height: 1.45; }
.pac-col__list {
  list-style: none; margin: 0; padding: 22px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.pac-col__list li {
  color: rgba(255,255,255,.82); font-size: .95rem; font-weight: 500;
  padding-left: 16px; position: relative;
}
.pac-col__list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.pac-li--home { color: #fff !important; font-weight: 700 !important; }
.pac-li--home::before { background: var(--coral) !important; }
@media (max-width: 680px) { .pac-board__cols { grid-template-columns: 1fr; } }

.pac-intro { max-width: 760px; margin-bottom: 48px; }
.pac-intro h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; letter-spacing: -.02em; }
.pac-intro p { color: rgba(255,255,255,.7); line-height: 1.75; margin: 0; }

.pac-group { margin-bottom: 44px; }
.pac-group__title {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.pac-group__name {
  font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; color: #fff; letter-spacing: -.01em;
}
.pac-group__count {
  font-family: "Montserrat", sans-serif; font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bioluminescence);
}
.pac-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.pac-card {
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--bioluminescence);
  padding: 22px 22px 20px;
}
.pac-card--exploring { border-left-color: #e8a13a; }
.pac-card--home { border-left-color: var(--coral); background: rgba(224,86,63,.07); }
.pac-card__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.pac-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--bioluminescence); }
.pac-card--exploring .pac-dot { background: #e8a13a; }
.pac-card--home .pac-dot { background: var(--coral); }
.pac-card__head h4 { margin: 0; font-size: 1.12rem; color: #fff; font-family: "Bricolage Grotesque", sans-serif; flex: 1 1 auto; }
.pac-stance {
  font-family: "Montserrat", sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55);
  width: 100%;
}
.pac-line { font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 12px; }
.pac-line b {
  display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bioluminescence); font-weight: 700; margin-bottom: 3px;
}
.pac-card--exploring .pac-line b { color: #f0b757; }
.pac-card--home .pac-line b { color: #ff8f7a; }
.pac-refs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.pac-refs a {
  font-family: "Montserrat", sans-serif; font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.68); text-decoration: none;
}
.pac-refs a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 980px) { .pac-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .pac-cards { grid-template-columns: 1fr; } }

/* show the compact bottom legend only when the right-side key is hidden */
@media (min-width: 1401px) { .spread .map-legend { display: none; } }

/* ================= FLASH CARDS (for younger learners) ================= */
.flashcards {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(79,179,173,.18), transparent 60%),
    #eef6f5;
}
.flashcards .display { color: var(--abyss); }
.flash-sub {
  margin: .6rem auto 0;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: .01em;
}
.flip-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.flip-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
  aspect-ratio: 1080 / 1010;   /* matches the quiz-card artwork */
  font-family: inherit;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,.1,.2,1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* the FINAFINAU card artwork is the backdrop for every face */
  background: url("../img/quiz-card.png") center/contain no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #492823;
  /* keep text inside the cream area: clear the banner up top, the wave below */
  padding: 22% 14% 24%;
}
.flip-back { transform: rotateY(180deg); }
.flip-q {
  font-family: "Bricolage Grotesque", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.2;
  margin: 0;
  color: #492823;
}
.flip-a {
  margin: 0;
  font-size: clamp(.92rem, 1.3vw, 1.1rem);
  line-height: 1.4;
  font-weight: 600;
  color: #492823;
}
@media (max-width: 880px) { .flip-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
@media (max-width: 560px) { .flip-grid { grid-template-columns: 1fr; gap: .5rem; margin-top: 2rem; } }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}
