﻿/* =========================================================
   Youth4People â€” Premium redesign layer
   Loads AFTER style.css and refines it: palette, typography,
   glass surfaces, cinematic hero, motion and accessibility.
   Roll back: remove the premium.css <link> and site.js <script>
   from index.html (a full backup is in _backup/).
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Warm saffron = hope Â· deep maroon = heritage Â· teal = trust Â· gold = celebration */
  --brand: #e2582f;
  --brand-dark: #c4461f;
  --brand-text: #b3401c;      /* AA-contrast saffron for small text on light backgrounds */
  --maroon: #7e1f23;
  --gold: #f2b33d;
  --teal: #0e7c74;
  --ink: #1c1412;
  --muted: #5e534e;
  --cream: #fbf7f2;
  --sand: #f4ece3;
  --white: #ffffff;
  --line: rgba(28, 20, 18, .08);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(28, 20, 18, .04), 0 12px 32px -12px rgba(66, 30, 18, .18);
  --shadow-lg: 0 2px 6px rgba(28, 20, 18, .05), 0 30px 60px -20px rgba(66, 30, 18, .32);
  --glass: rgba(255, 255, 255, .72);
  --glass-dark: rgba(22, 16, 14, .45);
  --glass-border: rgba(255, 255, 255, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 76px;
}

/* ---------- 2. Base & typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
}
h3, h4 { font-family: var(--font-body); letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; color: var(--ink); }
h2::after {
  width: 56px; height: 4px; margin-top: 20px; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tint {
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(242, 179, 61, .10), transparent 60%),
    radial-gradient(800px 480px at 100% 100%, rgba(226, 88, 47, .08), transparent 60%),
    var(--sand);
}
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head p:last-child { font-size: 1.08rem; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--brand-text);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow-light { color: #ffcdb9; }
strong { font-weight: 600; }

/* ---------- 3. Accessibility helpers ---------- */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }
#main { position: absolute; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* Keep the mobile-menu checkbox reachable by keyboard (visually hidden, not display:none) */
.nav-toggle {
  display: block;
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 4px; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--brand), var(--maroon));
}

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .01em;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  box-shadow: 0 10px 24px -8px rgba(226, 88, 47, .6);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s var(--ease);
}
/* Soft light sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(226, 88, 47, .7); background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .7);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--white); color: var(--maroon); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); }
.btn-light { background: var(--white); color: var(--maroon); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .4); }
.btn-light:hover { background: #fff3ec; color: var(--maroon); }

/* ---------- 5. Header (transparent over hero, glass once scrolled) ---------- */
.site-header {
  background: rgba(251, 247, 242, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
html.js .site-header { position: fixed; left: 0; right: 0; }
html.js .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(10, 6, 5, .55), rgba(10, 6, 5, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(28, 20, 18, .35); }
.nav-wrap { transition: height .35s var(--ease); }
.site-header.is-scrolled .nav-wrap { height: 64px; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .15)); }

.site-nav { font-family: var(--font-body); font-weight: 500; }
.site-nav a.is-active { color: var(--brand-text); }
.site-nav a.is-active::after { transform: scaleX(1); }

@media (min-width: 1061px) {
  html.js .site-header:not(.is-scrolled) .site-nav a { color: rgba(255, 255, 255, .92); }
  html.js .site-header:not(.is-scrolled) .site-nav a:hover,
  html.js .site-header:not(.is-scrolled) .site-nav a.is-active { color: var(--white); }
  html.js .site-header:not(.is-scrolled) .site-nav a::after { background: var(--gold); }
}
html.js .site-header:not(.is-scrolled) .parent-org { border-color: rgba(255, 255, 255, .25); }
html.js .site-header:not(.is-scrolled) .parent-org span { color: rgba(255, 255, 255, .7); }
html.js .site-header:not(.is-scrolled) .parent-org strong { color: var(--white); }
html.js .site-header:not(.is-scrolled) .nav-toggle:not(:checked) + .nav-burger span,
html.js .site-header:not(.is-scrolled) .nav-toggle:not(:checked) + .nav-burger::before,
html.js .site-header:not(.is-scrolled) .nav-toggle:not(:checked) + .nav-burger::after { background: var(--white); }

/* ---------- 6. Cinematic hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  padding-bottom: clamp(140px, 18vh, 200px);
}
.hero::before {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 8, 6, .35) 0%, rgba(14, 8, 6, .1) 35%, rgba(14, 8, 6, .75) 100%),
    linear-gradient(95deg, rgba(40, 10, 8, .85) 0%, rgba(80, 22, 16, .45) 50%, rgba(0, 0, 0, 0) 100%);
}
.hero-bg { display: none; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.15);
  animation: heroReveal 2.4s var(--ease-out) backwards; /* hands over to parallax when done */
  will-change: transform;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 60vmax; height: 60vmax;
  left: -20vmax; bottom: -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 179, 61, .28), transparent 65%);
  filter: blur(20px);
  animation: glowDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-content { padding: calc(var(--header-h) + 40px) 0 0; }
.hero-motto {
  font-size: 17px;
  font-weight: 600;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-left: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(2.8rem, 7.4vw, 6.2rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 11.5em;
  margin-bottom: .4em;
  text-wrap: balance;
}
.hero h1 span {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #ffd6a0 0%, #ffb38a 45%, #ff8f6b 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 34em; opacity: .9; }
.hero-since { letter-spacing: .24em; opacity: .7; }
.scroll-cue { bottom: 112px; border-color: rgba(255, 255, 255, .55); }

/* ---------- 7. Impact counters (glass cards overlapping the hero) ---------- */
.impact {
  position: relative;
  z-index: 3;
  background: transparent;
  padding: 0;
  margin-top: -88px;
  color: var(--ink);
}
.impact-grid { gap: 16px; }
.stat {
  padding: 26px 22px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.stat + .stat { border-left: 1px solid var(--glass-border); }
.stat:hover { transform: translateY(-6px); }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--maroon), var(--brand));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stat span { font-size: 14px; color: var(--muted); opacity: 1; line-height: 1.5; display: block; }
/* The counter sits inside <strong>: keep the big size and let the gradient show through */
.stat strong .counter { display: inline; font-size: inherit; line-height: inherit; color: transparent; white-space: nowrap; }

/* ---------- 8. Cards: shared modern surface ---------- */
.vm-card, .step, .project-card, .family-card, .press-card, .founder-card,
.p-card, .trustee, .volunteer-form, .story {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.vm-card:hover, .step:hover, .project-card:hover, .family-card:hover, .founder-card:hover,
.president:hover .p-card, .trustee:hover {
  box-shadow: var(--shadow-lg);
}

/* About */
.about-text p { font-size: 1.04rem; }
.about-photo {
  position: relative;
  border-radius: 28px;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-lg);
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  pointer-events: none;
}
.about-photo img { transition: transform 1.4s var(--ease-out); }
.about-photo:hover img { transform: scale(1.05); }
.vm-card { border-top: 0; position: relative; overflow: hidden; }
.vm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
.vm-card h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.vm-card h3 span { color: var(--muted); font-style: italic; }
.vm-card h4 { background: rgba(226, 88, 47, .1); color: var(--brand-text); border-radius: 999px; padding: 6px 14px; }

/* Clothes drive steps */
.step { background: var(--white); }
.step-num { font-family: var(--font-display); font-size: 1.1rem; background: rgba(226, 88, 47, .1); color: var(--brand-text); }
.step:hover .step-num { background: linear-gradient(135deg, var(--brand), var(--maroon)); }
.step h3 { color: var(--ink); }
.drive-mosaic figure { border-radius: var(--radius); }
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--maroon);
}

/* Programs */
.project-card { overflow: hidden; background: var(--white); }
.project-body h3 { color: var(--ink); font-size: 1.25rem; }
.project-body strong { color: var(--brand-text); }
.tag { background: rgba(226, 88, 47, .1); color: var(--brand-text); }

/* ---------- 9. Success stories ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.story {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: #2a1a17;
  isolation: isolate;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.story-feature { grid-row: span 2; min-height: 560px; }
.story-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.story-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 8, 6, 0) 25%, rgba(14, 8, 6, .55) 55%, rgba(14, 8, 6, .92) 100%);
}
.story:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.story:hover .story-media img { transform: scale(1.12); }
.story-body { padding: clamp(22px, 3vw, 34px); }
.story-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 14px;
}
.story h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.story-feature h3 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.story p { color: rgba(255, 255, 255, .86); margin-bottom: 14px; }
.story p strong { color: #ffd6a0; }
.story-source { font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* ---------- 10. Gallery ---------- */
.gallery-filters label {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--line);
}
#gf-all:checked   ~ .gallery-filters label[for="gf-all"],
#gf-dist:checked  ~ .gallery-filters label[for="gf-dist"],
#gf-stall:checked ~ .gallery-filters label[for="gf-stall"],
#gf-other:checked ~ .gallery-filters label[for="gf-other"] {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 22px -10px rgba(28, 20, 18, .6);
}
.g-item { border-radius: 16px; }
.g-item::after { background: linear-gradient(180deg, rgba(126, 31, 35, .1), rgba(126, 31, 35, .6)); }

/* ---------- 11. Memories (reels) ---------- */
.reels {
  background:
    radial-gradient(1000px 520px at 15% 0%, rgba(226, 88, 47, .28), transparent 60%),
    radial-gradient(900px 520px at 100% 100%, rgba(126, 31, 35, .5), transparent 60%),
    radial-gradient(600px 400px at 60% 40%, rgba(242, 179, 61, .08), transparent 70%),
    #140d0b;
}
.reels h2 { color: var(--white); }
.reel-tab { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.reel-tab.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.reel-card { border-radius: var(--radius); }

/* ---------- 12. Press wall ---------- */
.press-card { background: var(--white); }
.press-tag { background: rgba(226, 88, 47, .1); color: var(--brand-text); }
.press-cap { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }

/* ---------- 13. Donate band (parallax) ---------- */
.donate-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(110px, 16vw, 200px) 0;
  color: var(--white);
  text-align: center;
}
.donate-media { position: absolute; inset: 0; z-index: -2; }
.donate-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.donate-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 50% 50%, rgba(126, 31, 35, .55), transparent 70%),
    linear-gradient(180deg, rgba(14, 8, 6, .82), rgba(40, 12, 10, .78));
}
.donate-inner { max-width: 820px; }
.donate-band h2 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.6rem); text-wrap: balance; }
.donate-band h2::after { margin-inline: auto; }
.donate-band p { font-size: 1.12rem; color: rgba(255, 255, 255, .85); max-width: 36em; margin-inline: auto; }
.donate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ---------- 14. Our Seva ---------- */
.family-card h3 { color: var(--ink); }
.soon-badge { background: linear-gradient(135deg, var(--maroon), var(--brand-dark)); }

/* ---------- 15. Volunteer ---------- */
.volunteer { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.volunteer-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: var(--shadow-lg);
}
.volunteer-form h3 { font-family: var(--font-display); color: var(--ink); font-size: 1.7rem; }
.volunteer-form input { border-radius: 12px; background: var(--white); border-color: var(--line); }
.phone-field span { background: var(--sand); border-color: var(--line); }
.volunteer-points li::before { border-color: var(--teal); }

/* ---------- 16. Contact ---------- */
.contact {
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(242, 179, 61, .25), transparent 60%),
    linear-gradient(135deg, #5a1418 0%, var(--maroon) 40%, var(--brand-dark) 100%);
}
.contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.contact h2::after { background: linear-gradient(90deg, var(--gold), #ffd6a0); }
.contact-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.contact-photo { border-radius: 28px; }

/* ---------- 17. Comrades / presidents / founders ---------- */
.trustee { background: var(--white); }
/* Profession under each comrade's name (long titles are trimmed to 3 lines; full text on hover) */
.comrade-role {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.p-card { background: var(--white); }
.president h3 { font-family: var(--font-body); }
.president.is-current .p-card { background: linear-gradient(160deg, var(--brand), var(--maroon)); border-color: transparent; }
.founder-card { border-left: 1px solid var(--line); position: relative; overflow: hidden; background: var(--white); }
.founder-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--brand), var(--maroon));
}
.founders-motto { border-radius: 0 var(--radius) var(--radius) 0; }
.founders-motto span { font-family: var(--font-display); }

/* ---------- 18. Supporters: two rows moving in opposite directions ---------- */
/* Space from the screen edges; the rows fade out softly inside it */
.sponsor-rows {
  display: grid;
  gap: 6px;
  padding-inline: clamp(16px, 5vw, 72px);
}
.sponsor-marquee { padding: 14px 0 18px; }
.sponsor-list { gap: 18px; padding-right: 18px; }
.sponsor-card { width: 150px; border-radius: 16px; }
.sponsor-card::after { border-radius: 13px; }
.sponsor-logo { height: 84px; margin: 10px 10px 0; border-radius: 10px; }
.sponsor-name {
  min-height: 44px;
  padding: 6px 10px 10px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--maroon);
}
.sponsor-card:hover .sponsor-name { color: var(--brand-text); }

/* ---------- 18b. Covered By Media (same moving rows, round logos) ---------- */
.media-section {
  background:
    radial-gradient(800px 420px at 100% 0%, rgba(14, 124, 116, .07), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(242, 179, 61, .08), transparent 60%),
    var(--cream);
}
.media-card .sponsor-logo { border-radius: 50%; width: 84px; margin: 12px auto 0; }
.media-card .sponsor-logo img { border-radius: 50%; box-shadow: 0 4px 12px rgba(28, 20, 18, .12); }

/* ---------- 19. Floating CTA dock ---------- */
.cta-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(22, 16, 14, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.cta-dock.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cta-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.cta-dock-btn svg { width: 16px; height: 16px; fill: currentColor; }
.cta-donate { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.cta-donate:hover { transform: scale(1.04); }
.cta-volunteer:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 20. Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(226, 88, 47, .16), transparent 70%),
    #120c0b;
  padding-bottom: 96px; /* room for the CTA dock */
}
.footer-motto { font-family: var(--font-display); font-size: 1.3rem; }

/* ---------- 21. Scroll-reveal system (replaces the CSS-only version) ---------- */
html.js .reveal,
html.js .president,
html.js .trustee-carousel,
html.js .sponsor-rows {
  /* Uses the separate `translate` property so cards keep their own hover `transform` */
  animation: none;
  opacity: 0;
  translate: 0 36px;
  transition: opacity .9s var(--ease-out) var(--reveal-delay, 0ms),
              translate 1.1s var(--ease-out) var(--reveal-delay, 0ms),
              transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
html.js .reveal.is-visible,
html.js .president.is-visible,
html.js .trustee-carousel.is-visible,
html.js .sponsor-rows.is-visible { opacity: 1; translate: none; }
html.js .g-item { animation: none; }
html.js .president-timeline::before {
  animation: none !important;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) .2s;
}
html.js .president-timeline.is-visible::before { transform: scaleX(1); }
/* Images inside revealed cards settle from a gentle zoom */
html.js .reveal.project-card img,
html.js figure.reveal img { scale: 1.1; transition: scale 1.6s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal.is-visible.project-card img,
html.js figure.reveal.is-visible img { scale: 1; }

/* ---------- 22. Keyframes ---------- */
@keyframes heroReveal {
  from { opacity: 0; transform: scale(1.3); filter: saturate(.6) brightness(.7); }
  to   { opacity: 1; transform: scale(1.15); filter: none; }
}
@keyframes glowDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(12vmax, -6vmax); }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1060px) {
  html.js .site-header:not(.is-scrolled) .nav-toggle:checked ~ .site-nav a { color: var(--ink); }
}
@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-feature { grid-column: span 2; grid-row: auto; min-height: 460px; }
  html.js .president-timeline::before { transform: scaleY(0); transform-origin: top; }
  html.js .president-timeline.is-visible::before { transform: scaleY(1); }
}
@media (max-width: 860px) {
  .impact { margin-top: -70px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat + .stat { border-left: 1px solid var(--glass-border); }
  .hero { padding-bottom: 120px; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-feature { grid-column: auto; min-height: 420px; }
  .story { min-height: 340px; }
  .cta-dock { bottom: 12px; width: calc(100% - 24px); }
  .sponsor-card { width: 122px; }
  .sponsor-logo { height: 66px; margin: 8px 8px 0; }
  .sponsor-name { min-height: 40px; font-size: 10.5px; padding: 5px 8px 8px; }
  .sponsor-list { gap: 12px; padding-right: 12px; }
  .media-card .sponsor-logo { width: 66px; margin-top: 10px; }
  .cta-dock-btn { flex: 1; justify-content: center; padding: 13px 12px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
}

/* ---------- 24. Reduced motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .president, html.js .trustee-carousel, html.js .sponsor-rows { opacity: 1 !important; translate: none !important; }
  html.js .reveal img { scale: 1 !important; }
  html.js .president-timeline::before { transform: none !important; }
  .hero-media img, .donate-media img, .story-media img { transform: none !important; }
  .cta-dock { transition: none; }
}
@media print {
  .site-header, .cta-dock, .scroll-progress, .reels, .lightboxes { display: none !important; }
  html.js .reveal, html.js .president { opacity: 1 !important; translate: none !important; }
}
