/* ============================================================
   The Grace Community Centre — Premium Design System v2
   Editorial navy + gold on warm paper. Real photography led.
   Type: Fraunces (display serif) + Inter (UI/body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper: #F7F4EC;
  --paper-2: #EFEADD;
  --surface: #FFFFFF;

  /* Navy / brand */
  --navy-900: #0A2436;
  --navy: #0F3D5E;
  --navy-700: #15507A;
  --blue: #2F7DB5;
  --navy-soft: #E3EAF1;

  /* Gold */
  --gold: #F4B23E;
  --gold-deep: #CE8E1C;
  --gold-soft: #FBEAC6;

  /* Ink / text */
  --ink: #16242F;
  --ink-soft: #51616E;
  --ink-faint: #8696A2;

  /* Lines */
  --line: #E7E1D2;
  --line-strong: #D8D0BD;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(10,36,54,.06);
  --shadow-sm: 0 2px 8px -2px rgba(10,36,54,.10), 0 1px 3px rgba(10,36,54,.06);
  --shadow-md: 0 14px 34px -12px rgba(10,36,54,.20), 0 6px 14px -8px rgba(10,36,54,.12);
  --shadow-lg: 0 34px 70px -22px rgba(10,36,54,.32), 0 12px 28px -14px rgba(10,36,54,.18);
  --shadow-gold: 0 16px 34px -12px rgba(206,142,28,.55);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --container: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--navy); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.display {
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
p { max-width: 66ch; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.center-line { justify-content: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.65; }
.serif-accent { font-style: italic; color: var(--gold-deep); font-weight: 500; }
.num-label { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-deep); font-size: 1.05rem; font-weight: 500; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { max-width: 740px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }
.section-head.center p { margin-inline: auto; }
.bg-paper-2 { background: var(--paper-2); }
.bg-navy { background: var(--navy); color: #E7EEF4; position: relative; }
.bg-navy::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: .04; pointer-events: none; mix-blend-mode: overlay; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .container { position: relative; z-index: 1; }

.grid { display: grid; gap: 1.6rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Media frames (real photography) ---------- */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-soft); box-shadow: var(--shadow-md); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.frame.zoom:hover img { transform: scale(1.05); }
.frame.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,61,94,0) 40%, rgba(10,36,54,.55) 100%); }
.frame.duotone-strong::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15,61,94,.30) 0%, rgba(10,36,54,.72) 100%); }
.frame.ring { box-shadow: 0 0 0 6px var(--surface), var(--shadow-lg); }
.frame-cap { position: absolute; left: 1.1rem; bottom: 1rem; right: 1.1rem; z-index: 2; color: #fff; }
.frame-cap b { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; display: block; }
.frame-cap span { font-size: 0.85rem; color: rgba(255,255,255,.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.65rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; white-space: nowrap; min-height: 50px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #3A2606; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(206,142,28,.62); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 0.72rem 1.25rem; font-size: 0.93rem; min-height: 44px; }
.btn-text-link { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.btn-text-link svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); color: var(--gold-deep); }
.btn-text-link:hover svg { transform: translateX(5px); }

/* ---------- Navbar (frosted glass) ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(247,244,236,0.72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgba(216,208,189,0.55); box-shadow: 0 4px 24px -20px rgba(10,36,54,.5); transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.nav-wrap.scrolled { background: rgba(247,244,236,0.86); box-shadow: 0 12px 30px -18px rgba(10,36,54,.34); border-color: rgba(216,208,189,0.8); }
.nav { max-width: 1280px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); padding-inline: clamp(1.1rem, 3vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: 0.72rem; flex-shrink: 0; }
.brand-logo { height: 50px; width: auto; display: block; }
.footer-logo { margin-bottom: 0.2rem; }
.footer-logo img { height: 60px; width: auto; display: block; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.12rem; color: var(--navy); letter-spacing: -.015em; }
.brand-sub { font-size: 0.6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a { padding: 0.6rem 0.85rem; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .28s var(--ease); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: var(--navy); color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }

/* backdrop scrim */
.mm-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10,36,54,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.mm-scrim.show { opacity: 1; pointer-events: auto; }

/* slide-in drawer */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(86vw, 366px); display: flex; flex-direction: column; padding: 1rem 1.1rem 1.5rem; overflow-y: auto; background: linear-gradient(180deg, #15507A 0%, var(--navy) 55%, var(--navy-900) 100%); box-shadow: -24px 0 60px -24px rgba(0,0,0,.6); transform: translateX(105%); transition: transform .46s var(--ease-out); }
.mobile-menu.open { transform: translateX(0); }

.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0.3rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 0.8rem; }
.mm-logo { height: 40px; width: auto; display: block; }
.mm-close { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s; }
.mm-close:hover { background: rgba(255,255,255,.16); }
.mm-close svg { width: 22px; height: 22px; }

.mm-links { display: flex; flex-direction: column; gap: 0.15rem; }
.mm-links a { display: flex; align-items: center; gap: 0.85rem; padding: 0.92rem 0.8rem; border-radius: 14px; color: #E7EEF4; font-weight: 600; font-size: 1.06rem; transition: background .2s, color .2s, opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.mm-links a .mm-i { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold); font-size: 0.92rem; min-width: 1.7em; opacity: .85; }
.mm-links a .mm-arrow { margin-left: auto; width: 18px; height: 18px; opacity: .35; transition: transform .2s, opacity .2s, color .2s; }
.mm-links a:hover, .mm-links a:active { background: rgba(255,255,255,.07); }
.mm-links a:hover .mm-arrow { transform: translateX(3px); opacity: .7; }
.mm-links a.active { background: rgba(244,178,62,.15); color: #fff; }
.mm-links a.active .mm-arrow { opacity: 1; color: var(--gold); transform: translateX(2px); }

/* staggered entrance */
.mobile-menu .mm-links a { opacity: 0; transform: translateX(14px); }
.mobile-menu.open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.open .mm-links a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open .mm-links a:nth-child(2) { transition-delay: .10s; }
.mobile-menu.open .mm-links a:nth-child(3) { transition-delay: .14s; }
.mobile-menu.open .mm-links a:nth-child(4) { transition-delay: .18s; }
.mobile-menu.open .mm-links a:nth-child(5) { transition-delay: .22s; }
.mobile-menu.open .mm-links a:nth-child(6) { transition-delay: .26s; }
.mobile-menu.open .mm-links a:nth-child(7) { transition-delay: .30s; }

.mm-foot { margin-top: auto; padding-top: 1.3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.mm-foot .btn { width: 100%; }
.mm-call { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; color: #C4D3DF; font-weight: 600; font-size: 0.98rem; }
.mm-call svg { width: 18px; height: 18px; color: var(--gold); }
.mm-socials { display: flex; gap: 0.6rem; justify-content: center; }
.mm-socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .25s, transform .25s; }
.mm-socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.mm-socials svg { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .mobile-menu .mm-links a { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4.5rem; overflow: hidden; }
.hero-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); z-index: 0; }
.hero-glow.g1 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(244,178,62,.30), transparent 70%); top: -140px; right: -100px; }
.hero-glow.g2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(47,125,181,.20), transparent 70%); bottom: -180px; left: -140px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-block: 1.4rem; }
.hero .lead { max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-trust { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-trust .stat { display: flex; flex-direction: column; }
.hero-trust .stat b { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1; }
.hero-trust .stat span { font-size: 0.85rem; color: var(--ink-soft); margin-top: 5px; }
.hero-trust .vr { width: 1px; height: 40px; background: var(--line-strong); }

/* Hero collage */
.hero-art { position: relative; }
.hero-main { aspect-ratio: 4/4.4; border-radius: var(--radius-xl); box-shadow: 0 0 0 7px #fff, var(--shadow-lg); }
.hero-inset { position: absolute; left: -34px; bottom: 46px; width: 42%; aspect-ratio: 3/3.4; border-radius: var(--radius-lg); box-shadow: 0 0 0 6px #fff, var(--shadow-lg); z-index: 3; }
.hero-badge { position: absolute; background: #fff; border-radius: var(--radius); padding: 0.85rem 1.05rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.7rem; max-width: 220px; z-index: 4; }
.hero-badge .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge .icon svg { width: 22px; height: 22px; }
.hero-badge b { font-size: 0.92rem; display: block; color: var(--navy); }
.hero-badge span { font-size: 0.78rem; color: var(--ink-soft); }
.hero-badge.top { right: -22px; top: 36px; }
.hero-badge.top .icon { background: var(--navy-soft); color: var(--navy-700); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-xs); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .35s var(--ease); height: 100%; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem; background: var(--navy-soft); color: var(--navy); transition: background .3s, color .3s; }
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--gold); color: var(--navy); }
.card-icon.gold { background: var(--gold-soft); color: var(--gold-deep); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .card-no { position: absolute; top: 1.6rem; right: 1.8rem; font-family: 'Fraunces', serif; font-style: italic; font-size: 1.1rem; color: var(--line-strong); }

/* Program card with image */
.prog-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease); display: flex; flex-direction: column; height: 100%; }
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prog-card .media { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.prog-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.prog-card:hover .media img { transform: scale(1.06); }
.prog-card .body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.prog-card .tag { align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-700); background: var(--navy-soft); padding: 0.32rem 0.72rem; border-radius: 999px; margin-bottom: 0.95rem; }
.prog-card h3 { margin-bottom: 0.5rem; }
.prog-card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-block { text-align: center; padding: 1rem; position: relative; }
.stat-block + .stat-block::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.14); }
.stat-block .num { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--gold); }
.stat-block .label { margin-top: 0.7rem; font-weight: 500; font-size: 0.98rem; color: #C4D3DF; }

/* Stats over photo */
.stat-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem); }
.stat-photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stat-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,36,54,.92) 0%, rgba(15,61,94,.82) 100%); z-index: 1; }
.stat-photo > * { position: relative; z-index: 2; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4.2; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { margin-top: 1.7rem; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; }
.checklist .tick { flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin-top: 2px; }
.checklist .tick svg { width: 15px; height: 15px; }
.checklist b { display: block; color: var(--navy); }
.checklist span { color: var(--ink-soft); font-size: 0.95rem; }

/* Decorative stacked media (about/feature) */
.media-stack { position: relative; }
.media-stack .m-main { aspect-ratio: 5/4.4; border-radius: var(--radius-lg); box-shadow: 0 0 0 7px #fff, var(--shadow-lg); overflow: hidden; }
.media-stack .m-main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack .m-sub { position: absolute; right: -28px; bottom: -32px; width: 46%; aspect-ratio: 1/1; border-radius: var(--radius); box-shadow: 0 0 0 6px #fff, var(--shadow-lg); overflow: hidden; z-index: 2; }
.media-stack .m-sub img { width: 100%; height: 100%; object-fit: cover; }
.media-stack .m-badge { position: absolute; left: -26px; top: 28px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-md); z-index: 3; max-width: 180px; }
.media-stack .m-badge b { font-family: 'Fraunces', serif; font-size: 1.7rem; display: block; color: var(--gold); line-height: 1; }
.media-stack .m-badge span { font-size: 0.8rem; color: #C4D3DF; }

/* ---------- Quote ---------- */
.quote { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 500; font-style: italic; line-height: 1.3; max-width: 24ch; color: var(--navy); }
.quote-block { max-width: 880px; margin-inline: auto; text-align: center; }
.bg-navy .quote { color: #fff; }
.quote-mark { font-family: 'Fraunces', serif; font-size: 5rem; line-height: 0.4; color: var(--gold); height: 2.2rem; display: block; }

/* ---------- Steps ---------- */
.step-row { display: grid; gap: 1.5rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s, transform .3s; }
.step:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.step .n { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem; }

/* ---------- Donate ---------- */
.give-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.give-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.give-card h3 { display: flex; align-items: center; gap: 0.7rem; }
.give-card h3 svg { width: 26px; height: 26px; color: var(--navy-700); }
.give-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.give-row:last-child { border-bottom: none; }
.give-row .k { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.give-row .v { font-weight: 600; font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--navy); }
.placeholder-pill { display: inline-block; background: var(--gold-soft); color: var(--gold-deep); border: 1px dashed var(--gold-deep); border-radius: 6px; padding: 0.1rem 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: .02em; font-family: 'Inter', sans-serif; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1.2rem 0; }
.amount-grid button { border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0.85rem 0.5rem; font-weight: 600; transition: all .2s; background: var(--paper); text-align: center; color: var(--navy); }
.amount-grid button:hover, .amount-grid button.sel { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-deep); }
.amount-grid button small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.72rem; margin-top: 3px; }
.amount-grid button:hover small, .amount-grid button.sel small { color: var(--gold-deep); }

/* ---------- Payment cards (bank / paybill / mpesa) ---------- */
.bank-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); }
.bank-head { display: flex; align-items: center; gap: 0.85rem; padding: 1.2rem 1.4rem; background: linear-gradient(135deg, #FBFBFB 0%, #F1EDE4 100%); border-bottom: 1px solid var(--line); }
.bank-mark { width: 44px; height: 44px; border-radius: 10px; background: #A6192E; display: grid; place-items: center; flex-shrink: 0; }
.bank-mark svg { width: 26px; height: 26px; }
.bank-word b { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: .02em; color: #A6192E; font-size: 1.15rem; display: block; line-height: 1; }
.bank-word span { font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; }
.bank-body { padding: 1.3rem 1.4rem 1.5rem; }
.bank-body .give-row .v { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: .03em; }

.mpesa-head { display: flex; align-items: center; gap: 0.85rem; padding: 1.2rem 1.4rem; background: linear-gradient(135deg, #E8F6EE 0%, #DCF0E4 100%); border-bottom: 1px solid var(--line); }
.mpesa-mark { width: 44px; height: 44px; border-radius: 10px; background: #43B02A; display: grid; place-items: center; flex-shrink: 0; }
.mpesa-mark svg { width: 24px; height: 24px; color: #fff; }
.mpesa-word b { font-family: 'Inter', sans-serif; font-weight: 800; color: #2E7D1F; font-size: 1.1rem; display: block; line-height: 1; }
.mpesa-word span { font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; grid-auto-rows: 200px; }
.gallery-grid .g-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,36,54,.45)); opacity: 0; transition: opacity .35s var(--ease); }
.gallery-grid .g-item:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-6 { grid-column: span 6; }
.g-4 { grid-column: span 4; }
.g-3 { grid-column: span 3; }
.g-8 { grid-column: span 8; }

/* ---------- Partners ---------- */
.partner-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.partner { flex: 1 1 220px; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .3s; }
.partner:hover { border-color: var(--navy); transform: translateY(-3px); }
.partner .logo { width: 50px; height: 50px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; color: var(--gold); font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.25rem; }
.partner b { display: block; font-size: 1rem; color: var(--navy); }
.partner span { font-size: 0.85rem; color: var(--ink-soft); }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track .m-item { display: flex; align-items: center; gap: .7rem; color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee-track .m-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px var(--navy-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
.form-success { display: none; background: var(--navy-soft); border: 1px solid var(--navy-700); color: var(--navy); padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; align-items: center; gap: 0.7rem; }
.form-success.show { display: flex; }
.form-success svg { color: var(--navy-700); width: 22px; height: 22px; flex-shrink: 0; }

.field input[type="file"] { padding: 0.6rem 0.8rem; font-size: 0.92rem; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 0.85rem; padding: 0.5rem 0.9rem; border: none; border-radius: 8px; background: var(--navy-soft); color: var(--navy); margin-right: 0.8rem; cursor: pointer; transition: background .2s; }
.field input[type="file"]::file-selector-button:hover { background: var(--line-strong); }
.field-check { display: flex; align-items: flex-start; gap: 0.7rem; flex-direction: row; }
.field-check input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.field-check label { font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; }

/* ---------- Voices from the Centre ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.voice-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; height: 100%; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease); }
.voice-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.voice-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.voice-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.3rem; overflow: hidden; }
.voice-avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice-who b { display: block; font-size: 1.02rem; color: var(--navy); }
.voice-who span { display: block; font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; margin-top: 2px; }
.voice-tag { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-deep); background: var(--gold-soft); padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; }
.voice-photos { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/11; margin-bottom: 1.2rem; box-shadow: var(--shadow-xs); background: var(--navy-soft); }
.voice-photos.has-album { cursor: pointer; }
.voice-photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; transition: transform .5s var(--ease-out); }
.voice-photos:hover img { transform: scale(1.04); }
.voice-photos .album-badge { position: absolute; right: 0.6rem; bottom: 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(10,36,54,.72); backdrop-filter: blur(3px); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 0.32rem 0.65rem; border-radius: 999px; }
.voice-photos .album-badge svg { width: 14px; height: 14px; }

/* lightbox / album viewer */
.voice-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,20,28,.94); display: none; align-items: flex-start; justify-content: center; padding: clamp(4.5rem, 9vh, 6.5rem) clamp(1rem, 4vw, 3rem) 2rem; overflow-y: auto; }
.voice-lightbox.open { display: flex; }
.voice-lightbox figure { position: relative; max-width: 900px; width: 100%; margin: 0; }
.voice-lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; display: block; margin-inline: auto; background: #000; }
.voice-lightbox figcaption { text-align: center; color: #E7EEF4; font-size: 0.9rem; margin-top: 0.9rem; }
.vlb-close, .vlb-prev, .vlb-next { position: absolute; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; transition: background .2s; }
.vlb-close:hover, .vlb-prev:hover, .vlb-next:hover { background: rgba(255,255,255,.22); }
.vlb-close svg, .vlb-prev svg, .vlb-next svg { width: 22px; height: 22px; }
.vlb-close { top: -18px; right: -18px; }
.vlb-prev { left: clamp(-10px, -4vw, 10px); top: 50%; transform: translateY(-50%); }
.vlb-next { right: clamp(-10px, -4vw, 10px); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .vlb-close { top: -54px; right: 0; }
  .vlb-prev { left: 4px; }
  .vlb-next { right: 4px; }
}
.voice-card p.msg { color: var(--ink-soft); font-size: 0.98rem; flex: 1; font-style: italic; white-space: pre-line; }
.voice-card p.msg::before { content: "\201C"; }
.voice-card p.msg::after { content: "\201D"; }
@media (max-width: 900px) { .voice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .voice-grid { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-hero { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 3rem; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: var(--navy); }
.page-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); max-width: 16ch; }
.page-hero p { margin-top: 1.1rem; font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(2.5rem, 6vw, 4.8rem); text-align: center; background: var(--navy); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: .05; mix-blend-mode: overlay; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #C4D3DF; max-width: 52ch; margin: 1rem auto 2rem; }
.cta-band .hero-cta { justify-content: center; position: relative; z-index: 2; }
.cta-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(244,178,62,.28), transparent 70%); filter: blur(50px); }
.cta-glow.a { top: -160px; left: -80px; }
.cta-glow.b { bottom: -190px; right: -60px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #AFC0CD; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; position: relative; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #6E8294; }
.footer p { color: #94A8B6; font-size: 0.95rem; margin-top: 1rem; max-width: 36ch; }
.footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { display: block; padding: 0.32rem 0; font-size: 0.96rem; color: #AFC0CD; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; font-size: 0.95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; color: #6E8294; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.92rem; color: #6B4A12; }
.notice svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.notice b { color: var(--gold-deep); }
.notice code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* ---------- News / Posts ---------- */
.media-ph { width: 100%; height: 100%; min-height: 200px; display: grid; place-items: center; background: linear-gradient(135deg, var(--paper-2) 0%, var(--navy-soft) 100%); color: var(--navy-700); text-align: center; position: relative; }
.media-ph::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,.4), transparent 45%); }
.media-ph .ph-in { position: relative; z-index: 1; padding: 1rem; }
.media-ph svg { width: 36px; height: 36px; margin-inline: auto; opacity: .55; }
.media-ph span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; margin-top: 0.55rem; opacity: .75; text-transform: uppercase; }

.post-featured { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.post-featured .media { position: relative; min-height: 360px; overflow: hidden; }
.post-featured .media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured .badge-new { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; background: var(--gold); color: #3A2606; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.post-featured .body { padding: clamp(1.8rem, 3.5vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.post-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-block: .6rem .8rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; height: 100%; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.post-card:hover .media img { transform: scale(1.06); }
.post-card .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.post-card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }

.post-meta { display: flex; align-items: center; gap: .7rem; font-size: .8rem; color: var(--ink-faint); font-weight: 600; margin-bottom: .85rem; flex-wrap: wrap; }
.post-meta .cat { color: var(--navy-700); background: var(--navy-soft); padding: .24rem .62rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .07em; font-size: .67rem; font-weight: 700; }
.post-meta time { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta time svg { width: 13px; height: 13px; }

.read-more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); font-size: .95rem; align-self: flex-start; }
.read-more svg { width: 1.05em; height: 1.05em; color: var(--gold-deep); transition: transform .25s var(--ease); }
.read-more:hover { color: var(--navy-700); }
.read-more:hover svg { transform: translateX(4px); }

/* ---------- Our Story: timeline & founder ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 2.6rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line-strong)); }
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -2.6rem; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.tl-year { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-deep); font-weight: 600; font-size: 1.05rem; }
.tl-item h3 { margin: .25rem 0 .5rem; }
.tl-item p { color: var(--ink-soft); font-size: 1rem; }

.founder-card { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.5rem,4vw,3rem); align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.founder-card .media { position: relative; min-height: 380px; }
.founder-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-card .body { padding: clamp(1.8rem,3.5vw,3.2rem) clamp(1.8rem,3.5vw,3.2rem) clamp(1.8rem,3.5vw,3.2rem) 0; display: flex; flex-direction: column; justify-content: center; }
.founder-card .role { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--gold-deep); }
.founder-card blockquote { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(1.25rem,2.3vw,1.6rem); color: var(--navy); line-height: 1.35; margin: .7rem 0 1.1rem; }
.founder-card .sign { font-weight: 700; color: var(--navy); }
.founder-card .sign span { display: block; font-weight: 500; color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }
@media (max-width: 760px) {
  .founder-card { grid-template-columns: 1fr; }
  .founder-card .media { min-height: 300px; }
  .founder-card .body { padding: clamp(1.5rem,5vw,2rem); }
}

@media (max-width: 880px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .media { min-height: 260px; aspect-ratio: 16/10; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal (only hidden when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); will-change: opacity, transform; }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }
.js [data-reveal].scale { transform: translateY(30px) scale(.965); }
.js [data-reveal].scale.in { transform: none; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: float 6s ease-in-out infinite; }
.floaty.delay { animation-delay: 1.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin-inline: auto; order: -1; }
  .hero-badge.top { right: 0; }
  .split { grid-template-columns: 1fr; gap: 2.8rem; }
  .split.reverse .split-media { order: 0; }
  .give-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .media-stack { max-width: 460px; margin: 0 auto 2rem; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn-text-hide { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { padding: 0.7rem 1.15rem; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat-block + .stat-block::before { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-6, .g-8, .g-4, .g-3 { grid-column: span 1; }
  .g-feature { grid-column: span 2 !important; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-trust .vr { display: none; }
  .hero-inset { width: 38%; left: -14px; }
  .media-stack .m-sub { right: -10px; }
  .media-stack .m-badge { left: -10px; }
}

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