/* ==========================================================================
   WETHERALL FAMILY FOUNDATION — "The Long Story"
   Design system: see DESIGN.md (source of truth)
   Pure CSS, no build step. Theming: edit the custom properties below.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   1. TOKENS — every colour and font lives here (DESIGN.md § Color/Typography)
   -------------------------------------------------------------------------- */
:root {
  /* palette — "Dried Eucalyptus" */
  --paper:         #F4EDDE;  /* page background, warm sandstone   */
  --surface:       #FBF6EA;  /* cards, a half-step lighter        */
  --wash:          #EAE0CB;  /* cream-dark bands                  */
  --ink:           #2A251E;  /* text — warm sepia-charcoal        */
  --muted:         #6F6557;  /* captions, secondary copy          */
  --gold:          #A87C2F;  /* primary accent — scarce           */
  --gold-deep:     #85601F;  /* text-size links on paper          */
  --sage:          #5F7464;  /* secondary accent — tags, borders  */
  --sage-deep:     #4A5B4E;  /* sage text on light grounds        */
  --gum:           #33352E;  /* dark bands — a green-black        */
  --gum-deep:      #26271F;  /* footer, deepest ground            */
  --line:          #D9CDB6;  /* hairline rules                    */
  --on-dark:       #EFE7D6;  /* text on dark bands                */
  --on-dark-muted: #B5AC97;  /* secondary text on dark bands      */
  --clay:          #9C4A35;  /* error/semantic only               */

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", Consolas, monospace;

  /* geometry & motion */
  --radius: 2px;
  --max-w: 1140px;
  --pad-x: 32px;
  --ease-settle: cubic-bezier(0.22, 0.8, 0.36, 1);
  --nav-h: 76px;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* paper grain over the whole page — the warmth (DESIGN.md § Decoration) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold); transition: color 0.25s ease; }
a:hover { color: var(--gold); }

::selection { background: var(--gold); color: #FFFDF6; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }

.display-xl { font-size: clamp(44px, 6vw, 76px); font-variation-settings: "opsz" 144; letter-spacing: -0.01em; }
.display-l  { font-size: clamp(32px, 4vw, 48px); font-variation-settings: "opsz" 100; }
.display-m  { font-size: clamp(24px, 3vw, 32px); font-variation-settings: "opsz" 72; }

/* the one flourish: a single italic gold word per headline */
em.accent { font-style: italic; color: var(--gold); }

.lede { font-size: 20px; color: var(--muted); max-width: 640px; }

/* mono marginalia — section marks, eyebrows (DESIGN.md § Typography) */
.mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.mark::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  background: var(--gold);
  margin-left: 14px;
  vertical-align: middle;
  opacity: 0.6;
}
.mark--center::after { display: none; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-block;
  transition: all 0.25s ease;
}
.btn-gold { background: var(--gold); color: #FFFDF6; border-bottom: none; }
.btn-gold:hover { background: var(--gold-deep); color: #FFFDF6; }
.btn-ink { background: var(--ink); color: var(--paper); border-bottom: none; }
.btn-ink:hover { background: var(--gum); color: var(--paper); }
.btn-outline-light { border-color: rgba(239, 231, 214, 0.5); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-quiet {
  color: var(--gold-deep); background: transparent;
  padding: 0 0 4px 0; border-radius: 0;
  border-bottom: 1px solid var(--gold);
}
.btn-quiet:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   5. NAVIGATION (injected by js/components.js into #nav-mount)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
/* all four pages open on a dark band, so the nav floats transparent at top */
.nav.scrolled {
  background: rgba(38, 39, 31, 0.96);
  border-bottom-color: rgba(239, 231, 214, 0.1);
  backdrop-filter: blur(6px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--on-dark);
  border-bottom: none;
  line-height: 1.2;
}
.nav-brand:hover { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--on-dark);
  transition: transform 0.3s var(--ease-settle), opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. HERO (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--on-dark);
  /* dark overlay sits on top of the photo (or the placeholder gradient).
     To use a real photo, set --hero-photo on the element — see index.html. */
  background-image:
    linear-gradient(rgba(38, 39, 31, 0.72), rgba(38, 39, 31, 0.82)),
    var(--hero-photo, radial-gradient(ellipse 120% 70% at 75% 20%, #5a5c47 0%, #3a3c30 45%, #26271F 100%));
  background-size: cover;
  background-position: center;
}
.hero-content { max-width: 760px; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero h1 { color: var(--on-dark); margin-bottom: 24px; }
.hero .mission {
  font-size: 20px;
  color: rgba(239, 231, 214, 0.85);
  max-width: 520px;
  margin-bottom: 40px;
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   7. THE LEDGER — stats strip (DESIGN.md § Layout: The Ledger)
   -------------------------------------------------------------------------- */
.ledger {
  background: var(--gum);
  color: var(--on-dark);
}
.ledger-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 56px;
  align-items: end;
}
.ledger-item .num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  color: var(--on-dark);
  font-feature-settings: "tnum";
}
.ledger-item .num .unit {
  font-size: 0.35em;
  color: var(--gold);
  font-style: italic;
  margin-left: 6px;
}
.ledger-item .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 16px;
  display: block;
}
.ledger-await {
  border-bottom: 1px solid rgba(239, 231, 214, 0.3);
  padding-bottom: 14px;
}
.ledger-await .awaiting {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   8. SECTIONS — shared rhythm
   -------------------------------------------------------------------------- */
.section { padding: 104px 0; }
.section-head { margin-bottom: 56px; }
.section-head .lede { margin-top: 14px; }

/* --------------------------------------------------------------------------
   9. FOCUS AREAS (home) — gold top rules + chapter numerals, never icon circles
   -------------------------------------------------------------------------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.focus-card { border-top: 2px solid var(--gold); padding-top: 28px; }
.focus-card .no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}
.focus-card h3 { font-size: 24px; margin-bottom: 10px; }
.focus-card p { color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   10. ABOUT TEASER (home) — two-column, portrait with corner accent
   -------------------------------------------------------------------------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 72px;
  align-items: center;
}
.teaser-text p { color: var(--muted); margin-bottom: 18px; }
.teaser-text .btn-quiet { margin-top: 10px; }

/* decorative corner accent: a gold-ruled square offset behind the image */
.corner-accent { position: relative; }
.corner-accent::before {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 120px; height: 120px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

/* --------------------------------------------------------------------------
   11. IMAGE PLACEHOLDERS — styled divs; swap for real <img> when ready
   -------------------------------------------------------------------------- */
.ph {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.8;
  padding: 16px;
}
.ph-portrait { aspect-ratio: 4 / 5; width: 100%; }
.ph-logo { width: 200px; height: 80px; background: var(--paper); }
.ph-circle {
  border-radius: 50%;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 35% 30%, #45473a, #2c2d25);
  border-color: rgba(239, 231, 214, 0.35);
  color: rgba(239, 231, 214, 0.5);
}
.ph-circle--sm { width: 140px; height: 140px; margin: 0 auto; }
img.ph-portrait,
img.ph-wide,
img.ph-circle {
  object-fit: cover;
  padding: 0;
  background: none;
  border: none;
  display: block;
}
img.ph-portrait,
img.ph-wide { border-radius: var(--radius); }
.teaser-grid .ph-portrait { object-position: center 30%; }

/* --------------------------------------------------------------------------
   12. PARTNERS TEASER (home) / dark band CTA
   -------------------------------------------------------------------------- */
.band {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .section { padding: 88px 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.band-inner h2 { max-width: 560px; }

/* --------------------------------------------------------------------------
   13. PAGE HEADERS (about / partners / apply)
   -------------------------------------------------------------------------- */
.page-header {
  background:
    linear-gradient(rgba(38, 39, 31, 0.55), rgba(38, 39, 31, 0.55)),
    var(--gum);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 88px) 0 88px;
}
.page-header h1 { color: var(--on-dark); margin-bottom: 16px; }
.page-header .lede { color: var(--on-dark-muted); }
/* taller, centred variant for apply.html */
.page-header--tall { padding: calc(var(--nav-h) + 128px) 0 128px; text-align: center; }
.page-header--tall .lede { margin: 0 auto; }
.page-header--tall .mark::after { display: none; }

/* --------------------------------------------------------------------------
   14. MISSION & VALUES (about)
   -------------------------------------------------------------------------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.mission-grid .statement { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.value { border-top: 1px solid var(--line); padding: 24px 0; }
.value:first-child { border-top: 2px solid var(--gold); }
.value h3 { font-size: 22px; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   15. EDITORIAL STORY (about) — single column, unhurried
   -------------------------------------------------------------------------- */
.story-figure { margin-bottom: 56px; }
.ph-wide { aspect-ratio: 16 / 9; width: 100%; }
.story { max-width: 720px; }
.story p { margin-bottom: 26px; font-size: 17.5px; }
.story p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   16. FOUNDER — memorial section (about)
   -------------------------------------------------------------------------- */
.founder { background: var(--gum); color: var(--on-dark); }
.founder .section { padding: 112px 0; }
.founder-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.founder blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 100;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  color: var(--on-dark);
  margin: 28px 0;
}
.founder blockquote .q { color: var(--gold); }
.founder .bio { max-width: 620px; }
.founder .bio p { color: var(--on-dark-muted); font-size: 16px; margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   17. BOARD GRID (about)
   -------------------------------------------------------------------------- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.board-card { text-align: center; }
.board-card h3 { font-size: 22px; margin-top: 22px; }
.board-card .role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   18. PARTNER CARDS (partners)
   -------------------------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.partner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 36px;
  transition: border-left-color 0.3s ease, transform 0.3s var(--ease-settle);
}
.partner-card:hover { border-left-color: var(--gold); transform: translateY(-2px); }
.partner-card .ph-logo { margin-bottom: 24px; }
.partner-card h3 { font-size: 26px; margin-bottom: 12px; }
.partner-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border: 1px solid var(--sage);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.grant-line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* Partner index — fills the logo slot until real logos exist; echoes the
   "PARTNER № 001" ledger motif from the home page. */
.partner-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

/* Card foot — grant line + a quiet outbound link on one ruled row. */
.partner-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.partner-foot .grant-line { border-top: 0; padding-top: 0; }
.partner-visit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}
.partner-visit:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   19. CRITERIA GRID (apply — "what we fund") — large faded numbers
   -------------------------------------------------------------------------- */
.criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.criterion { position: relative; padding-top: 64px; }
.criterion .big-no {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 88px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.18;
}
.criterion h3 { font-size: 24px; margin-bottom: 10px; }
.criterion p { color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   20. EXCLUSIONS (apply — "what we don't fund") — wash band, ruled list
   -------------------------------------------------------------------------- */
.exclusions { max-width: 720px; list-style: none; }
.exclusions li {
  border-bottom: 1px solid var(--line);
  padding: 20px 0 20px 36px;
  position: relative;
  color: var(--muted);
}
.exclusions li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--font-mono);
}
.exclusions li strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   21. APPLICATION PROCESS (apply) — numbered steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; max-width: 760px; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 48px;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
}
.step h3 { font-size: 23px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   22. CONTACT PANEL (apply)
   -------------------------------------------------------------------------- */
.contact-panel {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 80px 48px;
  text-align: center;
}
.contact-panel h2 { margin-bottom: 28px; }
.contact-panel .email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 40px);
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
}
.contact-panel .email:hover { color: var(--gold); }
.contact-panel .fine {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 480px;
  margin: 32px auto 0;
}

/* --------------------------------------------------------------------------
   23. FOOTER (injected by js/components.js into #footer-mount)
   -------------------------------------------------------------------------- */
.footer { background: var(--gum-deep); color: var(--on-dark-muted); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px var(--pad-x) 40px; }
.footer .fname { font-family: var(--font-display); font-size: 24px; color: var(--on-dark); display: block; }
.footer .paf {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin: 8px 0 20px;
}
.footer .tagline { font-size: 14.5px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 16px;
}
.footer-cols a {
  color: var(--on-dark-muted);
  border-bottom: none;
  display: block;
  margin-bottom: 10px;
  font-size: 14.5px;
}
.footer-cols a:hover { color: var(--gold); }
.footer .legal {
  border-top: 1px solid rgba(239, 231, 214, 0.12);
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 2;
}
.footer .ack {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--on-dark-muted);
  max-width: 640px;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   24. MOTION — ink-settle reveals (DESIGN.md § Motion)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease-settle), transform 0.55s var(--ease-settle);
}
.reveal.in { opacity: 1; transform: none; }

/* respect users who prefer no motion: everything visible, nothing animates */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   25. RESPONSIVE — single breakpoint at 768px (per brief)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --pad-x: 24px; --nav-h: 64px; }

  .section { padding: 72px 0; }

  /* mobile nav: hamburger + dropdown panel */
  .nav { background: rgba(38, 39, 31, 0.96); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--gum-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(239, 231, 214, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease-settle), opacity 0.3s ease, visibility 0.3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px var(--pad-x); font-size: 16px; border-bottom: none; }
  .nav-links a.active { border-bottom: none; }
  .nav-brand { font-size: 17px; }

  .hero-content { padding-top: calc(var(--nav-h) + 32px); }

  .ledger-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px var(--pad-x); }

  .focus-grid,
  .board-grid,
  .criteria-grid { grid-template-columns: 1fr; gap: 36px; }

  .partner-grid { grid-template-columns: 1fr; }

  .teaser-grid,
  .mission-grid { grid-template-columns: 1fr; gap: 44px; }
  .corner-accent::before { top: -12px; left: -12px; width: 80px; height: 80px; }

  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .ph-circle { margin: 0 auto; }

  .step { grid-template-columns: 64px 1fr; gap: 18px; }

  .footer-cols { grid-template-columns: 1fr; gap: 36px; }

  .contact-panel { padding: 56px 24px; }

  .page-header { padding: calc(var(--nav-h) + 64px) 0 64px; }
  .page-header--tall { padding: calc(var(--nav-h) + 88px) 0 88px; }
}
