/* =========================================================
   Aura Community Service — Homepage styles
   ========================================================= */

:root {
  /* Palette */
  --navy-900: #0E2140;
  --navy-800: #13294B;
  --navy-700: #1F3F70;
  --navy-soft: #E3E9F3;
  --cream: #FBF6EE;
  --cream-2: #F4EBDD;
  --sand: #E8DAC3;
  --green: #6E9F7F;
  --green-light: #8DBF9C;
  --green-dark: #3F6B50;
  --green-soft: #E1EEE4;
  --gold: #E9A23B;
  --gold-hover: #F0B04F;
  --gold-soft: #FBEACC;
  --peach-soft: #FBE1CF;
  --white: #FFFFFF;
  --ink: #16233A;
  --muted: #56617A;
  --line: rgba(19, 41, 75, 0.1);

  /* Type */
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(2rem, 1.4rem + 2vw, 2.875rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);

  /* Shape & depth */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(14, 33, 64, 0.06), 0 2px 8px rgba(14, 33, 64, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(14, 33, 64, 0.18), 0 4px 10px -6px rgba(14, 33, 64, 0.08);
  --shadow-lg: 0 30px 60px -24px rgba(14, 33, 64, 0.3);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 84px;

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

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; color: var(--navy-800); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.45em;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 var(--fs-sm)/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out),
              background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn::after {
  /* sheen sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon-shift { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon-shift { transform: translateX(4px); }

.btn-lg { font-size: var(--fs-base); padding: 1em 1.75em; }
.btn-sm { padding: 0.6em 1.1em; font-size: var(--fs-xs); }

.btn-primary { --btn-bg: var(--navy-800); --btn-fg: var(--white); }
.btn-primary:hover { --btn-bg: var(--navy-700); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); }
.btn-gold:hover { --btn-bg: var(--gold-hover); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: rgba(19, 41, 75, 0.22); }
.btn-outline:hover { --btn-bg: var(--white); border-color: var(--navy-800); }
.btn-soft { --btn-bg: var(--cream-2); --btn-fg: var(--navy-800); }
.btn-soft:hover { --btn-bg: var(--navy-800); --btn-fg: var(--white); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy-800); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--navy-800);
  text-decoration: none;
}
.text-link .icon,
.card-link .icon { transition: transform 0.3s var(--ease-out); }
.text-link:hover .icon,
.card-link:hover .icon { transform: translateX(5px); }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.eyebrow--light { color: var(--green-light); }
.hero .eyebrow::before { display: none; }

.section { padding-block: var(--section-y); }
.section-title { font-size: var(--fs-h2); font-weight: 800; }
.section-intro { color: var(--muted); font-size: var(--fs-lg); line-height: 1.6; max-width: 58ch; }
.lead { font-size: var(--fs-lg); color: var(--ink); line-height: 1.6; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .section-title { margin-bottom: 16px; }
.section-head--center { text-align: center; }
.section-head--center .section-intro { margin-inline: auto; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.section-head--split .section-title { margin-bottom: 0; }
.section-head--split .section-intro { max-width: 44ch; font-size: var(--fs-base); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
  animation: header-in 0.8s var(--ease-out) both;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(14, 33, 64, 0.35);
}
@keyframes header-in {
  from { transform: translateY(-100%); opacity: 0; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.35s var(--ease-out);
}
.is-scrolled .header-inner { height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-800);
  flex: none;
}
.brand-mark { width: 44px; height: 44px; transition: transform 0.6s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brand--light { color: var(--white); }
.brand--light .brand-sub { color: rgba(255, 255, 255, 0.65); }

.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav ul a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.primary-nav ul a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.primary-nav ul a:hover { color: var(--navy-800); background: rgba(19, 41, 75, 0.05); }
.primary-nav ul a:hover::after,
.primary-nav ul a.is-active::after { transform: scaleX(1); }
.primary-nav ul a.is-active { color: var(--navy-800); font-weight: 700; }
.primary-nav .nav-donate-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-donate .icon { animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.22); }
  20% { transform: scale(1); }
  30% { transform: scale(1.15); }
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  max-width: 900px;
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(233, 162, 59, 0.22), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(110, 159, 127, 0.22), transparent 70%);
  filter: blur(10px);
  animation: glow-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-drift {
  to { transform: translate(-6%, 8%) scale(1.08); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.hero .eyebrow {
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--green-dark);
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.pulse-dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3.2); opacity: 0; }
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero-line { display: block; }
.accent-underline {
  position: relative;
  width: fit-content;
  color: var(--green-dark);
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.55;
  z-index: -1;
  transform-origin: left;
  animation: underline-draw 0.9s var(--ease-out) 1.2s both;
}
@keyframes underline-draw { from { transform: scaleX(0); } }

.hero-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 36px;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .icon {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  stroke-width: 2.6;
}

/* Hero load choreography */
.hero-anim {
  animation: rise-in 0.9s var(--ease-out) both;
  animation-delay: calc(0.15s + var(--d, 0) * 0.12s);
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
}
.hero-anim-img {
  animation: photo-in 1.2s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--d, 0) * 0.12s);
}
@keyframes photo-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); clip-path: inset(12% 8% 12% 8% round 40px); }
  to { clip-path: inset(0 0 0 0 round var(--r-xl)); }
}

.hero-visual {
  position: relative;
  padding: 0 0 48px 64px;
}
.hero-photo {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { animation: ken-burns 22s ease-in-out infinite alternate; }
@keyframes ken-burns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-photo-small {
  position: absolute;
  left: 0; bottom: 0;
  width: 38%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lg);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  line-height: 1.25;
}
.float-card strong { display: block; font-size: var(--fs-sm); color: var(--navy-800); }
.float-card small { font-size: var(--fs-xs); color: var(--muted); }
.float-card--top { top: 36px; right: -18px; }
.float-card--bottom { right: 28px; bottom: 16px; }
.hero-visual .float-card--top { animation: rise-in 0.9s var(--ease-out) both, bob 6s ease-in-out 1.6s infinite; animation-delay: 0.75s, 1.6s; }
.hero-visual .float-card--bottom { animation: rise-in 0.9s var(--ease-out) both, bob 7s ease-in-out 2s infinite reverse; animation-delay: 0.87s, 2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
}
.float-icon--green { background: var(--green-soft); color: var(--green-dark); }
.avatar-stack { display: flex; }
.avatar-stack span {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--c);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}
.avatar-stack span:first-child { margin-left: 0; }

/* Pointer parallax smoothing (set from JS) */
.hero-photo-small,
.float-card { transition: translate 0.5s var(--ease-out); }

/* ---------- Media (photos with graceful fallback) ---------- */
.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 162, 59, 0.35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(110, 159, 127, 0.45), transparent 55%),
    linear-gradient(135deg, var(--sand), var(--green-soft));
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.is-fallback img { display: none; }
.media.is-fallback::before {
  content: attr(data-label);
  position: absolute;
  left: 18px; bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy-800);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* ---------- Mission ---------- */
.mission { background: var(--white); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.mission-media { position: relative; }
.mission-photo {
  aspect-ratio: 5 / 5.4;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.mission-badge {
  position: absolute;
  right: -28px; bottom: 40px;
  display: grid;
  place-items: center;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.badge-ring {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: spin 22s linear infinite;
}
.badge-ring text { fill: var(--cream); font-size: 10.4px; font-weight: 700; letter-spacing: 0.16em; font-family: var(--font); }
.badge-heart { width: 34px; height: 34px; fill: var(--gold); stroke: var(--gold); animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mission-copy .section-title { margin-bottom: 22px; }
.mission-copy .lead { margin-bottom: 16px; }
.mission-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  line-height: 1.35;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--white); }
.value strong { display: block; color: var(--navy-800); font-size: var(--fs-base); margin-bottom: 4px; }
.value small { color: var(--muted); font-size: var(--fs-xs); }
.value-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
}
.value-icon--gold { background: var(--gold-soft); color: #9A5B0F; }
.value-icon--green { background: var(--green-soft); color: var(--green-dark); }
.value-icon--navy { background: var(--navy-soft); color: var(--navy-700); }

/* ---------- Cards (shared) ---------- */
.card-grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Services ---------- */
.services { background: var(--white); padding-top: 0; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.3s ease, border-color 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--tone, var(--gold-soft));
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-8px);
  background: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 0.8; transform: scale(1); }
.service-card > * { position: relative; }
.service-icon {
  --tone: var(--gold-soft);
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 8px;
  border-radius: 18px;
  background: var(--tone);
  color: var(--ink-tone, var(--navy-800));
  transition: transform 0.5s var(--ease-spring);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: var(--fs-h3); font-weight: 800; }
.service-card p { color: var(--muted); flex: 1; }
.service-card .card-link { margin-top: 8px; font-size: var(--fs-sm); }
.card-link::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.service-card .card-link { position: static; }

/* ---------- Impact ---------- */
.impact {
  background: linear-gradient(var(--white) 50%, var(--cream) 50%);
}
.impact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding: clamp(40px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.impact-panel::before,
.impact-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.impact-panel::before {
  width: 420px; height: 420px;
  right: -140px; top: -200px;
  border: 60px solid rgba(233, 162, 59, 0.12);
  animation: spin 40s linear infinite;
}
.impact-panel::after {
  width: 300px; height: 300px;
  left: -120px; bottom: -180px;
  background: radial-gradient(closest-side, rgba(110, 159, 127, 0.35), transparent);
}
.impact-head { position: relative; }
.impact-title { max-width: 22ch; color: var(--white); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; }

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}
.stat dt { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.stat dd {
  margin: 0;
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.stat .plus { color: var(--gold); }

/* ---------- How we help ---------- */
.how { background: var(--cream); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: none;
}
.steps::before {
  /* connector line, drawn when in view */
  content: "";
  position: absolute;
  top: 64px;
  left: calc(16.66% + 40px);
  right: calc(16.66% + 40px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out) 0.3s;
}
.steps.is-visible::before { transform: scaleX(1); }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 40px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: 20px; left: 24px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cream-2);
  letter-spacing: -0.04em;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold);
  box-shadow: 0 0 0 8px var(--green-soft);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.step:hover .step-icon { transform: scale(1.08); box-shadow: 0 0 0 12px var(--green-soft); }
.step-icon .icon { width: 28px; height: 28px; }
.step h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 26ch; }

/* ---------- Get Help CTA ---------- */
.get-help { background: var(--cream); padding-top: 0; }
.help-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 520px;
  border-radius: var(--r-xl);
  background: var(--navy-900);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.help-photo { min-height: 320px; }
.help-photo img { transition: transform 1.2s var(--ease-out); transform: scale(1.08); }
.help-panel.is-visible .help-photo img { transform: scale(1); }
.help-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(14, 33, 64, 0.55));
}
.help-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
}
.help-title {
  color: var(--white);
  font-size: clamp(2.125rem, 1.5rem + 2.2vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.help-copy > p:not(.eyebrow) { font-size: var(--fs-lg); line-height: 1.6; margin-bottom: 32px; max-width: 36em; }
.help-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-sm);
}
.help-meta li { display: inline-flex; align-items: center; gap: 10px; }
.help-meta .icon { color: var(--green-light); }
.help-meta strong { color: var(--white); }

/* ---------- Get Involved ---------- */
.involved { background: var(--white); }
.involve-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.involve-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.involve-card--featured { background: var(--navy-800); border-color: transparent; }
.involve-photo { aspect-ratio: 16 / 10.5; }
.involve-photo img { transition: transform 0.9s var(--ease-out); }
.involve-card:hover .involve-photo img { transform: scale(1.07); }
.involve-icon {
  position: absolute;
  left: 24px; bottom: -26px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease-spring);
}
.involve-card:hover .involve-icon { transform: translateY(-6px) rotate(-6deg); }
.involve-photo { overflow: visible; clip-path: inset(0 0 -40px 0); }
.involve-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  padding: 44px 28px 28px;
}
.involve-body h3 { font-size: 1.5rem; font-weight: 800; }
.involve-body p { color: var(--muted); flex: 1; margin-bottom: 12px; }
.involve-card--featured .involve-body h3 { color: var(--white); }
.involve-card--featured .involve-body p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Testimonials ---------- */
.stories { background: var(--cream); }
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 32px 30px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.quote-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-md); }
.quote-card--navy { background: var(--navy-800); }
.quote-mark { width: 40px; height: 32px; fill: var(--gold); margin-bottom: 20px; }
.quote-card blockquote {
  flex: 1;
  margin: 0 0 28px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  line-height: 1.3;
}
.quote-card figcaption strong { display: block; color: var(--navy-800); }
.quote-card figcaption small { color: var(--muted); font-size: var(--fs-xs); }
.quote-card--navy blockquote { color: rgba(255, 255, 255, 0.9); }
.quote-card--navy figcaption strong { color: var(--white); }
.quote-card--navy figcaption small { color: rgba(255, 255, 255, 0.65); }
.quote-card--navy figcaption { border-top-color: rgba(255, 255, 255, 0.12); }
.initials {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  color: var(--white);
  font-weight: 800;
  font-size: var(--fs-sm);
}

/* ---------- News ---------- */
.news { background: var(--white); }
.news-card {
  border-radius: var(--r-lg);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.news-photo { aspect-ratio: 16 / 10; }
.news-photo img { transition: transform 0.9s var(--ease-out); }
.news-card:hover .news-photo img { transform: scale(1.07); }
.tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tag--gold { background: var(--gold); color: var(--navy-900); }
.tag--navy { background: var(--navy-800); color: var(--white); }
.tag--green { background: var(--green-dark); color: var(--white); }
.news-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 26px 28px 30px; }
.news-body time { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); letter-spacing: 0.04em; text-transform: uppercase; }
.news-body h3 { font-size: var(--fs-h3); font-weight: 800; transition: color 0.25s; }
.news-card:hover h3 { color: var(--navy-700); }
.news-body p { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.news-body .card-link { margin-top: 6px; font-size: var(--fs-sm); }
.news-body .card-link::before { display: none; }
.news-card:hover .card-link .icon { transform: translateX(5px); }

/* ---------- CTA banner ---------- */
.cta-banner-wrap { background: linear-gradient(var(--white) 50%, var(--navy-900) 50%); }
.cta-banner {
  position: relative;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 80px);
  border-radius: var(--r-xl);
  background: linear-gradient(125deg, var(--green-dark) 0%, #2F5A48 40%, var(--navy-800) 100%);
  background-size: 200% 200%;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: gradient-shift 14s ease-in-out infinite alternate;
}
@keyframes gradient-shift {
  to { background-position: 100% 100%; }
}
.cta-banner h2 {
  position: relative;
  max-width: 18ch;
  margin: 0 auto 18px;
  color: var(--white);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  font-weight: 800;
}
.cta-banner p {
  position: relative;
  max-width: 50ch;
  margin: 0 auto 36px;
  font-size: var(--fs-lg);
}
.cta-banner .btn-row { position: relative; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-orb--1 { width: 280px; height: 280px; left: -80px; top: -100px; background: radial-gradient(closest-side, rgba(233, 162, 59, 0.4), transparent); animation: bob 9s ease-in-out infinite; }
.cta-orb--2 { width: 360px; height: 360px; right: -120px; bottom: -160px; border: 50px solid rgba(255, 255, 255, 0.06); animation: spin 30s linear infinite; }
.cta-orb--3 { width: 14px; height: 14px; right: 18%; top: 22%; background: var(--gold); box-shadow: 0 0 0 10px rgba(233, 162, 59, 0.18); animation: bob 5s ease-in-out infinite; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(64px, 7vw, 96px);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p { margin: 22px 0 26px; max-width: 34ch; line-height: 1.7; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  transition: background-color 0.25s, color 0.25s, transform 0.4s var(--ease-spring), border-color 0.25s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateY(-4px); }
.socials .icon { width: 19px; height: 19px; }
.footer-col h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: 0;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.3s var(--ease-out);
}
.footer-col nav a:hover,
.footer-col ul a:hover { color: var(--gold); }
nav.footer-col a:hover { padding-left: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.footer-contact .icon { margin-top: 2px; color: var(--green-light); }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s, transform 0.45s var(--ease-spring), visibility 0.35s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Cards keep their own hover transitions once revealed */
.js .reveal.is-visible.service-card,
.js .reveal.is-visible.involve-card,
.js .reveal.is-visible.news-card,
.js .reveal.is-visible.quote-card,
.js .reveal.is-visible.step,
.js .reveal.is-visible.value { transition-delay: 0s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .primary-nav ul a { padding: 10px 10px; }
  .primary-nav ul a::after { left: 10px; right: 10px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: grid; }
  .btn-donate span { display: none; }
  .btn-donate { padding: 0; width: 46px; height: 46px; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px var(--gutter) 32px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(14, 33, 64, 0.25);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.5s var(--ease-out), visibility 0.5s;
  }
  .is-scrolled .primary-nav { inset-block-start: 70px; }
  .primary-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav ul a { padding: 14px 12px; font-size: var(--fs-base); border-radius: var(--r-sm); }
  .primary-nav ul a::after { display: none; }
  .primary-nav ul a.is-active { background: var(--cream); }
  .primary-nav li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s, transform 0.4s var(--ease-out);
  }
  .primary-nav.is-open li { opacity: 1; transform: none; }
  .primary-nav.is-open li:nth-child(2) { transition-delay: 0.04s; }
  .primary-nav.is-open li:nth-child(3) { transition-delay: 0.08s; }
  .primary-nav.is-open li:nth-child(4) { transition-delay: 0.12s; }
  .primary-nav.is-open li:nth-child(5) { transition-delay: 0.16s; }
  .primary-nav.is-open li:nth-child(6) { transition-delay: 0.2s; }
  .primary-nav .nav-donate-mobile { display: inline-flex; align-self: stretch; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-media { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials .quote-card:last-child,
  .involved .involve-card:last-child,
  .news .news-card:last-child { grid-column: 1 / -1; }
  .help-panel { grid-template-columns: 1fr; }
  .help-photo { aspect-ratio: 16 / 9; min-height: 0; }
  .help-photo::after { background: linear-gradient(180deg, transparent 60%, rgba(14, 33, 64, 0.55)); }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before {
    top: 40px; bottom: 40px;
    left: 50%; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--green) 0 10px, transparent 10px 18px);
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps.is-visible::before { transform: scaleY(1); }
  .card-grid--3 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .brand-sub { font-size: 0.62rem; }
  .hero-visual { padding: 0 0 40px 28px; }
  .float-card--top { right: -6px; top: 18px; }
  .float-card--bottom { right: 12px; bottom: 6px; }
  .float-card { padding: 10px 14px 10px 10px; }
  .mission-badge { width: 104px; height: 104px; right: -6px; }
  .badge-ring text { font-size: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stat { padding-left: 14px; }
  .btn-row .btn-lg { flex: 1 1 100%; }
  .back-to-top { right: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .steps::before { transform: none; }
}

