/* ============================================================
   CURAVANTIS - DESIGN SYSTEM v3
   One light theme (dark follows the OS), one accent: the logo's
   green. Geist throughout. Hairlines and space do the grouping;
   photographs carry the page. No gradients, glows or glass.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #ecf4ef;          /* green-tinted band */
  --ink: #15201b;           /* headings */
  --ink-2: #47524c;         /* body (8.0:1 on white) */
  --ink-3: #5f6a64;         /* meta (5.6:1 on white, 5.2:1 on bg-2) */
  --line: #d9e5dd;
  --line-strong: #c3d3c9;
  --accent: #1f6b4a;        /* the logo green, deepened for text contrast (6.6:1) */
  --accent-hover: #185a3d;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0ea;
  --accent-text: #1f6b4a;
  --danger: #b4423a;
  --danger-soft: rgba(180, 66, 58, 0.14);
  --sage: #52b788;          /* lighter brand green for underline accents */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6a64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* deep-green bands: hero, donate, camp header, footer */
  --band: #12432f;
  --band-deep: #0d3324;
  --on-band: #ffffff;
  --on-band-2: rgba(255, 255, 255, 0.78);
  --band-accent: #93d4b1;   /* 7.9:1 on --band */
  --band-line: rgba(255, 255, 255, 0.16);
  --band-glow: #1d5a41;     /* soft light falling on the hero band */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* playful overshoot, hover only */

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;              /* buttons, inputs, tags */
  --r: 12px;                /* images, panels */

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 68px;

  /* motion: strong ease-out; press 140ms, hover 200ms, UI <= 300ms */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms; --dur-hover: 200ms; --dur-ui: 250ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --bg-2: #13201a;
    --ink: #e9eeeb;
    --ink-2: #b3bdb7;
    --ink-3: #95a09a;
    --line: #232c27;
    --line-strong: #33403a;
    --accent: #5fb48a;
    --accent-hover: #77c49e;
    --accent-ink: #0c1310;
    --accent-soft: #19281f;
    --accent-text: #7cc7a0;
    --danger: #e0786f;
    --danger-soft: rgba(224, 120, 111, 0.18);
    --sage: #4f9e78;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2395a09a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --band: #113224;
    --band-deep: #0b2419;
    --band-glow: #184530;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--line-strong) var(--bg); }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
/* Headline emphasis: same family, in the brand green. No italic swaps, no serif injections. */
h1 em, h2 em { font-style: normal; color: var(--accent-text); }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, textarea { caret-color: var(--accent); }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section) calc(var(--section) * 1.1); }
.section-tint { background: var(--bg-2); }
section[id] { scroll-margin-top: 92px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: 0.6rem 1rem;
  background: var(--ink); color: var(--bg); border-radius: var(--r-sm); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- type scale ---------- */
h1 { font-size: clamp(2.6rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head::before { content: ""; display: block; width: 2.5rem; height: 3px; border-radius: 2px;
  background: var(--accent); margin-bottom: 1.5rem; }
.section-head p { max-width: 62ch; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease, color var(--dur-hover) ease,
    transform var(--dur-press) var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font-weight: 500;
  text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform var(--dur-hover) var(--ease-out); }

/* ---------- header: a floating capsule that tucks away on scroll-down ---------- */
.site-header { position: fixed; z-index: 300; left: 50%; top: max(12px, env(safe-area-inset-top, 0px));
  width: min(calc(var(--container) + 2rem), calc(100% - 24px)); transform: translateX(-50%);
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid color-mix(in srgb, var(--bg) 55%, transparent);
  box-shadow: 0 12px 32px rgba(6, 28, 18, 0.2);
  transition: transform 400ms var(--ease-out), box-shadow var(--dur-ui) ease, background-color var(--dur-ui) ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 95%, transparent); box-shadow: 0 10px 30px rgba(6, 28, 18, 0.14); }
.site-header.tucked { transform: translate(-50%, calc(-100% - 28px)); }
.header-inner { position: relative; height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; }
.site-header .header-inner { height: 64px; padding: 0 0.5rem 0 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; object-fit: contain; transition: transform 500ms var(--spring); }
.overlay-top .brand img { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.brand-sub { margin-top: 5px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent-text); }
.nav-right { display: flex; align-items: center; gap: 0.35rem; }
.nav-right ul { list-style: none; display: flex; gap: 0.15rem; margin-right: 0.5rem; }
.nav-right ul a { position: relative; display: block; padding: 0.5rem 0.85rem; border-radius: 999px; color: var(--ink-2);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color var(--dur-hover) ease, background-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }
/* the section you are reading is marked in the bar (set by main.js) */
.nav-right ul a[aria-current="true"] { color: var(--accent-text); background: var(--accent-soft); }
.nav-cta { min-height: 44px; padding: 0.6rem 1.35rem; border-radius: 999px;
  transition: background-color var(--dur-hover) ease, transform 300ms var(--spring), box-shadow var(--dur-ui) ease; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none;
  border-radius: 999px; color: var(--ink); cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; border-radius: 2px; transition: transform var(--dur-ui) var(--ease-out); }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.site-header.open .nav-toggle span:first-child { transform: rotate(45deg); }
.site-header.open .nav-toggle span:last-child { transform: rotate(-45deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero: emblem, place, title, stats panel ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-band-2); text-align: center;
  background: radial-gradient(90% 65% at 50% 0%, var(--band-glow), transparent 70%), var(--band);
  padding: calc(76px + clamp(2.5rem, 7vw, 4.5rem)) 0 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-emblem { width: clamp(80px, 9vw, 108px); height: auto; margin-bottom: 1.75rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25)); transition: transform 600ms var(--spring); }
.hero-pill { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; padding: 0.45rem 1.05rem;
  border: 1px solid var(--band-line); border-radius: 999px; background: rgba(255, 255, 255, 0.05);
  color: var(--band-accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-pill .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--band-accent); }
.hero-pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--band-accent); opacity: 0; }
.hero-title { color: var(--on-band); font-size: clamp(3rem, 7.5vw, 5.75rem); line-height: 1.02; letter-spacing: -0.04em;
  margin-bottom: 1.5rem; }
.hero-title em { color: var(--band-accent); }
/* each line rises out of its own mask */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 50ch; margin-bottom: 2.25rem; color: var(--on-band-2); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.btn-hero, .btn-hero-outline { min-height: 52px; padding: 0 1.75rem; border-radius: 999px; font-size: 1rem; font-weight: 600; }
.btn-hero { background: var(--band-accent); color: var(--band-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  transition: background-color var(--dur-hover) ease, transform 300ms var(--spring), box-shadow var(--dur-ui) ease; }
.btn-hero .icon { transition: transform var(--dur-hover) var(--ease-out); }
.btn-hero-outline { color: var(--on-band); border-color: rgba(255, 255, 255, 0.32);
  transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease, transform 300ms var(--spring); }
.hero-stats { width: 100%; max-width: 880px; margin-top: clamp(3rem, 7vw, 4.5rem); display: grid;
  grid-template-columns: repeat(4, 1fr); border: 1px solid var(--band-line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.hero-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 0.55rem;
  padding: 1.75rem 1rem; transition: background-color var(--dur-ui) ease; }
.hero-stats > div + div { border-left: 1px solid var(--band-line); }
.hero-stats dd { font-size: clamp(2.1rem, 3.6vw, 2.75rem); font-weight: 600; color: var(--band-accent); letter-spacing: -0.03em;
  line-height: 1; font-variant-numeric: tabular-nums; transition: transform 400ms var(--spring); }
.hero-stats dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-band-2); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: clamp(2.25rem, 5vw, 3rem);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-band-2); }
.scroll-cue .line { width: 1px; height: 36px; background: linear-gradient(var(--on-band-2), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-emblem, .hero-pill, .hero-sub, .hero-actions, .hero-stats, .scroll-cue { animation: fadeUp 0.8s var(--ease-out) both; }
  .hero-pill { animation-delay: 0.08s; }
  .hero-title .line > span { animation: lineUp 0.9s var(--ease-out) 0.14s both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.23s; }
  .hero-sub { animation-delay: 0.36s; }
  .hero-actions { animation-delay: 0.44s; }
  .hero-stats { animation-delay: 0.52s; }
  .scroll-cue { animation-delay: 0.7s; }
  .hero-pill .dot::after { animation: ping 2.2s var(--ease-out) infinite; }
  .scroll-cue .line { animation: cue 2.2s var(--ease-out) infinite; }
}
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ping { from { opacity: 0.6; transform: scale(1); } 70%, to { opacity: 0; transform: scale(3.2); } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- photo strip: camp photos drifting past ---------- */
/* the top half continues the hero band, so the photos straddle the edge */
.photo-strip { background: linear-gradient(var(--band) 50%, var(--bg) 50%); overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.photo-track { display: flex; gap: 1rem; width: max-content; }
.photo-track img { height: clamp(170px, 22vw, 280px); width: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r); background: var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .photo-track { animation: drift 70s linear infinite; }
}
@keyframes drift { to { transform: translateX(calc(-50% - 0.5rem)); } }
@media (prefers-reduced-motion: reduce) {
  .photo-strip { overflow-x: auto; }
}

/* proof strip: plain figures between hairlines */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 7vw, 5rem);
  border-block: 1px solid var(--line); }
.proof > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem;
  padding: 1.75rem 1.5rem 1.75rem 0; }
.proof > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.proof dd { font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--accent-text); letter-spacing: -0.03em;
  line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof dt { font-size: 0.9375rem; color: var(--ink-3); }

/* ---------- programs ---------- */
.programs-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.program h3 { margin: 0.75rem 0 0.5rem; }
.program p { max-width: 58ch; }
.program-media { overflow: hidden; border-radius: var(--r); margin-bottom: 1.5rem; }
.program-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.program-feature h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.programs-side { display: grid; gap: 2.5rem; }
.programs-side .program { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tag { display: inline-block; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--bg-2); color: var(--accent-text);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.2; }
.tag-live { background: var(--accent); color: var(--accent-ink); }

/* ---------- explore tiles: one lead, two stacked ---------- */
.tiles { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 2.5rem clamp(2rem, 4vw, 3rem); }
.tile { cursor: pointer; border-radius: var(--r); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.tile-lead { grid-row: span 2; display: flex; flex-direction: column; }
.tile-media { overflow: hidden; border-radius: var(--r); background: var(--line); margin-bottom: 1.1rem; }
.tile-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 400ms var(--ease-out); }
.tile-lead .tile-media { flex: 1; min-height: 360px; }
.tile-lead .tile-media img { aspect-ratio: auto; }
.doc-tile .tile-media img { object-position: top; }
.tile h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.tile h3 .icon { color: var(--accent-text); transition: transform var(--dur-hover) var(--ease-out); }
.tile p { font-size: 1rem; max-width: 52ch; }

/* ---------- who: green band, three cards ---------- */
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-green .eyebrow { color: var(--band-accent); }
.who { background: radial-gradient(80% 90% at 85% 0%, var(--band-glow), transparent 65%), var(--band); }
.who .section-head::before { display: none; }
.who-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.who-card { padding: 2.25rem 2rem; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--band-line); }
.who-k { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-accent); }
.who-k::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.who-card h3 { color: var(--on-band); font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.who-card p:last-child { color: var(--on-band-2); }

/* ---------- mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.mission-media { position: relative; padding: 0 2.5rem 2.5rem 0; }
.mi-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.mi-accent { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r); border: 6px solid var(--bg); }
.mission-copy h2 { margin-bottom: 1.25rem; }
.mission-copy p + p { margin-top: 1rem; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.25rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.15rem; }
.figures dd { font-size: 1.75rem; font-weight: 600; color: var(--accent-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figures dt { font-size: 0.9375rem; color: var(--ink-3); }

/* ---------- green band sections ---------- */
.section-green { background: var(--band); color: var(--on-band-2); }
.section-green h2 { color: var(--on-band); }
.section-green h2 em { color: var(--band-accent); }

/* ---------- donate: Green Donation Hero Section ---------- */
/* Ported from the supplied snippet. Only change: it uses the site font (Geist)
   instead of the system stack, so it matches the rest of the page. */
.donation-hero-wrapper {
  background-color: #0b2518; /* Dark green matching your site background */
  width: 100%;
  padding: 5rem 2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.donation-hero-container {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
}

/* LEFT SIDE: Heading & Paragraph */
.donation-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.donation-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.donation-hero-title .accent {
  color: #5edb93;
}

.donation-hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #a3c4b2;
  max-width: 540px;
  margin: 0;
}

/* RIGHT SIDE: Card Box */
.donation-card {
  background-color: #05140d;
  border: 1px solid rgba(94, 219, 147, 0.15);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.donation-card-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #5edb93;
  line-height: 1;
  letter-spacing: -0.02em;
}

.donation-card-subtitle {
  font-size: 0.95rem;
  color: #8bb39b;
  margin-top: 0.35rem;
}

.donation-card-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0.25rem 0;
}

.donation-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background-color: #5edb93;
  color: #05140d;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.donation-card-btn:hover {
  background-color: #72e7a3;
  transform: translateY(-1px);
}

.donation-card-footer {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #6e917d;
  margin: 0;
}

/* Responsive for mobile screens */
@media (max-width: 820px) {
  .donation-hero-wrapper {
    padding: 3.5rem 1.5rem;
  }

  .donation-hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .donation-hero-title {
    font-size: 2.2rem;
  }

  .donation-card-amount {
    font-size: 2.5rem;
  }
}

/* ---------- partners ---------- */
.partner-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.partner-list article { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.partner-list h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.partner-where { margin: 0.2rem 0 0.75rem; font-size: 0.9375rem; color: var(--ink-3); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-grid h2 { margin-bottom: 1.25rem; }
.contact-details { margin-top: 2rem; display: grid; gap: 0.75rem; }
.contact-details > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.contact-details dt { color: var(--ink-3); font-size: 0.9375rem; }
.contact-details dd { color: var(--ink); }
.email-link { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent-text) 45%, transparent);
  transition: text-decoration-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.contact-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }

.cf { display: grid; gap: 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 0.75rem 0.9rem; font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); outline: none;
  transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease; }
.field textarea { resize: vertical; min-height: 8rem; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 0.95rem center; }
.field select:invalid { color: var(--ink-3); }      /* placeholder option still showing */
.field select option { color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .invalid, .field .invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.cf-hp { display: none; }                             /* honeypot: bots fill it, people never see it */
.cf .btn:disabled { opacity: 0.65; cursor: progress; }
.cf .btn { justify-self: start; }
.cf-status { font-size: 0.9375rem; color: var(--ink-2); }
.cf-status.success { color: var(--accent-text); font-weight: 500; }
.cf-status.error { color: var(--danger); }
.cf-status a { color: inherit; text-underline-offset: 3px; }
.cf-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--band-deep); color: var(--on-band-2); padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; max-width: 36ch; font-size: 0.9375rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9375rem; }
.footer-col h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.25rem; color: var(--on-band); }
.footer-col a { text-decoration: none; color: var(--on-band-2); width: fit-content; transition: color var(--dur-hover) ease; }
.site-footer .brand { color: var(--on-band); }
.site-footer .brand-sub { color: var(--on-band-2); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--band-line); font-size: 0.875rem; color: var(--on-band-2); }

/* ---------- camp page (overlay) ---------- */
/* Enters on the drawer curve; exit is quicker. Transitions, so a close mid-open reverses. */
.overlay { position: fixed; inset: 0; z-index: 500; display: none; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); scrollbar-color: var(--line-strong) var(--bg);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), display 0.2s allow-discrete; }
.overlay.active { display: block; opacity: 1; transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-drawer), display 0.35s allow-discrete; }
@starting-style { .overlay.active { opacity: 0; transform: translateY(16px); } }
.overlay-top { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.camp-subnav { display: flex; gap: 0.25rem; margin-left: auto; }
.camp-subnav a { padding: 0.5rem 0.75rem; border-radius: var(--r-sm); color: var(--ink-2); font-size: 0.9375rem;
  font-weight: 500; text-decoration: none; transition: color var(--dur-hover) ease, background-color var(--dur-hover) ease; }
.overlay-close { min-height: 40px; padding: 0.5rem 0.9rem; }

.camp-band { background: var(--band); color: var(--on-band-2); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.camp-hero { padding-top: clamp(3rem, 6vw, 4.5rem); max-width: 46rem; }
.camp-place { font-size: 0.9375rem; color: var(--band-accent); font-weight: 500; margin-bottom: 0.75rem; }
.camp-hero h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 1.25rem;
  color: var(--on-band); }
.camp-hero h2 em { color: var(--band-accent); }
.camp-band .camp-statband { grid-template-columns: repeat(5, 1fr); margin-top: 3rem; border-color: var(--band-line); }
.camp-band .camp-statband > div + div { border-left-color: var(--band-line); }
.camp-band .camp-statband dd { color: var(--on-band); }
.camp-band .camp-statband dt { color: var(--on-band-2); }
.camp-section { padding-top: clamp(3.5rem, 7vw, 5.5rem); scroll-margin-top: calc(var(--header-h) + 8px); }
.camp-section:last-child { padding-bottom: clamp(4rem, 8vw, 6rem); }

/* carousel: image | caption, controls under the caption */
.carousel { display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
.cr-stage { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; touch-action: pan-y; }
.cr-slide { display: none; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; margin: 0; }
.cr-slide.active { display: grid; transition: transform var(--dur-ui) var(--ease-out); }
.cr-imgwrap { overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.cr-imgwrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.cr-step { font-size: 0.9375rem; font-weight: 500; color: var(--accent-text); margin-bottom: 0.5rem; }
.cr-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 0.9rem; }
.cr-desc { font-size: 1rem; }
.cr-controls { grid-column: 2; display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.cr-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink);
  font-size: 1.15rem; cursor: pointer;
  transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }
.cr-counter { margin-left: 0.75rem; font-size: 0.9375rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .cr-slide.active { animation: crInNext 280ms var(--ease-out); }
  .cr-stage[data-dir="prev"] .cr-slide.active { animation-name: crInPrev; }
}
@media (prefers-reduced-motion: reduce) { .cr-slide.active { animation: crFade 0.2s ease; } }
/* Arrow-key paging repeats rapidly: it swaps instantly. */
.cr-stage[data-dir="none"] .cr-slide.active { animation: none; }
@keyframes crInNext { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes crInPrev { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes crFade { from { opacity: 0; } to { opacity: 1; } }

/* impact */
.impact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.impact-doc { cursor: pointer; -webkit-touch-callout: none; }
.impact-doc img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.impact-doc-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; color: var(--accent-text);
  font-weight: 500; font-size: 0.9375rem; }
.impact-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; align-content: start; }
.impact-figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.impact-figures dd { font-size: 2.25rem; font-weight: 600; color: var(--accent-text); letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.impact-figures dt { font-size: 0.9375rem; color: var(--ink-3); max-width: 28ch; }
.impact-quote { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 46rem; }
.impact-quote blockquote { font-size: clamp(1.3rem, 2.2vw, 1.625rem); line-height: 1.4; letter-spacing: -0.015em;
  color: var(--ink); font-weight: 500; text-wrap: pretty; }
.impact-quote figcaption { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.9375rem; }
.iq-name { color: var(--ink); font-weight: 600; }
.iq-role { color: var(--ink-3); }

/* next camp */
.nc-box { background: var(--bg-2); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); }
.nc-box > p { max-width: 60ch; margin-bottom: 1.5rem; }
.camp-info { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 3rem; margin-bottom: 1.5rem; }
.camp-info dt { font-size: 0.875rem; color: var(--ink-3); }
.camp-info dd { color: var(--ink); font-weight: 600; font-size: 1.0625rem; }

/* lightbox */
.doclb { position: fixed; inset: 0; z-index: 700; display: none; align-items: center; justify-content: center;
  padding: 3rem 1.25rem; background: rgba(10, 14, 12, 0.92);
  opacity: 0; transition: opacity 0.2s var(--ease-out), display 0.2s allow-discrete; }
.doclb.active { display: flex; opacity: 1; }
@starting-style { .doclb.active { opacity: 0; } }
.doclb img { max-width: min(900px, 100%); max-height: 88vh; object-fit: contain; border-radius: var(--r-sm);
  transform: scale(0.97); transition: transform 0.3s var(--ease-out); }
.doclb.active img { transform: none; }
@starting-style { .doclb.active img { transform: scale(0.97); } }
.doclb-close { position: absolute; top: max(1rem, env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
  color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-sm); cursor: pointer;
  transition: background-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }

/* ---------- reveal: content is visible unless JS is running ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal + .reveal { transition-delay: 70ms; }
  .js .reveal.stagger { opacity: 1; transform: none; }
  .js .reveal.stagger:not(.in) > * { opacity: 0; }
  /* fill backwards only, so items keep their own transforms once revealed */
  .reveal.stagger.in > * { animation: rise 0.6s var(--ease-out) backwards; }
  .reveal.stagger.in > :nth-child(2) { animation-delay: 70ms; }
  .reveal.stagger.in > :nth-child(3) { animation-delay: 140ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  html, .overlay { scroll-behavior: smooth; }
}

/* images wipe up into place as they enter: a cover in the section colour slides
   away (transform only) while the photo settles from a slight zoom */
.media-reveal { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .js .media-reveal::after { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
    background: var(--bg); transform-origin: top; transition: transform 1s var(--ease-out); }
  .js .media-reveal.in::after { transform: scaleY(0); }
  .js .program-media img { transition: transform 1.3s var(--ease-out); }
  .js .program-media:not(.in) img { transform: scale(1.06); }
}

/* ---------- press feedback (all inputs) ---------- */
a, button, [role="button"] { touch-action: manipulation; }
button, [role="button"], .btn, .nav-right a { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.btn:active, .cr-arrow:active, .doclb-close:active { transform: scale(0.97); transition-duration: 100ms; }
.tile:active, .impact-doc:active { transform: scale(0.99); transition: transform 100ms var(--ease-out); }
.nav-toggle:active { background: var(--bg-2); }

/* boxes that lift on hover share one transition */
.who-card, .tile, .nc-box, .impact-doc, .program, .partner-list article, .cf {
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease, background-color 300ms ease, border-color 300ms ease; }
.tile-media, .program-media, .impact-doc img { transition: box-shadow 350ms ease; }

/* ---------- hover: precise pointers only ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { border-color: var(--ink-3); }
  .link-arrow:hover .icon { transform: translateX(3px); }
  .nav-right ul a:hover, .camp-subnav a:hover { color: var(--ink); background: var(--bg-2); }
  .footer-col a:hover { color: var(--on-band); }
  .email-link:hover { text-decoration-color: var(--sage); }
  .photo-strip:hover .photo-track { animation-play-state: paused; }
  .tile:hover .tile-media img { transform: scale(1.03); }
  .tile:hover h3 .icon { transform: translateX(3px); }
  .impact-doc:hover .impact-doc-link { text-decoration: underline; text-underline-offset: 3px; }
  .cr-arrow:hover { border-color: var(--ink-3); }
  /* logo and emblem spring a little; boxes rise */
  .brand:hover img { transform: rotate(-10deg) scale(1.12); }
  .hero-emblem:hover { transform: rotate(-6deg) scale(1.07); }
  .nav-right ul a:hover { transform: translateY(-1px); }
  .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18, 67, 47, 0.32); }
  .btn-hero:hover { background: #ade3c6; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26); }
  .btn-hero:hover .icon { transform: translateX(3px); }
  .btn-hero-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
  .hero-stats > div:hover { background: rgba(255, 255, 255, 0.06); }
  .hero-stats > div:hover dd { transform: translateY(-3px) scale(1.04); }
  .who-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09);
    border-color: color-mix(in srgb, var(--band-accent) 50%, transparent); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26); }
  .tile:hover { transform: translateY(-5px); }
  .tile:hover .tile-media, .program-feature:hover .program-media { box-shadow: 0 20px 40px rgba(10, 40, 25, 0.18); }
  .program:hover, .partner-list article:hover { transform: translateY(-4px); }
  .nc-box:hover, .cf:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10, 40, 25, 0.1); }
  .impact-doc:hover { transform: translateY(-5px); }
  .impact-doc:hover img { box-shadow: 0 20px 40px rgba(10, 40, 25, 0.16); }
  .doclb-close:hover { background: rgba(255,255,255,0.18); }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-header { top: max(10px, env(safe-area-inset-top, 0px)); }
  .site-header .header-inner { height: 58px; padding: 0 0.4rem 0 0.9rem; }
  .nav-right ul { position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 0.5rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 20px 44px rgba(6, 28, 18, 0.22);
    opacity: 0; transform: translateY(-6px) scale(0.98); visibility: hidden; transform-origin: top right;
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms; }
  .site-header.open ul { opacity: 1; transform: none; visibility: visible;
    transition: opacity 200ms var(--ease-out), transform 250ms var(--spring), visibility 0s; }
  .site-header.open { background: var(--bg); }
  .nav-right ul a { padding: 0.85rem 0.25rem; font-size: 1.0625rem; color: var(--ink); border-radius: 0; }
  .nav-right ul a[aria-current="true"] { background: none; }
  .nav-right ul li + li a { border-top: 1px solid var(--line); }
  .camp-subnav { display: none; }
}

@media (max-width: 820px) {
  .programs-grid, .who-grid, .mission-grid, .contact-grid, .impact-grid { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div { padding: 1.25rem 1rem 1.25rem 0; }
  .proof > div + div { padding-left: 0; border-left: 0; }
  .proof > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .camp-statband > div:last-child { grid-column: 1 / -1; }
  .camp-band .camp-statband > div:nth-child(even) { border-left-color: var(--band-line); }
  .camp-band .camp-statband > div:nth-child(n+3) { border-top-color: var(--band-line); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div + div { border-left: 0; }
  .hero-stats > div:nth-child(even) { border-left: 1px solid var(--band-line); }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--band-line); }
  .who-cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile-lead { grid-row: auto; }
  .tile-lead .tile-media { min-height: 0; }
  .tile-lead .tile-media img { aspect-ratio: 16 / 10; }
  .partner-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .carousel, .cr-stage { grid-template-columns: 1fr; }
  .cr-slide { grid-template-columns: 1fr; gap: 1.5rem; }
  .cr-controls { grid-column: 1; }
  .camp-info { grid-template-columns: 1fr 1fr; }
  .mission-media { padding: 0 1.5rem 1.5rem 0; }
}

@media (max-width: 480px) {
  .hero-pill { font-size: 0.6875rem; letter-spacing: 0.1em; }
  .hero-actions .btn { width: 100%; }
  .impact-figures { gap: 1.5rem 1.25rem; }
  .impact-figures dd { font-size: 1.875rem; }
  .figures dd { font-size: 1.5rem; }
  .brand-sub { display: none; }
}

/* ---------- user preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .overlay, .overlay.active { transform: none; }
  @starting-style { .overlay.active { transform: none; } .doclb.active img { transform: none; } }
  .doclb img { transform: none; }
  .tile:hover .tile-media img, .tile:active, .impact-doc:active { transform: none; }
  .site-header.tucked { transform: translateX(-50%); }
  .brand:hover img, .hero-emblem:hover, .nav-right ul a:hover, .nav-cta:hover, .btn-hero:hover, .btn-hero-outline:hover,
  .hero-stats > div:hover dd, .who-card:hover, .tile:hover, .program:hover, .partner-list article:hover,
  .donation-card-btn:hover, .nc-box:hover, .cf:hover, .impact-doc:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --on-band-2: rgba(255,255,255,0.92); --band-line: rgba(255,255,255,0.4); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .overlay-top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #9aa59f; --line-strong: #6b766f; --ink-2: #2f3934; --ink-3: #47524c; }
  .site-header { border-color: var(--line-strong); }
}
