/* =========================================================
   Youth4People — stylesheet
   Colours taken from the Youth4People brochure:
   terracotta-saffron + deep maroon on warm cream.
   ========================================================= */

:root {
  --brand: #d2553a;
  --brand-dark: #b8432b;
  --maroon: #9b2b2b;
  --ink: #2b2220;
  --muted: #6b5d58;
  --cream: #fffaf6;
  --sand: #f8ece3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(66, 30, 18, 0.10);
  --shadow-lg: 0 18px 44px rgba(66, 30, 18, 0.18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  letter-spacing: .02em;
  border: 2px solid var(--brand);
  transition: background .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(210, 85, 58, .35);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .85);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--maroon);
}
.btn-small { padding: 9px 20px; font-size: 14px; }
.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--maroon);
}
.btn-light:hover {
  background: #ffe3d9;
  border-color: #ffe3d9;
  color: var(--maroon);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 246, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 43, 43, .08);
}
.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { height: 60px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.05); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn) {
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--brand); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle, .nav-burger { display: none; }

.site-nav { margin-left: auto; }
.parent-org {
  margin: 0 0 0 24px;
  padding-left: 20px;
  border-left: 1px solid rgba(155, 43, 43, .2);
  line-height: 1.25;
  white-space: nowrap;
}
.parent-org span {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.parent-org strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--maroon);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 35%;
  animation: heroZoom 18s ease-out both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(60, 18, 12, .88) 0%, rgba(120, 35, 25, .65) 45%, rgba(0, 0, 0, .15) 100%);
}
.hero-content { padding: 80px 0 110px; max-width: 1140px; }
.hero-content > * { animation: fadeUp .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
.hero-content > :nth-child(5) { animation-delay: .48s; }

.hero-motto {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  padding: 4px 16px;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, .08);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  font-weight: 800;
  max-width: 14em;
  letter-spacing: -.01em;
}
.hero h1 span { color: #ffb59e; }
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 36em;
  opacity: .92;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-since {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .75;
  margin: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ---------- Impact strip ---------- */
.impact {
  background: var(--brand);
  color: var(--white);
  padding: 44px 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 6px 10px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .25); }
.stat strong {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}
.stat span { font-size: 14px; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--sand); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p:last-child { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brand);
  margin-bottom: 10px;
}
.eyebrow-light { color: #ffc9b8; }

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: var(--maroon);
}
h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 18px;
  background: var(--brand);
  border-radius: 2px;
}
.section-head h2::after { margin-inline: auto; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.about-text p { color: var(--muted); }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 36px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vm-card h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 22px;
}
.vm-card h3 span { font-weight: 400; color: var(--ink); }
.vm-card h4 {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--brand);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.vm-card p { color: var(--muted); font-size: 15px; }

/* ---------- Clothes drive ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px 22px;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: -16px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  transform: translateY(-50%) rotate(45deg);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 16px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.step:hover .step-num { background: var(--brand); color: var(--white); }
.step h3 { font-size: 1.1rem; color: var(--maroon); }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

.drive-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}
.drive-mosaic figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.drive-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.drive-mosaic figure:hover img { transform: scale(1.06); }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }

.pull-quote {
  margin: 64px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--maroon);
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img { overflow: hidden; min-height: 240px; }
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project-card:hover .project-img img { transform: scale(1.07); }
.project-body { padding: 26px 26px 18px; }
.project-body h3 { font-size: 1.2rem; color: var(--maroon); }
.project-body p { font-size: 14.5px; color: var(--muted); }
.project-body strong { color: var(--brand-dark); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--brand);
  background: var(--sand);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag-soon { background: var(--maroon); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery > input { position: absolute; opacity: 0; pointer-events: none; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.gallery-filters label {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(155, 43, 43, .25);
  background: var(--white);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.gallery-filters label:hover { border-color: var(--brand); color: var(--brand); }

#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(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.gallery > input:focus-visible ~ .gallery-filters { outline: 2px dashed var(--brand); outline-offset: 6px; }

.gallery-grid {
  columns: 4 220px;
  column-gap: 14px;
}
.g-item {
  display: block;
  position: relative;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  break-inside: avoid;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.g-item img {
  width: 100%;
  transition: transform .7s var(--ease), filter .5s var(--ease);
  transform-origin: var(--o, center);
  animation:
    galleryPop .7s var(--ease) var(--d, 0s) backwards,
    galleryBreathe var(--bd, 12s) ease-in-out var(--bdl, 0s) infinite;
}
.g-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 300;
  color: var(--white);
  background: rgba(155, 43, 43, .45);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.g-item:hover img { animation: none; transform: scale(1.08) rotate(.6deg); }

/* "Random" zoom: each photo gets its own speed, start time and zoom direction,
   so different photos zoom in and out at different moments */
.g-item:nth-child(1)  { --bd: 11s; --bdl: -2s;  --o: top left; }
.g-item:nth-child(2)  { --bd: 14s; --bdl: -9s;  --o: center; }
.g-item:nth-child(3)  { --bd: 9s;  --bdl: -5s;  --o: bottom right; }
.g-item:nth-child(4)  { --bd: 13s; --bdl: -1s;  --o: top right; }
.g-item:nth-child(5)  { --bd: 10s; --bdl: -7s;  --o: bottom left; }
.g-item:nth-child(6)  { --bd: 15s; --bdl: -12s; --o: center; }
.g-item:nth-child(7)  { --bd: 12s; --bdl: -4s;  --o: top center; }
.g-item:nth-child(8)  { --bd: 9s;  --bdl: -8s;  --o: bottom right; }
.g-item:nth-child(9)  { --bd: 14s; --bdl: -3s;  --o: center left; }
.g-item:nth-child(10) { --bd: 11s; --bdl: -10s; --o: top left; }
.g-item:nth-child(11) { --bd: 13s; --bdl: -6s;  --o: bottom center; }
.g-item:nth-child(12) { --bd: 10s; --bdl: -1s;  --o: center right; }
.g-item:nth-child(13) { --bd: 15s; --bdl: -8s;  --o: top right; }
.g-item:nth-child(14) { --bd: 12s; --bdl: -11s; --o: bottom left; }
.g-item:nth-child(15) { --bd: 9s;  --bdl: -2s;  --o: center; }
.g-item:nth-child(16) { --bd: 14s; --bdl: -6s;  --o: top center; }
.g-item:nth-child(17) { --bd: 11s; --bdl: -9s;  --o: bottom right; }
.g-item:nth-child(n+18) { --bd: 13s; --bdl: -4s; --o: top left; }
.g-item:hover::after { opacity: 1; }

/* Stagger: each photo starts slightly after the one before */
.g-item:nth-child(2)  { --d: .05s; }  .g-item:nth-child(3)  { --d: .10s; }
.g-item:nth-child(4)  { --d: .15s; }  .g-item:nth-child(5)  { --d: .20s; }
.g-item:nth-child(6)  { --d: .25s; }  .g-item:nth-child(7)  { --d: .30s; }
.g-item:nth-child(8)  { --d: .35s; }  .g-item:nth-child(9)  { --d: .40s; }
.g-item:nth-child(10) { --d: .45s; }  .g-item:nth-child(11) { --d: .50s; }
.g-item:nth-child(12) { --d: .55s; }  .g-item:nth-child(13) { --d: .60s; }
.g-item:nth-child(14) { --d: .65s; }  .g-item:nth-child(15) { --d: .70s; }
.g-item:nth-child(16) { --d: .75s; }  .g-item:nth-child(17) { --d: .80s; }
.g-item:nth-child(n+18) { --d: .85s; }

/* Switching filters swaps the animation name, which replays the pop-in */
#gf-dist:checked  ~ .gallery-grid .g-item img { animation-name: galleryPop2, galleryBreathe; }
#gf-stall:checked ~ .gallery-grid .g-item img { animation-name: galleryPop3, galleryBreathe; }
#gf-other:checked ~ .gallery-grid .g-item img { animation-name: galleryPop4, galleryBreathe; }

/* Rise into view while scrolling (supported browsers) */
@supports (animation-timeline: view()) {
  .g-item {
    animation: galleryRise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

#gf-dist:checked  ~ .gallery-grid .g-item:not(.dist),
#gf-stall:checked ~ .gallery-grid .g-item:not(.stall),
#gf-other:checked ~ .gallery-grid .g-item:not(.other) { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 8, 6, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox:target { opacity: 1; visibility: visible; }
.lightbox img {
  position: relative;
  max-height: 86vh;
  max-width: min(1000px, 100%);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transform: scale(.9);
  filter: blur(8px);
  transition: transform .5s var(--ease), filter .5s var(--ease);
  pointer-events: none;
}
.lightbox:target img { transform: scale(1); filter: none; }
.lb-close { position: absolute; inset: 0; cursor: zoom-out; }
.lb-close::after {
  content: "\00d7";
  position: absolute;
  top: 14px; right: 24px;
  font-size: 44px;
  line-height: 1;
  color: var(--white);
}

/* ---------- Impact Reels ---------- */
.reels {
  position: relative;
  padding: 100px 0;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(210, 85, 58, .35), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(155, 43, 43, .45), transparent 60%),
    #1d1210;
  overflow: hidden;
}
.reels h2 { color: var(--white); }
.reels .section-head p:last-child { color: rgba(255, 255, 255, .72); }

/* Category tabs */
.reel-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.reel-tab {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 9px 12px 9px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.reel-tab:hover { border-color: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.reel-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(210, 85, 58, .4);
}
.reel-tab-count {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .14);
}
.reel-tab.is-active .reel-tab-count { background: rgba(255, 255, 255, .25); }

/* Cards */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  color: var(--white);
  font: inherit;
  text-align: left;
  background: #2a1a17;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  animation: reelIn .6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.reel-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(.9) brightness(.85);
}
.reel-card.no-cover {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 181, 158, .35), transparent 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--maroon) 55%, #3a1512 100%);
}
.reel-card.no-cover img { display: none; }
.reel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 8, 6, .55) 0%, rgba(20, 8, 6, 0) 30%, rgba(20, 8, 6, 0) 50%, rgba(20, 8, 6, .9) 100%);
}
.reel-card:hover,
.reel-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 2px var(--brand);
  outline: none;
}
.reel-card:hover img,
.reel-card:focus-visible img { transform: scale(1.1); filter: saturate(1.05) brightness(.95); }

.reel-badge,
.reel-kind {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 4px 11px;
}
.reel-badge {
  left: 14px;
  max-width: calc(100% - 90px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--brand);
}
.reel-kind {
  right: 14px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Category accent colours */
.reel-support .reel-badge,   .reel-modal-badge.reel-support   { background: #2f6db5; }
.reel-packaging .reel-badge, .reel-modal-badge.reel-packaging { background: #b7791f; }
.reel-media .reel-badge,     .reel-modal-badge.reel-media     { background: #7b3fa0; }
.reel-covid .reel-badge,     .reel-modal-badge.reel-covid     { background: #1f8a70; }
.reel-leader .reel-badge,    .reel-modal-badge.reel-leader    { background: #c2185b; }

.reel-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.reel-play::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  margin: -10px 0 0 -6px;
  border-left: 18px solid var(--brand);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transition: border-color .4s var(--ease);
}
.reel-play::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  animation: reelPulse 2.2s ease-out infinite;
}
.reel-card:hover .reel-play { transform: scale(1.12); background: var(--brand); }
.reel-card:hover .reel-play::before { border-left-color: var(--white); }

.reel-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.reel-handle {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reel-watch {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #ffc9b8;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.reel-card:hover .reel-watch { opacity: 1; transform: none; }

.reel-more-wrap { text-align: center; margin-top: 40px; }
.reel-more { cursor: pointer; font: inherit; font-weight: 600; }
.reel-noscript { text-align: center; }
.reel-noscript a { color: #ffb59e; text-decoration: underline; }

/* Modal player */
.reel-modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.reel-modal::backdrop {
  background: rgba(15, 6, 4, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.reel-modal[open] { animation: reelModalIn .45s var(--ease); }
body:has(.reel-modal[open]) { overflow: hidden; }

.reel-modal-box { position: relative; }
.reel-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 13px;
}
.reel-modal-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
}
.reel-modal-count { opacity: .7; }
.reel-modal-ig {
  margin-left: auto;
  color: #ffc9b8;
  font-weight: 500;
  transition: color .3s var(--ease);
}
.reel-modal-ig:hover { color: var(--white); }
.reel-modal-close {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.reel-modal-close:hover { background: var(--brand); transform: rotate(90deg); }

.reel-frame {
  position: relative;
  width: min(400px, 100vw - 32px);
  height: min(760px, 100svh - 120px);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.reel-frame iframe {
  position: relative;
  width: 100%; height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.reel-frame.is-loaded iframe { opacity: 1; }
.reel-loader {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid var(--sand);
  border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
.reel-frame.is-loaded .reel-loader { display: none; }

.reel-nav {
  position: absolute;
  top: 50%;
  width: 52px; height: 52px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  padding-bottom: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.reel-nav:hover { background: var(--brand); transform: scale(1.08); }
.reel-prev { left: -76px; }
.reel-next { right: -76px; }

/* ---------- Recognition ---------- */
/* Newspaper wall: clippings flow into columns like a pinboard */
.press-wall {
  columns: 3 300px;
  column-gap: 24px;
}
.press-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--white);
  padding: 12px 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* Alternate slight tilts, like clippings pinned to a board */
.press-card:nth-child(odd):hover  { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.press-card:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg);  box-shadow: var(--shadow-lg); }
.press-card img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(43, 34, 32, .08);
}
/* "Read" hint over the clipping on hover */
.press-card::after {
  content: "Read article \2197";
  position: absolute;
  top: 22px; right: 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--maroon);
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.press-card:hover::after { opacity: 1; transform: none; }
.press-tag {
  display: inline-block;
  margin: 14px 4px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--sand);
  padding: 3px 10px;
  border-radius: 999px;
}
.press-cap {
  display: block;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Family ---------- */
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin-inline: auto;
}

/* Upcoming groups: content blurred, "Coming Soon" shown on top */
.family-card.is-soon { position: relative; overflow: hidden; }
.soon-content {
  filter: blur(6px) grayscale(.3);
  opacity: .7;
  user-select: none;
  pointer-events: none;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.family-card.is-soon:hover .soon-content { filter: blur(4px) grayscale(.1); opacity: .8; }
.soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 250, 246, .35);
}
.soon-badge {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--maroon);
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(155, 43, 43, .35);
  animation: soonPulse 2.4s ease-in-out infinite;
}
.soon-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--maroon);
}
@keyframes soonPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.family-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.family-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.family-card img { height: 150px; width: auto; margin: 0 auto 20px; }
.family-card h3 { color: var(--maroon); font-size: 1.3rem; }
.family-card p { color: var(--muted); font-size: 15px; }

/* ---------- Volunteer form ---------- */
.volunteer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.volunteer-text > p { color: var(--muted); }
.volunteer-points li { opacity: 1; color: var(--ink); }
.volunteer-points li::before { border-color: var(--brand); }

.volunteer-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 34px 28px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--brand);
}
.volunteer-form h3 { font-size: 1.4rem; color: var(--maroon); margin-bottom: 20px; }
.volunteer-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.volunteer-form input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1.5px solid rgba(155, 43, 43, .2);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.volunteer-form input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(210, 85, 58, .15);
}
.volunteer-form input:user-invalid { border-color: #c62828; }

.phone-field { display: flex; }
.phone-field span {
  display: grid;
  place-items: center;
  padding: 0 14px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  background: var(--sand);
  border: 1.5px solid rgba(155, 43, 43, .2);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.phone-field input { border-radius: 0 10px 10px 0; }

.wa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  background: #25d366;
  border-color: #25d366;
}
.wa-btn:hover {
  background: #1da851;
  border-color: #1da851;
  box-shadow: 0 10px 22px rgba(37, 211, 102, .35);
}
.wa-btn svg { width: 22px; height: 22px; fill: currentColor; }
.form-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--brand) 100%);
  color: var(--white);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact h2 { color: var(--white); }
.contact h2::after { background: #ffc9b8; }
.contact-text > p { opacity: .92; }

.help-list { list-style: none; padding: 0; margin: 26px 0 34px; }
.help-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  opacity: .95;
}
.help-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px solid #ffc9b8;
}

.contact-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 24px 26px;
  max-width: 440px;
}
.contact-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.contact-name span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .75;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 500;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.contact-link svg {
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--white);
  fill: var(--brand);
  flex-shrink: 0;
}
.contact-link:hover { transform: translateX(6px); color: #ffd9cc; }

.contact-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
  aspect-ratio: 3 / 4;
  max-height: 560px;
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* ---------- Trustees ---------- */
/* Two-row carousel: scrolls on its own (carousel.js) and can be swiped or dragged */
.trustee-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  padding: 12px 0 24px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.trustee-track {
  list-style: none;
  padding: 0 24px;
  margin: 0;
  /* Two rows: cards fill top and bottom, then move to the next column */
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 18px;
  width: max-content;
}
.trustee-carousel::-webkit-scrollbar { display: none; }
.trustee-carousel.is-dragging { cursor: grabbing; user-select: none; }
.trustee-carousel.is-dragging .trustee { pointer-events: none; }
.trustee-carousel img { -webkit-user-drag: none; user-select: none; }
.trustee {
  flex: 0 0 200px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 12px 18px;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.trustee:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.avatar {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.trustee:hover .avatar { background: var(--brand); color: var(--white); transform: scale(1.08); }
/* Photo avatars: ringed circle that turns brand-coloured on hover */
img.avatar {
  width: 84px; height: 84px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--brand);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.trustee:hover img.avatar { box-shadow: 0 0 0 3px var(--maroon); }
.trustee p { margin-bottom: 0; }
.trustee p {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
}
.role {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.trustee-lead { border-top: 4px solid var(--brand); }
.trustee-lead .avatar { background: var(--brand); color: var(--white); }
.trustee-lead .role { color: var(--brand); }

/* ---------- Past Presidents ---------- */
.president-timeline {
  --dot-y: 14px;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
/* The connecting line behind the year dots */
.president-timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--dot-y) + 18.5px);
  left: 10%; right: 10%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(210, 85, 58, .25), var(--brand), var(--maroon));
  transform-origin: left;
}

.president {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.p-year {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--maroon);
  margin-bottom: 14px;
  height: var(--dot-y);
  line-height: var(--dot-y);
  white-space: nowrap;
}
/* Dot on the line */
.p-year::after {
  content: "";
  display: block;
  width: 18px; height: 18px;
  margin: 11px auto 0;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--brand);
  box-shadow: 0 0 0 6px rgba(210, 85, 58, .15);
  position: relative;
  z-index: 1;
}

.p-card {
  margin-top: 34px;
  width: 100%;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 16px 24px;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.president:hover .p-card { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* Photo with a gradient ring that spins on hover */
.p-photo {
  position: relative;
  width: 116px; height: 116px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  isolation: isolate;
}
.p-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), #ffb59e, var(--maroon), var(--brand));
  animation: ringSpin 6s linear infinite;
  animation-play-state: paused;
}
.president:hover .p-photo::before,
.president.is-current .p-photo::before { animation-play-state: running; }
.p-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: var(--sand);
  transition: transform .5s var(--ease);
}
.president:hover .p-photo img { transform: scale(1.05); }

.p-order {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--sand);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.president h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

/* Current president highlighted: raised, larger, glowing, with a ribbon and light sweep */
.president.is-current .p-card {
  position: relative;
  padding-top: 40px;
  margin-top: 56px;
  transform: scale(1.06);
  background:
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%) 0 0 / 250% 100% no-repeat,
    linear-gradient(160deg, var(--brand), var(--maroon));
  box-shadow: 0 18px 40px rgba(155, 43, 43, .35);
  animation: currentGlow 3s ease-in-out infinite, currentSweep 4.5s ease-in-out infinite;
}
.president.is-current:hover .p-card { transform: translateY(-6px) scale(1.06); }
.president.is-current .p-card::before {
  content: "\2605  Leading Now";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maroon);
  background: linear-gradient(135deg, #fff3c4, #ffd27a);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(155, 43, 43, .3);
}
.president.is-current .p-photo { width: 132px; height: 132px; }
.president.is-current .p-year { font-size: 14px; color: var(--brand); }
.president.is-current h3 { color: var(--white); font-size: 1.2rem; }
.president.is-current .p-order { background: rgba(255, 255, 255, .2); color: var(--white); }
.president.is-current .p-year::after { background: var(--brand); box-shadow: 0 0 0 6px rgba(210, 85, 58, .25); animation: dotPulse 2s ease-out infinite; }
.president.is-current .p-photo::before { background: conic-gradient(from 0deg, #fff, #ffb59e, #fff, #ffd9cc, #fff); }

/* Scroll animations: line draws in, cards rise one after another */
@supports (animation-timeline: view()) {
  .president-timeline::before {
    animation: lineDraw linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
  }
  .president {
    animation: fadeUp linear both;
    animation-timeline: view();
  }
  .president:nth-child(1) { animation-range: entry 10% entry 70%; }
  .president:nth-child(2) { animation-range: entry 20% entry 80%; }
  .president:nth-child(3) { animation-range: entry 30% entry 90%; }
  .president:nth-child(4) { animation-range: entry 40% entry 100%; }
  .president:nth-child(5) { animation-range: entry 50% cover 55%; }
}

/* ---------- Founders ---------- */
.founders-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.founders-story > p { color: var(--muted); }

.founders-motto {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--sand);
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
}
.founders-motto span {
  display: block;
  font-style: normal;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 2px;
}

.founders-milestones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.founders-milestones li {
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(155, 43, 43, .12);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.founders-milestones li:hover { transform: translateY(-3px); border-color: var(--brand); }
.founders-milestones strong {
  display: block;
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1.2;
}

.founders-people { display: grid; gap: 20px; }

/* All three founders share the same card: photo left, role and name right */
.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.founder-card:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }
.founder-card h3 { font-size: 1.15rem; color: var(--ink); margin: 0; align-self: start; }

.f-photo {
  grid-row: span 2;
  position: relative;
  width: 96px; height: 96px;
  margin: 0;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--maroon));
  transition: transform .5s var(--ease);
}
.founder-card:hover .f-photo { transform: scale(1.06) rotate(-3deg); }
.f-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: var(--sand);
}
.f-role {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--sand);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  justify-self: start;
  align-self: end;
}

/* ---------- Supporters ---------- */
/* Endless logo strip: glides on its own (carousel.js) and can be swiped or dragged.
   Two identical lists let it wrap around seamlessly. */
.sponsor-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  padding: 18px 0 30px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track {
  display: flex;
  width: max-content;
}
.sponsor-marquee::-webkit-scrollbar { display: none; }
.sponsor-marquee.is-dragging { cursor: grabbing; user-select: none; }
.sponsor-marquee.is-dragging .sponsor-card { pointer-events: none; }
.sponsor-marquee img { -webkit-user-drag: none; user-select: none; }
.sponsor-list {
  list-style: none;
  margin: 0;
  padding: 0 26px 0 0;
  display: flex;
  gap: 26px;
}

/* Each card bobs gently, out of step with its neighbours */
.sponsor { animation: sponsorFloat 5s ease-in-out infinite; }
.sponsor:nth-child(2n) { animation-delay: -1.2s; }
.sponsor:nth-child(3n) { animation-delay: -2.5s; }
.sponsor:nth-child(5n) { animation-delay: -3.7s; }

.sponsor-card {
  position: relative;
  width: 230px;
  padding: 3px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(155, 43, 43, .12);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* Spinning gradient ring, revealed on hover */
.sponsor-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -2;
  background: conic-gradient(from 0deg, var(--brand), #ffd27a, var(--maroon), #ffb59e, var(--brand));
  opacity: 0;
  animation: ringSpin 4s linear infinite;
  transition: opacity .5s var(--ease);
}
/* White inner face of the card */
.sponsor-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 17px;
  background: var(--white);
}
.sponsor-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 46px rgba(155, 43, 43, .22);
}
.sponsor-card:hover::before { opacity: 1; }

.sponsor-logo {
  position: relative;
  height: 150px;
  margin: 14px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}
.sponsor-logo img {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.sponsor-card:hover .sponsor-logo img { transform: scale(1.08); }
/* Light sweep across the logo on hover */
.sponsor-logo::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.sponsor-card:hover .sponsor-logo::after { animation: sponsorShine .9s var(--ease); }

.sponsor-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px; /* room for two lines, so all cards match */
  padding: 10px 14px 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--maroon);
  transition: color .4s var(--ease);
}
.sponsor-card:hover .sponsor-name { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer {
  background: #231a18;
  color: rgba(255, 255, 255, .75);
  padding: 50px 0 40px;
  text-align: center;
}
.footer-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)) drop-shadow(0 0 1px rgba(255, 255, 255, .5));
}
.footer-motto { font-weight: 500; color: var(--white); margin-bottom: 6px; }
.footer-small { font-size: 13px; margin-bottom: 18px; }
.back-top {
  font-size: 14px;
  color: #ffb59e;
  transition: color .3s var(--ease);
}
.back-top:hover { color: var(--white); }
.footer-credit {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: right;
  font-size: 13px;
}
.footer-credit p { margin: 0; }
.footer-credit strong { color: var(--white); font-weight: 600; }
.credit-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px !important;
}
.credit-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffb59e;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.credit-links a:hover { color: var(--white); transform: translateY(-2px); }
.credit-links svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
@keyframes galleryPop {
  from { opacity: 0; transform: scale(.85) rotate(-2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes galleryPop2 {
  from { opacity: 0; transform: scale(.85) rotate(-2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes galleryPop3 {
  from { opacity: 0; transform: scale(.85) rotate(-2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes galleryPop4 {
  from { opacity: 0; transform: scale(.85) rotate(-2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
/* Rest, zoom in, hold, zoom back out */
@keyframes galleryBreathe {
  0%, 55%   { transform: scale(1); }
  72%, 84%  { transform: scale(1.18); }
  100%      { transform: scale(1); }
}
@keyframes galleryRise {
  from { opacity: 0; translate: 0 50px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes reelIn {
  from { opacity: 0; transform: translateY(30px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes reelPulse {
  0%   { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes reelModalIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes lineDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes lineDrawY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes currentGlow {
  0%, 100% { box-shadow: 0 18px 40px rgba(155, 43, 43, .35), 0 0 0 0 rgba(210, 85, 58, .0); }
  50%      { box-shadow: 0 22px 50px rgba(155, 43, 43, .45), 0 0 0 8px rgba(210, 85, 58, .18); }
}
@keyframes currentSweep {
  0%, 30% { background-position: 150% 0, 0 0; }
  80%, 100% { background-position: -50% 0, 0 0; }
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 85, 58, .5); }
  100% { box-shadow: 0 0 0 14px rgba(210, 85, 58, 0); }
}
@keyframes sponsorFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes sponsorShine {
  from { left: -75%; }
  to   { left: 130%; }
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Reveal-on-scroll, pure CSS (supported browsers only; others just show content) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .about-grid,
  .founders-grid,
  .volunteer-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-photo { aspect-ratio: 4 / 3; max-height: 420px; }
}

@media (max-width: 1240px) and (min-width: 1061px) {
  .site-nav { gap: 18px; font-size: 14px; }
  .parent-org { margin-left: 16px; padding-left: 14px; }
}

/* Menu collapses into the burger below 1060px */
@media (max-width: 1060px) {
  .parent-org {
    order: 1;
    margin-left: auto;
    margin-right: 16px;
    padding-left: 0;
    border-left: 0;
    text-align: right;
  }
  .parent-org span { font-size: 9.5px; }
  .parent-org strong { font-size: 13px; }

  .nav-burger {
    order: 2;
    display: block;
    position: relative;
    width: 30px; height: 22px;
    cursor: pointer;
    z-index: 60;
  }
  .nav-burger span,
  .nav-burger::before,
  .nav-burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%; height: 2.5px;
    border-radius: 2px;
    background: var(--maroon);
    transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
  }
  .nav-burger::before { top: 0; }
  .nav-burger span { top: 9.75px; }
  .nav-burger::after { top: 19.5px; }

  .nav-toggle:checked + .nav-burger::before { top: 9.75px; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span { opacity: 0; }
  .nav-toggle:checked + .nav-burger::after { top: 9.75px; transform: rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px 26px;
    background: var(--cream);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path .45s var(--ease), opacity .3s var(--ease);
  }
  .site-nav a:not(.btn) { padding: 10px 0; font-size: 16px; }
  .site-nav .btn { margin-top: 8px; }
  .nav-toggle:checked ~ .site-nav { clip-path: inset(0 0 0 0); opacity: 1; }
}

@media (max-width: 1100px) {
  .reel-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Presidents: vertical timeline on smaller screens */
@media (max-width: 980px) {
  .president-timeline {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 560px;
    margin-inline: auto;
    padding-left: 34px;
  }
  .president-timeline::before {
    top: 8px; bottom: 8px;
    left: 9px; right: auto;
    width: 3px; height: auto;
    background: linear-gradient(180deg, rgba(210, 85, 58, .25), var(--brand), var(--maroon));
    transform-origin: top;
    animation-name: lineDrawY !important;
  }
  .president { position: relative; align-items: stretch; text-align: left; }
  .p-year { height: auto; line-height: 1.4; margin-bottom: 8px; }
  .p-year::after { position: absolute; left: -33px; top: 2px; margin: 0; }
  .p-card {
    margin-top: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    align-items: center;
    padding: 18px 20px;
  }
  .p-photo { grid-row: span 2; width: 84px; height: 84px; margin: 0; }
  .president.is-current .p-card,
  .president.is-current:hover .p-card { transform: none; padding-top: 30px; margin-top: 8px; }
  .president.is-current .p-card::before { left: 20px; transform: none; }
  .president.is-current .p-photo { width: 100px; height: 100px; }
  .p-order { justify-self: start; align-self: end; margin-bottom: 6px; }
  .president h3 { align-self: start; }
}

@media (max-width: 860px) {
  /* Reels: tabs swipe sideways, cards in a 2-column grid that grows downward */
  .reel-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -16px 30px;
    padding: 4px 16px 8px;
    scrollbar-width: none;
  }
  .reel-tabs::-webkit-scrollbar { display: none; }
  .reel-tab { flex-shrink: 0; }
  .reel-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reel-card { border-radius: 14px; }
  .reel-badge, .reel-kind { top: 10px; font-size: 10px; padding: 3px 8px; }
  .reel-badge { left: 10px; max-width: calc(100% - 64px); }
  .reel-kind { right: 10px; }
  .reel-play { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .reel-play::before { margin: -8px 0 0 -5px; border-left-width: 15px; border-top-width: 8px; border-bottom-width: 8px; }
  .reel-meta { left: 10px; right: 10px; bottom: 10px; font-size: 11.5px; }
  .reel-watch { display: none; }
  .reel-more-wrap { margin-top: 20px; }

  .reel-frame { height: min(760px, 100svh - 170px); }
  .reel-nav { top: auto; bottom: -62px; margin: 0; width: 46px; height: 46px; }
  .reel-prev { left: calc(50% - 56px); }
  .reel-next { right: calc(50% - 56px); }
  .reel-modal-ig { font-size: 12px; }

  .impact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat:nth-child(3) { border-left: 0; }

  .vm-grid,
  .family-grid { grid-template-columns: 1fr; }

  .drive-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 200px;
  }
  .m-tall { grid-row: span 2; }
  .m-wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .section, .contact, .reels { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .project-card { grid-template-columns: 1fr; }
  .project-img { min-height: 0; aspect-ratio: 16 / 10; }
  .vm-card { padding: 30px 22px 18px; }
  .hero-content { padding: 60px 0 100px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .stat span { font-size: 13px; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .trustee-track { grid-auto-columns: 160px; gap: 12px; }
  .sponsor-card { width: 180px; }
  .sponsor-logo { height: 116px; margin: 10px 10px 0; }
  .sponsor-list { gap: 16px; padding-right: 16px; }
  .avatar { width: 54px; height: 54px; font-size: 17px; }
  .g-item { margin-bottom: 10px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* No auto-scroll (carousel.js skips it): visitors scroll the logos themselves */
  .sponsor-list[aria-hidden="true"] { display: none; }

}
