/* PG Foundation — site styles
   Layout concept: a deep-green masthead and full-bleed heroes, then a light sage page
   with a 68ch reading column. Cards only for things you can click or compare. */

:root {
  --brand-deep: #122A17;
  --brand: #254B24;
  --brand-soft: #3E6B3E;
  --brand-text: #254B24;
  --tint: #E7ECE2;
  --tint-2: #D3DDCB;
  --bg: #F4F6F0;
  --surface: #FFFFFF;
  --ink: #1A231C;
  --muted: #5B6759;
  --line: #D5DCCF;
  --gold: #D8A63A;
  --gold-hover: #C9952B;
  --gold-ink: #241A04;
  --warm-tint: #F8EFDB;
  --warm-line: #E8D3A3;
  --draft-bg: #FFF4D6;
  --draft-ink: #6B4E00;
  --draft-line: #E2B84C;
  --hero-sky-a: #1C3A22;
  --hero-sky-b: #93AC8E;
  --hero-mist: #CBD7C4;
  --hero-ridge-far: #6E8A6B;
  --hero-ridge-mid: #3F6140;
  --hero-ridge-near: #1F3D23;
  --shadow: 0 14px 34px -14px rgba(18, 42, 23, .28);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-h: 72px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-deep: #0B160E;
    --brand: #1E3F21;
    --brand-soft: #2E5A32;
    --brand-text: #9CC79A;
    --tint: #172319;
    --tint-2: #223424;
    --bg: #0F1711;
    --surface: #172119;
    --ink: #E9EEE5;
    --muted: #A3AFA2;
    --line: #2A382C;
    --gold: #D9AB45;
    --gold-hover: #E6BA58;
    --gold-ink: #1D1503;
    --warm-tint: #2A2316;
    --warm-line: #5A4A22;
    --draft-bg: #2C2410;
    --draft-ink: #F0D27A;
    --draft-line: #8A6A1D;
    --hero-sky-a: #0E1F12;
    --hero-sky-b: #2F4D35;
    --hero-mist: #3E5C43;
    --hero-ridge-far: #2A4631;
    --hero-ridge-mid: #1C3321;
    --hero-ridge-near: #0F1F13;
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-deep: #0B160E;
  --brand: #1E3F21;
  --brand-soft: #2E5A32;
  --brand-text: #9CC79A;
  --tint: #172319;
  --tint-2: #223424;
  --bg: #0F1711;
  --surface: #172119;
  --ink: #E9EEE5;
  --muted: #A3AFA2;
  --line: #2A382C;
  --gold: #D9AB45;
  --gold-hover: #E6BA58;
  --gold-ink: #1D1503;
  --warm-tint: #2A2316;
  --warm-line: #5A4A22;
  --draft-bg: #2C2410;
  --draft-ink: #F0D27A;
  --draft-line: #8A6A1D;
  --hero-sky-a: #0E1F12;
  --hero-sky-b: #2F4D35;
  --hero-mist: #3E5C43;
  --hero-ridge-far: #2A4631;
  --hero-ridge-mid: #1C3321;
  --hero-ridge-near: #0F1F13;
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (max-width: 900px) { :root { --header-h: 64px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--brand-deep);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; color: inherit; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.95rem, 3.3vw, 2.8rem); }
h3 { font-size: 1.55rem; }
.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 .75rem; }
.lede { font-size: 1.25rem; line-height: 1.5; }
.prose { max-width: 68ch; min-width: 0; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: 1.7em 0 .55em; font-size: 1.65rem; }
.prose h3:first-child { margin-top: 0; }
.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; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Layout */
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tint { background: var(--tint); }
.band--dark { background: var(--brand); color: #fff; }
.band--dark .eyebrow { color: #CFE0C9; }
.band--dark a { color: #fff; }
.band--deep { background: var(--brand-deep); color: #fff; }
.section-head { margin-bottom: 2rem; max-width: 68ch; }
.section-head p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--text-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split, .split--text-wide { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: transparent; color: var(--brand-text); border-color: var(--brand-text); }
.btn-outline:hover { background: var(--tint); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--brand-deep); color: #fff; }
.header-inner { position: relative; display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 46px; height: 34px; display: block; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .03em; line-height: 1; }
.brand-name span { font-weight: 500; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #E7EFE4; text-decoration: none; font-weight: 600; font-size: .97rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.btn-donate { padding: .7rem 1.35rem; flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .btn-donate { order: 2; margin-left: auto; padding: .6rem 1.1rem; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--brand-deep); display: none; border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .4rem max(20px, env(safe-area-inset-right, 0px)) 1rem max(20px, env(safe-area-inset-left, 0px)); }
  .site-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .1); color: var(--gold); }
  .header-inner { gap: .75rem; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--brand-deep); color: #fff; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18, 42, 23, .95) 0%, rgba(18, 42, 23, .84) 34%, rgba(18, 42, 23, .38) 64%, rgba(18, 42, 23, .08) 100%); }
.hero-inner { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.hero-inner > * { max-width: 640px; }
.hero .eyebrow { color: #CFE0C9; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { color: #E6EEE3; max-width: 580px; margin: 0; }
.hero .lede + .lede { margin-top: 1rem; font-size: 1.1rem; color: #D3DECF; }
.hero--short .hero-inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (max-width: 640px) {
  .hero-shade { background: linear-gradient(180deg, rgba(18, 42, 23, .94) 0%, rgba(18, 42, 23, .78) 55%, rgba(18, 42, 23, .55) 100%); }
}

/* Page header (no image) */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .container { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { margin-bottom: .9rem; }
.page-head .lede { max-width: 68ch; margin: 0; }

/* Photo slots (replaced by <img> when photos arrive) */
.photo-slot {
  position: relative; margin: 0; aspect-ratio: var(--ratio, 4 / 3); max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, var(--tint-2), var(--tint));
  display: grid; place-items: center;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot-art { width: 36%; color: var(--brand-text); opacity: .2; }
.photo-slot-art svg { width: 100%; height: auto; display: block; }
.photo-slot-note {
  position: absolute; left: 12px; bottom: 12px; right: 12px; max-width: max-content;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); padding: .4rem .65rem; border-radius: 6px; opacity: .95; line-height: 1.3;
}
.photo-slot--portrait { --ratio: 1 / 1; }
.photo-slot--tall { --ratio: 3 / 4; }
.photo-slot--wide { --ratio: 16 / 9; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-program { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card-program:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-program .photo-slot { border-radius: 0; --ratio: 16 / 10; }
.card-program .photo-slot-art { width: 28%; }
.card-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-body h3 { font-size: 1.7rem; }
.card-sub { color: var(--brand-text); font-weight: 600; margin: 0; }
.card-body p { margin: 0; }
.card-cta { margin-top: auto; padding-top: .9rem; font-weight: 700; color: var(--brand-text); display: inline-flex; align-items: center; gap: .35rem; }
.card-cta svg { width: 18px; height: 18px; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 2.75rem; text-align: center; }
.cta-row p { margin: 0; color: var(--muted); max-width: 48ch; }

/* How you can help */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.help-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.help-grid--5 > * { grid-column: span 2; }
.help-grid--5 > :nth-child(4), .help-grid--5 > :nth-child(5) { grid-column: span 3; }
@media (max-width: 900px) {
  .help-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid--5 > *, .help-grid--5 > :nth-child(4) { grid-column: span 1; }
  .help-grid--5 > :nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .help-grid, .help-grid--5 { grid-template-columns: 1fr; }
  .help-grid--5 > *, .help-grid--5 > :nth-child(4), .help-grid--5 > :nth-child(5) { grid-column: span 1; }
}
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; color: var(--ink); }
.help-card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--tint); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 1rem; }
.help-card .icon svg { width: 22px; height: 22px; }
.help-card h3 { font-size: 1.4rem; margin-bottom: .45rem; }
.help-card p { margin: 0; color: var(--muted); }
.connect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-top: 2.5rem; }
.connect h3 { font-size: 1.9rem; margin-bottom: .4rem; }
.connect p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .connect { grid-template-columns: 1fr; } }
.contact-lines { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.contact-line { display: flex; flex-direction: column; min-width: 0; }
.contact-line .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-line a { font-family: var(--font-display); font-size: 1.55rem; color: var(--brand-text); text-decoration: none; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.contact-line a:hover { text-decoration: underline; }
.band--dark .contact-line .label { color: #BFD0BA; }
.band--dark .contact-line a { color: #fff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin-block: 2rem; }
.stat { min-width: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--brand-text); }
.stat-label { display: block; margin-top: .4rem; color: var(--muted); font-weight: 600; }
.band--dark .stat-num { color: var(--gold); }
.band--dark .stat-label { color: #D9E5D5; }

/* Need-help callout */
.callout-help { background: var(--warm-tint); border-block: 1px solid var(--warm-line); }
.callout-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: 2.5rem; }
.callout-help h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.callout-help p { margin: 0; max-width: 60ch; }
.callout-help p + p { margin-top: .6rem; }
.callout-phone { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; justify-self: end; min-width: 0; }
.phone-big { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.phone-big:hover { text-decoration: underline; }
.phone-row { display: flex; flex-direction: column; gap: .15rem; }
.phone-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.phone-note { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 800px) { .callout-inner { grid-template-columns: 1fr; } .callout-phone { justify-self: start; } }

/* In-page section menu */
.subnav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: .95rem .8rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; font-size: .95rem; }
.subnav a:hover, .subnav a.active { color: var(--brand-text); border-bottom-color: var(--gold); }
section[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Features (program blocks) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; margin-top: 2rem; }
.feature { min-width: 0; }
.feature h3 { font-size: 1.55rem; margin-bottom: .55rem; }
.feature .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.feature p { margin: 0 0 .9em; }
.feature p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; max-width: 420px; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.person .photo-slot { --ratio: 1 / 1; margin-bottom: 1rem; }
.person-name { font-size: 1.45rem; }
.person-role { color: var(--muted); font-weight: 600; margin: .15rem 0 .9rem; }
.quote-theme { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 0 0 .35rem; }
.person-quote { margin: 0; border-left: 3px solid var(--gold); padding-left: .9rem; font-style: italic; }
.person-quote p { margin: 0; }

/* Stories */
.stories { display: grid; gap: 2rem; max-width: 880px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; min-width: 0; }
.story--anon::before { content: "\201C"; font-family: var(--font-display); font-size: 7rem; line-height: 1; color: var(--tint-2); position: absolute; top: .4rem; right: 1.5rem; pointer-events: none; }
.story h2 { font-size: 1.95rem; margin-bottom: .75rem; position: relative; }
.story-body { position: relative; }
.story-body p:last-child { margin-bottom: 0; }
.story-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; font-style: italic; }
.story--photo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.story--photo .photo-slot { --ratio: 3 / 4; }
@media (max-width: 700px) { .story--photo { grid-template-columns: 1fr; } .story--photo .photo-slot { max-width: 260px; } }

/* Draft markers (remove before launch) */
.draft-note { display: inline-flex; align-items: flex-start; gap: .5rem; background: var(--draft-bg); color: var(--draft-ink); border: 1px dashed var(--draft-line); border-radius: 8px; padding: .55rem .85rem; font-size: .88rem; font-weight: 600; margin: 0 0 1.5rem; line-height: 1.4; }
.tbd { color: var(--muted); font-style: italic; }

/* Donate */
.donate-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 900px) { .donate-layout { grid-template-columns: 1fr; } }
.donate-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; gap: 1.9rem; min-width: 0; }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: .9rem; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; border: 2px solid var(--line); border-radius: 10px; padding: .9rem 1rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice strong { display: block; }
.choice small { color: var(--muted); display: block; line-height: 1.35; font-size: .9rem; }
.choice input:checked + span { border-color: var(--brand-text); background: var(--tint); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.segmented { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.seg { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: .6rem 1.4rem; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 600px) { .amounts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.amt { position: relative; min-width: 0; }
.amt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.amt span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 10px; padding: .75rem .4rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.amt input:checked + span { border-color: var(--brand-text); background: var(--tint); color: var(--brand-text); }
.amt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.other-wrap { margin-top: .9rem; max-width: 260px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.fields label, .other-wrap label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="number"] { font: inherit; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="number"]:focus-visible { border-color: var(--brand-text); outline-offset: 1px; }
.donate-summary { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.form-note { margin: 0; background: var(--tint); border-radius: 10px; padding: 1rem 1.1rem; font-weight: 600; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; min-width: 0; }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.aside-card ul { margin: 0; padding-left: 1.1rem; }
.aside-card li { margin-bottom: .3rem; }
.aside-card p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #D5E0D1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding-block: 3.5rem 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid > * { min-width: 0; }
.site-footer h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: .85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #E7EFE4; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 .4rem; }
.footer-brand svg { width: 58px; height: 43px; color: #fff; display: block; margin-bottom: .8rem; }
.footer-brand .brand-name { color: #fff; display: block; margin-bottom: .5rem; }
.footer-org { color: #B8C8B3; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem; font-size: .9rem; color: #A9B8A5; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* Motion: reveal on scroll (only once scripts run), counters, ambient mist, parallax */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.js-reveal :is(.grid-3, .help-grid, .features, .people, .stats) > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js-reveal :is(.grid-3, .help-grid, .features, .people, .stats) > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js-reveal :is(.grid-3, .help-grid, .features, .people, .stats) > [data-reveal]:nth-child(4) { transition-delay: .24s; }
.js-reveal :is(.grid-3, .help-grid, .features, .people, .stats) > [data-reveal]:nth-child(5) { transition-delay: .32s; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; display: block; }
.hero-art, .hero-photo { will-change: transform; }
.hero-birds { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px -12px rgba(0, 0, 0, .5); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.stat-num { min-width: 2ch; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
