/* =========================================================
   HUNGER NEED CARE FOUNDATION
   Shared stylesheet
   ---------------------------------------------------------
   1.  Tokens
   2.  Base
   3.  Preloader + scroll progress
   4.  Navigation
   5.  Buttons
   6.  Section furniture
   7.  Hero (home) + page headers (inner)
   8.  Content blocks
   9.  Cards, programs, stats
   10. Forms
   11. Gallery + lightbox
   12. Accordion
   13. Footer
   14. Animation library
   15. Responsive
   ========================================================= */

/* ── 1. TOKENS ───────────────────────────────────────── */
:root {
  /* blues (HNCF brand) */
  --blue:        #1E56C2;
  --blue-deep:   #0F3F9E;
  --blue-mid:    #2E6FCB;
  --blue-light:  #4A7FDB;
  --blue-pale:   #D7E4FA;
  --blue-wash:   #EDF3FD;
  --coral:       #D63A42;

  /* neutrals */
  --navy:        #0F1F45;
  --ink:         #16181D;
  --slate:       #43587A;
  --muted:       #61748C;
  --border:      #DCE5F0;
  --page:        #F7FAFD;
  --panel:       #EEF3FA;
  --white:       #FFFFFF;

  /* type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* layout */
  --gutter: 8vw;
  --nav-h: 78px;
  --shadow-sm: 0 2px 12px rgba(15, 31, 69, 0.06);
  --shadow-md: 0 10px 40px rgba(15, 31, 69, 0.09);
  --shadow-lg: 0 24px 70px rgba(15, 31, 69, 0.14);
}

/* ── 2. BASE ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
/* neutral ground so a slow or failed image never shows a white hole */
.hero-img, .program-card, .team-photo, .g-item, .img-stack img, .story img {
  background: linear-gradient(135deg, var(--blue-wash), var(--panel));
}
a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--blue-pale); color: var(--blue-deep); }

/* focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 999;
  background: var(--blue); color: #fff; padding: 0.7rem 1.2rem;
  font-size: 0.85rem; text-decoration: none; border-radius: 4px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── 3. PRELOADER + SCROLL PROGRESS ──────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--page);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-mark {
  font-family: var(--serif); font-size: 2rem; font-weight: 600;
  color: var(--blue); letter-spacing: 0.06em;
  position: relative; padding-bottom: 0.9rem;
}
.pre-mark::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 2px;
  width: 0; background: var(--blue);
  animation: preBar 1s var(--ease) forwards;
}
@keyframes preBar { to { width: 100%; } }

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-light));
  z-index: 200; transition: width 0.1s linear;
}

/* ── 4. NAVIGATION ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--gutter);
  background: rgba(247, 250, 253, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease),
              box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
              transform 0.45s var(--ease);
}
.nav.scrolled {
  padding: 0.85rem var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 26px rgba(15, 31, 69, 0.07);
}
.nav.hidden { transform: translateY(-104%); }

.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; line-height: 1.15;
}
.nav-logo-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; background: var(--navy);
  box-shadow: 0 4px 14px rgba(15, 31, 69, 0.26);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav-logo-mark img { width: 100%; height: 100%; }
.nav-logo:hover .nav-logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(15, 31, 69, 0.4);
}
.nav-logo-text {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600;
  color: var(--navy); letter-spacing: 0.01em;
}
.nav-logo-text span {
  display: block; font-family: var(--sans); font-size: 0.6rem;
  font-weight: 400; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.82rem; letter-spacing: 0.07em;
  text-transform: uppercase; font-weight: 400;
  position: relative; padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--blue);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: var(--blue); font-weight: 500; }
.nav-links a.current::after { width: 100%; }

.nav-cta {
  display: inline-block;
  background: var(--blue); color: #fff !important;
  padding: 0.7rem 1.5rem; line-height: 1.15; border-radius: 3px;
  overflow: hidden; isolation: isolate;
  transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 86, 194, 0.28); }
.nav-cta:hover::before { transform: translateY(0); }

/* burger */
.burger {
  display: none; width: 42px; height: 42px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: 200;
}
.burger span {
  display: block; position: absolute; left: 9px;
  height: 1.5px; width: 24px; background: var(--navy);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), width 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; width: 17px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 149;
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 1.5rem) 10vw 3rem;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: block; text-decoration: none; color: #fff;
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  padding: 0.5rem 0; letter-spacing: 0.01em;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease), color 0.25s;
}
.mobile-menu.open a { transform: translateY(0); }
.mobile-menu.open li:nth-child(1) a { transition-delay: 0.18s; }
.mobile-menu.open li:nth-child(2) a { transition-delay: 0.24s; }
.mobile-menu.open li:nth-child(3) a { transition-delay: 0.30s; }
.mobile-menu.open li:nth-child(4) a { transition-delay: 0.36s; }
.mobile-menu.open li:nth-child(5) a { transition-delay: 0.42s; }
.mobile-menu.open li:nth-child(6) a { transition-delay: 0.48s; }
.mobile-menu.open li:nth-child(7) a { transition-delay: 0.54s; }
.mobile-menu a:hover, .mobile-menu a.current { color: var(--blue-light); }
.mobile-menu-foot {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.9;
  opacity: 0; transition: opacity 0.5s 0.55s;
}
.mobile-menu.open .mobile-menu-foot { opacity: 1; }
.mobile-menu-foot a {
  font-family: var(--sans); font-size: 0.85rem; display: inline; transform: none;
  overflow-wrap: anywhere; word-break: break-word;
}

body.menu-open { overflow: hidden; }

/* ── 5. BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; cursor: pointer;
  font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; font-weight: 500;
  padding: 1rem 2.2rem; border: none; border-radius: 3px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(30,86,194,0.22); }
.btn-primary::before { background: var(--navy); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(30,86,194,0.32); }

.btn-outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-outline::before { background: var(--blue); }
.btn-outline:hover { color: #fff; }

.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light::before { background: var(--blue-pale); }

.btn-arrow {
  color: var(--ink); font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: color 0.25s var(--ease), gap 0.3s var(--ease);
}
.btn-arrow svg { transition: transform 0.35s var(--ease); }
.btn-arrow:hover { color: var(--blue); gap: 0.85rem; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ── 6. SECTION FURNITURE ────────────────────────────── */
section { padding: 7.5rem var(--gutter); position: relative; }
.section-alt { background: var(--panel); }
.section-navy { background: var(--navy); color: #fff; }

.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 2rem; height: 1px;
  background: var(--blue); transform-origin: left;
  animation: lineGrow 0.8s var(--ease) both;
}
.section-navy .eyebrow { color: var(--blue-light); }
.section-navy .eyebrow::before { background: var(--blue-light); }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.06;
  color: var(--navy); letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.14;
  color: var(--navy); letter-spacing: -0.005em;
}
.h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25;
  color: var(--navy);
}
.section-navy .h1, .section-navy .h2, .section-navy .h3 { color: #fff; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--blue); }
.section-navy .h1 em, .section-navy .h2 em, .section-navy .h3 em { color: var(--blue-light); }

.lede { font-size: 1.02rem; line-height: 1.9; color: var(--muted); max-width: 46ch; }
.section-navy .lede { color: rgba(255,255,255,0.62); }
.prose p { font-size: 1rem; line-height: 1.92; color: var(--muted); margin-bottom: 1.35rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 500; }

.rule { width: 3rem; height: 1px; background: var(--blue); margin: 1.8rem 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2.5rem; flex-wrap: wrap; margin-bottom: 3.5rem;
}

/* ── 7. HERO + PAGE HEADERS ──────────────────────────── */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7vw 5vw 7vw var(--gutter); position: relative; z-index: 2;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: 0.5; pointer-events: none; z-index: 0;
}
.hero-blob.b1 {
  width: 380px; height: 380px; top: -80px; left: -120px;
  background: radial-gradient(circle, rgba(74,127,219,0.5), transparent 70%);
  animation: drift1 16s ease-in-out infinite;
}
.hero-blob.b2 {
  width: 300px; height: 300px; bottom: -60px; left: 22%;
  background: radial-gradient(circle, rgba(215,228,250,0.9), transparent 70%);
  animation: drift2 20s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(60px, 50px) scale(1.12); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-50px, -40px) scale(1.08); }
}

.hero-title { margin-bottom: 1.8rem; }
.hero-desc { margin-bottom: 2.6rem; }
.hero-actions { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 3.5rem; display: flex; gap: 3rem; flex-wrap: wrap;
  padding-top: 2.2rem; border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--serif); font-size: 2.3rem; font-weight: 600;
  color: var(--navy); line-height: 1;
}
.stat-label {
  font-size: 0.7rem; color: var(--muted); margin-top: 0.35rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.hero-right { position: relative; overflow: hidden; }
.hero-img-grid { display: grid; grid-template-rows: 56% 44%; height: 100%; gap: 4px; }
.hero-img { position: relative; overflow: hidden; }
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.03);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.hero-img:hover img { transform: scale(1.09); filter: saturate(1) contrast(1.02); }
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(30,86,194,0.16), transparent 55%);
  pointer-events: none;
}
.hero-badge {
  position: absolute; bottom: 1.6rem; left: 1.6rem; z-index: 3;
  background: #fff; padding: 1.05rem 1.45rem; border-radius: 4px;
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}
.hero-badge-num { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--blue); line-height: 1; }
.hero-badge-text { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 0.25rem; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}

.scroll-cue {
  position: absolute; bottom: 2rem; left: var(--gutter); z-index: 3;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.scroll-cue i {
  display: block; width: 1px; height: 34px; background: var(--border);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; top: -34px; left: 0; width: 1px; height: 34px;
  background: var(--blue); animation: cueRun 2s ease-in-out infinite;
}
@keyframes cueRun { 0% { top: -34px; } 60%,100% { top: 34px; } }

/* inner page header */
.page-head {
  padding: calc(var(--nav-h) + 4.5rem) var(--gutter) 4.5rem;
  background: linear-gradient(165deg, var(--navy) 0%, #16264F 55%, var(--blue-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; top: -180px; right: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,219,0.28), transparent 68%);
  animation: drift1 18s ease-in-out infinite;
}
.page-head::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.6; pointer-events: none;
}
.page-head > * { position: relative; z-index: 2; }
.page-head .eyebrow { color: var(--blue-light); }
.page-head .eyebrow::before { background: var(--blue-light); }
.page-head h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; color: #fff;
  margin-bottom: 1.2rem;
}
.page-head h1 em { font-style: italic; color: var(--blue-light); }
.page-head p { color: rgba(255,255,255,0.66); font-size: 1rem; line-height: 1.85; max-width: 56ch; }

.crumbs {
  margin-top: 2.4rem; font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.crumbs a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.25s; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 0.5rem; }

/* ── 8. CONTENT BLOCKS ───────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5.5rem; align-items: center;
}
.split.wide-left { grid-template-columns: 1.15fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.15fr; }

.img-stack { position: relative; }
.img-stack img.main {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  filter: saturate(0.88); border-radius: 3px; box-shadow: var(--shadow-md);
}
.img-stack img.accent {
  position: absolute; bottom: -2rem; right: -2rem;
  width: 54%; aspect-ratio: 1/1; object-fit: cover;
  filter: saturate(0.88); border: 6px solid var(--page);
  border-radius: 3px; box-shadow: var(--shadow-md);
}
.section-alt .img-stack img.accent { border-color: var(--panel); }
.quote-chip {
  position: absolute; top: 2rem; left: -2rem; z-index: 3;
  background: var(--blue); color: #fff;
  padding: 1.15rem 1.4rem; max-width: 210px; border-radius: 3px;
  box-shadow: 0 12px 30px rgba(30,86,194,0.3);
  animation: floatY 6s ease-in-out infinite;
}
.quote-chip p { font-family: var(--serif); font-size: 1.08rem; font-style: italic; line-height: 1.5; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.4rem; }
.value-item {
  border-left: 2px solid var(--blue-pale); padding-left: 1.1rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.value-item:hover { border-left-color: var(--blue); transform: translateX(4px); }
.value-item h4 { font-size: 0.92rem; font-weight: 500; color: var(--navy); margin-bottom: 0.3rem; }
.value-item p { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }

/* impact bar */
.impact-bar {
  background: var(--navy); padding: 5rem var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.impact-bar::before {
  content: ''; position: absolute; top: -160px; left: 12%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,111,203,0.28), transparent 68%);
  animation: drift2 22s ease-in-out infinite;
}
.impact-item { position: relative; z-index: 2; }
.impact-num {
  font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--blue-light); line-height: 1;
}
.impact-label {
  font-size: 0.74rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.11em; margin-top: 0.6rem;
}

/* testimonial band */
.testimonial-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, var(--blue-mid));
  padding: 5rem var(--gutter);
  display: flex; align-items: center; gap: 3.5rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.testimonial-band::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: floatY 9s ease-in-out infinite;
}
.testimonial-mark {
  font-family: var(--serif); font-size: 5rem; color: rgba(255,255,255,0.28);
  line-height: 0.7; flex-shrink: 0;
}
.testimonial-content { flex: 1; min-width: 280px; position: relative; z-index: 2; }
.testimonial-text {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-style: italic; color: #fff; line-height: 1.55; font-weight: 300;
}
.testimonial-author {
  font-size: 0.78rem; color: rgba(255,255,255,0.72); margin-top: 1.2rem;
  letter-spacing: 0.09em; text-transform: uppercase;
}

/* marquee */
.marquee {
  background: var(--white); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 1.5rem 0; white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--muted); padding: 0 2rem; display: inline-flex; align-items: center; gap: 2rem;
}
.marquee-track span::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light);
}
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CTA band */
.cta-band {
  padding: 6rem var(--gutter); text-align: center;
  background: var(--blue-wash); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,219,0.18), transparent 66%);
  animation: pulseSlow 8s ease-in-out infinite;
}
@keyframes pulseSlow {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  50%     { transform: translate(-50%,-50%) scale(1.14); opacity: 1; }
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band .lede { margin: 1.4rem auto 2.4rem; }
.cta-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* ── 9. CARDS, PROGRAMS, STATS ───────────────────────── */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.program-card {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  text-decoration: none; display: block;
}
.program-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.62) brightness(0.82);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.program-card:hover img { transform: scale(1.08); filter: saturate(0.9) brightness(0.7); }
.program-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,31,69,0.9) 0%, rgba(15,31,69,0.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; transition: background 0.5s var(--ease);
}
.program-card:hover .program-overlay {
  background: linear-gradient(to top, rgba(15,63,158,0.94) 0%, rgba(30,86,194,0.35) 100%);
}
.program-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 300;
  color: rgba(255,255,255,0.2); position: absolute; top: 1.4rem; right: 1.6rem;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.program-card:hover .program-num { color: rgba(255,255,255,0.4); transform: translateY(-4px); }
.program-tag {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 0.5rem;
}
.program-title {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 400;
  color: #fff; line-height: 1.22; margin-bottom: 0.7rem;
}
.program-desc {
  font-size: 0.83rem; color: rgba(255,255,255,0.75); line-height: 1.75;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.4s var(--ease);
}
.program-card:hover .program-desc { max-height: 130px; opacity: 1; }
.program-more {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s 0.08s var(--ease), transform 0.4s 0.08s var(--ease);
}
.program-card:hover .program-more { opacity: 1; transform: translateY(0); }

/* generic card */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: 2.2rem 1.9rem; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-wash); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.3rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card-icon { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--navy); margin-bottom: 0.6rem; }
.card p { font-size: 0.88rem; color: var(--muted); line-height: 1.78; }
.card-step {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 300;
  color: var(--blue-pale); line-height: 1; margin-bottom: 0.8rem;
  transition: color 0.4s var(--ease);
}
.card:hover .card-step { color: var(--blue-light); }

/* timeline */
.timeline { position: relative; margin-top: 3.5rem; padding-left: 2.4rem; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--blue-pale), var(--blue-light), var(--blue-pale));
}
.tl-item { position: relative; padding-bottom: 2.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -2.4rem; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--page); border: 2px solid var(--blue);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.section-alt .tl-item::before { background: var(--panel); }
.tl-item:hover::before { background: var(--blue); transform: scale(1.25); }
.tl-year {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 0.35rem;
}
.tl-item h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; }
.tl-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; max-width: 56ch; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.team-card { text-align: left; }
.team-photo {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4/5; margin-bottom: 1rem;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) contrast(1.02);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.07); filter: saturate(1); }
.team-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,63,158,0.55), transparent 60%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.team-card:hover .team-photo::after { opacity: 1; }
.team-card h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.team-card span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

/* ── 10. FORMS ───────────────────────────────────────── */
.form-card {
  background: #fff; padding: 2.8rem; border-radius: 5px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.form-card h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; color: var(--navy); margin-bottom: 1.8rem; }
.form-group { margin-bottom: 1.3rem; position: relative; }
.form-group label {
  display: block; font-size: 0.7rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.5rem; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.form-group:focus-within label { color: var(--blue); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.9rem 1rem;
  border: 1px solid var(--border); background: var(--page);
  font-family: var(--sans); font-size: 0.92rem; font-weight: 300;
  color: var(--ink); border-radius: 3px; outline: none;
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
  appearance: none;
}
.form-group textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2361748C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.4rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(30,86,194,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.45rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 0.6rem; }
.secure-note {
  font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}

.form-status {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 3px;
  font-size: 0.85rem; background: var(--blue-wash); color: var(--blue-deep);
  border: 1px solid var(--blue-pale);
  opacity: 0; transform: translateY(-6px); max-height: 0; overflow: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), max-height 0.4s var(--ease), margin 0.4s;
}
.form-status.show { opacity: 1; transform: translateY(0); max-height: 200px; }

/* donation tiers */
.tiers { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }
.tier {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border: 1px solid var(--border);
  cursor: pointer; border-radius: 4px; background: #fff;
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tier:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-color: var(--blue-light); }
.tier.active { border-color: var(--blue); background: rgba(30,86,194,0.035); }
.tier-amount { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.tier-desc { font-size: 0.8rem; color: var(--muted); }
.tier-circle {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); position: relative;
  transition: border-color 0.3s var(--ease);
}
.tier-circle::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--blue); transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.tier:hover .tier-circle { border-color: var(--blue-light); }
.tier.active .tier-circle { border-color: var(--blue); }
.tier.active .tier-circle::after { transform: scale(1); }

.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(30,86,194,0.14); pointer-events: none;
  animation: rippleOut 0.65s var(--ease-soft);
}
@keyframes rippleOut { to { transform: scale(3.2); opacity: 0; } }

/* freq toggle */
.freq-toggle {
  display: inline-flex; background: var(--panel); padding: 4px;
  border-radius: 999px; margin-bottom: 1.6rem; border: 1px solid var(--border);
}
.freq-toggle button {
  border: none; background: none; cursor: pointer;
  padding: 0.55rem 1.5rem; border-radius: 999px;
  font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.freq-toggle button.active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(30,86,194,0.25); }

/* ── 11. GALLERY + LIGHTBOX ──────────────────────────── */
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.filter-bar button {
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  padding: 0.55rem 1.3rem; border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  transition: all 0.3s var(--ease);
}
.filter-bar button:hover { border-color: var(--blue-light); color: var(--blue); }
.filter-bar button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; grid-auto-rows: 220px;
}
.g-item {
  position: relative; overflow: hidden; border-radius: 4px; cursor: pointer;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img, .g-item video {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1;
  filter: saturate(0.78);
  transition: transform 0.85s var(--ease), filter 0.5s var(--ease);
}
.g-item video { background: var(--ink); }
.g-item:hover img, .g-item:hover video { transform: scale(1.08); filter: saturate(1); }
.g-cap {
  position: absolute; inset: 0; padding: 1.4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(15,31,69,0.82), transparent 58%);
  opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
}
.g-item:hover .g-cap { opacity: 1; }
.g-cap strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.g-cap span { color: rgba(255,255,255,0.65); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; margin-top: 0.2rem; }
.g-item.hide { opacity: 0; transform: scale(0.94); pointer-events: none; display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 20, 38, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 6vw;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 4px; transform: scale(0.94);
  transition: transform 0.45s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-cap { color: rgba(255,255,255,0.7); text-align: center; margin-top: 1rem; font-size: 0.85rem; }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

/* stories */
.story {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem;
  align-items: center; padding: 2.4rem 0; border-bottom: 1px solid var(--border);
}
.story:last-child { border-bottom: none; }
.story img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; filter: saturate(0.82); }
.story blockquote {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--navy); line-height: 1.55; font-weight: 300; margin-bottom: 1rem;
}
.story cite {
  font-style: normal; font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
}

/* ── 12. ACCORDION ───────────────────────────────────── */
.accordion { border-top: 1px solid var(--border); margin-top: 2.5rem; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; text-align: left;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--navy);
  transition: color 0.28s var(--ease);
}
.acc-head:hover { color: var(--blue); }
.acc-icon {
  flex-shrink: 0; width: 26px; height: 26px; position: relative;
  border: 1px solid var(--border); border-radius: 50%;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--blue);
  transform: translate(-50%, -50%); transition: opacity 0.3s var(--ease), background 0.3s;
}
.acc-icon::before { width: 11px; height: 1px; }
.acc-icon::after  { width: 1px; height: 11px; }
.acc-item.open .acc-icon { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.acc-item.open .acc-icon::before { background: #fff; }
.acc-item.open .acc-icon::after { opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-body p { font-size: 0.92rem; color: var(--muted); line-height: 1.88; padding-bottom: 1.6rem; max-width: 68ch; }

/* contact info list */
.info-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2.4rem; }
.info-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-wash); color: var(--blue);
  display: grid; place-items: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.info-row:hover .info-ico { background: var(--blue); color: #fff; transform: translateY(-3px); }
.info-row h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; font-weight: 500; }
.info-row p, .info-row a { font-size: 0.95rem; color: var(--ink); text-decoration: none; line-height: 1.6; }
.info-row a:hover { color: var(--blue); }
.placeholder-tag {
  display: inline-block; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-wash);
  padding: 0.15rem 0.5rem; border-radius: 3px; margin-left: 0.4rem; vertical-align: middle;
}

.map-frame {
  width: 100%; aspect-ratio: 16/10; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  display: grid; place-items: center; text-align: center; padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.map-frame p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; }

/* ── 13. FOOTER ──────────────────────────────────────── */
footer { background: var(--navy); color: #fff; padding: 5rem var(--gutter) 2.4rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 3.5rem; margin-bottom: 3.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.footer-logo-mark {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: #0A1730;
}
.footer-logo-mark img { width: 100%; height: 100%; }
.footer-logo-text { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.85; max-width: 34ch; }
.footer-col h5 {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a {
  text-decoration: none; font-size: 0.86rem; color: rgba(255,255,255,0.52);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
  display: inline-block;
}
.footer-col ul a:hover { color: #fff; padding-left: 5px; }

.socials { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center; color: rgba(255,255,255,0.6);
  transition: all 0.32s var(--ease);
}
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-4px); }

.newsletter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.newsletter .form-status { width: 100%; margin-top: 0; }
.newsletter input {
  flex: 1 1 150px; min-width: 0; padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-family: var(--sans); font-size: 0.85rem; font-weight: 300;
  border-radius: 3px; outline: none; transition: border-color 0.28s var(--ease);
}
.newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter input:focus { border-color: var(--blue-light); }
.newsletter button {
  background: var(--blue); border: none; color: #fff; cursor: pointer;
  padding: 0 1.1rem; border-radius: 3px;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease);
}
.newsletter button:hover { background: var(--blue-mid); transform: translateX(2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.32); }

#to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 140;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(30,86,194,0.34);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.4s var(--ease);
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { background: var(--navy); transform: translateY(-4px); }

/* ── 14. ANIMATION LIBRARY ───────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }

.anim-up   { animation: fadeUp 0.9s var(--ease) both; }
.anim-in   { animation: fadeIn 1.1s var(--ease) both; }
.anim-left { animation: fadeLeft 0.9s var(--ease) both; }
.d1 { animation-delay: 0.12s; } .d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; } .d4 { animation-delay: 0.48s; }
.d5 { animation-delay: 0.60s; } .d6 { animation-delay: 0.72s; }

/* scroll reveal */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(38px); }
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="blur"]  { filter: blur(9px); transform: translateY(22px); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* line-by-line title reveal */
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span {
  display: block; transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.reveal-lines.in .line > span { transform: translateY(0); }
.reveal-lines.in .line:nth-child(2) > span { transition-delay: 0.11s; }
.reveal-lines.in .line:nth-child(3) > span { transition-delay: 0.22s; }
.reveal-lines.in .line:nth-child(4) > span { transition-delay: 0.33s; }

.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .reveal-lines .line > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .parallax { transform: none !important; }
}

/* ── 15. RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1340px) {
  .nav-links { gap: 1.15rem; }
  .nav-links a { font-size: 0.75rem; letter-spacing: 0.05em; }
  .nav-cta { padding: 0.65rem 1.15rem; }
  .nav-logo-text { font-size: 1.05rem; }
}

@media (max-width: 1180px) {
  .team-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 4rem; }
}

@media (max-width: 1024px) {
  :root { --gutter: 6vw; }
  .nav-links { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 4rem var(--gutter) 3rem; }
  .hero-right { height: 58vh; min-height: 380px; }
  .hero-img-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .scroll-cue { display: none; }
  .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: 3rem; }
  .img-stack { max-width: 520px; }
  .programs-grid, .card-grid, .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  section { padding: 5.5rem var(--gutter); }
}

@media (max-width: 720px) {
  :root { --gutter: 6vw; --nav-h: 68px; }
  section { padding: 4.5rem var(--gutter); }
  .hero-stats { gap: 1.8rem 2.2rem; }
  .stat-num { font-size: 1.9rem; }
  .hero-right { height: 44vh; min-height: 280px; }
  .hero-actions { gap: 1rem; }
  .btn { padding: 0.9rem 1.7rem; font-size: 0.75rem; }
  .impact-bar { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.5rem; padding: 3.5rem var(--gutter); }
  .programs-grid, .card-grid, .card-grid.two, .card-grid.four,
  .team-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 240px; }
  .g-item.tall, .g-item.wide { grid-row: span 1; grid-column: span 1; }
  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.9rem 1.5rem; }
  .img-stack img.accent, .quote-chip { display: none; }
  .story { grid-template-columns: 1fr; gap: 1.4rem; }
  .story img { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .testimonial-band { gap: 1.5rem; padding: 3.5rem var(--gutter); }
  .testimonial-mark { font-size: 3.5rem; }
  .page-head { padding: calc(var(--nav-h) + 3.5rem) var(--gutter) 3.5rem; }
  .mobile-menu a { font-size: 1.6rem; padding: 0.35rem 0; }
  .mobile-menu-foot { margin-top: 2rem; padding-top: 1.5rem; }
  .program-desc { max-height: 130px; opacity: 1; }
  .program-more { opacity: 1; transform: none; }
  .g-cap { opacity: 1; }
  #to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .nav-logo-text { font-size: 1rem; }
  .nav-logo-text span { font-size: 0.53rem; letter-spacing: 0.1em; }
  .hero-stats { gap: 1.4rem; }
  .marquee-track span { font-size: 1.05rem; }
}

/* ── 16. PROJECTS ────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.project-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }
.project-visual { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--panel); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-card:hover .project-visual img { transform: scale(1.06); }
.project-visual span {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(15,31,69,0.86); color: #fff; backdrop-filter: blur(6px);
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 999px;
}
.project-body { padding: 1.9rem; display: flex; flex-direction: column; flex: 1; }
.project-meta {
  display: flex; gap: 1.2rem; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.7rem;
}
.project-body h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--navy); margin-bottom: 0.7rem; }
.project-body > p { font-size: 0.9rem; color: var(--muted); line-height: 1.82; }
.project-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 1.5rem 0; padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.project-fact strong {
  display: block; font-family: var(--serif); font-size: 1.5rem;
  font-weight: 600; color: var(--blue); line-height: 1;
}
.project-fact span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.project-highlights { list-style: none; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.project-highlights li {
  font-size: 0.86rem; color: var(--muted); line-height: 1.75;
  padding-left: 1.4rem; position: relative;
}
.project-highlights li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light);
}
.project-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1.5rem; }
.project-gallery img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px;
  background: var(--panel); cursor: pointer;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.project-gallery img:hover { transform: scale(1.05); opacity: 0.9; }

/* bank details block */
.bank-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.bank-row:last-child { border-bottom: none; }
.bank-row span { font-size: 0.7rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.bank-row strong { font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }

@media (max-width: 1024px) { .project-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .project-facts { grid-template-columns: 1fr; gap: 0.9rem; text-align: left; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .bank-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}
