/* ============================================================
   Rat-to-Tūī — design system
   Aesthetic: crisp flat / editorial conservation
   Palette pulled from the badge: cream paper, forest green,
   kōwhai gold, tūī teal-black.
   ============================================================ */

:root {
  /* surfaces */
  --paper:      #fbf6e6;
  --paper-2:    #f6efd9;
  --cream:      #f3ead0;
  --cream-2:    #ece0bd;

  /* greens */
  --forest:     #214b36;
  --forest-d:   #15311f;
  --forest-dd:  #0e2317;
  --moss:       #4e7a4e;
  --sage:       #8fa37e;

  /* accents */
  --kowhai:     #f4b400;
  --kowhai-d:   #d99500;
  --tui:        #0e5147;
  --tui-l:      #1f8174;

  /* ink + lines */
  --ink:        #1a2419;
  --ink-soft:   #41513f;
  --line:       rgba(33, 75, 54, 0.14);
  --line-strong:rgba(33, 75, 54, 0.30);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 11px;

  --shadow-sm: 0 1px 0 rgba(33,75,54,.05);
  --shadow:    0 18px 40px -28px rgba(21,49,31,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 600px at 82% -8%, rgba(244,180,0,.16), transparent 60%),
    radial-gradient(900px 620px at -6% 8%, rgba(14,81,71,.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* grain overlay for warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--tui); }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--forest-d);
  font-optical-sizing: auto;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); letter-spacing: -0.006em; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tui);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--kowhai);
  display: inline-block;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
section { padding-block: clamp(3.6rem, 7vw, 6.5rem); position: relative; }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 0.9rem; font-size: 1.08em; }

.divider-leaf {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  position: relative;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--forest);
  --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--body); font-weight: 650; font-size: 0.98rem;
  padding: 0.82em 1.4em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--gold { --bg: var(--kowhai); --fg: var(--forest-dd); }
.btn--gold:hover { --bg: var(--kowhai-d); }
.btn--ghost {
  --bg: transparent; --fg: var(--forest-d);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --bg: var(--cream); box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(9px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--forest-d); letter-spacing: -0.01em; }
.brand small { display: block; font-family: var(--body); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  font-weight: 550; font-size: 0.94rem; color: var(--forest-d);
  text-decoration: none; padding: 0.5em 0.8em; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: var(--cream); }
.nav__cta { margin-left: 0.4rem; }
.nav__burger { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: 11px; width: 44px; height: 44px; cursor: pointer; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--forest-d); margin-inline: auto; position: relative; transition: .25s var(--ease);
}
.nav__burger span::before { position: absolute; top: -6px; } .nav__burger span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.6rem clamp(1.1rem, 4vw, 2.4rem) 1.2rem;
    transform: translateY(-130%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 0.85em 0.4em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 0.7rem 0 0; justify-content: center; }
  .nav__burger { display: grid; place-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(2.4rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__tag { margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(2.7rem, 1.6rem + 5.4vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 0.98;
}
.hero h1 em { font-style: italic; color: var(--tui); }
.hero h1 .gold { color: var(--kowhai-d); font-style: italic; }
.hero__lede { margin-top: 1.5rem; max-width: 46ch; font-size: 1.16em; color: var(--ink-soft); }
.hero__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__meta { margin-top: 2.4rem; display: flex; gap: 1.8rem; flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--display); font-size: 1.6rem; color: var(--forest-d); font-weight: 600; line-height: 1; }
.hero__meta span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); font-weight: 700; margin-top: 0.3rem; }

.hero__art { position: relative; }
.hero__art-card {
  position: relative; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 10%, #2c5e44, var(--forest) 55%, var(--forest-d));
  aspect-ratio: 1 / 1; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
}
.hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 0.8rem 1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.7rem; max-width: 230px;
}
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kowhai); box-shadow: 0 0 0 0 rgba(244,180,0,.6); animation: pulse 2.4s infinite; flex: none; }
.hero__badge b { font-family: var(--display); font-size: 1.4rem; color: var(--forest-d); display: block; line-height: 1; }
.hero__badge span { font-size: 0.74rem; color: var(--ink-soft); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(244,180,0,.55);} 70%{ box-shadow: 0 0 0 12px rgba(244,180,0,0);} 100%{ box-shadow: 0 0 0 0 rgba(244,180,0,0);} }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin-inline: auto; }
}

/* ============================================================
   STATS / LIVE IMPACT
   ============================================================ */
.impact { color: var(--paper); }
.impact .wrap { position: relative; }
.impact__panel {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(31,129,116,.4), transparent 60%),
    linear-gradient(180deg, var(--forest), var(--forest-d));
  border-radius: 28px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.impact__panel::before {
  /* topographic contour motif */
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' fill='none' stroke='%23fbf6e6' stroke-width='1.4'%3E%3Cpath d='M-20 120 C 120 60 300 180 460 120'/%3E%3Cpath d='M-20 170 C 120 110 300 230 460 170'/%3E%3Cpath d='M-20 220 C 120 160 300 280 460 220'/%3E%3Cpath d='M-20 270 C 120 210 300 330 460 270'/%3E%3Cpath d='M-20 320 C 120 260 300 380 460 320'/%3E%3C/svg%3E");
  background-size: 540px;
}
.impact h2, .impact .eyebrow { color: var(--paper); }
.impact .eyebrow { color: #cfe3d3; }
.impact__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem; position: relative; }
.impact__head p { color: rgba(251,246,230,.78); max-width: 50ch; margin-top: 0.7rem; }

.source-pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.45em 0.85em; border-radius: 999px;
  background: rgba(251,246,230,.10); color: #e7f0e3; border: 1px solid rgba(251,246,230,.18);
}
.source-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kowhai); }
.source-pill[data-state="live"] .dot { background: #5fe3a1; animation: pulse 2.4s infinite; }
.source-pill[data-state="estimated"] .dot { background: var(--kowhai); }

/* period toggle */
.toggle { display: inline-flex; background: rgba(0,0,0,.22); border-radius: 999px; padding: 4px; margin-top: 1.6rem; position: relative; gap: 2px; }
.toggle button {
  border: none; background: none; cursor: pointer; color: rgba(251,246,230,.7);
  font-family: var(--body); font-weight: 650; font-size: 0.88rem;
  padding: 0.5em 1.05em; border-radius: 999px; transition: color .25s var(--ease); position: relative; z-index: 1;
}
.toggle button[aria-pressed="true"] { color: var(--forest-d); }
.toggle__pill { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--kowhai); transition: transform .4s var(--ease), width .4s var(--ease); z-index: 0; }

.impact__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.2rem; position: relative;
}
.bigfig { display: flex; flex-direction: column; gap: 0.2rem; }
.bigfig__num { font-family: var(--display); font-weight: 600; font-size: clamp(3.6rem, 8vw, 6.5rem); line-height: 0.9; color: var(--kowhai); letter-spacing: -0.02em; }
.bigfig__label { font-size: 1.05rem; color: rgba(251,246,230,.85); }
.bigfig__sub { font-size: 0.9rem; color: rgba(251,246,230,.6); margin-top: 0.4rem; }

.species { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.05rem; }
.species__row b { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--body); font-weight: 600; color: var(--paper); font-size: 0.98rem; }
.species__row b span:last-child { font-family: var(--display); font-size: 1.25rem; color: var(--kowhai); }
.bar { height: 11px; border-radius: 999px; background: rgba(0,0,0,.25); margin-top: 0.45rem; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1s var(--ease); }
.bar--rat > i { background: linear-gradient(90deg, var(--kowhai), var(--kowhai-d)); }
.bar--mouse > i { background: linear-gradient(90deg, #7fcabb, var(--tui-l)); }
.bar--other > i { background: linear-gradient(90deg, #c9d6b0, var(--sage)); }
.species__row[hidden] { display: none; }
.species__pct { font-size: 0.78rem; color: rgba(251,246,230,.6); margin-top: 0.3rem; display: block; }

.network { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 1rem; }
.netcard {
  background: rgba(251,246,230,.06); border: 1px solid rgba(251,246,230,.14);
  border-radius: var(--radius-sm); padding: 1rem; text-align: left;
}
.netcard svg { width: 26px; height: 26px; color: var(--kowhai); margin-bottom: 0.55rem; }
.netcard b { font-family: var(--display); font-size: 1.9rem; color: var(--paper); display: block; line-height: 1; }
.netcard span { font-size: 0.78rem; color: rgba(251,246,230,.7); }

.impact__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; position: relative; }
.impact__footer small { color: rgba(251,246,230,.55); font-size: 0.78rem; }
.impact__footer a { color: var(--kowhai); font-weight: 650; text-decoration: none; }

@media (max-width: 760px) { .impact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   MAP
   ============================================================ */
.map__frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#map { height: clamp(340px, 52vh, 540px); width: 100%; background: var(--cream); z-index: 0; }
.map__legend {
  position: absolute; bottom: 14px; left: 14px; z-index: 500;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.9rem; font-size: 0.82rem; box-shadow: var(--shadow); max-width: min(280px, 80%);
}
.map__legend b { font-family: var(--display); color: var(--forest-d); }
.map__legend a { font-weight: 650; }
.leaflet-container { font-family: var(--body) !important; }

/* ============================================================
   GENERIC CARD GRIDS
   ============================================================ */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.8rem); position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.97em; }

/* involve steps */
.step__no {
  font-family: var(--display); font-size: 2.6rem; color: var(--kowhai-d);
  font-weight: 600; line-height: 1; display: block; margin-bottom: 0.5rem;
}
.icon-chip {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-content: center;
  background: var(--cream); border: 1px solid var(--line); color: var(--forest); margin-bottom: 1rem;
}
.icon-chip svg { width: 24px; height: 24px; }

/* ============================================================
   EVENTS
   ============================================================ */
.event {
  display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1.4rem;
}
.event__date {
  background: var(--forest); color: var(--paper); border-radius: 14px; padding: 1rem;
  text-align: center; align-self: start; position: relative; overflow: hidden;
}
.event__date.is-past { background: var(--cream-2); color: var(--forest-d); }
.event__date .d { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; display: block; }
.event__date .m { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.event__date .y { font-size: 0.74rem; opacity: 0.7; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: 999px; margin-bottom: 0.7rem;
}
.tag--up { background: var(--kowhai); color: var(--forest-dd); }
.tag--past { background: var(--cream-2); color: var(--ink-soft); }
.tag--survey { background: var(--tui); color: var(--paper); }
.event h3 { margin-bottom: 0.3rem; }
.event__where { font-size: 0.9rem; color: var(--moss); font-weight: 650; margin-bottom: 0.7rem; }

.gallery { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.gallery--5 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.gallery--1 { grid-template-columns: 1fr; max-width: 360px; }

.photo {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  background:
    repeating-linear-gradient(135deg, var(--cream) 0 14px, var(--cream-2) 14px 28px);
  border: 1px dashed var(--line-strong);
  display: grid; place-content: center; color: var(--moss);
  transition: transform .3s var(--ease);
}
.photo:hover { transform: scale(1.02); }
.photo svg { width: 30px; height: 30px; opacity: 0.65; }
.photo span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-top: 0.4rem; }
.photo--tall { aspect-ratio: 3/4; }

@media (max-width: 620px) {
  .event { grid-template-columns: 1fr; }
  .event__date { display: inline-flex; gap: 0.6rem; align-items: baseline; padding: 0.6rem 1rem; }
  .event__date .d { font-size: 1.8rem; }
}

/* survey callout */
.survey {
  background: linear-gradient(180deg, var(--cream), var(--paper-2));
  border: 1px solid var(--line); border-left: 4px solid var(--tui);
  border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.6rem); margin-top: 1.6rem;
}
.survey h3 { color: var(--tui); }
.survey ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.survey li { margin-bottom: 0.4rem; color: var(--ink-soft); }

/* ============================================================
   RESOURCES
   ============================================================ */
.resource {
  display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: inherit;
}
.resource .icon-chip { margin-bottom: 0.4rem; }
.resource h3 { font-size: 1.25rem; }
.resource .meta { font-size: 0.8rem; color: var(--moss); font-weight: 650; letter-spacing: 0.04em; }
.resource .go { margin-top: auto; font-weight: 650; color: var(--forest); display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.92rem; }
.resource:hover .go { color: var(--tui); }
.resource .go .arrow { transition: transform .25s var(--ease); }
.resource:hover .go .arrow { transform: translate(3px,-3px); }
.resource .sub { font-size: 0.85rem; }

/* ============================================================
   START YOUR OWN
   ============================================================ */
.start__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.start__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.start__photos .photo:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.start ol { counter-reset: s; list-style: none; padding: 0; margin-top: 1.4rem; }
.start ol li { position: relative; padding-left: 2.6rem; margin-bottom: 1.1rem; }
.start ol li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px; width: 1.9rem; height: 1.9rem;
  display: grid; place-content: center; border-radius: 50%;
  background: var(--kowhai); color: var(--forest-dd); font-family: var(--display); font-weight: 700; font-size: 0.95rem;
}
.start ol li b { display: block; color: var(--forest-d); }
@media (max-width: 820px) { .start__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA strip + FOOTER
   ============================================================ */
.cta {
  background: var(--kowhai);
  position: relative; overflow: hidden;
}
.cta::before {
  content:""; position:absolute; inset:0; opacity:.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' fill='none' stroke='%23d99500' stroke-width='2'%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3Ccircle cx='260' cy='180' r='70'/%3E%3Ccircle cx='160' cy='300' r='50'/%3E%3C/svg%3E");
}
.cta .wrap { position: relative; text-align: center; }
.cta h2 { color: var(--forest-dd); max-width: 22ch; margin-inline: auto; }
.cta p { color: var(--forest-d); max-width: 50ch; margin: 1rem auto 1.8rem; font-weight: 500; }

.footer { background: var(--forest-d); color: rgba(251,246,230,.78); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--paper); font-family: var(--body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer .brand b { color: var(--paper); } .footer .brand small { color: var(--sage); }
.footer p { color: rgba(251,246,230,.7); max-width: 38ch; margin-top: 1rem; font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer a { color: rgba(251,246,230,.78); text-decoration: none; font-size: 0.95rem; }
.footer a:hover { color: var(--kowhai); }
.footer__base { border-top: 1px solid rgba(251,246,230,.14); margin-top: 2.6rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.82rem; color: rgba(251,246,230,.5); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__badge .dot, .source-pill .dot { animation: none !important; }
  .bar > i { transition: none !important; }
}

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--paper); padding: 0.7em 1em; border-radius: 0 0 10px 0; z-index: 1000; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--tui); outline-offset: 2px; border-radius: 4px; }
