/* ==========================================================
   Hope Laugh Play: Editorial Restraint
   One accent (brick coral) · Cream + ink, soft logo washes · Quiet, premium.
   ========================================================== */

:root {
  /* Type palette: strict */
  --ink:        #1A1F2E;
  --ink-soft:   #4A5168;
  --body:       #6B7185;
  --muted:      #9098A8;

  /* Surfaces */
  --cream:      #FAF6EE;
  --cream-deep: #F4EFE3;
  --paper:      #FFFFFF;
  --mist:       #F4F1E9;

  /* Three Faces palette (chosen Dec 2026), from the logo's faces:
     brick coral accent from the peach face, light washes of the
     blue and green faces behind the stats and 100% sections. */
  --accent:       #C44F35;
  --accent-deep:  #A3402A;
  --accent-soft:  rgba(196,79,53,0.08);
  --accent-line:  rgba(196,79,53,0.24);
  --wash-stats:   #EDF5FA;
  --wash-promise: #F1F6E9;

  /* Lines */
  --line:        rgba(26,31,46,0.08);
  --line-strong: rgba(26,31,46,0.14);

  /* Type scale */
  --display:    clamp(3rem, 5.5vw, 4.75rem);
  --h1:         clamp(2.5rem, 4.5vw, 3.75rem);
  --h2:         clamp(1.85rem, 3vw, 2.5rem);
  --h3:         clamp(1.2rem, 1.6vw, 1.4rem);
  --lede:       clamp(1.075rem, 1.3vw, 1.2rem);
  --body-size:  1.0625rem;

  /* Radius: restrained */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 9999px;

  /* Easing */
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --e-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --e-soft:   cubic-bezier(0.32, 0.72, 0, 1);

  /* Shadows: quiet */
  --sh-sm:  0 1px 2px rgba(26,31,46,0.04), 0 4px 12px rgba(26,31,46,0.04);
  --sh-md:  0 2px 6px rgba(26,31,46,0.05), 0 14px 32px rgba(26,31,46,0.07);
  --sh-lg:  0 6px 14px rgba(26,31,46,0.06), 0 28px 64px rgba(26,31,46,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--body);
  background: var(--cream);
  overflow-x: hidden;
  /* Honour iOS safe areas */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: white; }

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap         { width: min(1200px, 92%); margin-inline: auto; }
.wrap-narrow  { width: min(760px, 92%); margin-inline: auto; }
.wrap-wide    { width: min(1360px, 94%); margin-inline: auto; }
.section      { padding: clamp(5rem, 9vw, 8rem) 0; position: relative; }
.section-tight { padding: clamp(3.5rem, 6vw, 5rem) 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform 280ms var(--e-out), background 220ms var(--e-out), color 220ms, border-color 220ms, box-shadow 280ms;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ink {
  background: var(--ink);
  color: white;
}
.btn-ink:hover { background: #000; }
.btn-ghost-dark {
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.btn .arrow { transition: transform 320ms var(--e-spring); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.magnetic { transition: transform 240ms var(--e-out), background 220ms; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 80ms linear;
}

/* ==========================================================
   HEADER: quiet floating nav
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.4rem 0;
  transition: background 280ms var(--e-out), backdrop-filter 280ms, padding 280ms, border-color 280ms;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250,246,238,0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 0.85rem 0;
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { width: 58px; height: 58px; transition: transform 360ms var(--e-out); }
.brand:hover img { transform: scale(1.08); }
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: color 200ms;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-staff {
  margin-left: 0.6rem;
  padding-left: 0.95rem;
  border-left: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.84rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links .nav-staff i { font-size: 0.75em; opacity: 0.75; }
.nav-links .nav-staff:hover { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent);
  color: white;
  font-weight: 600;
  margin-left: 0.6rem;
  padding: 0.62rem 1.15rem;
}
.nav-links .nav-cta:hover { color: white; background: var(--accent-deep); }

.menu-btn { display: none; padding: 0.5rem; font-size: 1.3rem; color: var(--ink); }

/* ---------- Phone menu: calm, big type, one clear Donate ---------- */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--cream);
  display: none;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-overlay.is-open { display: flex; animation: moFade 280ms var(--e-out); }
.mo-top {
  width: 92%; margin: 0 auto;
  padding: 1.4rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex: none;
}
.mobile-overlay .close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1rem;
  transition: border-color 240ms, transform 240ms var(--e-out);
}
.mobile-overlay .close:active { transform: scale(0.94); }
.mo-links {
  width: 92%; margin: clamp(0.75rem, 4vh, 2.25rem) auto 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.mobile-overlay .mo-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px;
  padding: 0.85rem 0.1rem;
  border-bottom: 1px solid var(--line-strong);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 7.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.mobile-overlay .mo-links a i {
  font-size: 0.95rem;
  color: var(--muted);
  transition: transform 320ms var(--e-out), color 320ms;
}
.mobile-overlay .mo-links a:hover i,
.mobile-overlay .mo-links a:active i { color: var(--accent); transform: translateX(4px); }
.mobile-overlay .mo-links a.is-active { color: var(--accent); }
.mobile-overlay .mo-links a.is-active i { color: var(--accent); }
.mo-foot {
  width: 92%;
  margin: auto auto 0;
  padding: 2rem 0 1.25rem;
  display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem;
  flex: none;
}
.mobile-overlay .mo-donate {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 60px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 32px -18px var(--accent);
  transition: background 240ms, transform 240ms var(--e-out);
}
.mobile-overlay .mo-donate i { font-size: 0.9rem; }
.mobile-overlay .mo-donate:active { transform: scale(0.98); background: var(--accent-deep); }
.mobile-overlay .mo-staff {
  align-self: center;
  min-height: 44px; padding: 0 1.25rem;
  display: inline-flex; align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.mo-note {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--body);
}
@media (min-width: 600px) {
  .mo-foot {
    margin: clamp(2rem, 5vh, 3rem) auto 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
  }
  .mo-note { order: 2; margin: 0; text-align: left; }
  .mobile-overlay .mo-donate { order: 1; padding: 0 3rem; }
  .mobile-overlay .mo-staff { order: 3; }
}
.mobile-overlay.is-open .mo-links a,
.mobile-overlay.is-open .mo-foot > * {
  animation: moRise 620ms var(--e-out) both;
  animation-delay: calc(70ms + var(--i, 0) * 45ms);
}
@keyframes moFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes moRise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-overlay.is-open,
  .mobile-overlay.is-open .mo-links a,
  .mobile-overlay.is-open .mo-foot > * { animation: none; }
}

/* ==========================================================
   HERO: looping video, restrained type, asymmetric
   ========================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* iOS Safari: exclude bottom UI bar */
  height: 100dvh; /* dynamic: adjusts as bars hide */
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.04);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1.02) translateX(0); }
  to   { transform: scale(1.08) translateX(-1.5%); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(250,246,238,0.85) 0%,
      rgba(250,246,238,0.55) 28%,
      rgba(250,246,238,0.05) 52%,
      rgba(250,246,238,0) 70%
    ),
    linear-gradient(180deg,
      rgba(250,246,238,0.4) 0%,
      transparent 22%,
      transparent 70%,
      rgba(250,246,238,0.5) 100%
    );
}

.hero-overlay {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
}
.hero-content { max-width: 620px; }

.hero-overlay .eyebrow {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms 200ms var(--e-out), transform 700ms 200ms var(--e-out);
}
.hero.is-loaded .hero-overlay .eyebrow { opacity: 1; transform: translateY(0); }

.hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
/* Mask box: padding gives descenders room; negative margin keeps visual rhythm tight */
.hero-headline .line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.04em 0.18em;
  margin: -0.08em -0.04em -0.18em;
}
.hero-headline .line-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1100ms var(--e-soft);
}
.hero.is-loaded .hero-headline .line:nth-child(1) .line-inner { transition-delay: 280ms; }
.hero.is-loaded .hero-headline .line:nth-child(2) .line-inner { transition-delay: 420ms; }
.hero.is-loaded .hero-headline .line:nth-child(3) .line-inner { transition-delay: 560ms; }
.hero.is-loaded .hero-headline .line-inner { transform: translateY(0); }
.hero-headline em { font-style: normal; color: var(--accent); }

.hero-lede {
  font-size: var(--lede);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms 800ms var(--e-out), transform 800ms 800ms var(--e-out);
}
.hero.is-loaded .hero-lede { opacity: 1; transform: translateY(0); }

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms 1000ms var(--e-out), transform 800ms 1000ms var(--e-out);
}
.hero.is-loaded .hero-actions { opacity: 1; transform: translateY(0); }

/* Bottom hero meta: site-style minimal corner data */
.hero-foot {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 800ms 1300ms var(--e-out);
}
.hero.is-loaded .hero-foot { opacity: 0.9; }
.hero-foot .wrap-wide {
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: min(1360px, 94%);
  margin-inline: auto;
}
.hero-foot .corner-l, .hero-foot .corner-r { display: flex; align-items: center; gap: 0.6rem; }
.hero-foot .corner-r .scroll-line {
  width: 1px;
  height: 28px;
  background: var(--ink-soft);
  animation: scrollPulse 2.4s var(--e-out) infinite;
  transform-origin: top;
  margin-left: 0.6rem;
}

/* ==========================================================
   INTRO: quiet pull-quote
   ========================================================== */
.intro {
  background: var(--cream);
  text-align: center;
}
.intro-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.intro-quote em { font-style: normal; color: var(--accent); }
.intro-rule {
  width: 1px;
  height: 56px;
  background: var(--line-strong);
  margin: 0 auto 2rem;
  transform-origin: top;
  animation: ruleIn 1.4s var(--e-soft) both;
}

/* ==========================================================
   MISSION: editorial split, no badge, single accent rule
   ========================================================== */
.mission { background: var(--paper); }
.mission-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.mission-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}
.mission-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1800ms var(--e-soft);
}
.mission-img.in img { transform: scale(1); }

.mission-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.mission-num::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--accent);
}
.mission-copy h2 {
  font-size: var(--h2);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
}
.mission-copy h2 em { font-style: normal; color: var(--accent); font-weight: 700; }
.mission-copy p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ==========================================================
   STATS: minimal numeric strip
   ========================================================== */
.stats {
  background: var(--wash-stats, var(--cream));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 1.25rem;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.65rem;
}
.stat-num .plus { color: var(--accent); margin-left: 0.05em; }
.stat-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ==========================================================
   PROGRAMS (was bento): editorial 4-col with thin top rules
   ========================================================== */
.programs {
  background: var(--paper);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}
.section-head h2 {
  font-size: var(--h2);
  line-height: 1.1;
  color: var(--ink);
  max-width: 16ch;
}
.section-head .head-aside {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 42ch;
  justify-self: end;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.program {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  transition: border-color 320ms var(--e-out), transform 320ms var(--e-out);
}
.program::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 600ms var(--e-soft);
}
.program:hover::before { width: 100%; }
.program:hover { transform: translateY(-4px); }
.program-no {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.program h3 {
  font-size: var(--h3);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.program p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ==========================================================
   PROMISE / TAX: restrained band
   ========================================================== */
.promise {
  background: var(--cream-deep);
  text-align: center;
}
.promise h2 {
  font-size: var(--h2);
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.promise p {
  font-size: 1.075rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 1rem;
}
.promise .yes {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================
   STORIES (testimonials)
   ========================================================== */
.stories { background: var(--paper); }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.story {
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.story-mark {
  position: absolute;
  top: -0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4rem;
  line-height: 0.7;
  color: var(--accent);
  font-weight: 700;
}
.story blockquote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: 1.75rem;
}
.story cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  font-weight: 600;
}

/* ==========================================================
   TEAM: large portrait grid
   ========================================================== */
.team { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
  margin-top: 4rem;
}
.member {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}
.member-photo {
  position: relative;
  width: 180px;
  height: 220px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--mist);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  display: block;
  padding: 0;
  border: 0;
  transition: box-shadow 320ms var(--e-out);
}
.member-photo:hover { box-shadow: var(--sh-md); }
.member-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Stacked images: real on top, LEGO underneath; crossfade on hover/active */
.member-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 600ms var(--e-out), transform 1000ms var(--e-out), filter 600ms var(--e-out);
  will-change: opacity, transform;
}
.member-photo .real {
  z-index: 2;
  opacity: 1;
  filter: grayscale(0.12);
}
.member-photo .lego {
  z-index: 1;
  opacity: 0;
  transform: scale(1.06);
}

/* A tap or click is the only switch. (A hover rule here kept the LEGO
   showing after a second tap, because phones keep :hover on the last
   thing touched.) */
.member-photo.flip.is-flipped .real {
  opacity: 0;
  filter: grayscale(0);
  transform: scale(1.04);
}
.member-photo.flip.is-flipped .lego {
  opacity: 1;
  transform: scale(1);
}

/* Tiny "LEGO" hint badge: invites the interaction */
.flip-hint {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 0.32rem 0.55rem;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 10px var(--accent-line);
  transition: transform 380ms var(--e-spring), background 280ms, opacity 280ms;
  pointer-events: none;
}
.member-photo.flip.is-flipped .flip-hint {
  background: var(--ink);
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.member-photo.flip.is-flipped .flip-hint::after {
  content: ' ✓';
  letter-spacing: normal;
}

.member-meta { padding-top: 0.5rem; }
.member-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.member-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.member-bio {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ==========================================================
   TEAM TEASER (home page): links to /team
   ========================================================== */
.team-teaser {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.team-teaser-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.team-teaser-h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
}
.team-teaser-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.team-thumbs {
  display: flex;
  gap: 0;
}
.team-thumbs img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  object-fit: cover;
  border: 3px solid var(--cream);
  box-shadow: var(--sh-sm);
  filter: grayscale(0.15);
  transition: transform 360ms var(--e-spring), filter 320ms var(--e-out);
}
.team-thumbs img + img { margin-left: -16px; }
.team-thumbs img:hover { transform: translateY(-4px) scale(1.06); filter: grayscale(0); z-index: 2; position: relative; }

/* ==========================================================
   PAGE HERO (used on /team and other inner pages)
   ========================================================== */
.page-hero {
  background: var(--cream);
  padding: 8.25rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.ph {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ph-copy { display: grid; gap: 1.25rem; align-content: center; }
.ph-copy p { font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); max-width: 40ch; }
.ph-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--sh-md);
}
.ph-photo img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.page-hero-h1 em { font-style: normal; color: var(--accent); }
.page-hero-h1 .line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.04em 0.18em;
  margin: -0.08em -0.04em -0.18em;
}
.page-hero-h1 .line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: pageHeroIn 1100ms var(--e-soft) 200ms forwards;
}
@keyframes pageHeroIn { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .page-hero-h1 .line-inner { transform: none; animation: none; }
}
@media (max-width: 900px) {
  .ph { grid-template-columns: 1fr; }
  .ph-copy p { max-width: 52ch; }
  .ph-photo { aspect-ratio: 3 / 2; }
}

/* Active nav link */
.nav-links a.is-active { color: var(--accent); font-weight: 600; }

/* On the team page, the team grid is the main feature, so loosen spacing */
.page-team .team { background: var(--paper); padding-top: clamp(4rem, 7vw, 6rem); }
.page-team .team-grid { margin-top: 0; }

/* ==========================================================
   CTA: quiet dark band
   ========================================================== */
.cta {
  background: var(--cta-bg, #242A3A);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1200px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 30%, var(--accent-line) 70%, transparent);
}
.cta h2 {
  color: white;
  font-size: var(--h2);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.cta p {
  color: rgba(255,255,255,0.72);
  font-size: 1.075rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2rem;
}
.cta-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.cta .eyebrow { color: rgba(255,255,255,0.55); }
.cta .eyebrow::before { background: var(--accent); }

/* ==========================================================
   FOOTER: minimal
   ========================================================== */
.site-footer {
  background: var(--foot-bg, var(--ink));
  color: rgba(255,255,255,0.65);
  padding: 5rem 0 2rem;
  position: relative;
}
/* Footer: brand row (logo + Donate), two-column links, side-by-side
   contacts. Compact on phones, three columns on wide screens. */
.ft {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.ft-brand { display: grid; gap: 1.1rem; align-content: start; }
.ft-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ft-logo { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; }
.ft-logo img { width: 52px; height: 52px; }
.ft-donate {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.15rem;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  white-space: nowrap;
  transition: background 220ms, transform 220ms var(--e-out);
}
.ft-donate i { font-size: 0.8rem; }
.ft-donate:hover { background: var(--accent-deep); }
.ft-donate:active { transform: scale(0.97); }
.ft-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }
.ft-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.ft-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.ft-links a { display: flex; align-items: center; min-height: 40px; font-size: 0.95rem; transition: color 200ms; }
.ft-links a:hover { color: #fff; }
.ft-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ft-people p { font-size: 0.92rem; line-height: 1.7; }
.ft-people strong { color: white; font-weight: 600; }
.ft-people a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }
.ft-people a:hover { text-decoration-color: currentColor; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-bottom a:hover { color: #fff; }
.fb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.foot-credit { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-credit a { display: inline; min-height: 0; padding-block: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

/* Tablets: brand across the top, links and contacts side by side.
   The footer Donate is hidden here: the donate band sits right above
   it, and two Donate buttons in a row looked doubled. */
@media (max-width: 960px) {
  .ft { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .ft-brand-row { justify-content: flex-start; gap: 2rem; }
  .ft-donate { display: none; }
}
/* Phones: one column, but every block keeps two columns inside.
   Everything lines up on the same left edge, the bottom row too. */
@media (max-width: 600px) {
  .ft { grid-template-columns: 1fr; gap: 2rem; }
  .ft-brand-row { justify-content: space-between; }
  .ft-links a { min-height: 44px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding-top: 1.25rem; }
}

/* ==========================================================
   REVEALS
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--e-out), transform 1000ms var(--e-soft); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 1200ms var(--e-out); }
.reveal-fade.in { opacity: 1; }
.reveal-mask {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1400ms var(--e-soft);
}
.reveal-mask.in { clip-path: inset(0 0 0 0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* ==========================================================
   KEYFRAMES
   ========================================================== */
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ruleIn {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-video video { animation: none; }
  .hero-headline .line-inner { transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE: DESIGNED-FOR-EVERY-DEVICE
   Breakpoints:  1280 (laptop) · 1024 (tablet land) · 768 (tablet port) · 560 (mobile)
   ========================================================== */

/* Laptop ≤ 1280: narrower side gutters, slightly tighter type */
@media (max-width: 1280px) {
  .wrap, .wrap-wide { width: min(1200px, 94%); }
  .hero-headline { font-size: clamp(2.5rem, 5vw, 4.25rem); }
  .programs-grid { gap: 2rem; }
  .section-head { gap: 2rem; }
}

/* Tablet ≤ 1024: major stacking, mobile-friendly grids */
@media (max-width: 1024px) {
  .nav-links a { padding: 0.55rem 0.75rem; font-size: 0.88rem; }
  .nav-links { gap: 0.05rem; }

  .hero-content { max-width: 100%; }
  .hero-overlay { padding: 6rem 0 5rem; }

  .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mission-img { aspect-ratio: 16/10; max-width: 720px; margin-inline: auto; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .stat:nth-child(3)::before { display: none; }

  .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; margin-bottom: 3rem; }
  .section-head .head-aside { justify-self: start; max-width: 60ch; }

  .stories-grid { grid-template-columns: 1fr; gap: 2.5rem; max-width: 720px; }

  .team-grid { grid-template-columns: 1fr; gap: 2.5rem; max-width: 720px; margin-inline: auto; margin-top: 3rem; }
  .team-teaser-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-teaser-aside { align-items: flex-start; }

  .page-hero { padding: 7rem 0 3.5rem; }

}

/* Tablet portrait / large phone ≤ 768 */
@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; padding: 0.65rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  /* Header tighter on mobile */
  .site-header { padding: 0.85rem 0; }
  .mo-top { padding: 0.85rem 0; }
  .site-header.is-scrolled { padding: 0.65rem 0; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 0.95rem; }

  /* Hero */
  .hero { min-height: 560px; }
  .hero-overlay { padding: 5.5rem 0 6rem; align-items: flex-end; }
  .hero-content { max-width: 100%; }
  /* On portrait phones, scrim biases bottom-up so the figure (top) stays
     visible while the text (bottom) reads cleanly on cream. Two stacked
     gradients: a soft cream wash from ~30% down, plus a stronger bottom
     fade where the headline + buttons sit. */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(250,246,238,0)    0%,
        rgba(250,246,238,0)    25%,
        rgba(250,246,238,0.55) 55%,
        rgba(250,246,238,0.92) 80%,
        rgba(250,246,238,0.98) 100%
      );
  }
  /* Bias the framing upward so the bottom half is freer for text */
  .hero-video video { object-position: center 28%; }
  .hero-headline { font-size: clamp(2.4rem, 9vw, 3.25rem); line-height: 1.05; }
  .hero-lede { font-size: 1rem; max-width: 100%; margin-bottom: 1.75rem; }
  .hero-actions { width: 100%; gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; padding: 0.95rem 1.25rem; }
  .hero-foot { bottom: 1.25rem; font-size: 0.65rem; letter-spacing: 0.18em; }
  .hero-foot .corner-r { display: none; } /* no scroll cue on mobile */

  /* Sections */
  .section { padding: 4rem 0; }
  .section-tight { padding: 3rem 0; }

  /* Eyebrow tap-friendly */
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.2em; }

  /* Intro */
  .intro-quote { font-size: 1.3rem; line-height: 1.5; }
  .intro-rule { height: 40px; margin-bottom: 1.5rem; }

  /* Mission */
  .mission-img { aspect-ratio: 4/3; }
  .mission-num { font-size: 0.7rem; }
  .mission-copy h2 { font-size: 1.65rem; margin-bottom: 1.25rem; }
  .mission-copy p { font-size: 1rem; line-height: 1.7; }

  /* Stats: single column on phone */
  .stats-row { grid-template-columns: 1fr; gap: 2rem 0; }
  .stat { padding: 1rem 0; text-align: center; }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--line); padding-top: 1.5rem; }

  /* Programs single column */
  .programs-grid { grid-template-columns: 1fr; gap: 2rem; }
  .program h3 { font-size: 1.2rem; }
  .program p { font-size: 0.95rem; }

  /* Promise */
  .promise h2 { font-size: 1.65rem; }
  .promise p { font-size: 1rem; line-height: 1.7; }

  /* Stories */
  .story { padding-top: 1.5rem; }
  .story blockquote { font-size: 1.05rem; line-height: 1.55; }

  /* Team-teaser */
  .team-teaser { padding: 4rem 0; }
  .team-teaser-h2 { font-size: 1.4rem; line-height: 1.25; }
  .team-thumbs img { width: 52px; height: 52px; }

  /* Page hero (team) */
  .page-hero { padding: 6rem 0 3rem; }
  .page-hero-h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .ph-copy p { font-size: 1.02rem; }

  /* Team grid: vertical stack with photo on top */
  .member { grid-template-columns: 1fr; gap: 1.25rem; max-width: 480px; margin-inline: auto; text-align: left; }
  .member-photo { width: 100%; max-width: 200px; height: 240px; }
  .member-name { font-size: 1.2rem; }
  .member-role { font-size: 0.92rem; }
  .member-bio { font-size: 0.95rem; line-height: 1.7; }

  /* CTA */
  .cta { padding: 4rem 0; }
  .cta h2 { font-size: 1.7rem; }
  .cta p { font-size: 1rem; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }

  /* Footer */
  .site-footer { padding: 3.5rem 0 2rem; padding-bottom: max(2rem, env(safe-area-inset-bottom, 2rem)); }

  /* Mobile nav */
}

/* Small phone ≤ 560 */
@media (max-width: 560px) {
  .wrap, .wrap-wide { width: 92%; }
  .hero-headline { font-size: clamp(2.1rem, 9.5vw, 2.85rem); }
  .intro-quote { font-size: 1.2rem; }
  .mission-copy h2, .promise h2, .cta h2, .team-teaser-h2 { font-size: 1.45rem; }
  .program-no { font-size: 0.7rem; }
  .stat-num { font-size: 1.85rem; }
  .stat-label { font-size: 0.72rem; }
  .nav-links .nav-cta { display: none; } /* CTA inside burger only */
}

/* Landscape mobile: short height: give hero a hard min */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 480px; height: 100svh; }
  .hero-overlay { padding: 4.5rem 0 2.5rem; }
  .hero-headline { font-size: clamp(1.85rem, 6vw, 2.5rem); }
  .hero-foot { display: none; }
}

/* Hi-DPI tweaks (retina + AMOLED) */
@media (min-resolution: 2dppx) {
  body { -webkit-font-smoothing: subpixel-antialiased; }
}
