/* ==========================================================================
   Equal Education Fund — Design System
   Palette: deep pine green + warm gold + cream. Serif display + clean sans.
   ========================================================================== */

:root {
  --forest:   #123c34;
  --forest-2: #1c5c50;
  --forest-3: #0e2e28;
  --gold:     #d8a44a;
  --gold-2:   #c68f34;
  --gold-soft:#f2cd7e;
  --cream:    #faf6ee;
  --cream-2:  #f1e8d6;
  --sand:     #e9dcc0;
  --ink:      #22302b;
  --muted:    #5f6f68;
  --line:     rgba(18,60,52,.14);
  --white:    #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(14,46,40,.14);
  --shadow-sm: 0 8px 22px rgba(14,46,40,.10);
  --transition: .35s cubic-bezier(.22,.61,.36,1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; color: var(--forest); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.9rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin-bottom: 1.1rem; }
a { color: var(--forest-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-2); }
img, svg, video { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  letter-spacing: .02em; padding: .85rem 1.9rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  text-align: center; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--forest-3); box-shadow: 0 10px 24px rgba(216,164,74,.34); }
.btn-gold:hover { background: var(--gold-soft); color: var(--forest-3); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(216,164,74,.42); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--gold-soft); color: var(--forest-3); transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--forest); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,246,238,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled { background: rgba(250,246,238,.98); box-shadow: 0 6px 24px rgba(14,46,40,.08); border-bottom-color: var(--line); }
.nav {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; color: var(--forest); letter-spacing: .01em; }
.brand-text .b2 { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 2.1rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-weight: 600; font-size: 1rem; color: var(--forest); position: relative; padding: .3rem 0; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--forest-2); }

.nav-toggle {
  display: flex; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--forest); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (full-screen marquee background) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-marquee {
  position: absolute; inset: 0; display: flex; width: max-content;
  animation: marquee 70s linear infinite; z-index: 0;
}
.hero-tile { position: relative; flex: 0 0 700px; height: 100%; }
.hero-tile img { width: 700px; height: 100vh; height: 100svh; object-fit: cover; }
/* light gradient seam where images connect */
.hero-tile::after {
  content: ""; position: absolute; top: 0; right: -40px; width: 80px; height: 100%;
  background: linear-gradient(90deg, rgba(250,246,238,0) 0%, rgba(250,246,238,.35) 50%, rgba(250,246,238,0) 100%);
  pointer-events: none; z-index: 1;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* uniform 0.3 mask for text readability */
.hero-mask { position: absolute; inset: 0; background: #0e2e28; opacity: .3; z-index: 2; }
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-content { max-width: 760px; color: #fff; text-shadow: 0 2px 22px rgba(6,20,16,.55); }
.hero-eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold-soft); margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-tagline { font-size: 1.28rem; color: rgba(255,255,255,.94); margin-bottom: 2rem; max-width: 620px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: rgba(255,255,255,.85); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .dot { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative; }
.scroll-cue .dot::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 50%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-tint { background: var(--cream-2); }
.section-green { background: var(--forest); color: rgba(255,255,255,.9); }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; color: var(--gold-2); margin-bottom: .9rem; }
.section-green .eyebrow { color: var(--gold-soft); }
.section-head h2 { margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-green .section-head p { color: rgba(255,255,255,.82); }
.rule { width: 68px; height: 3px; background: var(--gold); border-radius: 3px; margin: 1rem auto 0; }

/* ---------- Mission split (text left / logo right) ---------- */
.mission { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: stretch; }
.mission-text p { color: var(--ink); }
.mission-text .lead { font-size: 1.2rem; color: var(--forest-2); font-weight: 600; }
.mission-aside {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-3) 100%);
  border-radius: var(--radius); padding: 44px 32px; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.mission-aside::before { content:""; position:absolute; width:260px; height:260px; background:radial-gradient(circle,rgba(216,164,74,.28),transparent 70%); top:-70px; right:-70px; }
.mission-aside img { width: 132px; height: 132px; margin-bottom: 1.2rem; position: relative; }
.mission-aside .name { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.mission-aside .name .accent { color: var(--gold-soft); }
.mission-aside .tag { color: rgba(255,255,255,.82); font-size: .95rem; margin-top: .4rem; letter-spacing: .04em; }
.mission-aside .btn { margin-top: 1.6rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gi-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(to top, rgba(14,46,40,.72) 0%, rgba(14,46,40,0) 55%);
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-overlay .gi-plus {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--gold);
  color: var(--forest-3); display: grid; place-items: center; font-size: 1.4rem; font-weight: 700;
}
.gallery-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: .96rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8,22,18,.9);
  display: none; align-items: center; justify-content: center; padding: 28px;
  opacity: 0; transition: opacity var(--transition);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-figure { max-width: 900px; width: 100%; text-align: center; }
.lightbox-figure img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--radius-sm); margin: 0 auto; background: var(--forest-3); }
.lightbox-cap { color: #fff; margin-top: 16px; font-size: 1.05rem; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.5rem;
  display: grid; place-items: center; transition: var(--transition);
}
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--forest-3); border-color: var(--gold); }
.lb-close { top: 22px; right: 22px; }
.lb-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; max-width: 860px; margin: 0 auto; }
.testimonial .quote-mark { font-family: var(--serif); font-size: 5rem; line-height: .5; color: var(--gold); display: block; margin-bottom: 1rem; }
.testimonial blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; font-style: italic; line-height: 1.5; margin-bottom: 1.6rem; }
.testimonial .cite { font-weight: 700; letter-spacing: .04em; color: var(--gold-soft); font-style: normal; }
.testimonial .stars { color: var(--gold); letter-spacing: .3em; margin-bottom: 1.4rem; font-size: 1.1rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--forest) 0%, var(--forest-3) 100%);
  color: #fff; padding: calc(var(--nav-h) + 66px) 0 66px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle,rgba(216,164,74,.22),transparent 70%); top:-140px; right:-120px; }
.page-hero::after { content:""; position:absolute; width:340px; height:340px; border-radius:50%; background:radial-gradient(circle,rgba(216,164,74,.14),transparent 70%); bottom:-160px; left:-90px; }
.page-hero h1 { color: #fff; position: relative; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; margin: 1rem auto 0; position: relative; font-size: 1.12rem; }
.breadcrumb { position: relative; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }

/* ---------- Founder's Letter ---------- */
.letter { display: grid; grid-template-columns: 1.5fr 1fr; gap: 52px; align-items: start; }
.letter-body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.6rem; line-height: .8; float: left; color: var(--gold-2);
  padding: 8px 12px 0 0; font-weight: 700;
}
.letter-body p { color: var(--ink); }
.letter-sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--forest-2); margin-top: 1.4rem; }
.letter-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.letter-portrait {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--forest);
  aspect-ratio: 3 / 4;
}
.letter-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame {
  aspect-ratio: 3/4; border-radius: var(--radius); background: linear-gradient(160deg,var(--forest),var(--forest-3));
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 24px; box-shadow: var(--shadow);
}
.portrait-frame img { width: 120px; height: 120px; opacity: .9; margin-bottom: 1rem; }
.portrait-frame span { color: rgba(255,255,255,.8); font-size: .95rem; }
.letter-cap { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.team-card {
  background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.team-photo {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--white); box-shadow: 0 6px 18px rgba(14,46,40,.2); outline: 2px solid var(--gold);
}
.team-role { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-bottom: .3rem; }
.team-name { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); }
.team-block { margin-top: 6px; }
.team-block h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--forest-2); margin-bottom: .5rem; padding-top: 14px; border-top: 1px solid var(--line); }
.team-block p { color: var(--muted); font-size: .98rem; margin-bottom: .5rem; }
.team-contact { margin-top: auto; }
.team-contact ul { display: flex; flex-direction: column; gap: .35rem; padding-top: 6px; }
.team-contact li { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .96rem; }
.team-contact li svg { width: 18px; height: 18px; flex-shrink: 0; fill: var(--gold-2); }

/* ---------- Stories ---------- */
.disclaimer {
  background: var(--forest); color: #fff; border-radius: var(--radius-sm); padding: 18px 26px;
  display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-sm); margin-bottom: 48px;
}
.disclaimer svg { width: 24px; height: 24px; fill: var(--gold-soft); flex-shrink: 0; margin-top: 3px; }
.disclaimer p { margin: 0; font-size: .98rem; color: rgba(255,255,255,.92); }
.disclaimer strong { color: var(--gold-soft); }

.story-video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--forest-3); }
.story-video video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: var(--forest-3); object-fit: cover; }
.video-cap { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 14px; }

.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--ink); font-size: 1.08rem; line-height: 1.9; }
.prose > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4rem; line-height: .82; float: left; color: var(--gold-2); padding: 6px 12px 0 0; font-weight: 700;
}
.chapter { max-width: 780px; margin: 0 auto; padding-top: 20px; }
.chapter-head { text-align: center; margin: 30px auto 30px; }
.chapter-num { display: inline-block; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; color: var(--gold-2); margin-bottom: .5rem; }
.chapter-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chapter-head .sub { font-family: var(--serif); font-style: italic; color: var(--forest-2); font-size: 1.15rem; margin-top: .3rem; }
.chapter-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px auto 26px; color: var(--gold); }
.chapter-divider::before, .chapter-divider::after { content: ""; height: 1px; width: 60px; background: var(--line); }
.chapter-divider span { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.pullquote {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--forest); text-align: center;
  border-left: none; padding: 26px 0; margin: 30px auto; max-width: 680px; position: relative;
}
.pullquote::before, .pullquote::after { content: ""; display: block; width: 50px; height: 3px; background: var(--gold); margin: 0 auto; }
.pullquote::before { margin-bottom: 20px; }
.pullquote::after { margin-top: 20px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px; border: 1px solid var(--line);
}
.form-req {
  display: flex; align-items: center; gap: 12px; background: var(--cream-2); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 30px;
  color: var(--forest); font-weight: 600;
}
.form-req svg { width: 22px; height: 22px; fill: var(--gold-2); flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--forest); }
.field label .req { color: var(--gold-2); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; transition: var(--transition); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,164,74,.18); background: #fff; }
.field .hint { font-size: .82rem; color: var(--muted); }
.dob { display: flex; gap: 10px; }
.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: .86rem; }
.form-success {
  display: none; text-align: center; padding: 20px; border-radius: var(--radius-sm);
  background: rgba(28,92,80,.08); border: 1px solid rgba(28,92,80,.25); color: var(--forest-2); font-weight: 600; margin-top: 20px;
}
.form-success.show { display: block; animation: fadeUp .5s ease both; }

/* checkbox chips (skills) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: inline-block; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--cream); color: var(--forest); font-size: .9rem; cursor: pointer; transition: var(--transition); font-weight: 600;
}
.chip input:checked + label { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip label:hover { border-color: var(--gold); }

/* donation amount presets */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.amount-grid .chip label { width: 100%; text-align: center; padding: .75rem; font-size: 1.05rem; }

/* ---------- Impact stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-soft); line-height: 1; }
.stat .lbl { color: rgba(255,255,255,.85); margin-top: .5rem; letter-spacing: .04em; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(140deg, var(--gold) 0%, var(--gold-2) 100%); text-align: center; }
.cta-band h2 { color: var(--forest-3); }
.cta-band p { color: rgba(14,46,40,.82); max-width: 620px; margin: .8rem auto 1.8rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--forest-3); color: rgba(255,255,255,.82); padding: 66px 0 26px; margin-top: 0;
}
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .b1 { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-brand .b2 { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.footer-col h3 { color: #fff; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1.1rem; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.78); font-size: .98rem; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--gold-soft); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
}
.footer-partner { margin-top: .8rem; font-size: .86rem; }
.footer-partner a { color: var(--gold-soft); }
.footer-partner a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* QA-only hero height cap (activated via ?qa) */
.qa .hero { min-height: 660px; }
.qa .hero-tile img { height: 660px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  body { font-size: 17px; }
  .nav-links { gap: 1.4rem; }
  .nav-menu { gap: 1.4rem; }
  .brand-text .b2 { display: none; }
  .mission { grid-template-columns: 1fr; }
  .letter { grid-template-columns: 1fr; }
  .letter-aside { position: static; max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Tablet: keep the full nav visible but compact so nothing collides */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav { padding: 0 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text .b1 { font-size: .95rem; }
  .nav-menu { gap: 1rem; }
  .nav-links { gap: .95rem; }
  .nav-links a { font-size: .88rem; }
  .nav-menu .btn { padding: .58rem 1.05rem; font-size: .86rem; }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 20px 24px 30px; gap: 0; box-shadow: 0 20px 30px rgba(14,46,40,.14);
    transform: translateY(-135%); transition: transform var(--transition); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-menu .btn { margin-top: 16px; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 66px 0; }
  .hero-tile, .hero-tile img { flex-basis: 88vw; width: 88vw; }
  .team-head { flex-direction: column; text-align: center; align-items: center; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
}

@media (max-width: 400px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .dob { flex-direction: column; }
}

/* Respect reduced motion — but keep the hero marquee functioning per spec */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .scroll-cue .dot::after { animation: none; }
  /* .hero-marquee intentionally keeps animating so the background still moves */
}
