/* ============================================================
   RHESUS FOUNDATION — Premium Charity Website Styles
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300..800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand: limited to the RAF logo palette — red, green, blue + neutrals */
  --crimson: #E02020;
  --crimson-hot: #F03A3A;
  --crimson-dark: #A31212;
  --crimson-deep: #6E0404;
  --green: #0BA05A;
  --green-dark: #077A44;
  --blue: #1CA9E4;
  --blue-deep: #0D7FB5;
  --gold: #0BA05A;          /* legacy alias → green */
  --gold-soft: #8FE3B6;     /* legacy alias → light green */
  --ink: #101820;
  --ink-soft: #1D2A33;
  --cream: #FBFDFE;
  --sand: #EEF4F6;
  --sand-deep: #DFEAF0;
  --grey: #5C6B70;
  --line: rgba(16, 24, 32, 0.08);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(26, 16, 19, 0.06);
  --shadow-md: 0 12px 32px -8px rgba(26, 16, 19, 0.14);
  --shadow-lg: 0 30px 60px -15px rgba(26, 16, 19, 0.22);
  --shadow-red: 0 16px 40px -10px rgba(217, 4, 41, 0.4);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--crimson); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 99px; border: 2px solid var(--sand); }

:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }

/* ---------- Page load transition ---------- */
body.page-enter { animation: pageIn 0.7s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2400;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0% { background-position: 0 0; }
  20% { background-position: -40px 60px; }
  40% { background-position: 60px -40px; }
  60% { background-position: -60px -60px; }
  80% { background-position: 40px 40px; }
  100% { background-position: 0 0; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .drop { width: 54px; height: 54px; overflow: visible; }
.preloader .drop path {
  fill: none; stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 150; stroke-dashoffset: 150;
  animation: dropDraw 1.6s var(--ease) infinite;
}
@keyframes dropDraw {
  0% { stroke-dashoffset: 150; }
  55%, 100% { stroke-dashoffset: 0; }
}
.preloader .brand {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.4rem;
  color: var(--cream); letter-spacing: 0.55em;
  text-indent: 0.55em;
  animation: brandPulse 1.6s ease-in-out infinite;
}
@keyframes brandPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- Layout ---------- */
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(880px, calc(100% - 48px)); margin-inline: auto; }

section { position: relative; }
.section { padding: clamp(80px, 9vw, 130px) 0; }
.section-tight { padding: clamp(56px, 6vw, 90px) 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}
.eyebrow.on-dark { color: var(--gold-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.section-title em { font-style: italic; color: var(--crimson); }
.section-title.on-dark em { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 18px; color: var(--grey); font-size: 1.06rem; }
.section-head.on-dark p { color: rgba(253, 249, 245, 0.72); }

.display-xl { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1.04; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { flex-shrink: 0; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 140%; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--crimson-hot), var(--crimson));
  color: #fff; box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -10px rgba(217, 4, 41, 0.55); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.btn-outline.on-dark { border-color: rgba(253, 249, 245, 0.5); color: var(--cream); }
.btn-outline.on-dark:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-gold { background: linear-gradient(135deg, #12B768, var(--green-dark)); color: #fff; box-shadow: 0 16px 36px -10px rgba(11, 160, 90, 0.5); }
.btn-gold:hover { transform: translateY(-3px); }

.btn-sm { padding: 11px 22px; font-size: 0.86rem; }
.btn-lg { padding: 19px 40px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.92rem; color: var(--crimson);
}
.link-arrow svg { transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].revealed { opacity: 1; transform: none; }
/* On narrow screens horizontal entrance offsets would poke past the
   viewport edge before reveal — fall back to a vertical slide. */
@media (max-width: 900px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(38px); }
  .split-media .main-img { transform: none; }
  .split-media:hover .main-img { transform: none; }
}

/* Split-text headline animation */
.split-word {
  display: inline-block; overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
  transition-delay: var(--w-delay, 0s);
}
.split-ready .split-word > span { transform: none; opacity: 1; }
.split-word > span.accent,
h1 .accent, h2 .accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button spinner */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(253, 249, 245, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(26, 16, 19, 0.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.logo { display: inline-flex; align-items: center; gap: 12px; z-index: 1002; }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-mark .drop-body { fill: var(--crimson); transition: fill 0.3s; }
.logo-mark .pulse-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: ecg 3.2s linear infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 60; } 40%, 100% { stroke-dashoffset: -60; } }
.logo-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.28rem; line-height: 1; letter-spacing: 0.01em;
  display: flex; flex-direction: column;
  transition: color 0.4s;
}
.logo-text em {
  font-style: normal; font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--crimson); margin-top: 3px;
}
.site-header:not(.scrolled) .logo-text,
.site-header:not(.scrolled) .nav-link { color: var(--cream); }
.site-header:not(.scrolled) .nav-link::after { background: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
  transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--crimson);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--crimson); }
.site-header:not(.scrolled) .nav-link.active { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 14px; z-index: 1002; }

.nav-toggle {
  display: none; z-index: 1002;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(26, 16, 19, 0.06);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s;
}
.site-header:not(.scrolled) .nav-toggle { background: rgba(253, 249, 245, 0.15); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--cream); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open .nav-toggle span { background: var(--cream); }

/* Mobile nav overlay */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1001;
    background: linear-gradient(160deg, var(--ink) 30%, var(--crimson-deep));
    flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav .nav-link {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    color: var(--cream) !important;
    padding: 10px 24px;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  body.nav-open .main-nav .nav-link {
    opacity: 1; transform: none;
    transition-delay: calc(0.08s * var(--i, 1));
  }
  .main-nav .nav-link::after { display: none; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -2%); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 90%, rgba(92, 0, 15, 0.82) 0%, transparent 55%),
    linear-gradient(180deg, rgba(26, 16, 19, 0.55) 0%, rgba(26, 16, 19, 0.25) 35%, rgba(26, 16, 19, 0.82) 100%);
}
.hero-inner { padding-bottom: clamp(64px, 9vh, 110px); width: min(1240px, calc(100% - 48px)); margin-inline: auto; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: var(--r-pill);
  background: rgba(253, 249, 245, 0.1);
  border: 1px solid rgba(253, 249, 245, 0.22);
  backdrop-filter: blur(10px);
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson-hot);
  box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.7);
  animation: dotPulse 1.8s ease-out infinite;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(239, 35, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 35, 60, 0); }
}

.hero h1 { max-width: 14ch; font-weight: 600; }
.hero h1 .accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 24px; max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(253, 249, 245, 0.85);
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(44px, 7vh, 80px);
  padding-top: 30px;
  border-top: 1px solid rgba(253, 249, 245, 0.18);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600; line-height: 1;
  color: var(--gold-soft);
}
.hero-stat .label {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(253, 249, 245, 0.62);
  margin-top: 8px;
}

.scroll-cue {
  position: absolute; right: 0; bottom: clamp(64px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(253, 249, 245, 0.7);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--gold), transparent);
  position: relative;
  animation: cueDrop 1.8s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Floating pulse rings decoration */
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(239, 35, 60, 0.35);
  animation: ringPulse 4s ease-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(70px, 10vh, 110px)) 0 clamp(60px, 8vh, 90px);
  color: var(--cream);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.page-hero .hero-overlay { background: linear-gradient(180deg, rgba(26, 16, 19, 0.7), rgba(92, 0, 15, 0.82)); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); max-width: 18ch; }
.page-hero h1 em { font-style: italic; color: var(--gold-soft); }
.page-hero .lede { margin-top: 20px; max-width: 56ch; color: rgba(253, 249, 245, 0.82); font-weight: 300; font-size: 1.08rem; }

.breadcrumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 249, 245, 0.65);
  margin-bottom: 22px;
}
.breadcrumbs a { transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--crimson-hot); }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-soft) 55%, var(--crimson-deep) 130%);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 85% 0%, rgba(217, 4, 41, 0.3), transparent 60%);
}
.stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(253, 249, 245, 0.08);
  border: 1px solid rgba(253, 249, 245, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-cell {
  background: rgba(26, 16, 19, 0.4);
  backdrop-filter: blur(4px);
  padding: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 36px);
  text-align: center;
  transition: background 0.4s;
}
.stat-cell:hover { background: rgba(217, 4, 41, 0.25); }
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 600; line-height: 1;
  color: var(--gold-soft);
}
.stat-cell .num .suffix { font-size: 0.55em; color: var(--crimson-hot); }
.stat-cell .label { margin-top: 12px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(253, 249, 245, 0.6); }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Mission split ---------- */
.split-media { position: relative; }
.split-media .main-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease);
}
.split-media .main-img img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.split-media:hover .main-img { transform: rotate(0.4deg) scale(1.015); }
.float-card {
  position: absolute; right: -22px; bottom: 38px;
  background: var(--cream);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  animation: floaty 5.5s ease-in-out infinite;
  border: 1px solid var(--line);
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--crimson-hot), var(--crimson));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.float-card .fc-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.float-card .fc-label { font-size: 0.78rem; font-weight: 600; color: var(--grey); letter-spacing: 0.06em; }

.split-copy { display: flex; flex-direction: column; justify-content: center; }
.split-copy .lede { margin-top: 22px; color: var(--grey); font-size: 1.05rem; }
.checklist { margin-top: 30px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checklist .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sand); color: var(--crimson);
  display: grid; place-items: center; margin-top: 2px;
  transition: transform 0.3s var(--ease-back);
}
.checklist li:hover .tick { transform: scale(1.18) rotate(8deg); background: var(--crimson); color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.grid-2.reverse .split-copy { order: 2; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.reverse .split-copy { order: 0; }
  .float-card { right: 12px; }
}

/* ---------- Program cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.prog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.prog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.prog-card .thumb { overflow: hidden; aspect-ratio: 16/10.5; position: relative; }
.prog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.prog-card:hover .thumb img { transform: scale(1.09); }
.prog-card .tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(253, 249, 245, 0.92);
  color: var(--crimson);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.prog-card .body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prog-card h3 { font-size: 1.35rem; }
.prog-card p { color: var(--grey); font-size: 0.96rem; flex: 1; }
.prog-card .icon-chip {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, #FDECEC, #FBDADA);
  color: var(--crimson);
  display: grid; place-items: center;
  margin-bottom: 4px;
  transition: transform 0.4s var(--ease-back), background 0.4s;
}
.prog-card:hover .icon-chip { transform: rotate(-6deg) scale(1.08); background: linear-gradient(135deg, var(--crimson-hot), var(--crimson)); color: #fff; }

/* ---------- How it works timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--crimson) 0 10px, transparent 10px 20px);
  opacity: 0.35;
}
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.step .num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--crimson);
  color: var(--crimson);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  margin-bottom: 20px; position: relative; z-index: 1;
  transition: background 0.35s, color 0.35s, transform 0.4s var(--ease-back);
}
.step:hover .num { background: var(--crimson); color: #fff; transform: scale(1.1); }
.step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.step p { color: var(--grey); font-size: 0.93rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.testi-track { position: relative; min-height: 260px; }
.testi {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 0 10px;
}
.testi.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.testi .quote-mark { font-family: var(--font-display); font-size: 4.6rem; line-height: 0.6; color: var(--crimson); opacity: 0.28; }
.testi blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.5; font-style: italic; max-width: 34ch; }
.testi .who { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.avatar.a1 { background: linear-gradient(135deg, var(--crimson-hot), var(--crimson-dark)); }
.avatar.a2 { background: linear-gradient(135deg, #12B768, var(--green-dark)); }
.avatar.a3 { background: linear-gradient(135deg, #1D2A33, var(--blue-deep)); }
.testi .who .name { font-weight: 700; font-size: 0.98rem; text-align: left; }
.testi .who .role { font-size: 0.82rem; color: var(--grey); text-align: left; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.testi-dots button {
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--sand-deep);
  transition: width 0.4s var(--ease), background 0.3s;
}
.testi-dots button.active { width: 34px; background: var(--crimson); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; color: var(--cream); border-radius: var(--r-lg); }
.cta-banner .bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(92, 0, 15, 0.92) 0%, rgba(217, 4, 41, 0.62) 55%, rgba(92, 0, 15, 0.35) 100%);
}
.cta-banner .inner {
  padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 80px);
  max-width: 720px;
}
.cta-banner h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-banner h2 em { font-style: italic; color: var(--gold-soft); }
.cta-banner p { margin-top: 16px; color: rgba(253, 249, 245, 0.85); max-width: 48ch; }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--sand);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 72px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; color: var(--ink-soft);
  white-space: nowrap; opacity: 0.75;
}
.marquee-item svg { color: var(--crimson); }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-form input {
  flex: 1; min-width: 0;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(253, 249, 245, 0.2);
  background: rgba(253, 249, 245, 0.08);
  color: var(--cream);
  transition: border-color 0.3s, background 0.3s;
}
.newsletter-form input::placeholder { color: rgba(253, 249, 245, 0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: rgba(253, 249, 245, 0.12); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(253, 249, 245, 0.72);
  overflow: hidden;
  padding: clamp(64px, 8vw, 100px) 0 0;
}
.footer-watermark {
  position: absolute; left: 50%; bottom: -0.22em;
  transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(7rem, 19vw, 17rem);
  line-height: 1; letter-spacing: 0.04em;
  color: rgba(253, 249, 245, 0.035);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 5vw, 64px);
  position: relative;
}
.footer-brand .logo-text { color: var(--cream); }
.footer-brand p { margin-top: 20px; font-size: 0.95rem; max-width: 34ch; }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(253, 249, 245, 0.18);
  display: grid; place-items: center;
  color: var(--cream);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s;
}
.socials a:hover { background: var(--crimson); border-color: var(--crimson); transform: translateY(-4px); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.95rem; transition: color 0.3s, padding-left 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; margin-bottom: 14px; }
.footer-contact svg { color: var(--crimson-hot); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 26px 0;
  border-top: 1px solid rgba(253, 249, 245, 0.1);
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem; position: relative;
}
.footer-bottom .heart { color: var(--crimson-hot); display: inline-block; animation: heartBeat 1.6s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.25); } 28% { transform: scale(1); } 42% { transform: scale(1.25); } 56% { transform: scale(1); } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* Mobile-only donate CTA inside overlay nav */
.nav-donate { display: none; }
@media (max-width: 1020px) {
  .nav-donate {
    display: inline-block;
    color: var(--gold) !important;
  }
}

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--crimson); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-red);
  opacity: 0; transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-back), background 0.3s;
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--crimson-dark); }

/* ============================================================
   PROGRAMS PAGE — feature rows
   ============================================================ */
.feature-row {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(50px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.flip .f-media { order: 2; }
.f-media { position: relative; }
.f-media .frame {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.f-media .frame img { width: 100%; aspect-ratio: 16/11.5; object-fit: cover; transition: transform 0.9s var(--ease); }
.f-media:hover .frame img { transform: scale(1.06); }
.f-media .badge-chip {
  position: absolute; top: -18px; left: -14px;
  background: var(--ink); color: var(--gold-soft);
  padding: 10px 20px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
}
.f-copy h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.f-copy p { color: var(--grey); margin-top: 16px; }
.f-stats { display: flex; gap: 36px; margin: 26px 0 30px; flex-wrap: wrap; }
.f-stat .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--crimson); line-height: 1; }
.f-stat .l { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .f-media { order: 0; }
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: 0.86rem;
  color: var(--grey);
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.filter-btn.active { background: var(--crimson); border-color: var(--crimson); color: #fff; box-shadow: var(--shadow-red); }

.event-card {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.event-card:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: rgba(217, 4, 41, 0.3); }
.event-card.hidden { display: none; }
.date-chip {
  width: 84px; text-align: center;
  background: linear-gradient(160deg, #FDECEC, #FBDADA);
  border-radius: 16px; padding: 14px 10px;
  flex-shrink: 0;
}
.date-chip .d { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--crimson); line-height: 1; }
.date-chip .m { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson-dark); margin-top: 4px; }
.event-info h3 { font-size: 1.22rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 0.84rem; color: var(--grey); font-weight: 500; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { color: var(--crimson); }
.event-cat {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--sand); color: var(--ink-soft);
}
.event-cat.drive { background: #FDECEC; color: var(--crimson); }
.event-cat.workshop { background: #E5F6EC; color: var(--green-dark); }
.event-cat.campaign { background: #E3F4FD; color: var(--blue-deep); }
.event-card .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .event-card { grid-template-columns: auto 1fr; }
  .event-card .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ============================================================
   VOLUNTEER PAGE
   ============================================================ */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .role-grid { grid-template-columns: 1fr; } }
.role-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.role-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--crimson-hot), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.role-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.role-card:hover::before { transform: scaleX(1); }
.role-card .r-icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, #FDECEC, #FBDADA);
  color: var(--crimson);
  display: grid; place-items: center; margin-bottom: 22px;
}
.role-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.role-card p { color: var(--grey); font-size: 0.94rem; }
.role-card .commit { margin-top: 18px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson); }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-featured {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 44px;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.news-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.news-featured .thumb { overflow: hidden; }
.news-featured .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.news-featured:hover .thumb img { transform: scale(1.06); }
.news-featured .body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.news-meta { display: flex; gap: 14px; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--grey); }
.news-cat {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--crimson); background: #fdeef0;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.news-featured h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.news-featured p { color: var(--grey); font-size: 0.98rem; }
@media (max-width: 860px) { .news-featured { grid-template-columns: 1fr; } }

.news-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-card .thumb { overflow: hidden; aspect-ratio: 16/10; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.08); }
.news-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 1.12rem; line-height: 1.3; }
.news-card p { color: var(--grey); font-size: 0.9rem; flex: 1; }
.news-card.hidden { display: none; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 32px 26px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative;
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.value-card .v-num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--crimson);
  line-height: 1; margin-bottom: 16px;
  transition: color 0.4s;
}
.value-card:hover .v-num { color: var(--crimson); }
.value-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.value-card p { color: var(--grey); font-size: 0.92rem; }

/* Journey timeline */
.journey { position: relative; max-width: 780px; margin-inline: auto; }
.journey::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--crimson), var(--gold));
  opacity: 0.35;
}
.j-item { position: relative; width: 50%; padding: 0 48px 64px; }
.j-item:nth-child(odd) { left: 0; text-align: right; }
.j-item:nth-child(even) { left: 50%; }
.j-item .dot {
  position: absolute; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--crimson);
  z-index: 1;
}
.j-item:nth-child(odd) .dot { right: -9px; }
.j-item:nth-child(even) .dot { left: -9px; }
.j-item .year {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--crimson);
}
.j-item h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.j-item p { color: var(--grey); font-size: 0.94rem; }
@media (max-width: 720px) {
  .journey::before { left: 9px; }
  .j-item, .j-item:nth-child(odd), .j-item:nth-child(even) {
    width: 100%; left: 0; text-align: left; padding: 0 0 52px 44px;
  }
  .j-item:nth-child(odd) .dot, .j-item:nth-child(even) .dot { left: 0; right: auto; }
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 34px 24px; text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-card .avatar { width: 92px; height: 92px; font-size: 1.5rem; margin: 0 auto 20px; box-shadow: var(--shadow-sm); }
.team-card h3 { font-size: 1.14rem; }
.team-card .role { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crimson); margin-top: 6px; }
.team-card p { font-size: 0.88rem; color: var(--grey); margin-top: 12px; }

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-shell {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 980px) { .donate-shell { grid-template-columns: 1fr; } }

.donate-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dp-progress {
  display: flex; gap: 0;
  background: var(--sand);
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.dp-step-ind {
  flex: 1; display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--grey);
  opacity: 0.5;
  transition: opacity 0.4s, color 0.4s;
}
.dp-step-ind .n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sand-deep); color: var(--ink);
  display: grid; place-items: center; font-size: 0.8rem;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-back);
  flex-shrink: 0;
}
.dp-step-ind.on { opacity: 1; color: var(--crimson); }
.dp-step-ind.on .n { background: var(--crimson); color: #fff; transform: scale(1.1); }
.dp-step-ind.done { opacity: 1; color: var(--ink); }
.dp-step-ind.done .n { background: var(--ink); color: var(--gold-soft); }
@media (max-width: 640px) { .dp-step-ind span.lbl { display: none; } }

.dp-body { padding: clamp(28px, 4vw, 44px); }
.dp-panel { display: none; animation: panelIn 0.55s var(--ease) both; }
.dp-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.freq-toggle {
  display: inline-flex; padding: 5px;
  background: var(--sand); border-radius: var(--r-pill);
  margin-bottom: 28px; position: relative;
}
.freq-toggle button {
  padding: 11px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.88rem; color: var(--grey);
  position: relative; z-index: 1;
  transition: color 0.3s;
}
.freq-toggle button.active { color: #fff; }
.freq-toggle .pill {
  position: absolute; top: 5px; bottom: 5px;
  background: linear-gradient(135deg, var(--crimson-hot), var(--crimson));
  border-radius: var(--r-pill);
  transition: left 0.45s var(--ease), width 0.45s var(--ease);
  box-shadow: var(--shadow-red);
}

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-btn {
  padding: 20px 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  transition: all 0.3s var(--ease);
  position: relative;
}
.amount-btn small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }
.amount-btn:hover { border-color: var(--crimson); transform: translateY(-3px); }
.amount-btn.selected {
  border-color: var(--crimson);
  background: linear-gradient(160deg, #FDECEC, #fff);
  color: var(--crimson);
  box-shadow: 0 10px 26px -8px rgba(217, 4, 41, 0.35);
  transform: translateY(-3px);
}
.amount-btn.selected::after {
  content: '✓'; position: absolute; top: 8px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--crimson); color: #fff;
  font-size: 0.7rem; display: grid; place-items: center;
}

.impact-note {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  min-height: 58px;
  transition: opacity 0.3s;
}
.impact-note strong { color: var(--crimson); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.field label .req { color: var(--crimson); }
.field input, .field select, .field textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.1);
  background: #fff;
}
.field input.err, .field select.err, .field textarea.err { border-color: var(--crimson); background: #FFF2F2; animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.field .err-msg { font-size: 0.76rem; font-weight: 600; color: var(--crimson); display: none; }
.field .err-msg.show { display: block; }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 560px) { .pay-methods { grid-template-columns: 1fr; } }
.pay-method {
  border: 2px solid var(--line); border-radius: var(--r-md);
  padding: 18px 12px; text-align: center;
  font-weight: 700; font-size: 0.88rem;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all 0.3s var(--ease);
  background: var(--cream);
}
.pay-method svg { color: var(--crimson); }
.pay-method:hover { border-color: var(--crimson); }
.pay-method.selected { border-color: var(--crimson); background: #fdeef0; box-shadow: 0 8px 20px -8px rgba(217, 4, 41, 0.3); }
.pay-extra { display: none; }
.pay-extra.show { display: block; animation: panelIn 0.4s var(--ease) both; }

.card-visual {
  background: linear-gradient(140deg, var(--ink), var(--crimson-deep) 80%);
  border-radius: var(--r-md);
  padding: 26px;
  color: var(--cream);
  margin-bottom: 24px;
  position: relative; overflow: hidden;
  min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-visual::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 35, 60, 0.55), transparent 70%);
}
.card-visual .chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #12B768, var(--green-dark)); }
.card-visual .cnum { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.12em; margin-top: 26px; }
.card-visual .crow { display: flex; justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }

.summary-card {
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
  position: sticky; top: calc(var(--header-h) + 16px);
  overflow: hidden;
}
.summary-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.5), transparent 70%);
}
.summary-card h3 { font-size: 1.4rem; margin-bottom: 20px; position: relative; }
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(253, 249, 245, 0.15);
  font-size: 0.94rem; position: relative;
}
.summary-row .v { font-weight: 700; color: var(--gold-soft); }
.summary-total { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.secure-note { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: 0.8rem; color: rgba(253, 249, 245, 0.6); position: relative; }
.secure-note svg { color: var(--gold); flex-shrink: 0; }

.where-money .bar-row { margin-bottom: 18px; }
.bar-row .bl { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.bar-row .bar { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.bar-row .fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--crimson-hot), var(--crimson));
  width: 0;
  transition: width 1.4s var(--ease);
}
.bar-row:nth-child(2) .fill { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }
.bar-row:nth-child(3) .fill { background: linear-gradient(90deg, #57707c, var(--ink-soft)); }

/* Success */
.success-panel { text-align: center; padding: 20px 0; }
.success-ring {
  width: 110px; height: 110px; margin: 0 auto 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf9ee, #d2f0da);
  display: grid; place-items: center;
  animation: popIn 0.7s var(--ease-back) both;
}
@keyframes popIn { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-ring svg { color: #1f9d55; width: 52px; height: 52px; }
.success-ring svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: checkDraw 0.6s 0.4s var(--ease) forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-panel h3 { font-size: 1.9rem; }
.success-panel p { color: var(--grey); margin-top: 10px; max-width: 44ch; margin-inline: auto; }
.receipt {
  margin: 28px auto 0; max-width: 400px;
  background: var(--sand); border-radius: var(--r-md);
  padding: 22px 26px; text-align: left;
}
.receipt .rrow { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 7px 0; }
.receipt .rrow strong { font-weight: 700; }
#confettiCanvas { position: fixed; inset: 0; z-index: 2500; pointer-events: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card .ic {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--crimson-hot), var(--crimson));
  color: #fff; display: grid; place-items: center;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p { color: var(--grey); font-size: 0.92rem; }
.info-card a { color: var(--crimson); font-weight: 600; }

.map-frame {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.map-frame svg { width: 100%; height: auto; display: block; }
.map-pin { animation: pinBounce 2s ease-in-out infinite; transform-origin: center bottom; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.contact-form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: panelIn 0.6s var(--ease) both; }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.3s;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(217, 4, 41, 0.25); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  text-align: left;
  transition: color 0.3s;
}
.faq-item.open .faq-q { color: var(--crimson); }
.faq-q .chev {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sand); color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--crimson); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.55s var(--ease);
}
.faq-a .inner { padding: 0 26px 24px; color: var(--grey); font-size: 0.96rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.hidden-vis { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
