/* ==========================================================================
   STORY LAYER — kick-off, chapter chrome, pinned scroll scenes
   Builds on the tokens in style.css.
   ========================================================================== */

/* ── Kick-off preloader (first visit per session) ── */
.kickoff { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: var(--ink); color: #fff; clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-out); }
.js .kickoff { display: grid; }
.kickoff.is-done { clip-path: inset(0 0 100% 0); }
.kickoff__inner { display: grid; justify-items: center; gap: var(--s-16); text-align: center; }
.kickoff__ball { width: 72px; height: 72px; color: #fff; animation: kb-bounce 520ms cubic-bezier(0.5, 0, 0.5, 1) infinite alternate; }
.kickoff__shadow { width: 64px; height: 10px; border-radius: 50%; background: rgba(52, 209, 122, 0.4); filter: blur(2px); animation: kb-shadow 520ms cubic-bezier(0.5, 0, 0.5, 1) infinite alternate; }
@keyframes kb-bounce { from { transform: translateY(-56px) rotate(0deg); } to { transform: translateY(0) rotate(160deg); } }
@keyframes kb-shadow { from { transform: scaleX(0.45); opacity: 0.4; } to { transform: scaleX(1); opacity: 1; } }
.kickoff__count { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-64); line-height: 1; font-variant-numeric: tabular-nums; margin-top: var(--s-16); }
.kickoff__line { font-size: var(--fs-12); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); }
html.is-loading, html.is-loading body { overflow: hidden; }

/* ── Page progress + chapter rail ── */
.story-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.story-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--heart-500), var(--gold), var(--brand-400)); }

.chapter-rail { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 70; display: none; flex-direction: column; gap: 12px; }
@media (min-width: 1200px) { .chapter-rail { display: flex; } }
.chapter-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; min-height: 20px; }
.chapter-rail a span { font-size: var(--fs-12); font-weight: 600; color: #fff; background: rgba(10, 19, 15, 0.88); padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity var(--t), transform var(--t) var(--ease-out); }
.chapter-rail a i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #8a928d; transition: transform var(--t) var(--ease-out), background-color var(--t), border-color var(--t); }
.chapter-rail a:hover span, .chapter-rail a:focus-visible span, .chapter-rail a.is-active span { opacity: 1; transform: none; }
.chapter-rail a.is-active i { background: var(--brand-400); border-color: var(--brand-400); transform: scale(1.35); }

.chapter-toast { position: fixed; left: 50%; top: calc(var(--header-h) + 8px); z-index: 95; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; padding: 8px 16px; border-radius: var(--r-pill); background: rgba(10, 19, 15, 0.9); color: #fff; font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em; box-shadow: var(--sh-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity 300ms var(--ease), transform 400ms var(--ease-out); white-space: nowrap; }
.chapter-toast b { color: var(--brand-300); margin-right: 6px; }
.chapter-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1200px) { .chapter-toast { display: none; } }

/* ── Chapter tag ── */
.chapter-tag { display: inline-flex; align-items: center; gap: var(--s-12); font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-700); }
.chapter-tag b { font-family: var(--font-display); letter-spacing: 0; font-size: var(--fs-14); padding: 4px 10px; border-radius: var(--r-pill); background: var(--brand-600); color: #fff; }
.chapter-tag::after { content: ""; width: 48px; height: 2px; background: currentColor; transform-origin: left; transform: scaleX(var(--tag-line, 1)); }
.section--ink .chapter-tag, .pin--day .chapter-tag { color: var(--brand-300); }
.section--ink .chapter-tag b, .pin--day .chapter-tag b { background: var(--brand-400); color: var(--ink); }

/* ── Generic pinned scene ── */
.pin { position: relative; }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.pin.is-static { height: auto !important; }
.pin.is-static .pin__stage { position: relative; height: auto; padding-block: var(--section); }

/* ── Chapter 01 · a day on an empty stomach ── */
.pin--day { height: 460vh; background: #0c0f0d; color: #fff; }
@media (max-width: 899px) { .pin--day { height: 380vh; } }
.day__photo { position: absolute; inset: 0; z-index: 0; }
.day__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.28) contrast(1.1); transform: scale(1.15); will-change: transform; }
.day__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, transparent, #0c0f0d 75%); }
.day__grid { position: relative; z-index: 1; display: grid; gap: var(--s-32); align-items: center; padding-top: var(--header-h); }
@media (min-width: 900px) { .day__grid { grid-template-columns: auto 1fr; gap: var(--s-96); } }
.day__left { display: grid; gap: var(--s-24); justify-items: center; }
.clock { position: relative; width: min(56vw, 340px); aspect-ratio: 1; }
.clock svg { width: 100%; height: 100%; overflow: visible; }
.clock__face { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.14); stroke-width: 2; }
.clock__tick { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; stroke-linecap: round; }
.clock__arc { fill: none; stroke: var(--heart-500); stroke-width: 6; stroke-linecap: round; }
.clock__hand { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.clock__hub { fill: var(--heart-500); }
.clock__time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.clock__time b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 4vw, 3.5rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock__time span { font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }

.energy { display: grid; gap: var(--s-8); width: 100%; max-width: 340px; }
.energy__top { display: flex; justify-content: space-between; gap: var(--s-8); font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.energy__top b { color: #fff; font-variant-numeric: tabular-nums; }
.energy__bar { height: 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.energy__bar i { display: block; height: 100%; border-radius: inherit; transform-origin: left; background: var(--brand-400); transition: background-color 300ms; }

.day__right { display: grid; gap: var(--s-24); }
.day__right h2 { font-size: var(--fs-48); max-width: 16ch; }
.moments { position: relative; display: grid; }
.moment { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-16); align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 0.16; transition: opacity 350ms var(--ease), transform 450ms var(--ease-out); }
.moment.is-past { opacity: 0.42; }
.moment.is-active { opacity: 1; transform: translateX(12px); }
.moment time { font-family: var(--font-display); font-weight: 700; color: var(--heart-400); font-variant-numeric: tabular-nums; }
.moment p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 0.9rem + 1vw, 1.625rem); line-height: 1.25; }

.day__end { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--gutter); background: rgba(12, 15, 13, 0.92); opacity: 0; pointer-events: none; }
.day__end h2 { font-size: var(--fs-64); max-width: 15ch; }
.day__end p { margin-top: var(--s-16); max-width: 44ch; font-size: var(--fs-20); color: var(--ink-muted); }
.day__hint { position: absolute; left: 50%; bottom: 24px; z-index: 2; transform: translateX(-50%); font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }

@media (max-width: 899px) {
  .day__grid { gap: var(--s-24); align-content: center; }
  .day__left { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: var(--s-16); width: 100%; }
  .clock { width: 132px; }
  .clock__time b { font-size: 1.5rem; }
  .clock__time span { display: none; }
  .day__right h2 { font-size: var(--fs-32); }
  .moments { min-height: 150px; }
  .moment { position: absolute; inset: 0 0 auto 0; grid-template-columns: 1fr; gap: 4px; border: 0; opacity: 0; transform: translateY(24px); }
  .moment.is-past { opacity: 0; transform: translateY(-24px); }
  .moment.is-active { opacity: 1; transform: none; }
  .moment p { font-size: var(--fs-24); }
}
.pin.is-static .moment { position: static; opacity: 1; transform: none; }
.pin.is-static .day__end { position: relative; opacity: 1; background: none; pointer-events: auto; }
.pin.is-static .day__hint { display: none; }

/* ── Chapter 02 · scrub-lit statement ── */
.scrub-statement { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-48); line-height: 1.15; letter-spacing: -0.025em; max-width: 24ch; margin-top: var(--s-96); }
.scrub-statement .w { opacity: 0.14; transition: opacity 180ms linear, color 180ms linear; }
.scrub-statement .w.is-lit { opacity: 1; }
.scrub-statement .w--brand.is-lit { color: var(--brand-600); }
.scrub-statement .w--heart.is-lit { color: var(--heart-600); }
.scrub-statement .w--gold.is-lit { color: #9a6400; }

/* ── Chapter 03 · the bridge ── */
.pin--bridge { height: 360vh; background: var(--paper); }
@media (max-width: 899px) { .pin--bridge { height: 300vh; } }
.bridge__wrap { display: grid; gap: var(--s-24); padding-top: var(--header-h); }
.bridge__head { display: grid; gap: var(--s-12); justify-items: center; text-align: center; }
.bridge__head h2 { font-size: var(--fs-48); max-width: 20ch; }
.bridge__svg { display: block; width: 100%; max-width: 1000px; max-height: 38vh; margin-inline: auto; overflow: visible; }
.bridge__svg text { font-family: var(--font-display); font-weight: 800; }
.bridge__bank { fill: #d9d3c4; }
.bridge__banklabel { font-size: 15px; fill: var(--muted); letter-spacing: 0.04em; }
.bridge__svg .bridge__banklabel { font-family: var(--font-body); font-weight: 600; }
.bridge__water { fill: none; stroke: #b9d9c6; stroke-width: 3; stroke-linecap: round; }
.bridge__deck { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; }
.bridge__rail { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: 0.45; }
.bridge__pillar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.bridge__plabel { font-size: 22px; opacity: 0; letter-spacing: 0.06em; }
.bridge__cards { display: grid; gap: var(--s-12); }
@media (min-width: 760px) { .bridge__cards { grid-template-columns: repeat(3, 1fr); gap: var(--s-16); } }
.bcard { display: grid; grid-template-columns: auto 1fr; gap: var(--s-8) var(--s-16); align-items: start; padding: var(--s-16) var(--s-24); border-radius: var(--r-16); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm); opacity: 0.28; transform: translateY(16px) scale(0.98); transition: opacity 400ms var(--ease), transform 500ms var(--ease-out), box-shadow 400ms; }
.bcard.is-on { opacity: 1; transform: none; box-shadow: var(--sh-md); }
.bcard .pillar__icon { width: 44px; height: 44px; border-radius: var(--r-12); display: grid; place-items: center; }
.bcard .pillar__icon svg { width: 22px; height: 22px; }
.bcard:nth-child(1) .pillar__icon { background: #fde7e5; color: var(--heart-600); }
.bcard:nth-child(2) .pillar__icon { background: #fdf1d8; color: #9a6400; }
.bcard:nth-child(3) .pillar__icon { background: #e1f5e9; color: var(--brand-600); }
.bcard h3 { font-size: var(--fs-20); align-self: center; }
.bcard p { font-size: var(--fs-14); color: var(--muted); grid-column: 2; }
.bcard__from { text-decoration: line-through; text-decoration-color: var(--heart-500); text-decoration-thickness: 2px; }
@media (max-width: 759px) {
  .bcard { padding: var(--s-12) var(--s-16); }
  .bcard p { display: none; }
  .bcard h3 { font-size: var(--fs-16); }
  .bridge__head h2 { font-size: var(--fs-32); }
}
.pin.is-static .bcard { opacity: 1; transform: none; }
.pin.is-static .bridge__pillar { transform: none; }
.pin.is-static .bridge__plabel { opacity: 1; }

/* ── Chapter 04 · programs, horizontal pin on desktop ── */
.hpin.is-hpin { padding: 0; }
.hpin.is-hpin .hpin__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 8px); padding-bottom: var(--s-24); }
.hpin.is-hpin .section-head { margin-bottom: var(--s-24); }
.hpin.is-hpin .carousel__viewport { overflow: visible; scroll-snap-type: none; cursor: default; will-change: transform; padding-bottom: var(--s-24); }
.hpin.is-hpin .program { grid-template-rows: 200px 1fr; transition: box-shadow var(--t); }
@media (max-height: 820px) {
  .hpin.is-hpin .h2 { font-size: var(--fs-32); }
  .hpin.is-hpin .lead { font-size: var(--fs-16); }
  .hpin.is-hpin .program { grid-template-rows: 150px 1fr; }
}

/* ── Chapter 05 · every dot a child ── */
.children-field { position: relative; border-radius: var(--r-24); border: 1px solid var(--ink-line); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); padding: var(--s-24); margin-bottom: var(--s-24); display: grid; gap: var(--s-16); }
.children-field__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-16); }
.children-field__count { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-48); line-height: 1; font-variant-numeric: tabular-nums; }
.children-field__count small { font-size: var(--fs-16); font-family: var(--font-body); font-weight: 500; color: var(--ink-muted); margin-left: 8px; letter-spacing: 0; }
.children-field canvas { display: block; width: 100%; height: clamp(150px, 20vw, 240px); }
.children-field .energy { max-width: 280px; }

/* Scroll-driven entrances need a stable transform origin */
.coverflow__stage { transform-origin: 50% 80%; }

/* Donate impact preview pop */
.impact-preview.is-pop { animation: pop 420ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .kickoff { display: none !important; }
  .scrub-statement .w { opacity: 1; }
}

/* Mobile: the drawing is small, so the route reads as text instead */
.bridge__route { display: none; font-size: var(--fs-14); color: var(--muted); font-weight: 600; }
.bridge__route span:last-child { color: var(--brand-700); }
@media (max-width: 759px) {
  .bridge__route { display: block; }
  .bridge__svg .bridge__banklabel { display: none; }
  .bridge__svg { max-height: 30vh; }
}

/* ==========================================================================
   The travelling ball — fixed 3D layer + the spots each chapter reserves for it
   ========================================================================== */
.stage3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
/* Hero copy sits above the ball; everywhere else the ball floats over content in its reserved spot. */
.hero .container { position: relative; z-index: 2; }
.hero__scroll { z-index: 2; }

.ball-anchor { display: block; pointer-events: none; }
.hero__ball { position: absolute; right: 4vw; top: 50%; width: min(34vw, 520px); aspect-ratio: 1; transform: translateY(-50%); }
@media (max-width: 899px) {
  .hero__ball { right: auto; left: 50%; top: calc(var(--header-h) + min(64vw, 300px) * 0.1); width: calc(min(64vw, 300px) * 0.8); transform: translateX(-50%); }
}
@media (min-width: 900px) { .hero__inner { max-width: min(760px, 58vw); } }

.day__ball { width: 120px; height: 120px; }
@media (max-width: 899px) { .day__left { grid-template-columns: auto 1fr auto; } .day__ball { width: 56px; height: 56px; } }

.stack__ball { position: absolute; z-index: 4; right: -2%; top: -6%; width: 22%; aspect-ratio: 1; }

.has-3d-ball .bridge__ball2d { opacity: 0; }

.carousel__track { position: relative; flex: 1; max-width: 320px; display: flex; align-items: center; }
.carousel__ball { position: absolute; top: 50%; left: 0; width: 36px; height: 36px; transform: translate(-50%, -50%); }

.energy__track { position: relative; }
.energy__ball { position: absolute; top: 50%; left: 0; width: 32px; height: 32px; transform: translate(-50%, -50%); }

.give-card__ball { position: absolute; right: -20px; top: -44px; width: 88px; height: 88px; }
@media (max-width: 639px) { .give-card__ball { right: 12px; top: -36px; width: 64px; height: 64px; } }

.cta__ball { position: absolute; right: 32px; top: 32px; width: 96px; height: 96px; }
@media (max-width: 759px) { .cta__ball { width: 64px; height: 64px; right: 16px; top: 16px; } .cta-band h2 { padding-inline: 48px; } }

/* ── Chapter hand-off: the bridge's light spreads up out of the dark day ── */
.pin--day { height: 520vh; }
@media (max-width: 899px) { .pin--day { height: 460vh; } }
/* Founder chapter overlaps the day's last screen; later in the DOM, so it paints on top (but below the ball layer). */
.handoff { margin-top: -100vh; background: var(--paper); }
.handoff.is-static { margin-top: 0; }

/* ── Word-mask heading reveals ── */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wi { display: inline-block; will-change: transform; }

/* ── Lenis smooth scroll ── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* "Other ways to give" icons */
.way > svg { width: 32px; height: 32px; color: var(--brand-600); }

/* ==========================================================================
   PHONE SCALE — tighter type, spacing and components under 600px
   ========================================================================== */
@media (max-width: 599px) {
  :root {
    --fs-hero: clamp(2.5rem, 12vw, 3rem);
    --fs-64: clamp(1.875rem, 8.5vw, 2.125rem);
    --fs-48: clamp(1.5rem, 7vw, 1.75rem);
    --fs-32: 1.375rem;
    --fs-24: 1.125rem;
    --fs-20: 1rem;
    --section: 56px;
    --header-h: 60px;
    --s-48: 32px;
    --s-64: 40px;
    --s-96: 56px;
  }
  body { font-size: 15px; }
  .lead { font-size: 15px; }
  .h2 { margin-top: 12px; }
  .section-head { margin-bottom: 24px; gap: 12px; }
  .eyebrow, .chapter-tag { font-size: 11px; }
  .chapter-tag b { font-size: 12px; padding: 3px 8px; }
  .chapter-tag::after { width: 32px; }

  /* Buttons & chrome */
  .btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .btn--lg { min-height: 48px; padding: 12px 20px; font-size: 15px; }
  .btn svg { width: 18px; height: 18px; }
  .icon-btn { width: 44px; height: 44px; }
  .brand__chip { width: 40px; height: 40px; border-radius: 10px; }
  .nav__donate { min-height: 40px; padding: 8px 14px; font-size: 13px; }
  .nav__toggle { width: 40px; height: 40px; }
  .mobile-menu nav a { font-size: 24px; }
  .give-fab { left: 12px; right: 12px; bottom: 12px; padding: 6px 6px 6px 16px; }
  .give-fab p { font-size: 12px; }
  .give-fab .btn { min-height: 40px; padding: 8px 16px; font-size: 13px; }
  .kickoff__count { font-size: 48px; }
  .kickoff__ball { width: 56px; height: 56px; }

  /* Hero: smaller ball stage, compact copy */
  .hero { padding-top: calc(var(--header-h) + min(52vw, 220px)); padding-bottom: 32px; }
  .hero__ball { top: calc(var(--header-h) + 4px); width: min(48vw, 200px); }
  .hero__inner { gap: 16px; }
  .hero__title { letter-spacing: -0.04em; }
  .hero__sub { font-size: 15px; }
  .hero__ctas { gap: 8px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__stats { gap: 6px; margin-top: 0; }
  .chip { font-size: 12px; padding: 4px 10px 4px 4px; gap: 6px; }
  .chip b { min-width: 32px; height: 24px; font-size: 12px; padding: 0 6px; }
  .marquee { padding-block: 10px; margin-block: -16px; }
  .marquee__track span { font-size: 20px; gap: 20px; }
  .marquee__track { gap: 20px; }
  .marquee__track span::after { font-size: 14px; }

  /* 01 · Hunger */
  .day__grid { gap: 16px; }
  .clock { width: 104px; }
  .clock__time b { font-size: 1.125rem; }
  .energy__top { font-size: 10px; }
  .energy__bar { height: 8px; }
  .day__ball { width: 44px; height: 44px; }
  .day__right { gap: 12px; }
  .moments { min-height: 110px; }
  .moment p { font-size: 18px; }
  .moment time { font-size: 13px; }
  .day__end p { font-size: 15px; }
  .day__hint { font-size: 10px; bottom: 84px; }

  /* 02 · Founder */
  .story { gap: 32px; }
  .story__body { gap: 16px; }
  .quote { font-size: 16px; padding: 16px 16px 16px 20px; }
  .quote cite { font-size: 12px; }
  .founder__avatar { width: 44px; height: 44px; font-size: 16px; }
  .photo-stack { max-width: 340px; }
  .photo-stack__badge { padding: 10px 14px; border-radius: 12px; }
  .photo-stack__badge b { font-size: 22px; }
  .photo-stack__badge span { font-size: 10px; }
  .scrub-statement { font-size: 26px; margin-top: 48px; }

  /* 03 · Bridge */
  .bridge__wrap { gap: 16px; }
  .bridge__route { font-size: 12px; }
  .bcard { padding: 10px 14px; gap: 6px 12px; border-radius: 12px; }
  .bcard .pillar__icon { width: 36px; height: 36px; border-radius: 10px; }
  .bcard .pillar__icon svg { width: 18px; height: 18px; }
  .bcard h3 { font-size: 15px; }

  /* 04 · Programs */
  .carousel__viewport { grid-auto-columns: 82%; gap: 12px; padding-bottom: 20px; }
  .program { grid-template-rows: 168px 1fr; border-radius: 18px; }
  .program__body { padding: 16px 16px 20px; gap: 8px; }
  .program__body h3 { font-size: 18px; }
  .program__body p { font-size: 14px; }
  .ticks { gap: 6px; }
  .ticks li { font-size: 13px; }
  .program__num, .program__tag { font-size: 11px; padding: 4px 10px; top: 12px; }
  .program__num { left: 12px; }
  .program__tag { right: 12px; }
  .carousel__bar { gap: 12px; }
  .carousel__count { font-size: 12px; min-width: 44px; }
  .carousel__ball { width: 28px; height: 28px; }

  /* 05 · Impact */
  .children-field { padding: 16px; gap: 12px; border-radius: 18px; }
  .children-field__count { font-size: 28px; }
  .children-field__count small { font-size: 12px; display: block; margin: 4px 0 0; }
  .children-field canvas { height: 130px; }
  .energy__ball { width: 26px; height: 26px; }
  .stats { gap: 10px; }
  .stat { padding: 16px; min-height: 0; gap: 16px; border-radius: 18px; }
  .stat__num { font-size: 32px; }
  .stat--feature .stat__num { font-size: 44px; }
  .stat__label, .stat--feature .stat__label { font-size: 13px; }
  .stat__icon { width: 32px; height: 32px; border-radius: 10px; }
  .stat__icon svg { width: 18px; height: 18px; }

  /* 06 · Values */
  .vm { gap: 12px; }
  .vm__card { padding: 24px; min-height: 0; gap: 20px; border-radius: 22px; }
  .vm__card h3 { font-size: 11px; }
  .vm__card p { font-size: 17px; }
  .vm__glyph { width: 110px; height: 110px; }
  .values { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .values .value:last-child { grid-column: span 2; }
  .value { padding: 16px; border-radius: 16px; gap: 4px; }
  .value__letter { font-size: 28px; }
  .value h4 { font-size: 16px; }
  .value p { font-size: 13px; }

  /* 07 · Gallery */
  .coverflow { height: 320px; }
  .coverflow__item { width: 56vw; border-radius: 16px; }
  .coverflow__item figcaption { font-size: 12px; padding: 32px 12px 12px; }
  .coverflow__controls { margin-top: 16px; gap: 10px; }

  /* 08 · Donate */
  .donate { gap: 32px; }
  .donate__why { gap: 16px; }
  .tier { padding: 12px; gap: 12px; border-radius: 12px; }
  .tier__icon { width: 40px; height: 40px; border-radius: 10px; }
  .tier__icon svg { width: 20px; height: 20px; }
  .tier b { font-size: 14px; }
  .tier span { font-size: 12px; }
  .trust { font-size: 12px; gap: 6px 16px; }
  .give-card { padding: 20px 16px; border-radius: 22px; }
  .give-card__head { margin-bottom: 16px; }
  .give-card__head h3 { font-size: 18px; }
  .give-card__ball { width: 52px; height: 52px; top: -30px; right: 10px; }
  .secure-badge { font-size: 10px; padding: 4px 8px; }
  .form { gap: 18px; }
  .label { font-size: 13px; }
  .input, .textarea { min-height: 44px; padding: 10px 12px; font-size: 16px; border-radius: 10px; }
  .choice span { min-height: 48px; padding: 6px 4px; font-size: 13px; border-radius: 10px; }
  .choice span small { font-size: 10px; }
  .segmented { gap: 6px; }
  .amount-custom .input { font-size: 18px; padding-left: 52px; }
  .impact-preview { font-size: 13px; padding: 12px; border-radius: 12px; }
  .check { font-size: 13px; }
  .other-ways { gap: 10px; margin-top: 40px; }
  .way { padding: 16px; border-radius: 16px; gap: 8px; }
  .way > svg { width: 26px; height: 26px; }
  .way h4 { font-size: 16px; }
  .way p, .way a { font-size: 13px; }

  /* Epilogue */
  .org { gap: 8px; }
  .org__row { gap: 6px; }
  .org__node { font-size: 12px; padding: 8px 12px; }
  .org__node--top { font-size: 14px; padding: 10px 18px; }
  .org__line { height: 16px; }
  .cta-band { padding: 36px 20px; gap: 16px; border-radius: 22px; }
  .cta-band p { font-size: 14px; }
  .cta__ball { width: 48px; height: 48px; right: 12px; top: 12px; }
  .cta-band h2 { padding-inline: 32px; }
  .contact__item { padding: 12px; gap: 12px; border-radius: 12px; }
  .contact__item .ic { width: 40px; height: 40px; border-radius: 10px; }
  .contact__item .ic svg { width: 18px; height: 18px; }
  .contact__item b { font-size: 14px; }
  .map, .map iframe { min-height: 240px; }
  .footer { padding: 40px 0 96px; font-size: 13px; }
  .footer__big { margin-top: 32px; }

  /* Sub-pages */
  .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
  .page-hero p { font-size: 15px; }
  .receipt { padding: 24px 16px; border-radius: 22px; }
}

/* ==========================================================================
   01 · THE HUNGER on phones — make the passing day unmistakable
   ========================================================================== */
.day-track, .moment__n { display: none; }

@media (max-width: 899px) {
  .day__grid { align-content: center; gap: 16px; }
  /* Let the title lead, then the clock card, timeline and moment card. */
  .day__right { display: contents; }
  .day__right .chapter-tag { order: 1; }
  .day__right h2 { order: 2; margin-top: -4px; }
  .day__left { order: 3; }
  .day-track { order: 4; }
  .moments { order: 5; }

  /* Clock + energy card */
  .day__left {
    grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
    padding: 14px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .day__left .clock { grid-row: span 2; width: 124px; }
  .day__left .clock__time b { font-size: 1.25rem; }
  .day__left .energy { align-self: end; }
  .day__ball { grid-column: 2; justify-self: end; align-self: start; width: 44px; height: 44px; }
  .clock__arc { filter: drop-shadow(0 0 6px rgba(229, 55, 44, 0.7)); }

  .energy.is-low .energy__bar i { animation: low-pulse 0.9s ease-in-out infinite; }
  .energy.is-low .energy__top b { color: var(--heart-400); }

  /* Day timeline with a travelling sun */
  .day-track { display: block; position: relative; height: 44px; margin: 6px 12px 0; }
  .day-track__line { position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
  .day-track__line i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--heart-500)); }
  .day-track__stop { position: absolute; top: 11px; width: 10px; margin-left: -5px; }
  .day-track__stop b { display: block; width: 10px; height: 10px; border-radius: 50%; background: #262c29; border: 2px solid rgba(255, 255, 255, 0.28); transition: background-color 300ms, border-color 300ms, transform 400ms var(--ease-out), box-shadow 300ms; }
  .day-track__stop small { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--ink-muted); font-variant-numeric: tabular-nums; transition: color 300ms; }
  .day-track__stop.is-on b { background: var(--heart-400); border-color: var(--heart-400); transform: scale(1.2); box-shadow: 0 0 0 4px rgba(255, 107, 94, 0.22); }
  .day-track__stop.is-on small { color: #fff; }
  .day-track__sun { position: absolute; top: 16px; left: 0; z-index: 2; width: 26px; height: 26px; color: var(--gold); transform: translate(-50%, -50%); filter: drop-shadow(0 0 8px currentColor); transition: color 400ms; }
  .day-track__sun svg { width: 100%; height: 100%; }

  /* Moment cards: the new one rises and sharpens, the old one lifts away */
  .moments { min-height: 132px; }
  .moment {
    grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px;
    padding: 16px 16px 16px 18px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid var(--heart-500);
    opacity: 0; filter: blur(6px); transform: translateY(44px) scale(0.95);
    transition: opacity 450ms var(--ease), transform 600ms var(--ease-out), filter 450ms var(--ease);
  }
  .moment.is-active { opacity: 1; filter: none; transform: none; }
  .moment.is-past { opacity: 0; filter: blur(6px); transform: translateY(-44px) scale(0.95); }
  .moment time { justify-self: start; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(229, 55, 44, 0.18); color: var(--heart-400); font-size: 12px; }
  .moment__n { display: block; justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-muted); }
  .moment p { grid-column: 1 / -1; font-size: 19px; }

  /* Scroll prompt */
  .day__hint { bottom: 88px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; letter-spacing: 0.1em; }
  .day__hint::after { content: "↓"; display: inline-block; font-size: 14px; animation: hint-bounce 1.2s ease-in-out infinite; }

  .pin.is-static .moment { filter: none; }
}
@keyframes low-pulse { 50% { opacity: 0.4; } }
@keyframes hint-bounce { 50% { transform: translateY(4px); } }

/* ==========================================================================
   Donation pop-up — centred panel on desktop, bottom sheet on phones
   ========================================================================== */
.donate-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; transition: visibility 0s linear 450ms; }
.donate-modal.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.donate-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 19, 15, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 300ms var(--ease); }
.is-open .donate-modal__backdrop { opacity: 1; }
.donate-modal__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(560px, 100%); max-height: min(92vh, 880px);
  background: var(--card); border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); overflow: hidden; outline: none;
  opacity: 0; transform: translateY(28px) scale(0.96);
  transition: opacity 300ms var(--ease), transform 500ms var(--ease-out);
}
.is-open .donate-modal__panel { opacity: 1; transform: none; }
.donate-modal__grab { display: none; }
.donate-modal__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 24px 18px; border-bottom: 1px solid var(--line);
  background: radial-gradient(400px 160px at 0% 0%, rgba(229, 55, 44, 0.08), transparent 70%), var(--card);
}
.donate-modal__head h2 { font-size: var(--fs-24); margin: 10px 0 4px; letter-spacing: -0.02em; }
.donate-modal__head p { font-size: 14px; color: var(--muted); }
.donate-modal__close { flex: none; width: 40px; height: 40px; }
.donate-modal__close svg { width: 18px; height: 18px; }
.donate-modal__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 24px 24px; }
.give-card--modal { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
html.modal-open, html.modal-open body { overflow: hidden; }

/* Tier cards are now buttons that open the pop-up */
button.tier { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; grid-template-columns: auto 1fr auto; transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t); }
button.tier:hover { transform: translateY(-2px); border-color: var(--text); box-shadow: var(--sh-md); }
button.tier:active { transform: scale(0.99); }
.tier__go { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease-out), color var(--t); }
button.tier:hover .tier__go { transform: translateX(3px); color: var(--heart-600); }

@media (max-width: 599px) {
  .donate-modal { place-items: end stretch; padding: 0; }
  .donate-modal__panel { width: 100%; max-height: 92vh; max-height: 92svh; border-radius: 24px 24px 0 0; opacity: 1; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .is-open .donate-modal__panel { transform: none; }
  .donate-modal__grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: #d6d0c1; margin: 10px auto 0; flex: none; touch-action: none; }
  .donate-modal__head { padding: 10px 16px 14px; touch-action: none; }
  .donate-modal__head h2 { font-size: 20px; margin-top: 8px; }
  .donate-modal__head p { font-size: 13px; }
  .donate-modal__body { padding: 16px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) { .donate-modal__panel { transition: none; } }
