/* ==========================================================================
   Small Efforts - donor site
   Rebuilt against the redesign artboards (Home / Home mobile / Projects /
   Project / About / Donate), recovered from "Small Efforts - Website
   Redesign.html". Values below are taken from those artboards, not invented.
   Reference widths: 1440 desktop, 390 mobile.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------- palette
     Home 2's branding: neutral near-black ink with a single green accent,
     rather than the all-green artboard scale. Geist is the only face --
     both designs already used them. */
  --ink:        #14171A;   /* headings and primary text */
  --ink-deep:   #0F1214;   /* dark grounds */
  --body:       #3A4046;   /* body copy */
  --line:       #E4E3DE;   /* hairlines */
  --line-strong:#CFCEC8;
  --surface:    #FFFFFF;
  --surface-alt:#F4F4F1;

  --accent:     #0E5A4A;   /* the one green: buttons, links, accent grounds */
  --accent-ink: #0A4237;
  --accent-soft:#E7F0EC;
  --accent-line:#BFD6CD;

  --white: #FFFFFF;
  --bg:    var(--white);

  /* Text sitting ON a dark ground. Kept separate from the pale surface tints
     because one token previously did both jobs and could only satisfy one. */
  --on-dark:      #F2F2F0;
  --on-dark-soft: #B9BEC2;
  --on-dark-mute: #8A9196;
  --on-accent:    #D7E5DF;   /* text on the green featured card */
  --brand-dot:    #7FC2A9;   /* the dot, on dark */

  /* Aliases for the artboard scale. Every rule still written against --g-*
     resolves through here, so the palette swap needed no rule rewrites. */
  --g-900: var(--accent-ink);
  --g-800: var(--ink);
  --g-700: var(--accent-ink);
  --g-600: var(--body);
  --g-500: var(--accent);
  --g-300: var(--on-dark-mute);
  --g-250: var(--line-strong);
  --g-200: var(--on-dark-soft);
  --g-150: var(--line);
  --g-100: var(--on-accent);
  --g-075: var(--accent-soft);
  --g-050: var(--surface-alt);
  --mint:  var(--brand-dot);
  --mint-deep: var(--brand-dot);

  /* hero scrim */
  --scrim: 6 18 14;   /* space-separated: rgb(var(--scrim) / a) needs modern syntax */

  --r-pill: 999px;
  --r-lg:   28px;
  --r-md:   18px;
  --r-sm:   12px;
  --r:      12px;     /* Home 2's corner radius */

  /* One vertical rhythm for the whole site, taken from the donate-to-footer
     gap. Every section junction resolves to exactly this value. */
  --section-space: clamp(56px, 6vw, 88px);
  /* Each block contributes half, so any two neighbours add up to exactly
     --section-space and a bordered row's hairline lands centred in the gap. */
  --section-half:  calc(var(--section-space) / 2);

  --gutter: 120px;
  /* .shell is border-box and carries the gutter as padding, so the readable
     column is --shell minus 2x --gutter: 1440 - 240 = 1200px. */
  --shell:  1440px;

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

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 40;
  --z-menu: 60;

  --muted: var(--body);
}


@media (max-width: 1100px) { :root { --gutter: 48px; } }
@media (max-width: 720px)  { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--g-800); color: #fff; padding: 12px 18px;
  border-radius: var(--r-pill); z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; border-radius: 4px; }
.footer :focus-visible { outline-color: var(--mint); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }

.mono { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ buttons */
/* Artboard: 56px tall pills on the hero, 44px in the nav. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit; font-size: 19px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-light { background: var(--white); color: var(--g-800); }
.btn-light:hover { background: var(--g-050); }

.btn-outline-light {
  background: transparent; color: var(--white);
  border-color: rgb(255 255 255 / .7); font-weight: 500;
}
.btn-outline-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

.btn-dark { background: var(--g-800); color: var(--white); }
.btn-dark:hover { background: var(--g-900); }

.btn-outline {
  background: transparent; color: var(--g-800);
  border-color: var(--g-150); font-weight: 500;
}
.btn-outline:hover { border-color: var(--g-800); }

.btn-sm { height: 44px; padding: 0 22px; font-size: 17px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- navigation */
/* Solid by default: only a page with a dark hero behind the bar can afford
   white-on-transparent, and every page except Home lacks one. */

.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  color: var(--g-800);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 1px;
  text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -0.03em;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  text-decoration: none; font-size: 17px; font-weight: 500;
  opacity: .92; transition: opacity .2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Lockup: ripple mark + wordmark. The mark takes currentColor so it inverts
   with the nav, but the brand green reads better on the solid bar. */
/* The wordmark must never wrap -- at 390px the mark plus a filled Donate pill
   pushed "Efforts" onto a second line and orphaned the dot. */
/* gap:0 deliberately. The wordmark's trailing dot is its own flex child, so a
   gap on .brand pushes it away from "Efforts" -- the mark carries the spacing
   on its own margin instead. */
.brand { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; flex: none; margin-right: 10px; color: var(--accent);
}
.nav-menu .brand-mark { color: #fff; }
@media (max-width: 560px) {
  .brand-mark { width: 22px; height: 22px; margin-right: 8px; }
  .brand { font-size: 19px; }
  .nav-in { gap: 12px; }
  .nav-cta { height: 40px; padding: 0 16px; font-size: 15px; }
}

.nav .brand span { color: var(--g-500); }
.nav-menu .brand span { color: var(--mint); }

/* mobile menu */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--g-250);
  border-radius: var(--r-pill);
  background: transparent; color: inherit; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--g-800); color: var(--white);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 40px;
}
.nav-menu-top { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.nav-menu-links { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.nav-menu-links a {
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / .16);
  font-size: 26px; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-menu-cta { margin-top: 32px; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ------------------------------------------------------- legacy compatibility */
/* Rules the not-yet-converted pages still depend on, remapped onto the new
   button and type system. Each block goes when its page is converted. */

.btn-primary { background: var(--g-800); color: var(--white); }
.btn-primary:hover { background: var(--g-900); }
.btn-ghost {
  background: transparent; color: var(--g-800);
  border-color: var(--g-250); font-weight: 500;
}
.btn-ghost:hover { border-color: var(--g-800); background: var(--g-050); }
.btn-invert { background: var(--white); color: var(--g-800); }
.btn-invert:hover { background: var(--g-050); }
.btn-outline-invert {
  background: transparent; color: var(--white);
  border-color: rgb(255 255 255 / .34); font-weight: 500;
}
.btn-outline-invert:hover { border-color: #fff; background: rgb(255 255 255 / .1); }
.nav-cta { display: inline-flex; height: 44px; padding: 0 22px; font-size: 17px; }

/* type primitives used by the project and about pages */
.h-display {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04; letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  letter-spacing: -0.03em; max-width: 18ch;
}
.lede {
  margin: 0; color: var(--body);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6; max-width: 50ch;
}

/* --------------------------------------------------------------------- hero */
/* Full-bleed photograph, dark scrim, content pinned to the bottom-left. */

/* ------------------------------------------------------------------- hero

   Two columns on white: words left, the ripple right. The previous hero laid
   text over a dark photograph, which needed a scrim and inverted every control
   inside it. None of that applies now -- the nav is the same solid bar as the
   rest of the site, and the buttons are the standard pair. */

.hero { background: var(--bg); padding-block: var(--section-half); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-body { display: grid; justify-items: start; gap: 24px; }

.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; color: var(--body);
}
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  max-width: 16ch;
  font-size: 49px; line-height: 1.04; letter-spacing: -0.04em;
  color: var(--ink); text-wrap: balance;
}
/* The headline is two sentences; `balance` alone breaks them mid-phrase. */
.hero h1 .h1-lead { display: block; }

.hero-lede {
  margin: 0; max-width: 46ch;
  font-size: 20px; line-height: 1.6; color: var(--body);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero-media { justify-self: end; width: 100%; max-width: 560px; }
.hero-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: contain;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Image first on a phone: it sets the tone before the words arrive. */
  .hero-media { order: 1; justify-self: center; max-width: 340px; }
  .hero-body  { order: 2; }
  .hero h1 { font-size: 40px; letter-spacing: -0.03em; }
  .hero-lede { font-size: 18px; }
  .hero-kicker { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; height: 52px; font-size: 17px; }
}
@media (max-width: 420px) { .hero h1 { font-size: 34px; } }

/* The band used to butt against a dark hero image. On a white hero that seam
   makes no sense, so it pays its half into both junctions like everything else. */
.stats { border-block: 1px solid var(--line); background: var(--surface); margin-block: var(--section-half); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 30px 30px 30px 30px;
  border-left: 1px solid var(--line);
}
.stat:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.stat:nth-child(3n)     { padding-right: 0; }
.stat:nth-child(n + 4)  { border-top: 1px solid var(--line); }

.stat .area {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
}
.stat .figure {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 26px 24px; }
  .stat:nth-child(3n + 1) { border-left: 1px solid var(--line); padding-left: 24px; }
  .stat:nth-child(3n)     { padding-right: 24px; }
  .stat:nth-child(n + 4)  { border-top: 0; }
  .stat:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .stat:nth-child(2n)     { padding-right: 0; }
  .stat:nth-child(n + 3)  { border-top: 1px solid var(--line); }
}

/* Two columns all the way down. Six stacked cells read as a long list on a
   phone; paired, they scan as a grid and halve the scroll. */
@media (max-width: 520px) {
  .stat { padding: 20px 16px; }
  .stat:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .stat:nth-child(2n)     { padding-right: 0; }
  .stat .figure { font-size: 1.7rem; }
  .stat .area   { font-size: 0.8rem; }
  .stat .label  { font-size: 0.92rem; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--section-half); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4vw, 52px); }

/* ---------------------------------------------------------------- projects */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Three-track grid. The featured project spans two tracks, so 11 projects fill
   12 cells exactly and no row is left short. */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1080px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .projects { grid-template-columns: 1fr; } }

.project {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}
.project:hover {
  border-color: var(--accent-line);
  box-shadow: 0 10px 28px -18px rgb(14 90 74 / .5);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) { .project:hover { transform: none; } }

.picon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.picon svg { width: 25px; height: 25px; fill: currentColor; }
.project:hover .picon { background: var(--accent); color: #fff; }

.project h3 { font-size: 1.3rem; letter-spacing: -0.028em; }
.project p { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }

.project .metric {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.project .metric .v {
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.project .metric .k { font-size: 0.94rem; color: var(--muted); line-height: 1.45; }

/* Featured project: two tracks wide, with the headline figure set beside the copy. */
.project--wide {
  grid-column: span 2;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.project--wide .picon { background: var(--accent); color: #fff; }
.project--wide:hover .picon { background: var(--accent-ink); }
.project--wide .metric { border-top-color: var(--accent-line); }

@media (min-width: 721px) {
  .project--wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
    gap: 36px;
    align-items: stretch;
    align-content: stretch;
    padding: 34px;
  }
  /* Copy sits centred in its column, so the card reads balanced however tall
     the row grows. */
  .project--wide .body {
    display: grid; gap: 16px;
    align-content: center; justify-items: start;
  }
  .project--wide h3 { font-size: 1.7rem; }
  .project--wide p { font-size: 1.08rem; }
  .project--wide .metric {
    margin: 0; padding: 0 0 0 36px;
    border-top: 0; border-left: 1px solid var(--accent-line);
    align-content: center;
  }
  .project--wide .metric .v { font-size: 2.4rem; }
  .project--wide .metric .k { font-size: 1rem; }
}
@media (max-width: 720px) {
  .project--wide { grid-column: span 1; }
  .project--wide .body { display: grid; gap: 14px; justify-items: start; }
}

/* ------------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-copy { display: grid; gap: 20px; }
.about-copy p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.68; max-width: 56ch; }

.record {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 28px;
}
.record dl { margin: 0; display: grid; gap: 20px; }
.record dt {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.record dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.record dd a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* --------------------------------------------------------------- about page */
/* No imagery. Structure does the work: one two-track rule repeated down the
   page (label left, content right) and the document's own lists set as lists,
   so five dense paragraphs become something scannable. */

/* Top section. Same two tracks as every row below, so the page reads as one
   system: identity left, content right, both top-aligned. */
.ab2-mast { padding-block: var(--section-half); }

.ab2-ident { display: grid; gap: clamp(18px, 2.2vw, 26px); align-content: start; }

.ab2-h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.ab2-statement {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.ab2-statement b { font-weight: 500; color: var(--accent); white-space: nowrap; }

.ab2-mission {
  margin: 0;
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.026em;
  font-weight: 500;
  color: var(--ink);
  max-width: 40ch;
  text-wrap: pretty;
}



/* registration record, as a table */
.ab2-record { width: 100%; max-width: 520px; border-collapse: collapse; text-align: left; }
.ab2-record tr { border-top: 1px solid var(--line); }
.ab2-record tr:last-child { border-bottom: 1px solid var(--line); }
.ab2-record th, .ab2-record td { padding: 16px 0; vertical-align: baseline; }
.ab2-record th { font-weight: 400; color: var(--body); font-size: 1rem; width: 46%; }
.ab2-record td { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.014em; }

/* the eleven programs by name */
.ab2-projects {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 620px) { .ab2-projects { grid-template-columns: 1fr; } }
.ab2-projects li { border-bottom: 1px solid var(--line); }
.ab2-projects a {
  display: block; padding: 14px 0;
  font-size: 1.06rem; font-weight: 500; letter-spacing: -0.014em;
  text-decoration: none; transition: color .2s var(--ease);
}
.ab2-projects a:hover { color: var(--g-500); }

.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;
}

/* the repeated rule */
.ab2-row { border-top: 1px solid var(--line); padding-block: var(--section-half); }

.ab2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .ab2-grid { grid-template-columns: 1fr; gap: 16px; } }

.ab2-h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.026em;
  line-height: 1.2;
  max-width: 16ch;
  text-wrap: balance;
}
.ab2-body { display: grid; gap: 22px; justify-items: start; }
.ab2-p {
  margin: 0;
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.66;
  color: var(--muted);
  max-width: 64ch;
  text-wrap: pretty;
}




.ab2-cta { margin-top: 4px; }

.ab2-row--last { padding-bottom: var(--section-half); }

/* closing beat */
.ab2-outcomes {
  width: 100%;
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--accent-line);
}
@media (max-width: 860px) { .ab2-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ab2-outcomes { grid-template-columns: 1fr; } }

.ab2-outcomes li {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--accent-line);
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.026em;
  color: var(--accent-ink);
  text-wrap: balance;
}
@media (min-width: 861px) {
  .ab2-outcomes li + li { padding-left: 20px; border-left: 1px solid var(--accent-line); }
}

/* ------------------------------------------------------------------ donate */

.give {
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--r);
  padding: clamp(28px, 6vw, 72px);
}
.give-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .give-grid { grid-template-columns: 1fr; } }

.give h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.032em; max-width: 16ch; }
.give-lead { margin: 18px 0 0; color: rgb(255 255 255 / .88); font-size: 1.1rem; line-height: 1.62; max-width: 44ch; }

.amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.amount {
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid rgb(255 255 255 / .18);
  background: rgb(255 255 255 / .04);
  color: #fff;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.amount:hover { border-color: rgb(255 255 255 / .42); background: rgb(255 255 255 / .08); }
.amount[aria-pressed="true"] { border-color: #fff; background: rgb(255 255 255 / .13); }
.amount .v {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.amount .k { display: block; margin-top: 4px; font-size: 0.9rem; color: rgb(255 255 255 / .78); }

.give-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.give-ways {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.give-ways li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / .16);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgb(255 255 255 / .88);
}
.give-ways .w {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .62);
}
@media (max-width: 520px) {
  .give-ways li { grid-template-columns: 1fr; gap: 2px; }
}

.give .give-note {
  margin: 18px 0 0;
  font-size: 0.94rem;
  color: rgb(255 255 255 / .74);
  line-height: 1.6;
  max-width: 46ch;
}

/* ------------------------------------------------- homepage 2: project list */
/* Compact variant of the project section, built on the about page's row style. */

.plist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1080px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .plist { grid-template-columns: 1fr; } }

.plist-item { display: grid; }

/* Each row is a button that opens the project's detail dialog. */
.plist-btn {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .2s var(--ease);
}
.plist-btn:hover {
  border-color: var(--accent-line);
  box-shadow: 0 8px 22px -16px rgb(14 90 74 / .55);
  transform: translateY(-2px);
}
.plist-btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .plist-btn:hover, .plist-btn:active { transform: none; }
}

.plist-btn .picon { flex: none; width: 42px; height: 42px; }
.plist-btn .picon svg { width: 23px; height: 23px; }
.plist-btn:hover .picon { background: var(--accent); color: #fff; }

.plist-arrow {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  color: var(--line-strong);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.plist-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.plist-btn:hover .plist-arrow { color: var(--accent); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .plist-btn:hover .plist-arrow { transform: none; }
}

.plist-text { display: grid; gap: 2px; min-width: 0; }
.plist-name {
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.plist-metric { font-size: 0.92rem; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------- homepage 2: project dialog */

.pdialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgb(14 23 20 / .45);
}
.pdialog::backdrop { background: rgb(15 18 20 / .5); }

.pdialog-inner {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 30px;
}
.pdialog-inner .picon { width: 46px; height: 46px; background: var(--accent); color: #fff; }
.pdialog-inner .picon svg { width: 25px; height: 25px; }
.pdialog h2 { font-size: 1.5rem; letter-spacing: -0.03em; padding-right: 40px; }
.pdialog .pd-body { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.62; }

.pdialog .pd-metric {
  margin: 0;
  width: 100%;
  display: grid; gap: 3px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.pdialog .pd-metric .v {
  font-size: 1.6rem; font-weight: 500;
  letter-spacing: -0.035em; line-height: 1.1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.pdialog .pd-metric .k { font-size: 0.94rem; color: var(--muted); line-height: 1.45; }

.pdialog-close {
  position: absolute; top: 18px; right: 18px;
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pdialog-close svg { width: 18px; height: 18px; fill: currentColor; }
.pdialog-close:hover { background: var(--surface-alt); color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .pdialog[open] { animation: pdialog-in .22s var(--ease); }
  @keyframes pdialog-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* -------------------------------------------- homepage 2: light giving card */

.give--light {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink);
}
.give--light h2 { color: var(--ink); }
.give--light .give-lead { color: var(--muted); }
/* .give-note is white for the dark .give variant; on the light panel that is
   1.18:1 against #E2EFE9 -- invisible. */
.give--light .give-note { color: var(--muted); }
.give--light .give-note a { color: var(--accent); text-underline-offset: 3px; }
.give--light .give-note a:hover { color: var(--accent-ink); }
.give--light .give-grid { align-items: start; }
.give--light .give-note { color: var(--body); }

.give-form { display: grid; gap: 22px; }

.field { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.field-label {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.give--light .amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 480px) { .give--light .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.give--light .amount {
  text-align: center;
  padding: 14px 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.give--light .amount:hover { border-color: var(--accent); }
.give--light .amount[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.give--light .amount .v { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }

.custom-wrap { display: grid; gap: 8px; }
.input-money {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
}
.input-money span { color: var(--muted); font-size: 1.02rem; }
.input-money input {
  flex: 1; min-width: 0;
  border: 0; background: none;
  font: inherit; font-size: 1.02rem;
  color: var(--ink);
  padding: 13px 0;
}
.input-money input:focus { outline: none; }
.input-money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(14 90 74 / .14); }
.input-money input[aria-invalid="true"] { color: #8A1C1C; }

select#project {
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 13px 44px 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select#project:focus-visible { border-color: var(--accent); }

.field-error { margin: 0; font-size: 0.92rem; color: #8A1C1C; }

.btn-block { width: 100%; }

/* bank details, revealed after Continue */
.bank {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--accent-line);
  display: grid;
  gap: 18px;
}
.bank-summary {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.bank-placeholder {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--r);
  background: #FDF3D6;
  border: 1px solid #E8D08A;
  color: #6B4E07;
  font-size: 0.92rem;
  line-height: 1.5;
}
.bank-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}
@media (max-width: 820px) { .bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bank-grid { grid-template-columns: 1fr; } }
.bank-grid dt { font-size: 0.86rem; color: var(--muted); }
.bank-grid dd {
  margin: 3px 0 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- give section

   Light green panel, heading and picker on the left, account details opposite.
   Only one method's numbers are on screen at a time -- three sets at once is
   three chances to copy the wrong account number into a bank transfer.
   Everything here is the sans face; no second font appears in this section. */

.give-intro { display: grid; justify-items: start; align-content: start; gap: 16px; }
.give-intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.032em; line-height: 1.06; max-width: 18ch; }
.give-lead { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--body); max-width: 44ch; }
.give-project { width: 100%; max-width: 360px; margin-top: 8px; }
.give-note { margin: 6px 0 0; font-size: 0.94rem; line-height: 1.6; color: var(--body); max-width: 46ch; }
.give-note a { color: var(--accent); text-underline-offset: 3px; }
.give-note a:hover { color: var(--accent-ink); }

.pay { display: grid; align-content: start; gap: 0; }

/* Segmented control. Buttons, not links -- nothing navigates. */
.pay-tabs {
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
}
.pay-tab {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-pill);
  background: none; cursor: pointer;
  font-family: inherit; font-size: 0.97rem; font-weight: 500; color: var(--body);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pay-tab svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.pay-tab:hover { color: var(--ink); background: var(--accent-soft); }
.pay-tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.pay-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pay-pane {
  margin-top: 18px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: var(--r);
}
.pay-pane .bank-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
.pay-pane .bank-grid > div {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px; align-items: baseline;
}
.pay-pane .bank-grid dt { font-size: 0.92rem; color: var(--body); }
.pay-pane .bank-grid dd {
  margin: 0; font-size: 1.05rem; color: var(--ink);
  letter-spacing: 0.01em; overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .pay-tab { font-size: 0.92rem; gap: 6px; }
  .pay-tab svg { width: 16px; height: 16px; }
  .pay-pane { padding: 22px; }
  .pay-pane .bank-grid > div { grid-template-columns: 1fr; gap: 3px; }
}
/* "Wire transfer" does not fit a third of a 390px strip -- it overflowed its
   pill and ran under the neighbouring tab. Short label below that width. */
.pay-tab .t-short { display: none; }
@media (max-width: 560px) {
  .pay-tab { padding: 0 6px; gap: 6px; font-size: 0.9rem; }
  .pay-tab .t-long  { display: none; }
  .pay-tab .t-short { display: inline; }
}

.bank-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bank-note { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; max-width: 62ch; }

/* --------------------------------- homepage 2: payment methods and receipt */

.methods { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.method-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) { .method-picker { grid-template-columns: 1fr; } }

.method input { position: absolute; opacity: 0; width: 0; height: 0; }
.method-face {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease);
}
.method-face svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.method:hover .method-face { border-color: var(--accent); }
.method input:checked + .method-face {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.method input:focus-visible + .method-face {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.method-panel { margin-top: 4px; }

.btn-ico { width: 18px; height: 18px; fill: currentColor; }

/* receipt upload */
.receipt {
  margin-top: 4px;
  padding-top: 26px;
  border-top: 1px solid var(--accent-line);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.receipt h3 { font-size: 1.25rem; letter-spacing: -0.026em; }
.receipt-lead { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 62ch; }

.drop {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 24px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.drop[data-over="true"] { border-color: var(--accent); background: var(--accent-soft); }
.drop-ico { width: 26px; height: 26px; fill: var(--accent); }
.drop-text { margin: 0; font-size: 1.02rem; }
.drop-hint { margin: 0; font-size: 0.9rem; color: var(--muted); }

.linkish {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover { color: var(--accent-ink); }

.receipt-file {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--surface);
}
.receipt-thumb {
  flex: none;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
}
.receipt-thumb svg { width: 22px; height: 22px; fill: currentColor; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt-meta { display: grid; gap: 2px; min-width: 0; }
.receipt-name {
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.receipt-size { font-size: 0.9rem; color: var(--muted); }
.receipt-remove {
  margin-left: auto; flex: none;
  appearance: none; cursor: pointer;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.receipt-remove svg { width: 18px; height: 18px; fill: currentColor; }
.receipt-remove:hover { background: var(--surface-alt); color: #8A1C1C; }

.receipt-contact { width: 100%; max-width: 420px; }
.text-input {
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
}
.text-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(14 90 74 / .14);
}
.text-input[aria-invalid="true"] { border-color: #8A1C1C; }

.receipt-done {
  width: 100%;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.receipt-done svg { width: 22px; height: 22px; fill: var(--accent); flex: none; margin-top: 1px; }
.receipt-done p { margin: 0; font-size: 0.98rem; line-height: 1.55; }

/* ------------------------------------------------------- project detail page */
/* One spacing scale for the whole article, so the vertical rhythm is even:
     --sp-tight  icon to label
     --sp-flow   every paragraph, list and block in the body
     --sp-break  section breaks (heading above, header to article)               */

.proj-body {
  --sp-tight: 18px;
  --sp-flow:  24px;
  --sp-break: 40px;
  padding-block: var(--section-half);
}

.proj-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
/* Rail sits in row one of the same grid, so its top edge is the heading's top edge. */
.proj-rail { position: sticky; top: 94px; }


.rail-card {
  display: grid;
  gap: var(--sp-tight);
  padding: 26px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--accent-soft);
}
.rail-h { font-size: 1.1rem; letter-spacing: -0.02em; }

.rail-stats { margin: 0; display: grid; gap: 14px; }
.rail-stats div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent-line);
}
.rail-stats div:last-child { padding-bottom: 0; border-bottom: 0; }
.rail-stats dt { font-size: 0.94rem; color: var(--muted); }
.rail-stats dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.022em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rail-money {
  display: grid; gap: 4px;
  padding-top: var(--sp-tight);
  border-top: 1px solid var(--accent-line);
}
.rail-money-v {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.rail-money-k { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.rail-pkr { font-size: 0.86rem; }

/* column two: heading then article, on one rhythm */
.proj-main { display: grid; gap: var(--sp-break); align-content: start; }

.proj-head-main { display: grid; justify-items: start; gap: var(--sp-tight); }
.proj-head-main .picon { width: 56px; height: 56px; background: var(--accent); color: #fff; }
.proj-head-main .picon svg { width: 28px; height: 28px; }
.proj-cat {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.proj-head-main .lede { margin-top: 4px; }

.proj-content { display: grid; gap: var(--sp-flow); align-content: start; }
.proj-content > p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.72;
  max-width: 68ch;
}
.proj-content strong { font-weight: 500; color: var(--ink); }

/* the only deliberate exception to the flow gap, applied identically to each heading */
.proj-h2 {
  margin-top: calc(var(--sp-break) - var(--sp-flow));
  font-size: 1.5rem;
  letter-spacing: -0.028em;
}

.proj-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.proj-points li {
  position: relative;
  padding-left: 30px;
  font-size: 1.06rem;
  line-height: 1.6;
  max-width: 62ch;
}
.proj-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.proj-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.proj-cta {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.proj-cta p { margin: 0; font-size: 1.06rem; max-width: 52ch; }
.proj-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.faqs { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 68ch; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 11px; height: 11px;
  margin-top: 8px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 20px; }
.faq-a p { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; max-width: 62ch; }
/* Stacked, the rail must not jump above the title: flatten the wrapper so the
   heading, the stats and the article can be ordered individually. */
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr; gap: var(--sp-break); }
  .proj-rail { position: static; order: 2; }
  .proj-main { display: contents; }
  .proj-head-main { order: 1; }
  .proj-content { order: 3; }
}


/* A section directly after a page header must not re-add the space the header
   already provides: .pr-head bottom + .section top + card padding stacked to
   228px on the donate page. */

.pr-head + .section .give { padding: clamp(28px, 4vw, 48px); }

/* ------------------------------------------------------------- contact page */

.contact-list { margin: 0; display: grid; gap: 0; width: 100%; max-width: 640px; border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
@media (max-width: 560px) { .contact-list > div { grid-template-columns: 1fr; gap: 4px; } }
.contact-list dt { font-size: 1rem; color: var(--body); }
.contact-list dd { margin: 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.014em; }
.contact-list dd a { color: var(--g-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-list dd a:hover { color: var(--g-900); }
/* The direct-contact aside was removed; the form is the whole page now. This
   element also carries `.shell`, so a max-width here would eat into the shell
   gutter rather than the column -- the form itself is capped instead. */
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.se-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}

.contact-form { display: grid; gap: 20px; align-content: start; max-width: 620px; }
.contact-form .field { display: grid; gap: 8px; }
.contact-form select {
  appearance: none; width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: 13px 44px 13px 14px;
  border: 1px solid var(--g-250); border-radius: var(--r-sm);
  background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, var(--body) 50%),
                    linear-gradient(135deg, var(--body) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; cursor: pointer;
}
.contact-form textarea.text-input { resize: vertical; min-height: 140px; line-height: 1.6; }
.contact-form .btn { margin-top: 4px; }

.contact-done {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--g-075); border: 1px solid var(--g-250);
}
.contact-done svg { width: 22px; height: 22px; fill: var(--g-500); flex: none; margin-top: 1px; }
.contact-done p { margin: 0; font-size: 1rem; line-height: 1.55; }

.contact-aside { display: grid; gap: 18px; align-content: start; }
.contact-h2 { font-size: 1.3rem; letter-spacing: -0.024em; }
.contact-note { margin: 0; font-size: 0.92rem; color: var(--body); line-height: 1.55; }

/* ------------------------------------------------------------ projects page */

.pr-head { padding-block: var(--section-half); }
/* ------------------------------------------------------------ project filter */

.pfilter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.pfilter-btn {
  height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--body);
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pfilter-btn:hover { color: var(--ink); border-color: var(--ink); }
.pfilter-btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.pfilter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pfilter-empty { margin: 0; color: var(--body); }

.pr-list { padding-block: var(--section-half); }

/* other projects, closing each detail page */

.proj-more {
  border-top: 1px solid var(--line);
  padding-block: var(--section-half);
}
.proj-more-h {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.028em;
  margin-bottom: clamp(24px, 3vw, 32px);
}
/* "The other projects" on a detail page: three tracks. */
.plist--two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .plist--two { grid-template-columns: 1fr; } }

/* project rows on the homepage are links now */
.plist-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .2s var(--ease);
}
.plist-link:hover {
  border-color: var(--accent-line);
  box-shadow: 0 8px 22px -16px rgb(14 90 74 / .55);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) { .plist-link:hover { transform: none; } }
.plist-link .picon { flex: none; width: 42px; height: 42px; }
.plist-link .picon svg { width: 23px; height: 23px; }
.plist-link:hover .picon { background: var(--accent); color: #fff; }
.plist-link:hover .plist-arrow { color: var(--accent); transform: translateX(3px); }

/* ------------------------------------------------------------------ motion */

/* Reveal is gated on .js so the page is fully readable without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

.sec { padding-block: var(--section-half); }

/* ------------------------------------------------ restored: how + footer
   These were removed by accident when the hero block was replaced -- the
   slice ran from .hero to .stats, and these rules sat inside that range. */

.sec-eyebrow {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--g-075);
  font-size: 15px; font-weight: 500; color: var(--g-800);
}
.how {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px;
}
.footer {
  margin-top: 0;
  background: var(--ink-deep); color: var(--on-dark);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
}
.how-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.how-copy h2 { font-size: 49px; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.how-copy p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--g-600); max-width: 440px; }
.how-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.how-steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.how-steps li:first-child { border-top: 0; padding-top: 0; }
.how-steps .n { font-size: 17px; font-weight: 500; color: var(--g-800); }
.how-steps h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.how-steps p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--g-600); }
main > *:last-child { padding-bottom: var(--section-space); }
.footer-reg { margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; }
.footer-reg > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.footer-reg dt { color: var(--g-300); }
.footer-reg dd { margin: 0; color: var(--on-dark); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-word { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--white); }
.footer-word span { color: var(--mint-deep); }
.footer-brand p { margin: 0; max-width: 360px; font-size: 17px; line-height: 1.6; color: var(--g-200); }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.footer-col .h { font-size: 15px; color: var(--g-300); }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .16);
  font-size: 15px; color: var(--g-200);
}
.footer-base .mono { font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .how { grid-template-columns: 1fr; gap: 24px; }
  .how-copy h2 { font-size: 33px; letter-spacing: -0.025em; }
  .how-copy p { font-size: 17px; }
  .how-steps li { grid-template-columns: 32px 1fr; gap: 14px; padding: 20px 0; }
  .how-steps h3 { font-size: 19px; }
  .how-steps p { font-size: 17px; }
  .footer { margin-top: 0; padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-reg > div { grid-template-columns: 120px minmax(0, 1fr); }
  .footer-base { margin-top: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
