/* ==========================================================================
   Pahal Welfare Foundation — Design System v2
   Editorial serif (Fraunces) + humanist sans (Inter) · warm terracotta &
   marigold on cream · photography-led · WCAG AA
   ========================================================================== */

:root {
  /* Ink & surfaces */
  --ink: #16211e;
  --ink-soft: #586963;
  --ink-faint: #86998f;
  --cream: #f6f9f8;
  --paper: #ffffff;
  --line: #dfe8e5;
  --line-soft: #ebf1ef;

  /* Brand */
  --primary: #0d7a6a;
  --primary-deep: #085e50;
  --primary-soft: #e2f2ee;
  --marigold: #f2a91d;
  --marigold-deep: #a87508;
  --marigold-soft: #fdf3da;
  --leaf: #3e6b46;
  --leaf-soft: #e9f0e6;

  --success: #1e7b43;
  --danger: #c62f26;

  /* Type */
  --font-display: "Fraunces", "Noto Sans Devanagari", Georgia, serif;
  --font-body: "Inter", "Noto Sans Devanagari", system-ui, sans-serif;

  /* Geometry — sharper, more editorial */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-full: 999px;
  --shadow-sm: 0 1px 3px rgba(10, 45, 39, 0.07), 0 1px 2px rgba(10, 45, 39, 0.05);
  --shadow-md: 0 6px 24px -6px rgba(10, 45, 39, 0.14), 0 2px 6px rgba(10, 45, 39, 0.06);
  --shadow-lg: 0 24px 60px -18px rgba(10, 45, 39, 0.28);
  --container: 1180px;
}

/* ---------- Reset & base ---------- */
* { 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: 1.0325rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Faint paper grain — barely-there tactility so surfaces don't read as flat/clinical */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--marigold); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.45rem); letter-spacing: -0.024em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.012em; }
/* emphasis on dark/photo sections stays solid gold italic */
h1 em, h2 em { font-style: italic; color: var(--marigold); font-weight: 500; }

/* ★ Signature — a hand-drawn marigold highlighter sweep behind the key word,
   only on light sections (dark text). Irregular ends read as brush, not box. */
.section-head h2 em, .story-content h2 em, .prose h2 em, .prose p em {
  font-style: normal; color: inherit; font-weight: inherit; position: relative;
  background-image: linear-gradient(101deg,
    rgba(242,169,29,0) 0.18em, rgba(242,169,29,0.46) 0.18em,
    rgba(242,169,29,0.5) calc(100% - 0.14em), rgba(242,169,29,0) calc(100% - 0.14em));
  background-repeat: no-repeat; background-size: 100% 0.44em; background-position: 0 80%;
  padding: 0 0.12em; border-radius: 1px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt {
  background: var(--paper);
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  border-block: 1px solid var(--line-soft);
}

/* Inline SVG icons */
.ic { vertical-align: -0.18em; flex: none; }
.pillar-icon .ic { color: #3b2b00; }
.imp-ic .ic { color: var(--marigold-deep); }
.info-card h3 .ic { color: var(--primary); }
.hero-chip .ic { color: #ffd27a; }
.event-meta .ic { color: var(--primary); vertical-align: -0.22em; }
.topbar .ic { color: #ffd98a; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }

/* Section headings */
.section-head { max-width: 660px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-head .kicker::before, .section-head .kicker::after {
  content: ""; width: 26px; height: 2px; background: var(--marigold); border-radius: 2px;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Reveal-on-scroll ----------
   Hidden ONLY when JS is confirmed alive (.js-anim). No-JS or a frozen
   animation clock (.anim-off) always shows content — never a blank page. */
.reveal, .reveal-left, .reveal-right { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.js-anim .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
/* Frozen animation clock: strip transitions entirely so target states apply
   instantly (a running transition otherwise pins opacity at its start value). */
.anim-off *, .anim-off *::before, .anim-off *::after {
  transition: none !important;
  animation: none !important;
}
.anim-off .reveal, .anim-off .reveal-left, .anim-off .reveal-right { opacity: 1 !important; transform: none !important; }
.anim-off .hero-slide { opacity: 1 !important; }
.anim-off .hero-slide.active { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px; border-radius: 13px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.97rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 10px -4px rgba(13, 122, 106, 0.5); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-accent {
  background: var(--marigold); color: #3b2b00;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.btn-accent:hover { background: #f5b234; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-accent:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary-deep); box-shadow: var(--shadow-md); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.65); color: #fff; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: #0c1e1a; color: #b7ccc6; font-size: 0.83rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #ffd98a; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(10, 45, 39, 0.18); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 11px; padding-bottom: 11px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none !important; }
.brand-mark {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #17a58e, var(--primary) 62%, var(--primary-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.22), 0 4px 12px -4px rgba(13, 122, 106, 0.5);
}
.brand-logo { max-height: 48px; max-width: 240px; width: auto; object-fit: contain; display: block; }
@media (max-width: 460px) { .brand-logo { max-height: 40px; max-width: 170px; } }
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.2rem; line-height: 1.12; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--ink-faint); font-size: 0.7rem; letter-spacing: 0.06em; margin-top: 2px; }

/* Anchored sections must clear the sticky header */
[id] { scroll-margin-top: 96px; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.pulse-heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 28%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  42% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .pulse-heart { animation: none; } }

.nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; min-width: 0; }
.nav > a {
  position: relative; color: var(--ink); font-weight: 600; font-size: 0.92rem;
  padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap;
}
/* Compress the row before collapsing — everything stays on ONE line */
@media (max-width: 1300px) {
  .nav > a { font-size: 0.86rem; padding: 7px 7px; }
  .brand-name { font-size: 1.05rem; }
  .brand-name small { display: none; }
  .brand-mark { width: 42px; height: 42px; font-size: 1.3rem; }
}
.nav > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--marigold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease;
}
.nav > a:hover { text-decoration: none; color: var(--primary-deep); }
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav > a.active { color: var(--primary-deep); }
.nav-donate {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--marigold); color: #3b2b00;
  border: 2px solid var(--ink); border-radius: 11px;
  padding: 9px 20px; font-weight: 800; font-size: 0.92rem;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform 0.16s, box-shadow 0.16s;
  text-decoration: none !important; white-space: nowrap;
}
.nav-donate:hover { transform: translate(-1px, -1px); box-shadow: 3.5px 3.5px 0 var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); line-height: 1; padding: 6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 14px 22px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -18px rgba(10, 45, 39, 0.3);
  }
  .nav.open { display: flex; animation: paneDown 0.25s ease; }
  .nav > a { padding: 13px 10px; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); }
  .nav > a::after { display: none; }
}
@keyframes paneDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 460px) {
  .nav-donate { padding: 10px 16px; font-size: 0.88rem; }
  .brand-name { font-size: 1rem; }
  .brand-name small { display: none; }
  .brand-mark { width: 42px; height: 42px; font-size: 1.3rem; }
}

/* ---------- Hero: text left, sliding photos right ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: min(86vh, 740px); display: flex; align-items: stretch;
  background:
    radial-gradient(700px 520px at 50% 120%, rgba(16,184,152,0.28) 0%, transparent 60%),
    linear-gradient(158deg, #0c453c 0%, #0a4a40 38%, var(--primary-deep) 68%, #063a31 100%);
}
/* Layer 1: dot grid, feathered toward the photo side */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(130% 110% at 82% 0%, #000 28%, transparent 72%);
  mask-image: radial-gradient(130% 110% at 82% 0%, #000 28%, transparent 72%);
}
/* Layer 2: topographic contour lines — land, growth, the environment pillar */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.4'%3E%3Cpath d='M-50 480C200 430 380 470 560 440 760 408 940 452 1260 400'/%3E%3Cpath d='M-50 520C220 476 400 512 580 486 800 456 980 496 1260 448'/%3E%3Cpath d='M-50 560C240 520 420 552 600 530 840 502 1020 540 1260 496'/%3E%3Cpath d='M-50 440C180 384 360 428 540 394 740 358 920 404 1260 352'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 60%);
  mask-image: linear-gradient(to top, #000 0%, transparent 60%);
}
/* Layer 3: soft floating colour orbs (drift with scroll via data-pfloat) */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(50px); will-change: transform; }
.hero-orb.o1 { width: 380px; height: 380px; left: -70px; top: 6%; background: radial-gradient(circle, rgba(23,165,142,0.85), transparent 70%); opacity: 0.55; }
.hero-orb.o2 { width: 300px; height: 300px; right: 26%; bottom: -80px; background: radial-gradient(circle, rgba(242,169,29,0.55), transparent 70%); opacity: 0.4; }
.hero-orb.o3 { width: 240px; height: 240px; left: 40%; top: -60px; background: radial-gradient(circle, rgba(16,184,152,0.7), transparent 70%); opacity: 0.4; }
.anim-off .hero-orb { transform: none !important; }

/* Full-bleed sliding photos behind everything */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
/* Directional scrim: opaque teal on the left (for text), clearing on the right (photo shines) */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5,42,35,0.96) 0%, rgba(7,58,49,0.9) 30%, rgba(8,74,63,0.62) 56%, rgba(8,74,63,0.28) 80%, rgba(8,74,63,0.12) 100%),
    linear-gradient(to top, rgba(4,26,22,0.6) 0%, transparent 42%);
}

.hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 640px) 1fr;
  align-items: center;
  padding-top: 70px; padding-bottom: 96px;
}
.hero-inner { max-width: 600px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px); border-radius: var(--r-full);
  padding: 7px 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #ffe4ae; margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 18px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #d7eae5; max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: clamp(18px, 3vw, 38px); flex-wrap: wrap;
  margin-top: 42px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-trust .t { min-width: 84px; }
.hero-trust .t b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #ffd27a; line-height: 1.1; }
.hero-trust .t span { font-size: 0.8rem; color: #bcd6cf; letter-spacing: 0.03em; }

/* Slideshow dots */
.hero-dots { position: absolute; right: 20px; bottom: 74px; z-index: 4; display: flex; gap: 7px; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.5); transition: all 0.25s ease;
}
.hero-dots button:hover { background: rgba(255,255,255,0.85); }
.hero-dots button.active { background: #ffd27a; width: 22px; border-radius: 5px; }

/* "Next event" card floats bottom-right of the hero */
.hero-card {
  justify-self: end; align-self: end; z-index: 4;
  background: rgba(255, 253, 249, 0.97); color: var(--ink);
  border-radius: var(--r-md); padding: 15px 20px; max-width: 300px;
  box-shadow: var(--shadow-lg); border-left: 5px solid var(--marigold);
  margin-bottom: 8px;
}
.hero-card .hc-k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--marigold-deep); }
.hero-card .hc-t { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; margin: 4px 0 2px; }
.hero-card .hc-s { font-size: 0.83rem; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }

/* Curved divider under hero */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; display: block; width: 100%; height: 56px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 68px; }
  .hero-inner { max-width: none; }
  .hero-card { justify-self: start; margin-top: 26px; max-width: 320px; }
  /* photo reads brighter on mobile since there's no side column */
  .hero-scrim {
    background:
      linear-gradient(160deg, rgba(5,42,35,0.9) 0%, rgba(8,74,63,0.72) 45%, rgba(8,74,63,0.5) 100%),
      linear-gradient(to top, rgba(4,26,22,0.65) 0%, transparent 46%);
  }
}
@media (max-width: 640px) {
  .hero-trust { gap: 16px 22px; margin-top: 30px; }
  .hero-trust .t b { font-size: 1.3rem; }
  .hero-ctas .btn { padding: 12px 22px; font-size: 0.92rem; }
  .hero-dots { bottom: 66px; }
  .topbar .tb-contact { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* a teal→marigold hairline draws across the top on hover — quiet, deliberate */
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--primary), var(--marigold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover::after { transform: scaleX(1); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-img-wrap { overflow: hidden; aspect-ratio: 16/10; background: var(--primary-soft); position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card-img { transform: scale(1.06); }
.card-img-wrap .chip-float {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 253, 249, 0.94); color: var(--primary-deep);
  font-size: 0.73rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: var(--r-full); box-shadow: var(--shadow-sm);
}
.card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.card-body .meta { color: var(--ink-faint); font-size: 0.83rem; font-weight: 600; letter-spacing: 0.02em; }
.card-body h3 { font-size: 1.16rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.card-body p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.card-more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.tag {
  align-self: flex-start; background: var(--marigold-soft); color: var(--marigold-deep);
  font-size: 0.76rem; font-weight: 800; padding: 4px 13px; border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

/* ---------- Pillar cards ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 22px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-photo { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--primary-soft); }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.pillar:hover .pillar-photo img { transform: scale(1.07); }
.pillar-icon {
  position: absolute; left: 16px; bottom: -22px; z-index: 2;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--marigold); color: #3b2b00;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 8px 18px -6px rgba(242, 169, 29, 0.7);
}
.pillar-body { padding: 34px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pillar-body h3 { font-size: 1.02rem; }
.pillar-body p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }
.pillar-body .card-more { font-size: 0.84rem; }

/* ---------- Story strip (home about preview) ---------- */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } }
.story-photo { position: relative; }
.story-photo img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.story-photo::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  border: 2px solid var(--marigold); border-radius: var(--r-lg); z-index: -1; opacity: 0.55;
}
.story-badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.story-badge b { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); line-height: 1; display: block; }
.story-badge span { font-size: 0.78rem; color: var(--ink-soft); }
.story-content .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.story-content .kicker::before { content: ""; width: 26px; height: 2px; background: var(--marigold); }
.story-content p { color: var(--ink-soft); margin-top: 14px; }
.story-ticks { margin-top: 22px; display: grid; gap: 11px; }
.story-ticks li {
  list-style: none; display: flex; gap: 12px; align-items: flex-start;
  font-weight: 600; font-size: 0.97rem;
}
.story-ticks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf-soft); color: var(--leaf); font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- Stats band ---------- */
.stats {
  position: relative; color: #fff; padding: clamp(60px, 8vw, 88px) 0;
  background: var(--primary-deep) center/cover no-repeat;
  background-blend-mode: multiply;
}
.stats::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(5, 42, 36, 0.94), rgba(13, 122, 106, 0.82)); }
.stats .container { position: relative; z-index: 2; }
/* Parallax photo layer for the stats & CTA bands */
.band-parallax { overflow: hidden; }
.band-bg {
  position: absolute; inset: -16% 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  transform: translateY(var(--pshift, 0)); will-change: transform;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; } }
.stat-num {
  font-family: var(--font-display); font-size: clamp(2.3rem, 4.4vw, 3.3rem);
  font-weight: 700; color: #ffd27a; line-height: 1.05;
}
.stat-label { font-size: 0.92rem; color: #cfe4de; margin-top: 6px; letter-spacing: 0.04em; }
.stat-cell { position: relative; }
.stat-cell + .stat-cell::before {
  content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%; width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 820px) { .stat-cell + .stat-cell::before { display: none; } }

/* ---------- Events ---------- */
.event-card { position: relative; }
.date-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--paper); border-radius: 12px; text-align: center;
  padding: 8px 14px; box-shadow: var(--shadow-md); line-height: 1.1;
}
.date-badge b { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--primary); }
.date-badge span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.event-meta { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; color: var(--ink-soft); }
.event-meta .em { display: flex; gap: 8px; align-items: baseline; }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-bar button {
  border: 1.5px solid var(--line); background: var(--paper); padding: 9px 22px;
  border-radius: var(--r-full); cursor: pointer; font-weight: 700; color: var(--ink-soft);
  font-size: 0.88rem; font-family: var(--font-body);
  transition: all 0.18s ease;
}
.filter-bar button:hover { border-color: var(--marigold); color: var(--marigold-deep); }
.filter-bar button.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(13, 122, 106, 0.6); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gallery-item {
  border-radius: var(--r-md); overflow: hidden; cursor: pointer; position: relative;
  aspect-ratio: 4/3; border: 0; padding: 0; background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(4, 20, 17, 0.82));
  color: #fff; padding: 34px 16px 13px; font-size: 0.87rem; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: all 0.3s ease;
}
.gallery-item:hover figcaption { transform: none; opacity: 1; }
.lightbox {
  position: fixed; inset: 0; background: rgba(3, 16, 14, 0.94); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.lightbox.open { display: flex; animation: lbIn 0.25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 26px; font-size: 2.2rem; color: #fff;
  background: none; border: 0; cursor: pointer; opacity: 0.8;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.88rem; letter-spacing: 0.01em; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1.5px solid #c9dad5; border-radius: 12px;
  font-size: 1rem; font-family: var(--font-body); background: #fff; color: var(--ink); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field input[type="file"] { padding: 10px; background: var(--cream); }
.field input[type="file"]::file-selector-button {
  border: 0; border-radius: var(--r-full); background: var(--primary); color: #fff;
  font-weight: 700; font-family: var(--font-body); padding: 8px 18px; margin-right: 12px; cursor: pointer;
}
.field .hint { font-size: 0.8rem; color: var(--ink-faint); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.93rem; }
.check input { width: 19px; height: 19px; margin-top: 3px; flex: none; accent-color: var(--primary); }

.alert { padding: 15px 20px; border-radius: 14px; margin: 0 0 20px; font-weight: 600; font-size: 0.96rem; }
.alert-success { background: #e9f5ec; color: var(--success); border: 1px solid #c4e3cd; }
.alert-error, .alert-danger { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; }
.alert-info { background: var(--marigold-soft); color: var(--marigold-deep); border: 1px solid #f3ddb0; }

/* ---------- Donate ---------- */
.donate-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 880px) { .donate-layout { grid-template-columns: 1fr; } }
.amount-row { display: flex; gap: 11px; flex-wrap: wrap; }
.amount-row .amt {
  border: 2px solid var(--line); background: #fff; border-radius: 14px;
  padding: 13px 24px; font-size: 1.12rem; font-weight: 800; cursor: pointer; color: var(--ink);
  font-family: var(--font-body); transition: all 0.16s ease;
}
.amount-row .amt:hover { border-color: var(--marigold); }
.amount-row .amt.active {
  border-color: var(--primary); background: var(--primary); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(13, 122, 106, 0.65);
}
.impact-card { position: sticky; top: 96px; }
.impact-card .imp-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.impact-card .imp-row:last-of-type { border-bottom: 0; }
.impact-card .imp-ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem;
  background: var(--marigold-soft); display: flex; align-items: center; justify-content: center;
}
.impact-card .imp-row b { display: block; font-size: 0.98rem; }
.impact-card .imp-row span { font-size: 0.85rem; color: var(--ink-soft); }
.secure-row {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 18px;
  font-size: 0.8rem; color: var(--ink-faint); font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonial { padding: 30px 30px 26px; position: relative; }
.testimonial::before {
  content: "\201C"; position: absolute; top: 6px; left: 20px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--marigold);
  opacity: 0.45;
}
.testimonial blockquote { font-size: 0.99rem; color: var(--ink); position: relative; z-index: 1; padding-top: 26px; line-height: 1.65; }
.testimonial .who { margin-top: 18px; display: flex; align-items: center; gap: 13px; }
.testimonial .who .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.testimonial .who b { display: block; color: var(--primary-deep); font-size: 0.95rem; }
.testimonial .who small { color: var(--ink-faint); font-size: 0.8rem; }

/* ---------- Registration table & FAQ ---------- */
.reg-table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md);
}
.reg-table th, .reg-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 0.96rem; }
.reg-table th { background: var(--primary-soft); color: var(--primary-deep); width: 42%; font-weight: 700; }
.reg-table tr:last-child td, .reg-table tr:last-child th { border-bottom: 0; }
.reg-table td { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 0.92rem; letter-spacing: 0.02em; }

details.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 26px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
details.faq:hover { box-shadow: var(--shadow-md); }
details.faq summary {
  font-weight: 700; cursor: pointer; font-size: 1.05rem; font-family: var(--font-display);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--marigold-soft); color: var(--marigold-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-family: var(--font-body); transition: transform 0.25s ease;
}
details.faq[open] summary { color: var(--primary-deep); margin-bottom: 10px; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.15em; color: #3d352b; }
.prose img { border-radius: var(--r-lg); margin: 1.4em 0; box-shadow: var(--shadow-md); }
.prose h2, .prose h3 { margin: 1.5em 0 0.55em; }
.post-meta { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 26px; font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 9px; justify-content: center; margin-top: 40px; }
.pagination a {
  min-width: 42px; text-align: center; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 0.92rem;
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--marigold); text-decoration: none; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: clamp(60px, 9vw, 100px) 0; text-align: center; color: #fff;
  background: var(--primary-deep) center/cover no-repeat;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(4, 30, 26, 0.92), rgba(13, 122, 106, 0.78) 55%, rgba(170, 118, 10, 0.62));
}
.cta-band .container { position: relative; z-index: 2; max-width: 720px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: #d7eae5; margin: 14px 0 30px; font-size: 1.06rem; }
.cta-band .btn { margin: 5px 7px; }

/* ---------- Partners ---------- */
.partner-strip { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: center; }
.partner-strip .partner {
  background: var(--paper); border: 1px solid var(--line); padding: 15px 30px;
  border-radius: var(--r-md); font-weight: 800; color: var(--ink-soft); font-size: 0.98rem;
  letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.partner-strip .partner:hover { color: var(--primary); border-color: var(--marigold); transform: translateY(-3px); }
.partner-strip img { max-height: 56px; width: auto; filter: grayscale(0.4); transition: filter 0.2s; }
.partner-strip img:hover { filter: none; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative; color: #fff; padding: clamp(56px, 8vw, 92px) 0;
  background: var(--primary-deep);
  overflow: hidden;
}
/* Parallax photo layer — inset larger than the banner so drift never shows edges */
.page-banner .pb-bg {
  position: absolute; inset: -16% 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  transform: translateY(var(--pshift, 0));
  will-change: transform;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(4, 26, 22, 0.9) 15%, rgba(9, 82, 70, 0.72) 55%, rgba(9, 82, 70, 0.35));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .crumb {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffd27a; margin-bottom: 12px; display: flex; gap: 8px; align-items: center;
}
.page-banner .crumb a { color: #ffd27a; opacity: 0.85; }
.page-banner h1 { color: #fff; }
.page-banner p { color: #d7eae5; margin-top: 12px; max-width: 620px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1e1a; color: #b7ccc6; margin-top: clamp(56px, 8vw, 88px); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--marigold), var(--leaf));
}
.site-footer .cols {
  display: grid; grid-template-columns: 2.1fr 1fr 1.5fr 1.5fr; gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 44px;
}
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; margin-bottom: 18px; font-size: 1rem; font-family: var(--font-body);
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
}
.site-footer a { color: #ffd27a; }
.site-footer a:hover { color: #ffd27a; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 0.93rem; display: flex; gap: 9px; align-items: baseline; }
.site-footer .legal-list li { font-size: 0.84rem; color: #8fa59e; display: block; }
.site-footer .legal-list b { color: #d9e6e2; font-weight: 700; }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-brand .brand-mark { width: 44px; height: 44px; font-size: 1.4rem; }
.f-brand .fb-name { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-bottom {
  border-top: 1px solid #1b3831; padding: 20px 0; font-size: 0.84rem;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #7c918a;
}
.footer-meta { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-admin {
  display: inline-flex; align-items: center; gap: 5px;
  color: #cfe0db !important; font-weight: 700;
  border: 1px solid #2c4a42; border-radius: var(--r-full);
  padding: 5px 13px; transition: all 0.18s ease; text-decoration: none !important;
}
.footer-admin:hover { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.footer-admin .ic { color: currentColor; }
.socials { display: flex; gap: 11px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: #1b3831; color: #ffd98a;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none !important; transition: all 0.2s ease;
}
.socials a svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 70, 0.45);
  text-decoration: none !important;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 195;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -10px rgba(10, 45, 39, 0.25);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.mobile-cta a {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--r-full);
  font-weight: 800; font-size: 0.92rem; text-decoration: none !important;
}
.mobile-cta .mc-donate { background: var(--marigold); color: #3b2b00; }
.mobile-cta .mc-join { border: 2px solid var(--primary); color: var(--primary); }
@media (max-width: 640px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
  .wa-float { bottom: 84px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ---------- Program rows ---------- */
.prog-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 52px);
  align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.prog-row:nth-child(even) { grid-template-columns: 1.15fr 1fr; }
.prog-row:nth-child(even) .prog-photo { order: 2; }
@media (max-width: 820px) {
  .prog-row, .prog-row:nth-child(even) { grid-template-columns: 1fr; }
  .prog-row:nth-child(even) .prog-photo { order: 0; }
}
.prog-photo { align-self: stretch; min-height: 300px; position: relative; }
.prog-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-content { padding: clamp(24px, 3.5vw, 44px); }
.prog-content .p-ic {
  width: 52px; height: 52px; border-radius: 15px; font-size: 1.5rem;
  background: var(--marigold-soft); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.prog-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.prog-content > p { color: var(--ink-soft); font-size: 0.98rem; }
.prog-points { margin: 16px 0 0; display: grid; gap: 9px; }
.prog-points li {
  list-style: none; display: flex; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.prog-points li::before { content: "→"; color: var(--marigold-deep); font-weight: 800; }

/* ---------- Small-screen polish ---------- */
@media (max-width: 640px) {
  .story-photo::before { display: none; }
  .story-badge { left: 10px; bottom: 14px; padding: 10px 16px; }
  .form-card { padding: 20px 16px; border-radius: var(--r-md); }
  .reg-table { display: block; overflow-x: auto; }
  .section-head .kicker::before, .section-head .kicker::after { width: 16px; }
  .date-badge { padding: 6px 11px; }
  .filter-bar { gap: 7px; }
  .filter-bar button { padding: 8px 16px; font-size: 0.82rem; }
  .gallery-grid { gap: 10px; }
  .pillars-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pillar-body { padding: 30px 14px 16px; }
  .pillar-body h3 { font-size: 0.92rem; }
  .pillar-body p { font-size: 0.8rem; }
}
@media (max-width: 400px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scrollytelling — sticky visual + scroll-activated steps
   ========================================================================== */
.scrolly { background: var(--paper); border-block: 1px solid var(--line-soft); }
.scrolly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.scrolly-visual {
  position: sticky; top: 92px; height: min(72vh, 560px);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--primary-deep);
}
.scrolly-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.scrolly-visual img.active { opacity: 1; transform: scale(1); }
.scrolly-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(4, 26, 22, 0.75), transparent 45%);
}
.sv-stat {
  position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff;
}
.sv-stat b {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  color: #ffd27a; line-height: 1.05; transition: opacity 0.4s;
}
.sv-stat span { font-size: 0.9rem; color: #d7eae5; font-weight: 600; }
.sv-count {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
  border-radius: var(--r-full); padding: 5px 15px; font-weight: 800; font-size: 0.82rem;
}
.scrolly-steps { display: flex; flex-direction: column; }
.scrolly-steps .step {
  min-height: 72vh; display: flex; align-items: center;
}
.scrolly-steps .step:first-child { min-height: 56vh; }
.scrolly-steps .step:last-child { min-height: 56vh; }
.step-inner {
  padding: 26px 30px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--cream); box-shadow: var(--shadow-sm);
  opacity: 0.35; transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s, box-shadow 0.5s;
}
.step.active .step-inner {
  opacity: 1; transform: none; border-color: var(--marigold);
  box-shadow: var(--shadow-md);
}
.step-inner .s-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--marigold-deep); margin-bottom: 10px;
}
.step-inner .p-ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--marigold-soft); color: var(--marigold-deep);
  display: flex; align-items: center; justify-content: center;
}
.step-inner .s-kicker::before {
  content: attr(data-n); width: 26px; height: 26px; border-radius: 50%;
  background: var(--marigold); color: #3b2b00; font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0;
}
.step-inner h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step-inner p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 880px) {
  .scrolly-grid { grid-template-columns: 1fr; gap: 0; }
  .scrolly-visual { top: 74px; height: 36vh; z-index: 5; border-radius: var(--r-md); }
  .scrolly-steps { padding-top: 18px; }
  .scrolly-steps .step, .scrolly-steps .step:first-child, .scrolly-steps .step:last-child { min-height: 52vh; align-items: flex-start; padding-top: 8vh; }
  .step-inner { padding: 18px 18px; }
  .step-inner h3 { font-size: 1.1rem; }
  .step-inner p { font-size: 0.88rem; }
}

/* ==========================================================================
   The growing saga — pinned cinematic scrollytelling (homepage signature)
   ========================================================================== */
.saga { position: relative; height: 560vh; background: #06201b; }
.saga-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.saga-photos { position: absolute; inset: 0; z-index: 0; }
.saga-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.09);
  transition: opacity 1.1s ease, transform 7s ease;
}
.saga-photo.active { opacity: 1; transform: scale(1); }
/* Colour wash that shifts chapter to chapter, teal → leaf → marigold */
.saga-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transition: background 1.1s ease;
}
.saga-veil.v-teal  { background: linear-gradient(105deg, rgba(4,32,27,0.94) 8%, rgba(7,58,49,0.82) 46%, rgba(8,74,63,0.42) 82%); }
.saga-veil.v-teal2 { background: linear-gradient(105deg, rgba(5,40,34,0.93) 8%, rgba(9,74,63,0.8) 48%, rgba(13,122,106,0.36) 84%); }
.saga-veil.v-leaf  { background: linear-gradient(105deg, rgba(8,42,30,0.93) 8%, rgba(24,84,58,0.78) 48%, rgba(62,107,70,0.34) 84%); }
.saga-veil.v-green { background: linear-gradient(105deg, rgba(7,46,31,0.93) 8%, rgba(20,96,60,0.78) 46%, rgba(40,140,90,0.3) 84%); }
.saga-veil.v-warm  { background: linear-gradient(105deg, rgba(30,26,8,0.92) 6%, rgba(94,64,10,0.72) 44%, rgba(242,169,29,0.26) 88%); }

/* Growing stem rail (the signature) */
.saga-stem { position: absolute; left: clamp(16px, 5vw, 76px); top: 14vh; bottom: 14vh; width: 46px; z-index: 4; }
.stem-track {
  position: absolute; left: 21px; top: 0; bottom: 0; width: 3px;
  background: rgba(255,255,255,0.16); border-radius: 3px;
}
.stem-fill {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 0;
  background: linear-gradient(to top, var(--marigold), #7fd4c2);
  border-radius: 3px; transition: height 0.25s linear;
  box-shadow: 0 0 14px rgba(127,212,194,0.6);
}
.saga-leaf {
  position: absolute; width: 30px; height: 30px; left: 7px;
  color: #7fd4c2; opacity: 0; transform: scale(0.2) rotate(-8deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: 50% 100%;
}
.saga-leaf svg { width: 100%; height: 100%; fill: currentColor; }
.saga-leaf.left  { transform-origin: right center; }
.saga-leaf.right { left: 15px; transform-origin: left center; }
.saga-leaf.lit { opacity: 0.95; transform: scale(1) rotate(0deg); color: var(--marigold); }

/* Chapter text — cinematic, crossfading in place */
.saga-stage { position: relative; z-index: 3; width: 100%; }
.saga-chapter {
  position: absolute; max-width: 620px; padding-left: clamp(52px, 8vw, 120px);
  opacity: 0; transform: translateY(34px); pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.saga-chapter.active { opacity: 1; transform: none; pointer-events: auto; }
.saga-num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.9; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.28); margin-bottom: 6px;
}
.saga-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: #ffd27a; margin-bottom: 16px;
}
.saga-title {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  color: #fff; font-size: clamp(2.1rem, 5.2vw, 4.2rem); line-height: 1.05;
  letter-spacing: -0.015em; margin-bottom: 18px; text-wrap: balance;
}
.saga-title em { color: #ffd27a; font-style: italic; }
.saga-line { color: #e7f2ee; font-size: clamp(1rem, 1.5vw, 1.22rem); max-width: 30ch; line-height: 1.6; }
.saga-stat { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; }
.saga-stat b {
  font-family: var(--font-display); font-weight: 700; color: #ffd27a;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.saga-stat span { font-size: 0.98rem; color: #bcd6cf; max-width: 12ch; }
.saga-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Progress rail + scroll cue */
.saga-progress {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 0; z-index: 5;
  background: linear-gradient(90deg, #7fd4c2, var(--marigold)); border-radius: 0 3px 0 0;
  transition: width 0.2s linear;
}
.saga-scrollcue {
  position: absolute; right: 26px; bottom: 24px; z-index: 5;
  color: rgba(255,255,255,0.7); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.saga-scrollcue span {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; position: relative;
}
.saga-scrollcue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0%,100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(11px); } }
.saga-climax .saga-scrollcue, .saga-sticky:has(.saga-climax.active) .saga-scrollcue { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .saga-scrollcue span::after { animation: none; }
  .saga-photo, .saga-veil, .saga-chapter, .saga-leaf, .stem-fill { transition: none; }
}
@media (max-width: 760px) {
  .saga { height: 440vh; }
  .saga-stem { left: 12px; width: 34px; }
  .stem-track { left: 15px; }
  .saga-leaf { width: 22px; height: 22px; }
  .saga-chapter { padding-left: 44px; padding-right: 20px; }
  .saga-num { font-size: clamp(2.6rem, 14vw, 4rem); }
  .saga-scrollcue { display: none; }
}

/* ---------- Timeline (About) — line draws itself on scroll ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px;
  background: var(--line); border-radius: 3px;
}
.timeline .tl-progress {
  position: absolute; left: 10px; top: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--marigold));
  border-radius: 3px; transform-origin: top; transform: scaleY(0);
  transition: transform 0.2s linear;
}
.tl-item { position: relative; padding: 0 0 34px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--line);
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
}
.tl-item.lit::before { border-color: var(--marigold); background: var(--marigold-soft); transform: scale(1.15); }
.tl-item .tl-year {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--primary);
}
.tl-item h3 { font-size: 1.05rem; margin: 3px 0 4px; }
.tl-item p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Partner marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 400;
  background: linear-gradient(90deg, var(--primary), var(--marigold));
  border-radius: 0 3px 3px 0;
}

/* ---------- Reveal variants & floaty ---------- */
.js-anim .reveal-left { opacity: 0; transform: translateX(-34px); }
.js-anim .reveal-right { opacity: 0; transform: translateX(34px); }
.reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }
.hero-card { animation: floaty 5.5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .hero-card { animation: none; }
}

/* ==========================================================================
   Mobile compactness pass — shorter boxes, tighter rhythm on phones
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 0.97rem; }
  .section { padding: 42px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 0.92rem; }
  h2 { font-size: 1.45rem; }
  .btn { padding: 12px 22px; font-size: 0.92rem; }

  .card-img-wrap { aspect-ratio: 2/1; }
  .card-body { padding: 14px 16px 16px; gap: 6px; }
  .card-body h3 { font-size: 1.02rem; }
  .card-body p { font-size: 0.86rem; }
  .card-body .meta { font-size: 0.76rem; }
  .card-more { font-size: 0.84rem; }
  .grid { gap: 14px; }

  .testimonial { padding: 18px 18px 16px; }
  .testimonial blockquote { font-size: 0.89rem; padding-top: 20px; }
  .testimonial::before { font-size: 3.4rem; }
  .testimonial .who .avatar { width: 36px; height: 36px; font-size: 0.9rem; }

  .page-banner { padding: 36px 0; }
  .page-banner p { font-size: 0.92rem; }
  .stats { padding: 40px 0; }
  .cta-band { padding: 48px 0; }
  .cta-band p { font-size: 0.94rem; margin-bottom: 22px; }

  .story { gap: 22px; }
  .story-photo img { aspect-ratio: 16/10; }
  .story-content p { font-size: 0.92rem; }
  .story-ticks li { font-size: 0.88rem; }

  .prog-photo { min-height: 190px; }
  .prog-content { padding: 18px; }
  .prog-content .p-ic { width: 42px; height: 42px; font-size: 1.2rem; margin-bottom: 10px; }
  .prog-points li { font-size: 0.85rem; }

  .info-card { padding: 18px; }
  .impact-card .imp-row { padding: 9px 0; }
  .impact-card .imp-ic { width: 36px; height: 36px; font-size: 1rem; }

  .site-footer .cols { gap: 26px; padding: 36px 0 28px; }
  .site-footer li { font-size: 0.87rem; margin-bottom: 8px; }
  .footer-bottom { font-size: 0.78rem; }

  .field input, .field select, .field textarea { padding: 11px 13px; font-size: 0.95rem; }
  .amount-row .amt { padding: 11px 18px; font-size: 1rem; }
  .partner-strip .partner { padding: 11px 20px; font-size: 0.85rem; }
  .prose { font-size: 0.97rem; }
  .timeline { padding-left: 28px; }
}

/* ---------- Gateway coming-soon panel (donate) ---------- */
.gateway-soon {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1.5px solid var(--marigold);
  border-left-width: 6px; border-radius: var(--r-md);
  padding: 18px 22px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.gateway-soon .gs-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--marigold-soft); color: var(--marigold-deep);
  display: flex; align-items: center; justify-content: center;
}
.gateway-soon b { font-size: 1.02rem; }
.gateway-soon p { color: var(--ink-soft); font-size: 0.9rem; margin: 4px 0 12px; }
.gs-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Onboarding checklist (dashboard) ---------- */
.onboard {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 80%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px);
  margin-bottom: 24px; box-shadow: var(--shadow-md);
}
.onboard h3 { color: #fff; font-size: 1.25rem; }
.onboard > p { color: #cfe8e2; font-size: 0.92rem; margin: 4px 0 18px; }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .onboard-steps { grid-template-columns: 1fr; } }
.ob-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-md); padding: 14px 16px;
  transition: background 0.2s ease;
}
.ob-step:hover { background: rgba(255, 255, 255, 0.16); }
.ob-step.done { border-color: rgba(255, 210, 122, 0.55); }
.ob-tick { flex: none; width: 30px; height: 30px; }
.ob-tick circle { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 2; }
.ob-step.done .ob-tick circle { stroke: var(--marigold); fill: rgba(242, 169, 29, 0.18); }
.ob-tick path {
  fill: none; stroke: var(--marigold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
}
.ob-step.done .ob-tick path { animation: tickDraw 0.5s ease-out 0.25s forwards; }
@keyframes tickDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ob-step.done .ob-tick path { animation: none; stroke-dashoffset: 0; } }
.ob-step b { display: block; font-size: 0.94rem; }
.ob-step span { font-size: 0.8rem; color: #cfe8e2; }
.ob-step a { color: #ffd27a; font-weight: 700; font-size: 0.84rem; }
.ob-step.done b { text-decoration: line-through; text-decoration-color: rgba(255, 210, 122, 0.7); text-decoration-thickness: 2px; }

/* ---------- Membership status tracker ---------- */
.tracker { display: flex; align-items: flex-start; margin: 14px 0 6px; }
.tracker .tk-step { flex: 1; text-align: center; position: relative; }
.tracker .tk-dot {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--paper); border: 2.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-weight: 800; font-size: 0.85rem;
  position: relative; z-index: 2; transition: all 0.4s ease;
}
.tracker .tk-step::before {
  content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 3px;
  background: var(--line); z-index: 1;
}
.tracker .tk-step:first-child::before { display: none; }
.tracker .tk-step.done .tk-dot,
.tracker .tk-step.now .tk-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.tracker .tk-step.done::before, .tracker .tk-step.now::before {
  background: linear-gradient(90deg, var(--primary), var(--primary));
  animation: trackFill 0.7s ease-out both;
  transform-origin: left;
}
@keyframes trackFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tracker .tk-step.now .tk-dot {
  box-shadow: 0 0 0 5px var(--primary-soft);
  animation: nowPulse 2.2s ease-in-out infinite;
}
@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-soft); }
  50% { box-shadow: 0 0 0 8px rgba(13, 122, 106, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .tracker .tk-step.now .tk-dot { animation: none; }
  .tracker .tk-step.done::before, .tracker .tk-step.now::before { animation: none; }
}
.tracker .tk-step.declined .tk-dot { border-color: var(--danger); background: var(--danger); color: #fff; }
.tracker .tk-step.declined::before { background: var(--danger); }
.tracker b { display: block; font-size: 0.82rem; }
.tracker small { color: var(--ink-faint); font-size: 0.72rem; }

/* ---------- Focus & press feedback (site-wide) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px;
}
.btn, button, .nav-donate, .mobile-cta a { touch-action: manipulation; }
.btn-primary:active, .btn-outline:active, .btn-light:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Badges & utilities ---------- */
.badge { display: inline-block; padding: 4px 14px; border-radius: var(--r-full); font-size: 0.78rem; font-weight: 800; }
.badge-green { background: #e9f5ec; color: var(--success); }
.badge-orange { background: var(--marigold-soft); color: var(--marigold-deep); }
.badge-red { background: #fdecea; color: var(--danger); }

.info-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
