/* ==========================================================================
   Home page — Header, Hero, Stats, Story, Quote, Programmes, Gallery,
   Donor wall, CTA, Footer
   ========================================================================== */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(245, 240, 225, 0.97);
  box-shadow: 0 2px 20px rgba(42, 33, 24, 0.1);
  backdrop-filter: blur(8px);
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 24px rgba(42, 33, 24, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand {
  padding: 2px 8px;
  border-radius: var(--r-sm);
}
.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.03); }
.brand-text { display: none; }

/* Desktop nav */
.nav-desktop { display: none; }
@media (min-width: 1024px) { .nav-desktop { display: block; } }
.nav-list {
  display: flex; align-items: center; gap: 2px;
  background: rgba(245, 240, 225, 0.92);
  border: 1px solid rgba(201, 184, 150, 0.45);
  border-radius: 9999px;
  padding: 6px;
}
.nav-list > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.nav-list > li > a:hover, .nav-list > li.active > a {
  background: var(--madder); color: var(--lime);
}
.nav-list > li > a svg { transition: transform 0.2s var(--ease); }
.nav-list > li:hover > a svg { transform: rotate(180deg); }

.nav-item { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 120;
}
.mega-menu.visible {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-inner {
  background: var(--white-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex; flex-direction: column;
  min-width: 220px;
}
.mega-inner a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: background 0.2s var(--ease);
}
.mega-inner a strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.9rem;
  color: var(--ink);
}
.mega-inner a span {
  display: block; font-size: 0.75rem;
  color: var(--ink-muted); margin-top: 2px;
}
.mega-inner a:hover { background: var(--lime-wash); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }

/* Mobile header: shrink logo, hide donate button, tighten gaps */
@media (max-width: 640px) {
  .header-actions { gap: 8px; }
  .header-actions .btn.btn-sm { display: none; }
  .brand-logo { height: 36px; }
  .brand { padding: 2px 4px; }
  .search-trigger { width: 34px; height: 34px; }
  .search-trigger svg { width: 16px; height: 16px; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .brand-logo { height: 30px; }
  .header-actions { gap: 6px; }
}

/* Nav toggle */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center;
  width: 44px; height: 44px; gap: 5px;
  border-radius: 50%;
  background: var(--white-warm);
  border: 1px solid var(--hairline);
  z-index: 160;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 1px;
  transition: all 0.3s var(--ease);
  margin: 0 auto;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile nav drawer */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(42, 33, 24, 0.6);
  opacity: 0; visibility: hidden;
  transition: all 0.35s var(--ease);
  z-index: 110;
}
.nav-overlay.visible { opacity: 1; visibility: visible; }
.nav-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 85vw);
  background: var(--white-warm);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 150;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(42, 33, 24, 0.15);
}
.nav-menu.open { transform: translateX(0); }
.nav-menu-inner { padding: 80px 28px 40px; }
.nav-menu-section { margin-bottom: 24px; border-bottom: 1px solid var(--lime-dark); padding-bottom: 18px; }
.nav-menu-section:last-of-type { border-bottom: none; }
.nav-menu-section h4 {
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gold);
  margin-bottom: 10px; font-weight: 700;
}
.nav-menu-section a {
  display: block; padding: 7px 0;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.nav-menu-section a:hover { color: var(--madder); }
.nav-menu-cta { margin-top: 28px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--madder-dark);
  overflow: hidden;
}
.hero-bg {
  position: relative;
  width: 100%;
  line-height: 0;
}
.hero-bg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Hero slider (crossfade) --- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--madder-dark);
  min-height: 52vh;
}
/* Stable height — tall hero for persistent presence */
.hero-slider::before {
  content: '';
  display: block;
  padding-top: 50%;
}
@media (max-width: 1024px) {
  .hero-slider::before { padding-top: 55%; }
}
@media (max-width: 768px) {
  .hero-slider::before { padding-top: 62%; }
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 225, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.hero-dot:hover { background: rgba(245, 240, 225, 0.6); }
.hero-dot.active {
  background: var(--gold-light);
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .hero-dots { bottom: 16px; right: 16px; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(94, 29, 18, 0.94) 0%,
    rgba(94, 29, 18, 0.80) 30%,
    rgba(94, 29, 18, 0.45) 60%,
    rgba(94, 29, 18, 0.10) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  padding-top: 70px;
}
.hero-text {
  max-width: 580px;
  color: var(--lime);
  padding: 0 24px;
}
.hero-text > * {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.hero-text.loaded > * { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.hero-text.loaded > *:nth-child(1) { transition-delay: 0.15s; }
.hero-text.loaded > *:nth-child(2) { transition-delay: 0.30s; }
.hero-text.loaded > *:nth-child(3) { transition-delay: 0.45s; }
.hero-text.loaded > *:nth-child(4) { transition-delay: 0.60s; }

.hero-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--lime);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(245, 240, 225, 0.92);
  margin-bottom: 30px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.5;
  animation: bob 2.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (max-width: 768px) { .scroll-cue { display: none; } }

/* ===== SLOGAN FRIEZE ===== */
.slogan-frieze {
  background: var(--madder);
  position: relative;
  text-align: center;
}
.merlon-top, .merlon-bottom {
  height: 12px;
  color: var(--madder-dark);
  line-height: 0;
}
.merlon-top { background: var(--madder-dark); }
.merlon-top svg { display: block; width: 100%; height: 12px; color: var(--madder); }
.merlon-bottom { background: var(--madder-dark); }
.merlon-bottom svg { display: block; width: 100%; height: 12px; color: var(--madder); transform: rotate(180deg); }
.slogan-content {
  padding: 32px 24px;
  position: relative;
}
.slogan-deva {
  font-family: var(--font-deva);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold-light);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.slogan-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}
.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.slogan-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(245, 240, 225, 0.88);
  letter-spacing: 0.04em;
}

/* ===== STATS — Fresco Wall ===== */
.stats-section {
  padding: 100px 0;
  background: var(--madder-dark);
  position: relative;
  overflow: hidden;
}
.stats-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='%23c89832' fill-opacity='0.03'/%3E%3Cpath d='M40 20L60 40L40 60L20 40Z' fill='none' stroke='%23c89832' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-section > .container { position: relative; z-index: 1; }
.stats-header { text-align: center; margin-bottom: 56px; }
.stats-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.stats-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--lime);
}
.stats-header h2 em { color: var(--gold-light); font-style: italic; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { stats-grid { grid-template-columns: 1fr; } }

.stat-panel {
  position: relative;
  padding: 40px 24px 32px;
  text-align: center;
  background: rgba(245, 240, 225, 0.04);
  border: 1px solid rgba(200, 152, 50, 0.18);
  border-radius: var(--r-md);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.stat-panel:hover {
  background: rgba(245, 240, 225, 0.08);
  border-color: rgba(200, 152, 50, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.stat-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1.5px solid var(--gold);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}
.stat-panel:hover .stat-corner { opacity: 0.8; }
.stat-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.stat-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.stat-glyph {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--gold);
  opacity: 0.6;
  transition: all 0.4s var(--ease);
}
.stat-panel:hover .stat-glyph { opacity: 1; transform: scale(1.1); }
.stat-glyph svg { width: 100%; height: 100%; }

.stat-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  vertical-align: super;
}
.stat-label {
  font-weight: 600;
  color: var(--lime);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 0.76rem;
  color: rgba(245, 240, 225, 0.55);
}

/* Registration seals */
.stats-seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.seal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(200, 152, 50, 0.08);
  border: 1px solid rgba(200, 152, 50, 0.25);
  border-radius: 9999px;
  font-size: 0.78rem;
  color: rgba(245, 240, 225, 0.8);
  transition: all 0.3s var(--ease);
}
.seal:hover {
  background: rgba(200, 152, 50, 0.15);
  border-color: rgba(200, 152, 50, 0.5);
}
.seal-icon {
  width: 20px; height: 20px;
  color: var(--gold-light);
  flex-shrink: 0;
}
.seal-icon svg { width: 100%; height: 100%; }

/* ===== STORY ===== */
.story-section {
  padding: 100px 0;
  background: var(--white-warm);
  position: relative;
  overflow: hidden;
}
.story-section::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 360px;
  height: 360px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cpath d='M50 160c0-35 8-55 28-55 4-18 14-30 28-30 8 0 14 4 17 12 3-2 7-3 11-3 6 0 10 3 12 8 5-4 12-6 19-6 16 0 28 12 28 28 0 10-4 18-10 24 4 5 6 12 6 18 0 12-10 22-22 22h-6c-3 10-11 16-21 16s-18-6-21-16h-18c-3 10-11 16-21 16s-18-6-21-16h-4c-10 0-18-8-18-18z' stroke='%238b2c1a' stroke-width='1.2' stroke-opacity='0.05'/%3E%3Ccircle cx='100' cy='95' r='2.5' fill='%238b2c1a' fill-opacity='0.05'/%3E%3Cpath d='M58 145c8 4 16 6 26 6M125 145c8 4 16 6 26 6' stroke='%238b2c1a' stroke-width='1' stroke-opacity='0.05'/%3E%3Cpath d='M70 75c0-8 6-14 14-14M120 75c0-8 6-14 14-14' stroke='%238b2c1a' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.story-section > .container { position: relative; z-index: 1; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }

.story-photo { position: relative; }
.story-photo .bezel { background: var(--madder); border-color: var(--madder); }
.story-photo img { width: 100%; border-radius: inherit; display: block; }
.story-photo-badge { position: absolute; bottom: -18px; right: -18px; z-index: 2; }
.badge-year {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; padding: 12px 22px;
  border-radius: 9999px;
  box-shadow: var(--shadow-card);
}

.story-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 22px; }
.story-text h2 em { color: var(--madder); font-style: italic; }
.story-text p { color: var(--ink-soft); margin-bottom: 1.2rem; line-height: 1.75; font-size: 1.02rem; }

.timeline { margin: 32px 0; }
.timeline-dot { position: relative; padding-left: 32px; margin-bottom: 20px; }
.timeline-dot::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px;
  background: var(--gold);
  transform: rotate(45deg);
}
.timeline-dot::after {
  content: ''; position: absolute;
  left: 5px; top: 22px; bottom: -14px;
  width: 1px; background: var(--hairline);
}
.timeline-dot:last-child::after { display: none; }
.timeline-year { font-family: var(--font-display); font-weight: 700; color: var(--madder); font-size: 0.95rem; }
.timeline-text { color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }

/* ===== QUOTE ===== */
.quote-section { padding: 100px 0; background: var(--madder-dark); position: relative; overflow: hidden; }
.quote-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='%23c89832' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.quote-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cpath d='M0 24V8h12V0h16v8h12v16z' fill='%23c89832' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  pointer-events: none;
}
.quote-section > * { position: relative; z-index: 1; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem; color: var(--gold);
  opacity: 0.25; line-height: 1;
  margin-bottom: -16px;
}
.quote-section .pull-quote {
  color: var(--lime);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  max-width: 760px;
  line-height: 1.45;
}
.quote-attribution { margin-top: 28px; }
.quote-name { font-family: var(--font-display); font-weight: 700; color: var(--gold-light); font-size: 1.1rem; }
.quote-role { color: rgba(245, 240, 225, 0.7); font-size: 0.88rem; display: block; margin-top: 2px; }

/* ===== PROGRAMMES ===== */
.programs-section {
  padding: 100px 0;
  background: var(--white-warm);
  position: relative;
  overflow: hidden;
}
.programs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10L110 60L60 110L10 60Z' fill='none' stroke='%23c89832' stroke-width='0.8' stroke-opacity='0.05'/%3E%3Cpath d='M60 30L90 60L60 90L30 60Z' fill='none' stroke='%23c89832' stroke-width='0.6' stroke-opacity='0.04'/%3E%3Ccircle cx='60' cy='60' r='4' fill='none' stroke='%23c89832' stroke-width='0.5' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.programs-section > .container { position: relative; z-index: 1; }
.programs-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.programs-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.programs-sub { color: var(--ink-soft); font-size: 1.05rem; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .programs-grid { grid-template-columns: 1fr; } }

.program-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--white-warm);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--madder-light);
}
.program-card-wide { grid-column: span 2; flex-direction: row; }
@media (max-width: 900px) { .program-card-wide { grid-column: span 1; flex-direction: column; } }

.program-photo { position: relative; height: 220px; overflow: hidden; flex-shrink: 0; }
.program-card-wide .program-photo { width: 45%; height: auto; }
.program-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.program-card:hover .program-photo img { transform: scale(1.06); }

.program-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.program-body h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--ink); }
.program-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; flex: 1; line-height: 1.65; }
.program-link { color: var(--madder); font-weight: 600; font-size: 0.85rem; transition: gap 0.2s var(--ease); }

/* ===== GALLERY ===== */
.gallery-section {
  padding: 100px 0;
  background: var(--lime);
  position: relative;
  overflow: hidden;
}
.gallery-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cellipse cx='100' cy='100' rx='70' ry='90' stroke='%232c4a6b' stroke-width='1' stroke-opacity='0.05'/%3E%3Cellipse cx='100' cy='100' rx='55' ry='70' stroke='%232c4a6b' stroke-width='0.8' stroke-opacity='0.04'/%3E%3Cellipse cx='100' cy='100' rx='40' ry='50' stroke='%23c89832' stroke-width='0.8' stroke-opacity='0.05'/%3E%3Cellipse cx='100' cy='100' rx='25' ry='30' fill='%232c4a6b' fill-opacity='0.03' stroke='%232c4a6b' stroke-width='0.6' stroke-opacity='0.05'/%3E%3Ccircle cx='100' cy='100' r='12' fill='%238b2c1a' fill-opacity='0.04'/%3E%3Ccircle cx='100' cy='100' r='6' fill='%232a2118' fill-opacity='0.05'/%3E%3Cpath d='M100 10v20M100 170v20M10 100h20M170 100h20M30 30l14 14M156 156l14 14M170 30l-14 14M44 156l-14 14' stroke='%232c4a6b' stroke-width='0.6' stroke-opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.gallery-section > .container-wide { position: relative; z-index: 1; }
.gallery-header { text-align: center; margin-bottom: 48px; }
.gallery-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 200px 200px; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery-item-tall { grid-row: auto; }
  .gallery-item-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-item-tall, .gallery-item-wide { grid-row: auto; grid-column: auto; }
}

.gallery-cap {
  position: absolute; bottom: 16px; left: 16px;
  color: var(--lime); font-weight: 600; font-size: 0.85rem; z-index: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.gallery-cta { text-align: center; margin-top: 40px; }

/* ===== DONOR WALL ===== */
.donor-section {
  padding: 100px 0;
  background: var(--madder);
  color: var(--lime);
  position: relative;
  overflow: hidden;
}
.donor-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23f5f0e1' stroke-width='0.5' stroke-opacity='0.06'/%3E%3Cpath d='M30 15L45 30L30 45L15 30Z' fill='none' stroke='%23f5f0e1' stroke-width='0.4' stroke-opacity='0.04'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%23f5f0e1' stroke-width='0.4' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.donor-section > .container { position: relative; z-index: 1; }
.donor-header { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.donor-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; color: var(--lime); }
.donor-sub { color: rgba(245, 240, 225, 0.82); }

/* Donor carousel — continuous horizontal marquee */
.donor-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -12px;
  padding: 8px 12px;
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.donor-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: donor-marquee 50s linear infinite;
  will-change: transform;
}
.donor-track.paused { animation-play-state: paused; }
.donor-carousel:hover .donor-track { animation-play-state: paused; }
@keyframes donor-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}

.donor-card {
  flex: 0 0 280px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  background: rgba(245, 240, 225, 0.06);
  border: 1px solid rgba(245, 240, 225, 0.15);
  border-radius: var(--r-md);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.donor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.donor-card:hover {
  background: rgba(245, 240, 225, 0.12);
  border-color: rgba(200, 152, 50, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.donor-card:hover::before { opacity: 1; }

@media (max-width: 520px) { .donor-card { flex: 0 0 240px; } }

.donor-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--madder-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(200, 152, 50, 0.2);
}
.donor-card:hover .donor-icon {
  background: var(--gold-light);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 16px rgba(200, 152, 50, 0.4);
}

.donor-info { flex: 1; min-width: 0; }
.donor-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lime);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.donor-city {
  font-size: 0.76rem;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}
.donor-city::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

/* Scroll hint */
.donor-scroll-hint {
  text-align: center;
  margin-top: 24px;
  font-size: 0.76rem;
  color: rgba(245, 240, 225, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.donor-scroll-hint svg {
  width: 16px; height: 16px;
  color: var(--gold-light);
  animation: hint-bob 2s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0;
  background: var(--white-warm);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 280px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 180' fill='none'%3E%3Cpath d='M30 150c0-20 5-35 15-40-5-10-3-25 5-30 3-15 12-25 22-25 8 0 14 5 16 13 4-3 9-5 14-5 10 0 18 8 18 18 0 5-2 10-5 14 8 3 14 12 14 22 0 8-4 15-10 18v15h-8v-12c-3 1-6 2-10 2s-7-1-10-2v12h-8v-15c-6-3-10-10-10-18 0-3 1-6 2-8-5 2-10 6-12 12 3 5 5 11 5 18v15h-8v-12c-2 1-5 2-8 2s-6-1-8-2v12h-8z' stroke='%238b2c1a' stroke-width='1' stroke-opacity='0.04'/%3E%3Ccircle cx='70' cy='65' r='2' fill='%238b2c1a' fill-opacity='0.04'/%3E%3Cpath d='M55 55c0-5 4-9 9-9' stroke='%238b2c1a' stroke-width='0.8' stroke-opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-panel { max-width: 900px; margin: 0 auto; }
.cta-frame {
  background: var(--madder);
  border-radius: var(--r-xl);
  padding: 6px;
  box-shadow: var(--shadow-panel);
}
.cta-content {
  background: var(--madder-dark);
  border-radius: calc(var(--r-xl) - 6px);
  padding: 56px 40px;
  text-align: center;
  color: var(--lime);
}
@media (max-width: 600px) { .cta-content { padding: 40px 24px; } }
.cta-content h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--lime); margin-bottom: 16px; }
.cta-content h2 em { color: var(--gold-light); font-style: italic; }
.cta-content p { color: rgba(245, 240, 225, 0.85); max-width: 560px; margin: 0 auto 28px; line-height: 1.75; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: var(--lime-wash); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 72px 0 40px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h5, .footer-col h4 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(245, 240, 225, 0.75);
  font-size: 0.88rem;
  margin-bottom: 9px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 225, 0.1);
  padding: 22px 0;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245, 240, 225, 0.5);
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(245, 240, 225, 0.5); }
.footer-bottom a:hover { color: var(--gold-light); }


/* ==========================================================================
   SECTION ANIMATIONS — per-section WOW effects
   ========================================================================== */

/* Slogan frieze — fade in with slight scale */
.slogan-frieze .slogan-content {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.slogan-frieze.reveal-in .slogan-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.slogan-frieze .slogan-deva {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}
.slogan-frieze.reveal-in .slogan-deva { opacity: 1; transform: translateY(0); }
.slogan-frieze .slogan-divider {
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}
.slogan-frieze.reveal-in .slogan-divider { opacity: 1; transform: scaleX(1); }
.slogan-frieze .slogan-en {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.5s, transform 0.6s var(--ease) 0.5s;
}
.slogan-frieze.reveal-in .slogan-en { opacity: 1; transform: translateY(0); }

/* Merlon crenellations — slide in from edges */
.merlon-top { transform: translateY(-100%); transition: transform 0.6s var(--ease); }
.merlon-bottom { transform: translateY(100%); transition: transform 0.6s var(--ease); }
.slogan-frieze.reveal-in .merlon-top { transform: translateY(0); }
.slogan-frieze.reveal-in .merlon-bottom { transform: translateY(0); }

/* Stats — staggered panel entrance with scale */
.stat-panel {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stat-panel.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stat-panel.visible:nth-child(1) { transition-delay: 0.1s; }
.stat-panel.visible:nth-child(2) { transition-delay: 0.2s; }
.stat-panel.visible:nth-child(3) { transition-delay: 0.3s; }
.stat-panel.visible:nth-child(4) { transition-delay: 0.4s; }

/* Stat glyph — rotate on reveal */
.stat-glyph {
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.stat-panel.visible .stat-glyph {
  transform: rotate(0) scale(1);
  transition-delay: 0.3s;
}

/* Stat number — pulse glow after count-up */
.stat-panel.visible .stat-number {
  animation: pulse-glow 3s ease-in-out 1s infinite;
}

/* Stats seals — slide up from bottom */
.stats-seals {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stats-seals.visible { opacity: 1; transform: translateY(0); }

/* Story — photo slides in from left, text from right */
.story-photo {
  opacity: 0;
  transform: translateX(-60px) rotate(-3deg);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.story-photo.visible {
  opacity: 1;
  transform: translateX(0) rotate(0);
}
.story-photo .bezel {
  transform: scale(0.9);
  transition: transform 0.8s var(--ease) 0.2s;
}
.story-photo.visible .bezel { transform: scale(1); }

.story-text {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s;
}
.story-text.visible { opacity: 1; transform: translateX(0); }

/* Timeline dots — cascade in */
.timeline-dot {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.story-text.visible .timeline-dot:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.4s; }
.story-text.visible .timeline-dot:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.55s; }
.story-text.visible .timeline-dot:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.7s; }
.story-text.visible .timeline-dot:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.85s; }

/* Quote — dramatic entrance */
.quote-mark {
  opacity: 0;
  transform: scale(1.5) translateY(-20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.quote-mark.visible { opacity: 0.25; transform: scale(1) translateY(0); }

.pull-quote {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s;
}
.pull-quote.visible { opacity: 1; transform: translateY(0); }

.quote-attribution {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease) 0.5s, transform 0.6s var(--ease) 0.5s;
}
.quote-attribution.visible { opacity: 1; transform: translateY(0); }

/* Programmes — cards stagger in with lift */
.program-card {
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.program-card.visible { opacity: 1; transform: translateY(0) rotateX(0); }
.program-card.visible:nth-child(1) { transition-delay: 0.1s; }
.program-card.visible:nth-child(2) { transition-delay: 0.2s; }
.program-card.visible:nth-child(3) { transition-delay: 0.3s; }
.program-card.visible:nth-child(4) { transition-delay: 0.4s; }
.program-card.visible:nth-child(5) { transition-delay: 0.5s; }

/* Program photo — zoom on reveal */
.program-photo img {
  transform: scale(1.15);
  transition: transform 1.2s var(--ease);
}
.program-card.visible .program-photo img { transform: scale(1); }

/* Gallery — items reveal with clip-path */
.gallery-item {
  opacity: 0;
  clip-path: inset(20% 20% 20% 20%);
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease), clip-path 0.7s var(--ease), transform 0.7s var(--ease);
}
.gallery-item.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
.gallery-item.visible:nth-child(1) { transition-delay: 0.05s; }
.gallery-item.visible:nth-child(2) { transition-delay: 0.15s; }
.gallery-item.visible:nth-child(3) { transition-delay: 0.25s; }
.gallery-item.visible:nth-child(4) { transition-delay: 0.35s; }
.gallery-item.visible:nth-child(5) { transition-delay: 0.45s; }

/* Donor carousel — fade in the whole carousel */
.donor-carousel {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.donor-carousel.visible { opacity: 1; transform: translateY(0); }

.donor-scroll-hint {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}
.donor-carousel.visible ~ .donor-scroll-hint { opacity: 1; transform: translateY(0); }

/* CTA — frame scales in dramatically */
.cta-panel {
  opacity: 0;
  transform: scale(0.92) translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.cta-panel.visible { opacity: 1; transform: scale(1) translateY(0); }

.cta-content h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}
.cta-panel.visible h2 { opacity: 1; transform: translateY(0); }

.cta-content p {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s var(--ease) 0.35s, transform 0.6s var(--ease) 0.35s;
}
.cta-panel.visible p { opacity: 1; transform: translateY(0); }

.cta-section .cta-actions {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s var(--ease) 0.5s, transform 0.6s var(--ease) 0.5s;
}
.cta-panel.visible .cta-actions { opacity: 1; transform: translateY(0); }

/* CTA buttons — staggered pop */
.cta-section .cta-actions .btn {
  transform: translateY(20px) scale(0.9);
  transition: transform 0.5s var(--ease);
}
.cta-panel.visible .cta-actions .btn:nth-child(1) { transform: translateY(0) scale(1); transition-delay: 0.55s; }
.cta-panel.visible .cta-actions .btn:nth-child(2) { transform: translateY(0) scale(1); transition-delay: 0.65s; }
.cta-panel.visible .cta-actions .btn:nth-child(3) { transform: translateY(0) scale(1); transition-delay: 0.75s; }

/* Watermark animations — slow float for corner watermarks */
.story-section::before { animation: float-slow 8s ease-in-out infinite; transform: translateY(var(--parallax-y, 0)); }
.gallery-section::before { animation: float-gentle 10s ease-in-out infinite; transform: translateY(var(--parallax-y, 0)); }
.cta-section::before { animation: float-slow 12s ease-in-out infinite; transform: translateY(var(--parallax-y, 0)); }

/* Tiled watermarks — slow drift */
.programs-section::before { animation: drift 30s linear infinite; }
.donor-section::before { animation: drift-slow 25s linear infinite; }

/* Section headers — eyebrow + title stagger */
.stats-header .stats-eyebrow {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stats-header.visible .stats-eyebrow { opacity: 1; transform: translateY(0); }
.stats-header h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
}
.stats-header.visible h2 { opacity: 1; transform: translateY(0); }

.programs-header {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.programs-header.visible { opacity: 1; transform: translateY(0); }

.gallery-header {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.gallery-header.visible { opacity: 1; transform: translateY(0); }

.donor-header {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.donor-header.visible { opacity: 1; transform: translateY(0); }

/* Scroll cue — enhanced bob */
@keyframes bob-enhanced {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}
.scroll-cue { animation: bob-enhanced 2s ease-in-out infinite; }

/* Hero dots — staggered fade in */
.hero-dot {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-dots.loaded .hero-dot { opacity: 1; transform: translateY(0); }
.hero-dots.loaded .hero-dot:nth-child(1) { transition-delay: 0.8s; }
.hero-dots.loaded .hero-dot:nth-child(2) { transition-delay: 0.85s; }
.hero-dots.loaded .hero-dot:nth-child(3) { transition-delay: 0.9s; }
.hero-dots.loaded .hero-dot:nth-child(4) { transition-delay: 0.95s; }
