/* ============================================
   Beyond the Black Box — Enhanced Styles
   Vibrant · Lively · Mobile-first
   ============================================ */

/* --- 1. Design Tokens --- */
:root {
  --canvas: #fbfdf6;
  --ink: #0a1d08;
  --moss: #e0e5d5;
  --mist: #c5ccb6;
  --earth: #31200b;
  --green: #203b14;
  --amber: #4a3212;
  --dew: #d7e8b5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(10, 29, 8, 0.14);
  --shadow-hover: 0 28px 60px rgba(10, 29, 8, 0.18);
  --font-primary: 'DM Sans', 'akkurat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #050704;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  overflow-x: hidden;
}
.framer-import-page {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--canvas);
  color: var(--ink);
}
.framer-import-page > .page-content { flex: 1 0 auto; }
img { display: block; max-width: 100%; }

/* Background-image divs (silent fallback for missing photos) */
.bg-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

a { color: inherit; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
p, a, span { overflow-wrap: break-word; }

/* --- 3. Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--moss); }
::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* --- 4. Focus & Skip Link --- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--dew);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  transform: translateY(-140%);
  background: var(--ink); color: var(--canvas);
  padding: 10px 14px; border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* --- 5. Header & Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(251, 253, 246, 0.85);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgba(251, 253, 246, 0.96);
  border-bottom-color: rgba(10, 29, 8, 0.1);
  box-shadow: 0 4px 30px rgba(10, 29, 8, 0.06);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800;
  flex: 1 1 auto; min-width: 0;
}
.brand span { min-width: 0; white-space: normal; }
.brand img, .site-footer img { width: 42px; height: 42px; object-fit: contain; }
.brand-svg { width: 42px; height: 42px; flex-shrink: 0; }

.site-nav {
  display: flex; align-items: center; gap: 6px;
}
.site-nav a, .button, .menu-button {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700; font-size: 14px;
  transition: background 0.3s var(--ease-out), color 0.3s, transform 0.2s;
}
.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute; bottom: 6px; left: 18px; right: 18px;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a:hover { background: rgba(10, 29, 8, 0.04); }

.nav-donate, .button.primary {
  background: var(--amber); color: var(--canvas);
  box-shadow: 0 2px 8px rgba(74, 50, 18, 0.25);
}
.nav-donate:hover, .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 50, 18, 0.35);
}
.nav-donate::after { display: none; }

.button.secondary {
  border: 1.5px solid var(--ink); background: transparent;
}
.button.secondary:hover {
  background: var(--ink); color: var(--canvas);
  transform: translateY(-2px);
}
.button.light {
  background: var(--canvas); color: var(--ink);
  box-shadow: 0 2px 8px rgba(10, 29, 8, 0.12);
}
.button.light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 29, 8, 0.18);
}
.button:active { transform: translateY(0) scale(0.97) !important; }

.menu-button {
  display: none;
  border: 1.5px solid var(--ink); background: transparent;
  color: var(--ink); flex: 0 0 auto; cursor: pointer;
  font-family: var(--font-primary);
}

/* --- 6. Mobile Nav Overlay --- */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(10, 29, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-overlay a {
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 800; color: var(--canvas);
  text-decoration: none; padding: 8px 24px;
  border-radius: var(--radius-lg);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), background 0.3s;
}
.mobile-overlay.is-open a {
  opacity: 1; transform: translateY(0);
}
.mobile-overlay a:hover { background: rgba(251, 253, 246, 0.08); }
.mobile-overlay.is-open a:nth-child(1) { transition-delay: 0.06s; }
.mobile-overlay.is-open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-overlay.is-open a:nth-child(3) { transition-delay: 0.14s; }
.mobile-overlay.is-open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-overlay.is-open a:nth-child(5) { transition-delay: 0.22s; }
.mobile-overlay.is-open a:nth-child(6) { transition-delay: 0.26s; }
.mobile-overlay.is-open a:nth-child(7) { transition-delay: 0.30s; }

.mobile-overlay .overlay-close {
  position: absolute; top: 18px; right: clamp(20px, 4vw, 56px);
  font-size: 14px; min-height: 44px; padding: 11px 18px;
  border: 1.5px solid rgba(251, 253, 246, 0.3);
  color: var(--canvas); background: transparent;
  border-radius: 9999px; cursor: pointer;
  font-family: var(--font-primary); font-weight: 700;
  transition: border-color 0.3s, background 0.3s;
}
.mobile-overlay .overlay-close:hover {
  border-color: var(--canvas); background: rgba(251, 253, 246, 0.1);
}

/* --- 7. Hero Sections --- */
.hero, .page-hero, .event-detail-hero, .donate-hero, .watch-hero, .contact-hero { margin: 0; }

.photo-hero {
  min-height: 90vh; position: relative;
  display: grid; align-items: end;
  overflow: hidden;
}
.photo-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-bg, none) var(--hero-pos, center)/cover no-repeat;
  transition: transform 8s linear;
}
.photo-hero:hover::before { transform: scale(1.03); }
.photo-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 29, 8, 0.85) 0%,
    rgba(10, 29, 8, 0.55) 40%,
    rgba(10, 29, 8, 0.15) 100%
  );
}

.hero-copy {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px;
  padding: clamp(90px, 10vw, 150px) clamp(20px, 6vw, 80px);
  color: var(--canvas);
}
.hero-copy h1, .page-hero h1, .event-detail-hero h1,
.donate-hero h1, .watch-hero h1, .contact-hero h1 {
  margin: 0; max-width: 980px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-copy p, .page-hero p, .event-detail-hero p,
.donate-hero p, .watch-hero p, .contact-hero p {
  max-width: 760px; font-size: clamp(18px, 2vw, 24px);
}

.eyebrow {
  margin: 0 0 14px; color: inherit;
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-actions, .cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px;
}

/* Scroll indicator removed */

/* --- 8. Sections & Layout --- */
.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.mission-grid, .split-band, .featured-event, .watch-panel,
.cta-band, .event-detail-hero, .donate-hero, .watch-hero, .contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.mission-grid > *, .split-band > *, .featured-event > *,
.watch-panel > *, .cta-band > *, .event-detail-hero > *,
.donate-hero > *, .watch-hero > *, .contact-hero > * { min-width: 0; }

.mission-grid h2, .split-band h2, .featured-event h2,
.watch-panel h2, .cta-band h2, .section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 800;
}
.mission-grid p, .split-band p, .featured-event p,
.watch-panel p, .cta-band p { font-size: 19px; }

/* Image strip */
.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px; padding: 6px;
  background: var(--earth);
  overflow: hidden;
}
.image-strip .bg-img {
  width: 100%;
  height: 36vw; max-height: 430px; min-height: 230px;
  transition: transform 0.6s var(--ease-out), filter 0.6s;
  filter: brightness(0.9);
}
.image-strip .bg-img:hover {
  transform: scale(1.06);
  filter: brightness(1);
  z-index: 1;
}

/* Split & CTA bands */
.split-band, .cta-band, .watch-panel {
  width: min(1160px, calc(100% - 40px));
  margin: clamp(56px, 8vw, 96px) auto;
  padding: clamp(36px, 5vw, 64px);
  background: var(--moss);
  border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
}

/* Stacked links */
.stacked-links { display: grid; gap: 12px; }
.stacked-links a, .contact-grid a, .involvement-grid a,
.media-cards a, .detail-notes a {
  color: var(--green); font-weight: 700;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: color 0.3s, text-underline-offset 0.3s;
}
.stacked-links a:hover, .contact-grid a:hover,
.involvement-grid a:hover, .media-cards a:hover {
  text-underline-offset: 6px;
}

/* Featured event */
.featured-event { background: var(--canvas); }
.featured-event .bg-img, .event-detail-hero .bg-img, .donate-hero .bg-img,
.watch-hero .bg-img, .contact-hero .bg-img {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.featured-event .bg-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Page hero */
.page-hero {
  padding: clamp(86px, 12vw, 150px) clamp(20px, 7vw, 90px);
}
.page-hero.warm { background: var(--moss); }
.page-hero.dark { background: var(--earth); color: var(--canvas); }

/* --- 9. Grids & Cards --- */
.pillars, .trust-grid, .contact-grid,
.involvement-grid, .media-cards, .detail-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillars article, .trust-grid article, .contact-grid article,
.involvement-grid article, .detail-notes article, .media-cards a {
  min-height: 210px; padding: 24px;
  border: 1px solid rgba(10, 29, 8, 0.08);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.pillars article:hover, .trust-grid article:hover,
.contact-grid article:hover, .involvement-grid article:hover,
.detail-notes article:hover, .media-cards a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 29, 8, 0.15);
}

.pillars span, .event-card span, .media-cards span {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--green);
}

/* Team & event grids */
.team-grid, .event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.person-card, .event-card {
  overflow: hidden;
  border: 1px solid rgba(10, 29, 8, 0.08);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.person-card:hover, .event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.person-card .bg-img, .event-card .bg-img {
  width: 100%; aspect-ratio: 4/3;
  transition: transform 0.6s var(--ease-out);
}
.person-card:hover .bg-img, .event-card:hover .bg-img {
  transform: scale(1.05);
}

.person-card h3, .person-card p,
.event-card span, .event-card h3, .event-card p, .event-card strong {
  margin-left: 20px; margin-right: 20px;
}
.person-card h3, .event-card h3 {
  margin-top: 18px; margin-bottom: 8px;
  font-size: 24px; line-height: 1.12; font-weight: 700;
}
.person-card p, .event-card p { margin-bottom: 20px; }

.event-card a {
  display: block; min-height: 100%;
  color: inherit; text-decoration: none;
}
.event-card a:hover h3, .event-card a:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.event-card strong {
  display: inline-flex; min-height: 44px;
  align-items: center; color: var(--green);
  font-weight: 700;
  transition: transform 0.3s var(--ease-out);
}
.event-card:hover strong { transform: translateX(4px); }

.archive-year { border-bottom: 1px solid rgba(10, 29, 8, 0.08); }
.section-heading { margin-bottom: 28px; }
.section-heading.compact {
  display: flex; align-items: end;
  justify-content: space-between; gap: 20px;
}

/* Detail heroes */
.event-detail-hero, .donate-hero, .watch-hero, .contact-hero {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 0;
}
.approval-note {
  padding: 16px; border-left: 4px solid var(--amber);
  background: var(--moss); font-size: 16px !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.donate-hero { align-items: stretch; }
.donate-hero > div {
  display: grid; align-content: center;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-sm);
  background: var(--earth); color: var(--canvas);
}
.watch-hero, .contact-hero { align-items: center; }

/* --- 10. Footer --- */
.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: clamp(40px, 6vw, 70px) clamp(20px, 6vw, 80px);
  background: var(--ink); color: var(--canvas);
}
.site-footer h2 { margin: 0 0 12px; font-size: 16px; }
.site-footer a {
  display: block; min-height: 32px;
  color: var(--canvas);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: opacity 0.3s, transform 0.3s;
}
.site-footer a:hover { opacity: 0.75; transform: translateX(3px); }
.footer-brand { display: grid; gap: 12px; align-content: start; }

/* --- 11. Image Fallbacks: atmospheric backgrounds when photos do not load --- */
.photo-hero {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(180, 130, 40, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(74, 50, 18, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(32, 59, 20, 0.25) 0%, transparent 50%),
    linear-gradient(175deg, #1a0f04 0%, #31200b 35%, #0a1d08 100%);
}

.event-card .bg-img, .person-card .bg-img {
  background-color: #31200b;
}

.featured-event .bg-img, .event-detail-hero .bg-img,
.donate-hero .bg-img, .watch-hero .bg-img, .contact-hero .bg-img {
  background-color: #31200b;
}

.image-strip .bg-img {
  background-color: #1a0f04;
}

.image-strip {
  background:
    radial-gradient(ellipse at 25% 50%, rgba(74, 50, 18, 0.6), transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(32, 59, 20, 0.4), transparent 50%),
    var(--earth);
}

/* --- 12. Animation Keyframes --- */
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(10px); opacity: 0.3; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroWordReveal {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(74, 50, 18, 0.25); }
  50% { box-shadow: 0 2px 20px rgba(74, 50, 18, 0.4); }
}

/* Hero entrance */
.hero-animate .eyebrow {
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}
.hero-animate h1 {
  animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}
.hero-animate > p {
  animation: fadeInUp 0.7s var(--ease-out) 0.55s both;
}
.hero-animate .hero-actions {
  animation: fadeInUp 0.7s var(--ease-out) 0.7s both;
}
.hero-animate .scroll-indicator {
  animation: fadeIn 1s var(--ease-out) 1.2s both;
}

/* Page hero entrance */
.page-hero .eyebrow { animation: fadeInUp 0.6s var(--ease-out) 0.1s both; }
.page-hero h1 { animation: fadeInUp 0.7s var(--ease-out) 0.25s both; }
.page-hero > p { animation: fadeInUp 0.6s var(--ease-out) 0.4s both; }

/* --- 13. Scroll Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 0.08s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 0.08s);
}
.reveal-left.is-visible {
  opacity: 1; transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 0.08s);
}
.reveal-right.is-visible {
  opacity: 1; transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 0.08s);
}
.reveal-scale.is-visible {
  opacity: 1; transform: scale(1);
}

/* --- 14. Page Transition --- */
.page-content {
  animation: fadeInUp 0.45s var(--ease-out) both;
}
.page-content.is-exiting {
  animation: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

/* --- 15. Responsive: 1024px --- */
@media (max-width: 1024px) {
  .hero-copy h1, .page-hero h1, .event-detail-hero h1,
  .donate-hero h1, .watch-hero h1, .contact-hero h1 {
    font-size: clamp(38px, 7vw, 72px);
  }
  .pillars, .trust-grid, .contact-grid,
  .involvement-grid, .media-cards, .detail-notes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 16. Responsive: 860px --- */
@media (max-width: 860px) {
  .site-header { padding: 14px 16px; gap: 12px; }
  .menu-button { display: inline-flex; }
  .site-nav { display: none; }

  .brand span { max-width: 180px; font-size: 14px; line-height: 1.1; }
  .brand img, .site-footer img { width: 36px; height: 36px; }
  .brand-svg { width: 36px; height: 36px; }

  .hero-copy {
    max-width: 100%; padding: 64px 20px 90px;
  }
  .hero-copy h1, .page-hero h1, .event-detail-hero h1,
  .donate-hero h1, .watch-hero h1, .contact-hero h1 {
    font-size: clamp(34px, 9vw, 52px);
  }
  .hero-copy p, .page-hero p, .event-detail-hero p,
  .donate-hero p, .watch-hero p, .contact-hero p { font-size: 17px; }

  .page-hero { padding: 64px 20px; }

  .section, .split-band, .cta-band, .watch-panel,
  .event-detail-hero, .donate-hero, .watch-hero, .contact-hero {
    width: calc(100% - 40px);
  }

  .mission-grid, .split-band, .featured-event,
  .watch-panel, .cta-band, .event-detail-hero,
  .donate-hero, .watch-hero, .contact-hero, .site-footer {
    grid-template-columns: 1fr;
  }

  .team-grid, .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars, .trust-grid, .contact-grid,
  .involvement-grid, .media-cards, .detail-notes {
    grid-template-columns: 1fr;
  }

  .image-strip {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 4px; padding: 4px;
    scrollbar-width: none;
  }
  .image-strip::-webkit-scrollbar { display: none; }
  .image-strip .bg-img {
    flex: 0 0 78vw; height: 55vw;
    min-height: 220px; max-height: 360px;
    scroll-snap-align: center;
    border-radius: 4px;
  }

  .photo-hero { min-height: 80vh; }
  .scroll-indicator { bottom: 20px; }
}

/* --- 17. Responsive: 640px --- */
@media (max-width: 640px) {
  .team-grid, .event-grid {
    grid-template-columns: 1fr;
  }
  .mission-grid h2, .split-band h2, .featured-event h2,
  .watch-panel h2, .cta-band h2, .section-heading h2 {
    font-size: clamp(26px, 6vw, 36px);
  }
  .hero-actions, .cta-actions {
    flex-direction: column;
  }
  .hero-actions .button, .cta-actions .button {
    width: 100%; justify-content: center;
  }
  .section { padding: clamp(40px, 6vw, 56px) 0; }
  .split-band, .cta-band, .watch-panel {
    margin-top: clamp(40px, 6vw, 56px);
    margin-bottom: clamp(40px, 6vw, 56px);
  }
  .photo-hero { min-height: 75vh; }
}

/* --- 18. Responsive: 480px --- */
@media (max-width: 480px) {
  .hero-copy h1, .page-hero h1, .event-detail-hero h1,
  .donate-hero h1, .watch-hero h1, .contact-hero h1 {
    font-size: 32px; line-height: 1.08;
  }
  .person-card h3, .event-card h3 { font-size: 20px; }
  .image-strip .bg-img { flex: 0 0 85vw; }
  .pillars article, .trust-grid article, .contact-grid article,
  .involvement-grid article, .detail-notes article, .media-cards a {
    min-height: 160px; padding: 20px;
  }
  .site-header {
    padding: 12px 14px;
  }
  .section, .split-band, .cta-band, .watch-panel,
  .event-detail-hero, .donate-hero, .watch-hero, .contact-hero {
    width: calc(100% - 28px);
  }
}

/* --- 19. Responsive: 360px --- */
@media (max-width: 360px) {
  .hero-copy h1, .page-hero h1 { font-size: 28px; }
  .brand span { max-width: 120px; font-size: 13px; }
  .split-band, .cta-band, .watch-panel { padding: 24px 18px; }
}

/* --- 20. Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none;
  }
  .photo-hero > img { transition: none; }
}

/* --- 21. BBB Dark Rebuild Overrides --- */
:root {
  --canvas: #050704;
  --ink: #f4efe4;
  --moss: #142014;
  --mist: #b9c3a8;
  --earth: #211408;
  --green: #b4cc83;
  --amber: #9a6327;
  --dew: #d8f0a5;
  --white: #10150d;
  --surface: #0d120a;
  --surface-2: #161f12;
  --surface-3: #23180d;
  --line: rgba(244, 239, 228, 0.14);
  --line-strong: rgba(216, 240, 165, 0.32);
  --muted: #c1c8b3;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 34px 90px rgba(0, 0, 0, 0.52);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(154, 99, 39, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(180, 204, 131, 0.12), transparent 24rem),
    linear-gradient(180deg, #080b06 0%, var(--canvas) 26rem);
  color: var(--ink);
  letter-spacing: 0;
}

h1, h2, h3, p, a, span, button {
  letter-spacing: 0;
}

::-webkit-scrollbar-track { background: #080b06; }
::-webkit-scrollbar-thumb { background: rgba(185, 195, 168, 0.42); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

.skip-link {
  background: var(--dew);
  color: #071006;
}

.site-header {
  background: rgba(5, 7, 4, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 4, 0.94);
  border-bottom-color: rgba(216, 240, 165, 0.18);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.brand,
.site-nav a,
.menu-button {
  color: var(--ink);
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: invert(1) brightness(1.18) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.site-nav a::after {
  background: var(--dew);
}

.site-nav a:hover {
  background: rgba(244, 239, 228, 0.08);
}

.nav-donate,
.button.primary {
  background: linear-gradient(135deg, #b5722d, #7e4618);
  color: #fff8eb;
  box-shadow: 0 12px 28px rgba(154, 99, 39, 0.28);
}

.nav-donate:hover,
.button.primary:hover {
  box-shadow: 0 18px 36px rgba(154, 99, 39, 0.42);
}

.button.secondary {
  border-color: rgba(244, 239, 228, 0.58);
  color: var(--ink);
  background: rgba(244, 239, 228, 0.03);
}

.button.secondary:hover {
  background: var(--ink);
  color: #071006;
}

.button.light {
  background: rgba(244, 239, 228, 0.94);
  color: #071006;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.menu-button {
  border-color: rgba(244, 239, 228, 0.5);
  background: rgba(244, 239, 228, 0.04);
}

.mobile-overlay {
  background: rgba(5, 7, 4, 0.98);
}

.mobile-overlay a,
.mobile-overlay .overlay-close {
  color: var(--ink);
}

.photo-hero::after {
  background:
    linear-gradient(95deg, rgba(5, 7, 4, 0.76) 0%, rgba(5, 7, 4, 0.42) 48%, rgba(5, 7, 4, 0.12) 100%),
    radial-gradient(circle at 15% 82%, rgba(154, 99, 39, 0.28), transparent 28rem);
}

.photo-hero::before {
  filter: brightness(1.18) saturate(1.12);
}

.photo-hero {
  min-height: clamp(620px, 82vh, 760px);
  align-items: start;
}

.hero-copy {
  color: var(--ink);
  max-width: min(720px, calc(100% - 40px));
  padding-top: clamp(112px, 13vw, 156px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.hero-copy p {
  color: rgba(244, 239, 228, 0.9) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-copy h1,
.page-hero h1,
.event-detail-hero h1,
.donate-hero h1,
.watch-hero h1,
.contact-hero h1,
.mission-grid h2,
.split-band h2,
.featured-event h2,
.watch-panel h2,
.cta-band h2,
.section-heading h2 {
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.event-detail-hero p,
.donate-hero p,
.watch-hero p,
.contact-hero p,
.mission-grid p,
.split-band p,
.featured-event p,
.watch-panel p,
.cta-band p,
.copy-stack p,
.person-bio p,
.info-panel p,
.partner-card p {
  color: var(--muted);
}

.eyebrow,
.pillars span,
.event-card span,
.media-cards span,
.year-heading span {
  color: var(--dew);
}

.mission-grid,
.featured-event,
.editorial-grid,
.event-story,
.related-events,
.partnerships {
  background: transparent;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p,
.person-bio p {
  margin-top: 0;
}

.text-link,
.stacked-links a,
.contact-grid a,
.involvement-grid a,
.media-cards a,
.media-grid a,
.detail-notes a {
  color: var(--dew);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover,
.stacked-links a:hover,
.media-grid a:hover {
  color: var(--ink);
}

.image-strip {
  background:
    linear-gradient(135deg, rgba(154, 99, 39, 0.28), rgba(20, 32, 20, 0.82)),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.image-strip .bg-img,
.featured-event .bg-img,
.event-detail-hero .bg-img,
.donate-hero .bg-img,
.watch-hero .bg-img,
.contact-hero .bg-img,
.person-card .bg-img,
.event-card .bg-img {
  background-color: var(--surface-3);
  filter: saturate(1.08) contrast(1.02) brightness(0.86);
}

.image-strip .bg-img:hover,
.featured-event .bg-img:hover,
.person-card:hover .bg-img,
.event-card:hover .bg-img {
  filter: saturate(1.16) contrast(1.04) brightness(0.98);
}

.split-band,
.cta-band,
.watch-panel {
  background:
    linear-gradient(135deg, rgba(180, 204, 131, 0.12), rgba(154, 99, 39, 0.12)),
    var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero.warm {
  background:
    radial-gradient(circle at 20% 20%, rgba(154, 99, 39, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--surface-3), var(--surface));
}

.page-hero.dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(180, 204, 131, 0.14), transparent 24rem),
    linear-gradient(135deg, #050704, var(--earth));
  color: var(--ink);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 70px);
}

.about-photo-band .bg-img {
  min-height: 520px;
}

.team-grid,
.events-grid,
.partnership-grid,
.donation-panels,
.involvement-grid,
.media-grid {
  display: grid;
  gap: 18px;
}

.team-grid,
.events-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partnership-grid,
.donation-panels,
.involvement-grid,
.media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-card,
.event-card,
.partner-card,
.info-panel,
.pillars article,
.trust-grid article,
.contact-grid article,
.involvement-grid article,
.detail-notes article,
.media-cards a {
  background:
    linear-gradient(180deg, rgba(244, 239, 228, 0.035), rgba(244, 239, 228, 0.012)),
    var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.person-card:hover,
.event-card:hover,
.partner-card:hover,
.info-panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.person-card h3,
.event-card h3,
.partner-card h3,
.info-panel h2 {
  color: var(--ink);
}

.person-card .role {
  color: var(--dew);
  font-weight: 800;
  margin-bottom: 8px;
}

.person-bio {
  padding: 0 20px 24px;
}

.person-bio p {
  margin-left: 0;
  margin-right: 0;
  font-size: 15px;
}

.event-card p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.year-group {
  display: grid;
  gap: 18px;
  padding: 0 0 clamp(44px, 6vw, 76px);
}

.year-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.year-heading span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(216, 240, 165, 0.08);
  font-family: var(--font-mono);
}

.partnerships {
  border-top: 1px solid var(--line);
}

.partner-card,
.info-panel {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.partner-card:hover,
.info-panel:hover {
  transform: translateY(-4px);
}

.event-detail-hero,
.donate-hero,
.contact-hero {
  min-height: calc(100vh - 84px);
}

.watch-hero {
  min-height: calc(100vh - 84px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.watch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg, none) center/cover no-repeat;
}

.watch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(5, 7, 4, 0.9), rgba(5, 7, 4, 0.42)),
    radial-gradient(circle at 78% 20%, rgba(154, 99, 39, 0.25), transparent 22rem);
}

.watch-hero .hero-copy {
  max-width: 850px;
}

.event-detail-hero {
  align-items: stretch;
}

.event-hero-image,
.event-hero-copy,
.donate-copy,
.contact-copy,
.donate-photo,
.contact-photo {
  min-width: 0;
}

.event-hero-image .bg-img {
  min-height: 620px;
  height: 100%;
}

.event-hero-copy,
.donate-copy,
.contact-copy {
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgba(244, 239, 228, 0.04), rgba(244, 239, 228, 0.016)),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.back-link {
  color: var(--dew);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  margin-bottom: 20px;
}

.event-story .copy-stack {
  max-width: 860px;
  margin: 0 auto;
  font-size: 19px;
}

.event-story p {
  color: var(--ink);
}

.donate-hero > div {
  background:
    linear-gradient(180deg, rgba(244, 239, 228, 0.04), rgba(244, 239, 228, 0.015)),
    var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.contact-hero a {
  color: var(--dew);
}

.site-footer {
  background:
    linear-gradient(180deg, #050704, #020302);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--ink);
}

.site-footer p {
  color: var(--muted);
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1 !important;
  transform: none !important;
}

.hero-animate .eyebrow,
.hero-animate h1,
.hero-animate > p,
.hero-animate .hero-actions,
.page-hero .eyebrow,
.page-hero h1,
.page-hero > p {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.button.primary,
.nav-donate {
  color: #fff8eb !important;
}

@media (max-width: 980px) {
  .editorial-grid,
  .mission-grid,
  .split-band,
  .featured-event,
  .cta-band,
  .event-detail-hero,
  .donate-hero,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .events-grid,
  .partnership-grid,
  .donation-panels,
  .involvement-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .event-hero-image .bg-img,
  .about-photo-band .bg-img {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .brand span {
    max-width: 190px;
    line-height: 1.05;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-copy {
    padding: 106px 20px 48px;
  }

  .hero-copy h1,
  .page-hero h1,
  .event-detail-hero h1,
  .donate-hero h1,
  .watch-hero h1,
  .contact-hero h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .image-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-hero-copy,
  .donate-copy,
  .contact-copy,
  .partner-card,
  .info-panel {
    padding: 22px;
  }
}
