/* ============================================================
   LIMITLESS SOUND FOUNDATION — MAIN STYLESHEET
   Studio Dark • Electric Cyan + Orange • Plus Jakarta Sans + Inter
   ============================================================ */

/* ─── GOOGLE FONTS (loaded in HTML <head>) ─── */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; }

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --bg:          #0D0D0F;
  --surface:     #141416;
  --surface-alt: #0F1621;
  --accent:      #00D4FF;
  --accent-rgb:  0, 212, 255;
  --cta:         #FF6B35;
  --cta-rgb:     255, 107, 53;
  --text:        #FFFFFF;
  --text-muted:  #8A9BB0;
  --border:      #222232;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;

  --nav-h: 80px;
  --max-w: 1400px;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --glow-accent: 0 0 24px rgba(var(--accent-rgb), 0.35);
  --glow-cta:    0 0 24px rgba(var(--cta-rgb), 0.4);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.3s;
  --dur-slow: 0.6s;

  --section-pad: clamp(3.5rem, 6vw, 6rem);
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NOISE GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── SELECTION ─── */
::selection { background: rgba(var(--accent-rgb), 0.25); color: var(--text); }

/* ─── SKIP LINK (keyboard / screen-reader) ─── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ─── GLOBAL FOCUS RINGS ─── */
/* Remove the browser default and replace with a branded ring */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Inputs already show border on focus — don't double-ring them */
input:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* ─── GRADIENT TEXT UTILITIES ─── */
.text-gradient-cyan {
  background: linear-gradient(135deg, #00D4FF 0%, rgba(0,212,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(0,212,255,0.4));
}
.text-gradient-warm {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* ─── REVEAL LINE SPLIT (h2 clip animation) ─── */
.reveal-line-wrap {
  display: block;
  overflow: hidden;
  /* tiny breathing room so descenders don't get clipped */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.reveal-line-inner { display: block; }

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
}
.scroll-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cta) 100%);
  transition: width 0.08s linear;
}

/* ─── CURSOR GLOW (desktop only) ─── */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.055) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease, left 0.05s linear, top 0.05s linear;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ─── KEYFRAMES ─── */
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-accent), inset 0 1px 0 rgba(0,212,255,0.15); }
  50%       { box-shadow: 0 0 44px rgba(0,212,255,0.5), inset 0 1px 0 rgba(0,212,255,0.28); }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.04em; }
h3 { font-size: clamp(1.5rem, 2.75vw, 2rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { color: rgba(255,255,255,0.72); line-height: 1.8; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.accent { color: var(--accent); }
.cta-text { color: var(--cta); }
em { font-style: normal; color: var(--accent); }

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--surface-alt); }
.section--full { padding: 0; }

/* ─── SECTION GLOW SEPARATORS ─── */
/* Radial bloom at the top edge of alternating key sections */
#mission::before, #projects::before, #donate::before, #videos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.45) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
#mission::after, #projects::after, #donate::after, #videos::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 200px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
#news::before, #partners::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,107,53,0.35) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
#news::after, #partners::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 180px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(255,107,53,0.05) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ─── GRID UTILITIES ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── SECTION PHANTOM NUMBER ─── */
.phantom-num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  color: rgba(255,255,255,0.025);
  position: absolute;
  top: -1rem;
  left: -1rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur) var(--ease);
}
.btn:hover::after { background: rgba(255,255,255,0.05); }

.btn--primary {
  background: var(--cta);
  color: #0D0D0F; /* dark on orange → 6.8:1 contrast, passes WCAG AAA */
  box-shadow: 0 2px 12px rgba(var(--cta-rgb), 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--cta-rgb), 0.4);
}

.btn--accent {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow-accent);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}
.btn--outline-accent:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ─── TAG / BADGE ─── */
.tag {
  display: inline-block;
  font-size: max(0.6875rem, 11px); /* minimum 11px even on large-scale displays */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.tag--orange {
  background: rgba(var(--cta-rgb), 0.12);
  color: var(--cta);
  border-color: rgba(var(--cta-rgb), 0.2);
}

/* ─── DIVIDER ─── */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 1.5rem 0;
}

/* ─── ████████████████ NAV ████████████████ ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(13, 13, 15, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  line-height: 1;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: #fff;
  background: var(--cta);
}
.nav__actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Mobile menu button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  /* WCAG 2.5.8 minimum 44×44px touch target */
  min-width: 44px;
  min-height: 44px;
  padding: 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 15, 0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem 1rem;
  transition: color var(--dur) var(--ease);
}
.nav__mobile-link:hover { color: var(--accent); }

/* ─── ████████████████ HERO ████████████████ ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Video background */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fallback gradient when no video */
.hero__video-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 80% at 20% 50%, rgba(0,212,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 30%, rgba(255,107,53,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 60% at 50% 80%, rgba(123,45,139,0.12) 0%, transparent 60%),
              var(--bg);
  animation: heroShift 12s ease-in-out infinite alternate;
}
@keyframes heroShift {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13,13,15,0.55) 0%,
    rgba(13,13,15,0.35) 40%,
    rgba(13,13,15,0.75) 85%,
    rgba(13,13,15,1)    100%
  );
}

/* Gradient blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 2;
  pointer-events: none;
}
.hero__blob--cyan {
  width: clamp(400px, 60vw, 800px);
  height: clamp(400px, 60vw, 800px);
  background: radial-gradient(circle, rgba(0,212,255,0.18), transparent 70%);
  top: -10%;
  left: -10%;
}
.hero__blob--orange {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, rgba(255,107,53,0.15), transparent 70%);
  bottom: 10%;
  right: -5%;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 3;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero__label { margin-bottom: 1.75rem; font-size: clamp(0.65rem, 2.5vw, 1.375rem); letter-spacing: 0.08em; }
.hero__headline {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  max-width: 14ch;
  text-shadow:
    0 1px 0   rgba(0,0,0,0.65),
    0 2px 6px rgba(0,0,0,0.85),
    0 6px 20px rgba(0,0,0,0.45);
}
.hero__headline em {
  display: block;
  background: linear-gradient(135deg, var(--cta) 0%, rgba(255,107,53,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Override the parent text-shadow (which made letters look dark) with a
     drop-shadow filter that targets the rendered orange pixels directly */
  text-shadow: none;
  filter:
    drop-shadow(0 0 3px rgba(0,0,0,1))
    drop-shadow(0 2px 8px rgba(0,0,0,0.8));
  /* Extra room for descenders (y in Every, Body) */
  padding-bottom: 0.08em;
}
.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  display: inline-block;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.125rem 1.5rem;
}
.hero__ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Press strip */
.hero__press {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__press-label {
  font-family: var(--font-mono);
  font-size: 0.75rem; /* bumped from 0.65rem for readability */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}
.hero__press-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__press-logo {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.hero__press-logo:hover { color: rgba(255,255,255,0.7); }
.hero__press-sep { color: rgba(255,255,255,0.12); }

/* Sound wave decoration */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 0 2px;
  height: 60px;
  overflow: hidden;
}
.hero__wave-bar {
  flex-shrink: 0;
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(0,212,255,0));
  animation: waveBar 1.8s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.2); }
  50%       { transform: scaleY(1); }
}

/* ─── ████████████████ MISSION ████████████████ ─── */
.mission { position: relative; }
.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.mission__stat-big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  position: relative;
}
.mission__stat-big span { color: var(--accent); }
.mission__stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.mission__body h2 { margin-bottom: 1.5rem; }
.mission__body p { margin-bottom: 1.25rem; font-size: 1.0625rem; }
.mission__body p:last-of-type { margin-bottom: 2rem; }
.mission__stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.mission__mini-stat { }
.mission__mini-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cta);
  line-height: 1;
}
.mission__mini-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── ████████████████ COUNTER STRIP ████████████████ ─── */
.counter {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.counter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04) 0%, rgba(var(--cta-rgb), 0.04) 100%);
}
.counter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.counter__item { padding: 1rem; }
.counter__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color var(--dur) var(--ease);
}
.counter__num--accent { color: var(--accent); }
.counter__num--cta    { color: var(--cta); }
.counter__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  line-height: 1.5;
}
.counter__divider {
  width: 1px;
  background: var(--border);
  margin: auto;
  display: none;
}

/* ─── ████████████████ PROGRAMS ████████████████ ─── */
.programs { position: relative; }
.programs__header {
  max-width: 56ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}
.programs__header h2 { margin-bottom: 1rem; }
.programs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.program-card {
  background: rgba(20, 20, 22, 0.8);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.program-card__photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.program-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
  filter: brightness(0.85) saturate(0.7);
}
.program-card:hover .program-card__photo img { transform: scale(1.04); filter: brightness(0.95) saturate(0.85); }
.program-card__content {
  padding: 2.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.program-card__content { position: relative; }
.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--glow-accent), var(--shadow-card);
}
.program-card:hover .program-card__content::before { opacity: 1; }
.program-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.program-card:hover .program-card__icon {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.program-card__icon svg { color: var(--accent); }
.program-card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}
.program-card h3 { margin-bottom: 0.875rem; }
.program-card p { font-size: 0.9375rem; line-height: 1.75; }

/* ─── ████████████████ IMPACT STORIES ████████████████ ─── */
.stories { background: var(--surface); }
.stories__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.stories__header h2 { max-width: 20ch; }
.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.story-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  position: relative;
}
.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-card), 0 0 40px rgba(var(--accent-rgb), 0.08);
}
.story-card--featured {
  grid-column: span 2;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}
.story-card__media {
  background: var(--surface-alt);
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.story-card--featured .story-card__media { aspect-ratio: unset; min-height: 100%; }
.story-card__media-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1621 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-card__media-icon {
  opacity: 0.15;
  transition: opacity var(--dur) var(--ease);
}
.story-card:hover .story-card__media-icon { opacity: 0.25; }
.story-card__accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cta));
}
.story-card__body { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.story-card__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.story-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.story-card__quote {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(var(--accent-rgb), 0.4);
  padding-left: 1rem;
  margin: 0;
}
.story-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--dur) var(--ease);
}
.story-card__link:hover { gap: 0.875rem; }

/* ─── ████████████████ PARTNER MARQUEE ████████████████ ─── */
.partners { overflow: hidden; }
.partners__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.partners__header h2 { margin-bottom: 0.75rem; }
.partners__header p { max-width: 48ch; margin: 0 auto; }
.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
}
.marquee-track--fwd { animation: marquee-fwd 40s linear infinite; }
.marquee-track--rev { animation: marquee-rev 45s linear infinite; }
@keyframes marquee-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.marquee-item:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

/* ─── ████████████████ PODCAST ████████████████ ─── */
.podcast-section { background: var(--surface-alt); }
.podcast-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.podcast-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--accent-rgb), 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.podcast-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--cta-rgb), 0.1);
  border: 1px solid rgba(var(--cta-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.podcast-card__icon svg { color: var(--cta); }
.podcast-card h2 { margin-bottom: 0.5rem; }
.podcast-card__subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.podcast-card p { max-width: 44ch; margin: 0 auto 2.5rem; }
.podcast-card__form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.podcast-card__input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  color: var(--text);
  font-size: 0.9375rem;
  outline: none; /* border-color handles the focus indicator below */
  transition: border-color var(--dur) var(--ease);
}
.podcast-card__input::placeholder { color: var(--text-muted); }
.podcast-card__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

/* ─── ████████████████ TEAM ████████████████ ─── */
.team .section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.team__grid--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.team__grid.team__grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}
.team__grid.team__grid--3col {
  grid-template-columns: repeat(3, 1fr) !important;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
}
.team-card--featured { display: grid; grid-template-columns: 280px 1fr; }
.team-card__photo {
  background: var(--surface-alt);
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.team-card--featured .team-card__photo {
  height: auto;
  min-height: 280px;
  max-height: 340px;
}
.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f1621 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__body { padding: 1.5rem; }
.team-card--featured .team-card__body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.team-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.team-card--featured .team-card__name { font-size: 1.5rem; margin-bottom: 0.375rem; }
.team-card__title {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}
.team-card__bio { font-size: 0.875rem; line-height: 1.7; }
.team-card--featured .team-card__bio { font-size: 0.9375rem; }

/* Advisory */
.team__advisory {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.team__advisory h3 { margin-bottom: 2rem; }
.team__advisory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ─── ████████████████ DONATE ████████████████ ─── */
.donate { background: var(--surface-alt); position: relative; overflow: hidden; }
.donate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%),
              radial-gradient(ellipse 60% 60% at 80% 100%, rgba(var(--cta-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.donate__header {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}
.donate__header h2 { margin-bottom: 1rem; }
.donate__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.tier-card {
  background: rgba(20, 20, 22, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
/* glass top-highlight sheen */
.tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.tier-card .btn { margin-top: auto; }
.tier-card--featured {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--glow-accent), inset 0 1px 0 rgba(0,212,255,0.15);
  animation: glowPulse 3.5s ease-in-out infinite;
}
.tier-card--featured:hover { animation-play-state: paused; }
.tier-card--featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.875rem;
  border-radius: 0 0 6px 6px;
}
.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.tier-card--featured:hover { box-shadow: var(--shadow-card), var(--glow-accent); }
.tier-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.tier-card__period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.tier-card__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.tier-card__desc { font-size: 0.875rem; line-height: 1.7; margin-bottom: 2rem; }
.tier-card__perks {
  text-align: left;
  margin-bottom: 2rem;
}
.tier-card__perk {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.tier-card__perk::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.donate__onetime {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.donate__onetime p { margin-bottom: 1.25rem; }
.donate__employer {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}
.donate__employer a { color: var(--accent); text-decoration: underline; }

/* ─── INSTAGRAM FOLLOW SECTION ─── */
.instagram-cta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 3.5rem;
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb), 0.06) 0%,
    rgba(255, 107, 53, 0.04) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.instagram-cta__icon {
  color: var(--accent);
  flex-shrink: 0;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-cta__text {
  flex: 1;
  min-width: 220px;
}
.instagram-cta__handle {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.instagram-cta__text p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 50ch;
}
.instagram-cta__btn { flex-shrink: 0; }

/* Behold.so feed container (activated when widget script added) */
#behold-widget-container {
  margin-top: 2.5rem;
}

/* ─── PROJECT CARD WATCH LINK ─── */
.project-card__watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cta);
  text-decoration: none;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.project-card__watch:hover {
  color: var(--text);
  gap: 0.75rem;
}

/* ─── GIVEBUTTER INLINE WIDGET ─── */
.donate__widget-wrap {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.donate__widget-label {
  text-align: center;
  margin-bottom: 2rem;
}
.donate__widget-label p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 44ch;
  margin: 0 auto;
}
.donate__widget-frame {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(20, 20, 22, 0.75);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
}
/* Fallback — shown until widget renders; styled to look intentional */
.donate__widget-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0;
}
.donate__widget-fallback p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}
/* Let the Givebutter widget fill its container */
givebutter-widget {
  display: block;
  width: 100%;
}

/* ─── ████████████████ FOOTER ████████████████ ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand { }
.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 30ch;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.footer__social-link:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer__col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.footer__link:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__legal { font-size: 0.75rem; color: rgba(255,255,255,0.55); line-height: 1.7; } /* was 0.25 — fails 4.5:1; 0.55 ≈ 6.2:1 */
.footer__badges { display: flex; gap: 0.5rem; align-items: center; }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55); /* was 0.3 — fails 4.5:1; 0.55 ≈ 6.2:1 */
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 0.3rem 0.625rem;
}

/* ─── ████████████████ GSAP REVEAL CLASSES ████████████████ ─── */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }

/* ─── ████████████████ PREFERS-REDUCED-MOTION ████████████████ ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── ████████████████ INNER PAGES ████████████████ ─── */
.page-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .label { display: block; margin-bottom: 1.25rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 1.5rem; }
.page-hero p { font-size: 1.125rem; max-width: 56ch; }

/* Content prose */
.prose p { margin-bottom: 1.25rem; font-size: 1rem; }
.prose h3 { margin: 2rem 0 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; color: var(--text-muted); }
.prose ul li { margin-bottom: 0.5rem; }

/* 404 */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.not-found__num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 18rem);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -2rem;
}

/* ─── ████████████████ RESPONSIVE ████████████████ ─── */
@media (max-width: 1200px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }

  .mission__grid { grid-template-columns: 1fr; }
  .programs__grid { grid-template-columns: 1fr; }
  .stories__grid { grid-template-columns: 1fr; }
  .story-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .donate__tiers { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid--featured { grid-template-columns: 1fr; }
  .team-card--featured { grid-template-columns: 1fr; }
  .counter__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .videos-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .team__grid.team__grid--2col { grid-template-columns: 1fr !important; }
  .team__grid.team__grid--3col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .team__grid { grid-template-columns: 1fr; }
  .team__grid.team__grid--2col { grid-template-columns: 1fr !important; }
  .team__grid.team__grid--3col { grid-template-columns: 1fr !important; }
  .team__grid--featured { grid-template-columns: 1fr; }
  .team-card--featured { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; justify-content: center; }
  .team__grid { grid-template-columns: 1fr; }
  .counter__grid { grid-template-columns: 1fr 1fr; }
  .podcast-card__form { flex-direction: column; }
  .podcast-card__form .btn { width: 100%; justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ─── ████████████████ BRAND LOGO MARQUEE IMAGES ████████████████ ─── */
.marquee-item--logo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.marquee-item--logo:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.marquee-logo {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.72);
  transition: filter var(--dur) var(--ease);
}
.marquee-item--logo:hover .marquee-logo {
  filter: brightness(0) invert(1) opacity(1);
}
/* Text-only logo fallback for brands without transparent-bg images */
.marquee-text-logo {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.marquee-item--logo:hover .marquee-text-logo { color: rgba(255,255,255,0.9); }

/* ─── ████████████████ DONATION NUDGE BANNER ████████████████ ─── */
.donation-nudge {
  background: linear-gradient(135deg, rgba(var(--cta-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.06) 100%);
  border-top: 1px solid rgba(var(--cta-rgb), 0.2);
  border-bottom: 1px solid rgba(var(--cta-rgb), 0.2);
  padding: 1.5rem 0;
}
.donation-nudge__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.donation-nudge__text {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.donation-nudge__text span { color: var(--cta); }

/* ─── ████████████████ STICKY DONATE BAR ████████████████ ─── */
.donate-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.donate-bar.visible { transform: translateY(0); }
.donate-bar__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.donate-bar__text strong { color: var(--text); }
.donate-bar__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.donate-bar__dismiss {
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  background: none;
  border: none;
  padding: 0.25rem;
}
.donate-bar__dismiss:hover { color: var(--text); }

/* ─── ████████████████ TEAM PHOTO ████████████████ ─── */
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ─── ████████████████ STORY PHOTO ████████████████ ─── */
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ─── ████████████████ NAV LOGO IMAGE ████████████████ ─── */
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* ─── ████████████████ FOOTER LOGO LOCKUP ████████████████ ─── */
.footer__logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer__logo-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ─── ████████████████ PROJECT CARDS ████████████████ ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
/* Responsive overrides AFTER the base rule so cascade is correct */
@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.project-card:hover {
  border-color: rgba(var(--cta-rgb), 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.55), 0 0 22px rgba(var(--cta-rgb), 0.12);
}
.project-card__photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-alt);
}
.project-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-card__photo img { transform: scale(1.04); }
.project-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.project-card__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cta);
  margin-bottom: 1rem;
}
.project-card__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  flex: 1;
  margin-bottom: 1.25rem;
}
.project-card__fund {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

/* ─── ████████████████ VIDEO + PRESS CARDS ████████████████ ─── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
@media (max-width: 1100px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  {
  .videos-grid { grid-template-columns: 1fr; }
}
/* Featured card takes left 2 columns — desktop only */
@media (min-width: 901px) {
  .video-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}
/* 4th card starts a new row of 2 smaller cards centered */
@media (min-width: 900px) {
  .videos-grid .video-card:nth-child(3),
  .videos-grid .video-card:nth-child(4) {
    grid-column: span 1;
  }
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.video-card--featured { border-color: rgba(var(--cta-rgb), 0.35); }
.video-card:hover {
  border-color: rgba(var(--cta-rgb), 0.35);
  transform: translateY(-4px);
}
.video-card__embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}
.video-card__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

/* ─── YOUTUBE FACADE (thumbnail + play button, swaps to iframe on click) ─── */
.yt-facade {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: none;
  background: #000;
  cursor: pointer;
  padding: 0;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
  display: block;
}
.yt-facade:hover img { opacity: 0.85; }
.yt-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.yt-facade__play svg {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.yt-facade:hover .yt-facade__play svg {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8));
}
.video-card__label {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.video-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.375rem;
}
.video-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
/* CBS wide card spans 2 cols on desktop, collapses on mobile */
.press-card--wide { grid-column: span 2; }
@media (max-width: 1100px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  {
  .press-grid { grid-template-columns: 1fr; }
  .press-card--wide { grid-column: 1; } /* collapse to single col on mobile */
}
/* Press card photo banner (The Guardian, Amplitude) */
.press-card--has-image {
  padding: 0;
  overflow: hidden;
}
.press-card--has-image .press-card__pub,
.press-card--has-image .press-card__headline,
.press-card--has-image .press-card__excerpt,
.press-card--has-image .press-card__cta {
  padding: 0 1.75rem;
}
.press-card--has-image .press-card__pub { padding-top: 1.25rem; }
.press-card--has-image .press-card__cta { padding-bottom: 1.75rem; }
.press-card__image {
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  flex-shrink: 0;
}
.press-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
.press-card--has-image:hover .press-card__image img { transform: scale(1.04); }

.press-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.press-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-3px);
}
.press-card--featured { border-color: rgba(var(--cta-rgb), 0.4); }
.press-card__pub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.press-card--featured .press-card__pub { color: var(--cta); }
.press-card__headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.press-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.press-card__cta {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ─── ████████████████ IMPACT INLINE CTA ████████████████ ─── */
.impact-cta-inline {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: rgba(var(--cta-rgb), 0.06);
  border: 1px solid rgba(var(--cta-rgb), 0.15);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.impact-cta-inline p { margin: 0; font-size: 1rem; color: var(--text-muted); }
.impact-cta-inline p strong { color: var(--text); }

@media (max-width: 600px) {
  .donation-nudge__inner { flex-direction: column; text-align: center; }
  .donate-bar { flex-direction: column; text-align: center; padding: 1rem; }
  .impact-cta-inline { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM SCROLL ENHANCEMENTS
   3D card tilt · Clip-path reveals · Horizontal scroll
   ═══════════════════════════════════════════════════════════ */

/* Establish 3D context so rotateX/Y look correct without
   requiring preserve-3d on children (avoids overflow: hidden conflict) */
.story-card,
.program-card,
.project-card,
.tier-card {
  transform-origin: center center;
  will-change: transform;
}

/* Clip-path reveal baseline — establishes a stacking context
   so the inset() animation doesn't flicker on first frame */
.program-card__photo,
.project-card__photo {
  transform: translateZ(0);
}

/* Hero scanline atmosphere — very subtle moving gradient
   that gives the hero background a cinematic depth feel  */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.018) 3px,
    rgba(0,0,0,0.018) 4px
  );
  z-index: 1;
  animation: scanlineMove 12s linear infinite;
}
@keyframes scanlineMove {
  from { background-position: 0 0; }
  to   { background-position: 0 400px; }
}

/* Make hero content and wave sit above the scanline overlay */
.hero__content,
.hero__wave {
  position: relative;
  z-index: 2;
}
/* Blobs keep their own position: absolute — do NOT override here */

/* Project cards use alternating directional reveals via GSAP — no layout override needed */

/* Reduced motion: disable all the new animations */
@media (prefers-reduced-motion: reduce) {
  .story-card,
  .program-card,
  .project-card,
  .tier-card {
    will-change: auto;
  }
  .hero::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   LAUNCH AUDIT FIXES
   ═══════════════════════════════════════════════════════════ */

/* Two-column responsive grid (replaces inline styles on about.html) */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col-section { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Advisory panel — ensure bottom orphan row is centered */
.team__advisory .advisory-grid {
  justify-content: center;
}

/* Donate nudge bar — compact on mobile so it doesn't cover 20% of screen */
@media (max-width: 600px) {
  .donation-nudge { padding: 0.875rem 0; }
  .donation-nudge__inner { gap: 0.75rem; }
  .donation-nudge__inner p { font-size: 0.8125rem; }
}

/* aria-current nav indicator */
.nav__link[aria-current="page"] { color: var(--accent); }

/* Active nav link on mobile overlay */
.nav__mobile-link[aria-current="page"] { color: var(--accent); }
