/* ==========================================================================
   Project Vidya — site styles (v3, editorial)
   Tokens: css/tokens.css. Layout is mobile-first; wide rules start at 760px
   (two columns) and 1024px (full desktop composition).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--blueberry); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; z-index: 200; left: var(--s-4); top: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(var(--s-8), 9vw, var(--s-9)); }

.eyebrow {
  margin-bottom: var(--s-4);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.lede { font-size: var(--t-lg); color: var(--text); }

/* ---- Highlighted words ("marker boxes") --------------------------------- */
.hl {
  --hl: var(--periwinkle);
  padding: 0 0.12em;
  border-radius: var(--r-hl);
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--marigold { --hl: var(--marigold); }
.hl--leaf { --hl: #A9D49A; }
.hl--cream { --hl: var(--cream-soda); }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--tap);
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-0);
  font: 500 var(--t-sm) / 1.1 var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: scale(0.98); box-shadow: none; transition-duration: 60ms; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary { background: var(--blueberry); border-color: var(--blueberry); color: #fff; }
.btn--primary:hover { background: var(--blueberry-deep); border-color: var(--blueberry-deep); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: inset 0 0 0 1px rgb(20 27 58 / 0.08); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--cream { background: var(--cream-soda); border-color: var(--cream-soda); color: var(--ink); }
.btn--cream:hover { background: #fff; border-color: #fff; }
.btn--outline-light { background: transparent; border-color: rgb(255 240 201 / 0.55); color: var(--cream-soda); }
.btn--outline-light:hover { border-color: var(--cream-soda); background: rgb(255 240 201 / 0.08); }
.btn--lg { padding: 0.95rem 1.4rem; font-size: 1rem; }

/* ---- Handwritten notes (Caveat) — one per section at most ------------------ */
.note { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1.12; letter-spacing: 0; color: var(--ink); }
.note__arrow { width: 92px; height: auto; margin-top: var(--s-2); }
.note__arrow path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--tap); font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---- Grid paper ------------------------------------------------------------ */
.grid-paper {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
}
.on-blueberry { --grid-line: var(--grid-line-light); --focus: var(--marigold); background-color: var(--blueberry); color: var(--on-dark); }
.on-marigold  { --grid-line: rgb(255 255 255 / 0.22); background-color: var(--marigold); }
.on-leaf      { --grid-line: rgb(255 255 255 / 0.22); background-color: var(--leaf); }
.on-periwinkle{ --grid-line: rgb(255 255 255 / 0.45); background-color: var(--periwinkle); }

/* ---- Icon tiles (flat, square) ---------------------------------------------- */
.tile-icon { width: 56px; height: 56px; flex: none; }
.tile-icon--lg { width: 76px; height: 76px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-soda);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); background: rgb(255 240 201 / 0.94); backdrop-filter: saturate(1.2) blur(10px); }

.site-header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  width: min(100% - 2 * var(--gutter), 82rem);
  min-height: 64px;
  margin-inline: auto;
  padding-top: env(safe-area-inset-top, 0px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.02em; white-space: nowrap; }

.site-nav { margin-right: auto; }
.site-nav ul { display: flex; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding-inline: var(--s-3);
  color: var(--ink); font-size: var(--t-sm); text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.site-nav .nav-donate { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.header-actions .link-plain { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding-inline: var(--s-3); color: var(--ink); font-size: var(--t-sm); text-decoration: none; }
.header-actions .link-plain svg { width: 18px; height: 18px; }
.header-actions .link-plain:hover { text-decoration: underline; }

.menu-toggle {
  display: none; place-items: center;
  width: var(--tap); height: var(--tap); padding: 0;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease), background-color 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .menu-toggle { display: grid; }
  .js .header-actions .link-plain { display: none; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-6);
    background: var(--cream-soda);
    border-bottom: 1px solid var(--line);
  }
  .js .site-header[data-menu="open"] .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { width: 100%; min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .js .site-nav .nav-donate { display: block; margin-top: var(--s-4); }
  .js .site-nav .nav-donate a { justify-content: center; min-height: 52px; border: 0; background: var(--blueberry); color: #fff; font-family: var(--font-body); font-size: 1rem; }

  /* No JavaScript: the menu can't open, so show the links in a scrollable row. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 379px) {
  .site-header__inner { gap: var(--s-3); }
  .brand span { font-size: 1rem; }
  .header-actions .btn { padding-inline: 0.85rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; background: var(--cream-soda); padding-top: clamp(var(--s-7), 7vw, 6rem); }
.hero__grid { display: grid; gap: var(--s-6); padding-bottom: clamp(var(--s-6), 5vw, var(--s-8)); }
.hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.25rem); line-height: 1.02; }
.hero .lede { max-width: 34rem; margin-top: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.hero__note { justify-self: start; rotate: -3deg; }
.hero__note .note__arrow { display: none; margin-left: 40%; }
.pencils { display: block; width: 100%; height: clamp(64px, 9vw, 132px); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s-7); }
  .hero__note { justify-self: end; margin-bottom: calc(-1 * var(--s-5)); font-size: clamp(1.9rem, 1rem + 1.4vw, 2.4rem); }
  .hero__note .note__arrow { display: block; }
}

/* ---- The blueberry band: scroll story --------------------------------------
   Static by default (no JS / reduced motion): finished emblem + all four cards.
   Under .story-anim (set in <head>) the band becomes a pinned, scroll-scrubbed
   story; timing lives in js/story.config.js.
   Card layouts while animated (keep in sync with allCardsQuery in the config):
     portrait            art on top, the latest card underneath
     landscape < 1200px  art left, the latest card right
     landscape ≥ 1200px  every card that has appeared floats around the art   */

.band { position: relative; overflow: clip; }
.band__pin { position: relative; }
.band__stage {
  position: relative;
  width: min(100% - 2 * var(--gutter), 68rem);
  margin-inline: auto;
  padding: var(--s-7) 0;
}
.band__art { width: min(100%, 460px); margin-inline: auto; }
.band__art svg { width: 100%; height: auto; overflow: visible; }
.band .camera { transform: translate(150px, 160px) scale(1.076923) translate(-175px, -215px); } /* static framing: the emblem */
.band .net { display: none; }

.band__sun { position: absolute; right: -7%; top: -16%; width: clamp(160px, 26vw, 380px); aspect-ratio: 1; border-radius: 50%; background: var(--marigold); }
.band__leaf { position: absolute; left: -3%; bottom: -18%; width: clamp(120px, 18vw, 260px); aspect-ratio: 1; border-radius: 0 100% 0 100%; background: var(--leaf); transform: rotate(8deg); }
.band__scribble { position: absolute; width: clamp(80px, 9vw, 130px); }
.band__scribble path { fill: none; stroke: var(--cream-soda); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.band__foot { display: none; }

.facts { display: grid; gap: var(--s-3); margin-top: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.fact {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 14px 16px;
  background: var(--card); color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  text-align: left;
}
.fact__label { display: block; font-size: var(--t-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); }
.fact__title { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.fact__sub { display: block; font-size: var(--t-xs); color: var(--text); line-height: 1.35; }
.fact .tile-icon { width: 40px; height: 40px; }
.fact--stack { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 4px 9px; border-radius: 6px; font-size: var(--t-xs); font-weight: 500; color: var(--ink); background: var(--stone); }
.pill--marigold { background: #FBE6BC; }
.pill--leaf { background: #DCEFD3; }
.avatars { display: flex; }
.avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--stone); }
.avatars img + img { margin-left: -9px; }
.fact .mini-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; background: var(--blueberry); color: #fff; font-size: var(--t-xs); font-weight: 600; text-decoration: none; white-space: nowrap; }
.fact .mini-btn { transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.fact .mini-btn:hover { background: var(--blueberry-deep); transform: translateY(-1px); }
.fact .mini-btn:active { transform: scale(0.98); transition-duration: 60ms; }
.fact a.fact__link { color: var(--blueberry); font-size: var(--t-xs); font-weight: 600; }

@media (max-width: 1023px) {
  .band__scribble { display: none; }
  .band__sun { top: -9%; right: -16%; }
}

/* Static desktop: the cards float around the emblem */
@media (min-width: 1024px) {
  html:not(.story-anim) .band__stage { min-height: 600px; display: grid; place-items: center; padding: var(--s-7) 0 var(--s-8); }
  html:not(.story-anim) .band__art { width: 470px; }
  html:not(.story-anim) .band .facts { display: block; margin: 0; }
  html:not(.story-anim) .band .fact { position: absolute; max-width: 300px; }
  html:not(.story-anim) .fact--school { left: 0; top: 13%; rotate: -1.5deg; }
  html:not(.story-anim) .fact--programs { left: 3%; bottom: 14%; rotate: 1deg; }
  html:not(.story-anim) .fact--team { right: 0; top: 21%; rotate: 1.2deg; }
  html:not(.story-anim) .fact--give { right: 4%; bottom: 11%; rotate: -1deg; }
  .band__scribble--a { left: 26%; top: 9%; }
  .band__scribble--b { right: 25%; bottom: 8%; }
}

/* ---- Animated story ------------------------------------------------------ */
/* Default travel = sum of beat travel in js/story.config.js (JS sets the real
   value; these only prevent a jump before the script runs). */
:root { --story-travel: 2.7; }
@media (min-aspect-ratio: 1/1) { :root { --story-travel: 3.3; } }

.story-anim .band {
  height: calc(var(--story-travel) * 100vh + 100vh - var(--header-h));
  height: calc(var(--story-travel) * 100svh + 100svh - var(--header-h));
}
.story-anim .band__pin {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}
.story-anim .band .net { display: inline; }

/* Scene-0 look before story.js runs, so the first paint never flashes */
.story-anim .band [data-draw] { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.story-anim .band [data-pop] { transform: scale(0); }
.story-anim .band [data-rise] { transform: translateY(var(--rise, 0px)); }
.story-anim .band [data-fade] { opacity: 0; }
.story-anim .band [data-camera] { transform: translate(150px, 160px) scale(1.296296) translate(-230px, -440px); }

.story-anim .band__stage {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: var(--s-4);
  padding: var(--s-5) 0 calc(56px + env(safe-area-inset-bottom, 0px));
}
.story-anim .band__art { width: 100%; height: 100%; min-height: 0; }
.story-anim .band__art svg { height: 100%; }
.story-anim .band .facts { display: grid; margin: 0; min-height: 76px; align-items: center; }
.story-anim .band .fact {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; translate: 0 14px;
  transition: opacity 0.3s ease, translate 0.4s var(--ease), visibility 0s linear 0.3s;
}
.story-anim .band .fact[data-current] {
  opacity: 1; visibility: visible; translate: 0 0;
  transition: opacity 0.4s ease, translate 0.5s var(--ease), visibility 0s;
}

.story-anim .band__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
  min-height: 52px;
}
.band__skip { display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--tap); color: var(--cream-soda); font-size: var(--t-sm); font-weight: 500; text-decoration-color: rgb(255 240 201 / 0.5); }
.band__skip:hover { text-decoration-color: var(--marigold); }
.band__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 0.14); }
.band__progress span { display: block; height: 100%; background: var(--marigold); transform-origin: 0 50%; transform: scaleX(0); }

/* Landscape below 1200px: art left, the latest card right */
@media (min-aspect-ratio: 1/1) and (max-width: 1199px) {
  .story-anim .band__stage { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); column-gap: var(--s-5); align-items: center; }
}

/* Wide desktop: every card that has appeared stays, floating around the art */
@media (min-aspect-ratio: 1/1) and (min-width: 1200px) {
  .story-anim .band__stage { grid-template-rows: none; place-items: center; padding-bottom: 64px; }
  .story-anim .band__art { width: min(600px, calc(100vh - var(--header-h) - 8rem)); height: auto; aspect-ratio: 1; }
  .story-anim .band .facts { display: block; min-height: 0; }
  .story-anim .band .fact { position: absolute; max-width: 290px; }
  .story-anim .band .fact[data-active] {
    opacity: 1; visibility: visible; translate: 0 0;
    transition: opacity 0.4s ease, translate 0.5s var(--ease), visibility 0s;
  }
  .story-anim .fact--school { left: 0; top: 12%; rotate: -1.5deg; }
  .story-anim .fact--programs { left: 2%; bottom: 18%; rotate: 1deg; }
  .story-anim .fact--team { right: 0; top: 18%; rotate: 1.2deg; }
  .story-anim .fact--give { right: 2%; bottom: 15%; rotate: -1deg; }
}

/* ==========================================================================
   Statement + mission
   ========================================================================== */

.statement { text-align: center; }
.statement__squiggle { width: min(100%, 620px); margin: 0 auto var(--s-7); }
.statement__squiggle path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.statement h2 { max-width: 19ch; margin-inline: auto; }
.mission { max-width: 44rem; margin: var(--s-7) auto 0; }
.mission p { font-size: var(--t-lg); line-height: 1.6; }
.mission p + p { margin-top: var(--s-4); }

/* ==========================================================================
   Section heading row (title left, text right)
   ========================================================================== */

.head-row { display: grid; gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: var(--s-7); }
.head-row p { max-width: 26rem; color: var(--text); }
@media (min-width: 760px) { .head-row { grid-template-columns: 1.5fr 1fr; } .head-row p { justify-self: end; } }

/* ==========================================================================
   Feature rows (text panel + colour panel)
   ========================================================================== */

.features { display: grid; gap: var(--s-5); }
.feature { display: grid; background: var(--stone); }
.feature__text { display: flex; flex-direction: column; gap: var(--s-4); padding: clamp(var(--s-5), 4vw, 3.25rem); }
.feature__num { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1; letter-spacing: -0.03em; color: var(--ink); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.feature__text h3 { margin-top: auto; }
.feature__text p { max-width: 30rem; }
.feature__visual { display: grid; place-items: center; min-height: 280px; padding: var(--s-6); overflow: hidden; }
.feature__visual svg { width: min(100%, 420px); height: auto; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1.15fr; min-height: 400px; }
  .feature__text { padding-top: 2.5rem; }
  .feature:nth-child(even) .feature__text { order: 2; }
}

/* ==========================================================================
   Team
   ========================================================================== */

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.member { display: flex; flex-direction: column; background: var(--stone); }
.member__photo { padding: clamp(10px, 2vw, 18px); }
.member__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e8e1d0; box-shadow: 0 12px 24px -16px rgb(10 15 40 / 0.6); }
.member__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: var(--s-3) clamp(12px, 2vw, 20px) clamp(14px, 2vw, 22px); }
.member__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.15; }
.member__role { font-size: var(--t-s); color: var(--text); line-height: 1.4; }
.member__role { margin-bottom: var(--s-3); }
.member__fact { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); font-family: var(--font-hand); font-size: 1.3rem; font-weight: 500; color: var(--ink); line-height: 1.15; }
.member__fact b { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: var(--t-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); }

/* ==========================================================================
   Giving
   ========================================================================== */

.giving { background: var(--stone); }
.giving__grid { display: grid; gap: var(--s-7); }
.giving__intro { max-width: 30rem; margin: var(--s-4) 0 var(--s-6); font-size: var(--t-lg); }
.giving__trust { display: flex; gap: var(--s-3); align-items: flex-start; max-width: 26rem; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-sm); }
.giving__trust .tile-icon { width: 40px; height: 40px; }
.giving__trust strong { color: var(--ink); font-weight: 600; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.steps::before { content: ""; position: absolute; left: calc(var(--s-5) + 23px); top: 24px; bottom: 24px; border-left: 2px dotted rgb(20 27 58 / 0.35); }
.steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-5); row-gap: var(--s-1); padding: var(--s-5); background: var(--page); border: 1px solid var(--line); }
.steps__num { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blueberry); color: var(--cream-soda); font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.steps h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; align-self: end; }
.steps p { font-size: var(--t-sm); max-width: 32rem; }
@media (min-width: 900px) {
  .giving__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--s-8); align-items: start; }
  .giving__lead { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* ==========================================================================
   Final call to action
   ========================================================================== */

.cta__panel { position: relative; overflow: hidden; display: grid; gap: var(--s-6); padding: clamp(var(--s-6), 6vw, var(--s-8)); }
.cta__panel::before { content: ""; position: absolute; right: -60px; top: -60px; width: clamp(140px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%; background: var(--marigold); }
.cta__copy { position: relative; }
.cta h2 { max-width: 14ch; color: var(--cream-soda); }
.cta h2 .hl { color: var(--ink); }
.cta .lede { max-width: 32rem; margin-top: var(--s-5); color: var(--on-dark-soft); }
.cta .hero__actions { margin-top: var(--s-6); }
.cta__note { position: relative; justify-self: start; color: var(--cream-soda); rotate: -4deg; }
@media (min-width: 900px) {
  .cta__panel { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { --focus: var(--marigold); background: var(--night); color: var(--on-dark-soft); overflow: hidden; padding-top: var(--s-8); }
.site-footer a { color: var(--on-dark); text-decoration-color: rgb(255 240 201 / 0.35); }
.site-footer a:hover { text-decoration-color: var(--marigold); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.footer__brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer__tag { margin-top: var(--s-3); font-family: var(--font-display); font-size: 1.25rem; color: var(--on-dark); }
.footer__title { margin-bottom: var(--s-2); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--t-sm); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-7); padding: var(--s-4) 0; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: var(--t-xs); }
.wordmark {
  display: block;
  margin: var(--s-6) 0 -0.2em;
  font-family: var(--font-display);
  font-size: clamp(7rem, 33vw, 30rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-align: center;
  color: var(--marigold);
  user-select: none;
}

.footer__note { margin-top: var(--s-6); font-size: var(--t-xs); color: var(--on-dark-soft); max-width: 46rem; }

/* ==========================================================================
   Legal / info pages (privacy.html, accessibility.html)
   ========================================================================== */

.page-head { background: var(--cream-soda); padding: clamp(var(--s-7), 7vw, 5rem) 0 var(--s-7); }
.page-head h1 { font-size: var(--t-h2); }
.page-head p { margin-top: var(--s-3); color: var(--text); }
.page-head .wrap, .prose { width: min(100% - 2 * var(--gutter), 44rem); }
.prose { padding-block: var(--s-7) var(--s-8); }
.prose h2 { font-size: var(--t-h3); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: var(--s-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout { padding: var(--s-4) var(--s-5); background: var(--stone); border-left: 3px solid var(--marigold); }
.back-link { display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--tap); color: var(--ink); font-size: var(--t-sm); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ==========================================================================
   Motion (JavaScript adds .js; everything is visible without it)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Reveal on scroll */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Highlight boxes wipe in once the hero loads */
  .js .hero .hl { animation: hl-wipe 0.9s var(--ease) 0.15s both; }
  .js .hero .hl--marigold { animation-delay: 0.4s; }
  @keyframes hl-wipe { from { background-size: 0% 100%; } }

  /* Hand-drawn lines draw themselves when they come into view */
  .js [data-sketch] path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }  /* opacity hides round-cap dots */
  .js [data-sketch].is-in path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 1.6s var(--ease), opacity 0s; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
