/* ============================================================
   MaP · Match a Patch — Field Atlas design system
   Pure CSS. No framework.
   Type: Zodiak (display) · Author (body) · Fragment Mono (labels)
   ============================================================ */

:root {
  /* paper & ink */
  --paper: #F4EFE3;
  --paper-warm: #ECE5D0;
  --bright: #FBF8EF;
  --ink: #1D2A21;
  --ink-soft: #41503F;
  --ink-faint: #63715D;
  --line: #D5CCB1;
  --contour: #E6DFC9;
  /* the network */
  --urban: #3C7A4A;
  --urban-deep: #20563A;
  --wild: #2C6B64;
  /* the route (trail-map vermillion — the one accent) */
  --route: #BC4B26;
  --route-deep: #9C3918;
  --gold: #BE8F2B;
  /* dark band */
  --deep: #152219;
  --deep-2: #1C2F23;

  --font-display: "Zodiak", "Iowan Old Style", Georgia, serif;
  --font-body: "Author", "Gill Sans", "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sect: clamp(84px, 11vw, 152px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.4, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--route); color: var(--bright); }

:focus-visible { outline: 2px dashed var(--route); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--ink); color: var(--bright);
  padding: 10px 18px; font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus { left: 12px; }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 400; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--route);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: "+"; color: var(--ink-faint); font-size: 14px; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold); }
.eyebrow--light::before { color: rgba(244, 239, 227, 0.4); }

.coords {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }

.sect-head { max-width: 780px; }
.sect-head h2 { font-size: clamp(34px, 4.6vw, 58px); margin: 20px 0 18px; }
.sect-head--center { margin-inline: auto; text-align: center; }
.sect-head--center .lede { margin-inline: auto; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); position: relative; }
.section--warm { background: var(--paper-warm); }
.section--rule-top { border-top: 1px solid var(--line); }

/* register marks on section rules — cartographic detail */
.reg-rule { position: relative; border: none; border-top: 1px solid var(--line); overflow: visible; }
.reg-rule::before, .reg-rule::after {
  content: "+"; position: absolute; top: -0.72em;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint);
  background: inherit;
}
.reg-rule::before { left: 0; }
.reg-rule::after { right: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 227, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand svg { width: 44px; height: auto; flex: none; }
.brand-name {
  font-family: var(--font-display); font-size: 21px; line-height: 1;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-sub {
  display: block; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
  margin-top: 5px; white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1.5px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--route); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--route); }
.header-cta { display: flex; align-items: center; gap: 18px; }
/* the Donate pill covers desktop; the nav item only serves the mobile overlay */
@media (min-width: 941px) { .main-nav .nav-donate { display: none; } }
/* mobile header shrink — must stay AFTER the base .brand-sub/.header-cta rules */
@media (max-width: 560px) {
  .brand svg { width: 34px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 8px; letter-spacing: 0.22em; margin-top: 4px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 470px) {
  .brand-sub { display: none; }
  .brand svg { width: 30px; }
}
@media (max-width: 374px) {
  .brand { gap: 9px; }
  .brand-name { font-size: 15px; }
  .header-cta .btn { padding: 9px 11px; font-size: 12.5px; }
}

/* mobile menu */
.menu-btn { display: none; }
@media (max-width: 940px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 190;
    flex-direction: column; justify-content: center; gap: 8vh;
    background: var(--paper);
    background-image: radial-gradient(ellipse at 80% 10%, var(--contour), transparent 55%);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-family: var(--font-display); font-size: clamp(34px, 9vw, 52px); text-transform: none; letter-spacing: -0.01em; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    position: relative; z-index: 210;
  }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
    position: relative; transition: transform 0.3s, opacity 0.3s;
  }
  .menu-btn .bars::before { position: absolute; top: -7px; }
  .menu-btn .bars::after { position: absolute; top: 7px; }
  .menu-btn[aria-expanded="true"] .bars { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::before { transform: rotate(-90deg) translateX(-7px); }
  .menu-btn[aria-expanded="true"] .bars::after { opacity: 0; }
  body.menu-open { overflow: hidden; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  text-decoration: none; line-height: 1;
  padding: 17px 28px; border-radius: 8px;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, box-shadow 0.25s;
  position: relative;
}
.btn .arr { transition: transform 0.25s var(--ease-out); font-weight: 400; }
.btn:hover .arr { transform: translateX(5px); }
.btn--route { background: var(--route); color: var(--bright); box-shadow: 4px 4px 0 rgba(29, 42, 33, 0.14); }
.btn--route:hover { background: var(--route-deep); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(29, 42, 33, 0.16); }
.btn--route:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(29, 42, 33, 0.14); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border: 1.5px solid rgba(251, 248, 239, 0.75); color: var(--bright); background: transparent; }
.btn--ghost-light:hover { background: var(--bright); color: var(--ink); border-color: var(--bright); }
.btn--sm { padding: 12px 20px; font-size: 14.5px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; color: var(--route-deep);
  text-decoration: none; border-bottom: 1.5px dashed var(--route);
  padding-bottom: 2px; transition: gap 0.25s var(--ease-out);
}
.textlink:hover { gap: 13px; }

/* ---------- plates (atlas-style figures) ---------- */
.plate {
  background: var(--bright);
  border: 1.5px solid var(--ink);
  padding: 9px;
  box-shadow: 8px 8px 0 rgba(29, 42, 33, 0.08);
}
.plate img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.plate-media { overflow: hidden; }
.plate figcaption {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 9px 2px 1px;
}
.plate figcaption b { color: var(--ink-soft); font-weight: 400; }

/* ---------- stamps ---------- */
.stamp {
  position: absolute; z-index: 3;
  width: 92px; height: 92px;
  color: var(--route);
  transform: rotate(-11deg);
  opacity: 0.92;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stamp--dev { color: var(--wild); transform: rotate(7deg); }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px 4px; border: 1px solid currentColor; border-radius: 3px;
}
.tag--urban { color: var(--urban-deep); }
.tag--wild { color: var(--wild); }
.tag--dev { color: var(--gold); }

/* ---------- reveal & draw animations ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

html.js .draw-path {
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 2.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .draw-path.is-in,
html.js .draw-svg.is-in .draw-path { stroke-dashoffset: 0; }

@keyframes dash-march { to { stroke-dashoffset: -26px; } }
.march { animation: dash-march 1.6s linear infinite; }

/* ---------- hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 100px; padding-bottom: 40px;
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  position: relative; z-index: 2;
}
.hero-copy { position: relative; }
.hero h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.02;
  margin: 26px 0 0;
}
.hero h1 .hl { display: block; overflow: hidden; }
html.js .hero h1 .hl span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
html.js .hero.is-loaded h1 .hl span { transform: none; }
.hero h1 .hl:nth-child(2) span { transition-delay: 0.12s; }
.hero h1 .hl:nth-child(3) span { transition-delay: 0.24s; }
.hero .lede { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-trust { margin-top: 30px; }
html.js .hero .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out) 0.5s, transform 0.9s var(--ease-out) 0.5s; }
html.js .hero.is-loaded .fade-up { opacity: 1; transform: none; }

.hero-media { position: relative; }
.hero-media .plate { transform: rotate(1.2deg); }
.hero-media .plate-media { aspect-ratio: 4 / 5; }
html.js .hero-media { opacity: 0; transform: translateY(30px) rotate(2.5deg); transition: opacity 1.2s var(--ease-out) 0.3s, transform 1.2s var(--ease-out) 0.3s; }
html.js .hero.is-loaded .hero-media { opacity: 1; transform: none; }

/* the drawn route across the hero */
.hero-route {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; pointer-events: none;
  overflow: visible;
}
.hero-contour {
  position: absolute; inset: -10% -20%; z-index: 0; pointer-events: none;
  opacity: 0.5;
}
.hero-meta {
  position: absolute; top: 96px; right: var(--gutter);
  text-align: right; display: none;
}
@media (min-width: 1100px) { .hero-meta { display: block; } }

.pin-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.pin-dot--urban { background: var(--urban); }
.pin-dot--wild { background: var(--wild); }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; }
  .hero-media .plate-media { aspect-ratio: 4 / 3; }
  .hero-route, .hero-contour { display: none; }
}

/* ---------- coordinates marquee ---------- */
.marquee {
  border-block: 1px dashed var(--line);
  padding-block: 13px;
  overflow: hidden;
  background: var(--bright);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap;
  animation: marquee 46s linear infinite;
}
.marquee-track em { font-style: normal; color: var(--route); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- why (editorial split) ---------- */
.why-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 90px); align-items: center;
}
.why-grid .plate { transform: rotate(-1.3deg); }
.why-grid .plate-media { aspect-ratio: 4 / 5; }
.pullquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3;
  color: var(--route-deep);
  border-left: 2px solid var(--route);
  padding-left: 22px; margin-block: 28px;
}
.why-copy p + p { margin-top: 1.1em; }
.why-copy .body { color: var(--ink-soft); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid .plate { max-width: 420px; }
}

/* ---------- the journey (scroll-driven) ---------- */
.journey { background: var(--paper-warm); position: relative; }
.journey-track { height: 340vh; }
.journey-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: clip;
}
.journey-grid {
  display: grid; grid-template-columns: 380px 1fr;
  gap: clamp(30px, 4vw, 70px); align-items: center; width: 100%;
}
.j-steps { display: grid; gap: 34px; }
.j-step { opacity: 0.32; transition: opacity 0.5s; border-left: 2px solid var(--line); padding-left: 22px; }
.j-step.is-active { opacity: 1; border-left-color: var(--route); }
.j-step .eyebrow { color: var(--ink-faint); }
.j-step.is-active .eyebrow { color: var(--route); }
.j-step h3 { font-size: 26px; margin: 10px 0 8px; }
.j-step p { font-size: 15.5px; color: var(--ink-soft); max-width: 40ch; }

.j-canvas { position: relative; height: min(78vh, 720px); }
.j-canvas svg { width: 100%; height: 100%; overflow: visible; }
.j-coin {
  position: absolute; width: 92px; height: 92px; border-radius: 50%;
  background: var(--bright); border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(29, 42, 33, 0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: var(--font-display); font-size: 27px; line-height: 1;
  left: 50%; top: 0; transform: translate(-50%, 0);
}
.j-coin small { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.16em; color: var(--ink-faint); }
.j-node {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--ease-spring);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
}
.j-node.is-in { transform: translate(-50%, -50%) scale(1); }
.j-end {
  position: absolute; bottom: 0; width: min(38%, 250px);
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.j-end.is-in { opacity: 1; transform: none; }
.j-end--urban { left: 1%; }
.j-end--wild { right: 1%; }
.j-end .plate { padding: 6px; box-shadow: 6px 6px 0 rgba(29, 42, 33, 0.08); }
.j-end--urban .plate { transform: rotate(-2deg); }
.j-end--wild .plate { transform: rotate(1.6deg); }
.j-end .plate-media { aspect-ratio: 4 / 3; }
.j-end .side-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; margin-top: 10px; display: flex; gap: 8px; align-items: center;
}
.j-mobile { display: none; }

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .journey-track { height: auto; padding-block: var(--sect); }
  .journey-sticky { position: static; height: auto; display: block; }
  .journey-grid { grid-template-columns: 1fr; }
  .j-canvas { display: none; }
  .j-step { opacity: 1; }
  .j-mobile { display: grid; gap: 18px; margin-top: 42px; grid-template-columns: 1fr 1fr; }
  .j-mobile .plate-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .j-mobile { grid-template-columns: 1fr; } }

/* ---------- match index (home) ---------- */
.match-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 80px); align-items: start; margin-top: 56px;
}
.match-list { border-top: 1px solid var(--line); }
.match-row {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: baseline; gap: 18px;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s, padding-left 0.3s var(--ease-out);
  position: relative;
}
.match-row:hover, .match-row.is-hot { background: var(--bright); padding-left: 16px; }
.match-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.match-names { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.15; }
.match-names .link-glyph { color: var(--route); font-family: var(--font-mono); font-size: 0.75em; padding-inline: 6px; }
.match-place { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 7px; }
.match-preview { position: sticky; top: 110px; }
.match-preview .plate-media { aspect-ratio: 4 / 3; position: relative; }
.match-preview .plate-media img {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.match-preview .plate-media img.is-active { opacity: 1; }
@media (max-width: 900px) {
  .match-layout { grid-template-columns: 1fr; }
  .match-preview { display: none; }
}

/* ---------- impact band (dark) ---------- */
.impact {
  background: var(--deep); color: var(--paper);
  position: relative; overflow: clip;
}
.impact .contour-bg { position: absolute; inset: 0; opacity: 0.1; pointer-events: none; }
.impact .sect-head h2 { color: var(--bright); }
.impact .lede { color: rgba(244, 239, 227, 0.72); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; margin-top: 70px; position: relative; z-index: 1;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1; color: var(--bright); font-variant-numeric: tabular-nums;
}
.stat-num sup { font-size: 0.45em; color: var(--gold); }
.stat-bar { width: 46px; height: 3px; background: var(--gold); margin: 16px auto 12px; border-radius: 2px; }
.stat-label { font-size: 15.5px; color: rgba(244, 239, 227, 0.78); }
.impact-foot { text-align: center; margin-top: 56px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(244, 239, 227, 0.45); }
@media (max-width: 800px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 44px 20px; } }

/* ---------- stories ---------- */
.stories-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 34px); margin-top: 56px; }
.story-card { display: grid; gap: 0; align-content: start; }
.story-card .plate-media { aspect-ratio: 3 / 2; }
.story-card .plate-media img { transition: transform 0.7s var(--ease-out); }
.story-card:hover .plate-media img { transform: scale(1.04); }
.story-meta { display: flex; gap: 12px; align-items: center; margin: 20px 0 12px; }
.story-card h3 { font-size: clamp(21px, 1.9vw, 25px); }
.story-card p { font-size: 15.5px; color: var(--ink-soft); margin-top: 10px; }
.story-soon { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 16px; }
@media (max-width: 860px) { .stories-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* ---------- final cta band ---------- */
.cta-band {
  position: relative; min-height: 560px;
  display: grid; align-items: center;
  color: var(--bright); overflow: clip;
}
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 34, 25, 0.45), rgba(21, 34, 25, 0.72));
}
.cta-inner { position: relative; z-index: 1; text-align: center; padding-block: 110px; }
.cta-inner h2 { font-size: clamp(38px, 5.4vw, 72px); color: var(--bright); max-width: 15ch; margin-inline: auto; }
.cta-inner .lede { color: rgba(251, 248, 239, 0.85); margin: 22px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 42px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep); color: rgba(244, 239, 227, 0.82);
  position: relative; overflow: clip;
}
.site-footer .contour-bg { position: absolute; inset: 0; opacity: 0.07; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; padding-block: 84px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand svg { width: 52px; }
.footer-brand .fb-name { font-family: var(--font-display); font-size: 25px; color: var(--bright); margin-top: 18px; }
.footer-brand .fb-tag { font-size: 15px; margin-top: 12px; max-width: 34ch; color: rgba(244, 239, 227, 0.66); }
.footer-brand .fb-charity { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: rgba(244, 239, 227, 0.45); margin-top: 20px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 239, 227, 0.5); margin-bottom: 20px; font-weight: 400; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { text-decoration: none; font-size: 15px; border-bottom: 1px dashed transparent; transition: border-color 0.2s, color 0.2s; }
.footer-col a:hover { color: var(--bright); border-bottom-color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid rgba(244, 239, 227, 0.14);
  margin-top: 70px; padding-top: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: rgba(244, 239, 227, 0.45);
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- atlas page ---------- */
.page-head { padding-top: clamp(140px, 18vh, 190px); }
.page-head h1 { font-size: clamp(42px, 6vw, 80px); margin-top: 22px; }

.atlas-sheet {
  background: var(--bright);
  border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(29, 42, 33, 0.08);
  margin-top: 60px;
  position: relative;
}
.atlas-sheet-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.atlas-main { position: relative; }
.atlas-main svg { display: block; width: 100%; height: auto; }
.atlas-legend {
  display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: center;
  padding: 16px 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.legend-item { display: inline-flex; align-items: center; gap: 9px; }
.legend-swatch { width: 26px; }

.map-sea { fill: var(--bright); }
.map-land { fill: var(--paper-warm); stroke: var(--ink-soft); stroke-width: 0.35; }
.map-graticule { stroke: var(--line); stroke-width: 0.3; stroke-dasharray: 1 3; fill: none; }
.map-glabel { font-family: var(--font-mono); fill: var(--ink-faint); letter-spacing: 0.08em; }
.map-region { fill: rgba(188, 75, 38, 0.02); stroke: var(--route); stroke-width: 0.7; stroke-dasharray: 3 2; transition: stroke-width 0.2s, fill 0.2s; }
a:hover > .map-region, a:focus-visible > .map-region { stroke-width: 1.5; fill: rgba(188, 75, 38, 0.07); }
.map-region-label { font-family: var(--font-mono); letter-spacing: 0.12em; fill: var(--route-deep); text-transform: uppercase; }
.map-net-arc { fill: none; stroke: var(--route); stroke-width: 0.7; stroke-dasharray: 2.4 2.4; stroke-linecap: round; opacity: 0.55; }
.map-cartouche rect { fill: var(--bright); stroke: var(--ink); stroke-width: 0.6; }
.map-cartouche .c-title { font-family: var(--font-display); font-size: 9px; fill: var(--ink); letter-spacing: 0.02em; }
.map-cartouche .c-sub { font-family: var(--font-mono); font-size: 3.6px; fill: var(--ink-faint); letter-spacing: 0.18em; }

.inset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 34px); margin-top: 40px; }
.inset-card { background: var(--bright); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 rgba(29, 42, 33, 0.08); transition: transform 0.3s var(--ease-out); }
.inset-card:hover { transform: translateY(-4px); }
.inset-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); }
.inset-head .roman { color: var(--route); }
.inset-card svg { display: block; width: 100%; height: auto; }
.inset-card .map-land { stroke-width: 0.1; }
.pin circle { transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--ease-spring); }
a.pin:hover circle, a.pin:focus-visible circle { transform: scale(1.45); }
.pin-label { font-family: var(--font-mono); letter-spacing: 0.04em; fill: var(--ink); text-transform: uppercase; }
.pin-leader { stroke: var(--ink-faint); fill: none; pointer-events: none; }
.inset-arc { fill: none; stroke: var(--route); stroke-linecap: round; }
.match-g { transition: opacity 0.25s; }
svg.inset-svg:hover .match-g:not(:hover) { opacity: 0.4; }

.conn-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em; fill: var(--ink-faint); }
.stamp-slot { position: absolute; top: -30px; right: -12px; z-index: 4; }
.stamp-slot svg { display: block; width: 92px; height: 92px; }

.nominate {
  border: 1.5px dashed var(--ink-soft); background: var(--bright);
  padding: clamp(44px, 6vw, 76px); text-align: center;
}

/* match spreads */
.spread { padding-block: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); position: relative; scroll-margin-top: 90px; }
.spread-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 40px; }
.spread-num { font-family: var(--font-mono); font-size: 13px; color: var(--route); }
.spread-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.spread-head .link-glyph { color: var(--route); font-family: var(--font-mono); font-size: 0.7em; padding-inline: 8px; }
.spread-grid {
  display: grid; grid-template-columns: 1fr minmax(60px, 130px) 1fr;
  gap: 0 clamp(10px, 1.6vw, 24px); align-items: center;
}
.spread-side { position: relative; }
.spread-side .plate-media { aspect-ratio: 4 / 3; }
.spread-side--urban .plate { transform: rotate(-1deg); }
.spread-side--wild .plate { transform: rotate(1deg); }
.spread-connector { align-self: center; overflow: visible; width: 100%; }
.spread-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 34px; }
.spread-copy h3 { font-size: 22px; margin-bottom: 8px; }
.spread-copy .coords { display: block; margin-bottom: 12px; }
.spread-copy p { font-size: 15.5px; color: var(--ink-soft); }
.spread-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.spread-stats b { color: var(--urban-deep); font-weight: 400; }
.spread-cta { margin-top: 36px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
@media (max-width: 800px) {
  .spread-grid { grid-template-columns: 1fr; gap: 18px; }
  .spread-connector { height: 70px; width: 70px; margin-inline: auto; transform: rotate(90deg); }
  .spread-copy { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) { .inset-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- about page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 64px; counter-reset: val; }
.value { border-top: 1.5px solid var(--ink); padding-top: 20px; position: relative; }
.value::before {
  counter-increment: val; content: "0" counter(val);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--route);
  display: block; margin-bottom: 14px; letter-spacing: 0.14em;
}
.value h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 10px; }
.value p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }

.species-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.2vw, 30px); margin-top: 60px; }
.species-card { background: var(--bright); border: 1px solid var(--line); padding: 10px; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.species-card:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 rgba(29, 42, 33, 0.08); }
.species-card .sc-media { aspect-ratio: 3 / 4; overflow: hidden; }
.species-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 0.6s var(--ease-out); }
.species-card:hover img { transform: scale(1.05); }
.species-card .sc-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--route); text-transform: uppercase; margin: 14px 4px 6px; }
.species-card h3 { font-size: 20px; margin: 0 4px 6px; }
.species-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0 4px 8px; line-height: 1.55; }
@media (max-width: 1000px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .species-grid { grid-template-columns: 1fr; } }
.species-card--you { border-style: dashed; border-color: var(--ink-soft); background: transparent; }
.species-card--you .sc-media--empty {
  aspect-ratio: 3 / 4; display: grid; place-items: center;
  border: 1px dashed var(--line); color: var(--ink-faint);
  font-family: var(--font-display); font-style: italic; font-size: 64px;
}
.species-card--you a { color: var(--route-deep); }

.pioneer-callout {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  background: var(--bright); border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(29, 42, 33, 0.08);
  margin-top: 80px; overflow: hidden;
}
.pioneer-media { position: relative; min-height: 340px; }
.pioneer-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pioneer-body { padding: clamp(28px, 4vw, 56px); }
.pioneer-body h3 { font-size: clamp(26px, 2.8vw, 36px); margin: 14px 0 16px; }
.pioneer-body p { color: var(--ink-soft); font-size: 16px; }
.pioneer-body .spread-cta { margin-top: 30px; }
@media (max-width: 860px) { .pioneer-callout { grid-template-columns: 1fr; } .pioneer-media { min-height: 240px; } }

.logo-strip { margin-top: 90px; text-align: center; }
.logo-strip ul { display: flex; flex-wrap: wrap; gap: 22px 54px; justify-content: center; margin-top: 26px; }
.logo-strip li { font-family: var(--font-display); font-size: 19px; color: var(--ink-faint); }

/* ---------- donate page ---------- */
.tickets { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 26px); margin-top: 64px; align-items: stretch; }
.ticket {
  position: relative;
  background: var(--bright);
  border: 1.5px dashed var(--ink-soft);
  padding: 34px 26px 28px;
  display: grid; gap: 0; align-content: start; text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.ticket:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 rgba(29, 42, 33, 0.1); border-color: var(--ink); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px;
  border-radius: 50%; background: var(--paper); border: 1.5px dashed var(--ink-soft);
  transform: translateY(-50%);
}
.ticket::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.ticket-amount { font-family: var(--font-display); font-size: clamp(44px, 4vw, 58px); line-height: 1; }
.ticket-amount .cur { font-size: 0.5em; vertical-align: 0.55em; color: var(--ink-faint); }
.ticket-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--urban-deep); margin-top: 14px; }
.ticket-desc { font-size: 14px; color: var(--ink-soft); margin-top: 14px; min-height: 4.2em; line-height: 1.55; }
.ticket .btn { margin-top: 22px; justify-content: center; }
.ticket--hot { border: 1.5px solid var(--route); background: var(--bright); transform: scale(1.03); }
.ticket--hot:hover { transform: scale(1.03) translateY(-6px); }
.ticket-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  background: var(--route); color: var(--bright);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  padding: 6px 12px 5px; border-radius: 3px; white-space: nowrap;
}
@media (max-width: 1000px) { .tickets { grid-template-columns: 1fr 1fr; } .ticket--hot { transform: none; } .ticket--hot:hover { transform: translateY(-6px); } }
@media (max-width: 540px) { .tickets { grid-template-columns: 1fr; } }

.custom-bar {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center;
  border: 1.5px dashed var(--ink-soft); background: var(--bright);
  padding: 24px 28px; margin-top: 26px;
}
.custom-bar label { font-weight: 600; font-size: 17px; }
.custom-input {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--ink); background: var(--paper);
  padding: 12px 16px; font-family: var(--font-display); font-size: 22px;
}
.custom-input input {
  width: 90px; border: none; background: none; font: inherit; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.custom-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.custom-input input:focus { outline: none; }
.custom-help { width: 100%; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-faint); }

.canopy-band { position: relative; margin-top: clamp(80px, 10vw, 130px); border-block: 1.5px solid var(--ink); }
.canopy-band img { width: 100%; height: clamp(200px, 30vw, 320px); object-fit: cover; }
.canopy-band .canopy-note {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(21, 34, 25, 0.72); color: rgba(244, 239, 227, 0.9);
  padding: 7px 14px; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}

.split-diagram { margin-top: clamp(80px, 10vw, 120px); }
.split-diagram svg { width: 100%; height: auto; overflow: visible; }
.split-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  max-width: 860px; margin: 10px auto 0; text-align: center;
}
.split-pct { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 48px); line-height: 1; }
.split-cols h3 { font-size: 21px; margin: 10px 0 8px; }
.split-cols p:not(.split-pct) { font-size: 15px; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }
@media (max-width: 640px) { .split-cols { grid-template-columns: 1fr; gap: 34px; } }
.split-caption { text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 40px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 16px 44px; justify-content: center;
  margin-top: 60px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink-soft);
}
.trust-row span { display: inline-flex; align-items: center; gap: 9px; }
.trust-row svg { color: var(--urban-deep); }

.email-band {
  max-width: 760px; margin: clamp(80px, 10vw, 120px) auto 0;
  background: var(--bright); border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(29, 42, 33, 0.08);
  padding: clamp(30px, 4vw, 48px); text-align: center;
}
.email-band h3 { font-size: clamp(24px, 2.6vw, 32px); }
.email-band > p { color: var(--ink-soft); font-size: 15.5px; margin-top: 12px; }
.email-form { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.email-form input {
  flex: 1 1 260px; max-width: 340px;
  border: 1.5px solid var(--ink); background: var(--paper);
  padding: 14px 18px; font: inherit; font-size: 15.5px; color: var(--ink);
}
.email-form input:focus { outline: 2px dashed var(--route); outline-offset: 2px; }
.email-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--ink-faint); margin-top: 18px; }
.email-note a { color: var(--ink-soft); }
.email-success { color: var(--urban-deep); font-weight: 600; margin-top: 14px; display: none; }
.email-success.is-visible { display: block; }

/* ---------- legal / prose ---------- */
.prose { max-width: 720px; margin-inline: auto; padding-block: 60px 140px; }
.prose h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.prose .updated { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 44px; display: block; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 46px 0 14px; }
.prose p { margin-bottom: 1em; color: var(--ink-soft); }
.prose ul { list-style: none; margin-bottom: 1em; }
.prose ul li { padding-left: 26px; position: relative; margin-bottom: 0.5em; color: var(--ink-soft); }
.prose ul li::before { content: "→"; position: absolute; left: 0; color: var(--route); font-family: var(--font-mono); font-size: 14px; }
.prose a { color: var(--route-deep); text-decoration-style: dashed; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* ---------- 404 ---------- */
.lost { min-height: 88svh; display: grid; place-items: center; text-align: center; padding-top: 80px; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); margin: 30px 0 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper);
  padding: 16px 26px; border-radius: 8px; z-index: 300;
  font-size: 15px; display: flex; gap: 16px; align-items: center;
  box-shadow: 6px 6px 0 rgba(29, 42, 33, 0.18);
  transition: transform 0.6s var(--ease-spring);
  max-width: min(92vw, 520px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast button { color: var(--gold); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; flex: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal, html.js .hero .fade-up, html.js .hero-media { opacity: 1; transform: none; }
  html.js .hero h1 .hl span { transform: none; }
  html.js .draw-path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .march { animation: none; }
}
