/* ============================================================
   CIDE Academy — CATCH Campaign
   Warm Sandstone Editorial
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* canvas */
  --cream:        #F7F3EC;
  --sand:         #EFE6D5;
  --sand-deep:    #E7DBC4;
  --paper:        #FCFAF4;

  /* ink */
  --ink:          #25241F;
  --ink-soft:     #4A463D;
  --muted:        #7A7263;

  /* brand */
  --emerald:      #0E5C4A;
  --emerald-deep: #0A3F33;
  --emerald-night:#072A22;
  --gold:         #C8962E;
  --gold-light:   #E0B14E;
  --gold-soft:    #EAD3A0;

  /* utility */
  --line:         #DDD2BD;
  --shadow-sm:    0 1px 2px rgba(37,36,31,.05), 0 4px 16px rgba(37,36,31,.05);
  --shadow-md:    0 4px 12px rgba(37,36,31,.08), 0 18px 48px rgba(37,36,31,.10);
  --shadow-lg:    0 24px 70px rgba(10,63,51,.18);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Disabling animations above would otherwise leave the hero — whose intro
     relies solely on the heroIn animation — stuck at its hidden start state. */
  .hero [data-load] { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, .95rem + .25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--emerald-deep);
  font-optical-sizing: auto;
}
.display-xl { font-size: clamp(2.6rem, 1.8rem + 4.6vw, 5.4rem); font-weight: 460; }
.display-l  { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); }
.display-m  { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }

p { color: var(--ink-soft); }
.lede { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); color: var(--ink-soft); line-height: 1.55; }

.eyebrow {
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 8vw, 9rem); }

/* star divider motif */
.star {
  display: inline-block;
  width: 1em; height: 1em;
  color: var(--gold);
}
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin-block: 0;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: min(34%, 220px);
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after { background: linear-gradient(270deg, transparent, var(--line)); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: #2A1E05;
  font-family: var(--body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 6px 20px rgba(200,150,46,.28);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(200,150,46,.36); }
.btn:active { transform: translateY(-1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--emerald); color: var(--paper); box-shadow: var(--shadow-md); }

.btn--emerald { background: var(--emerald); color: var(--paper); box-shadow: 0 8px 24px rgba(14,92,74,.28); }
.btn--emerald:hover { box-shadow: 0 16px 34px rgba(14,92,74,.34); }

.btn--light { background: var(--paper); color: var(--emerald-deep); box-shadow: var(--shadow-sm); }
.btn--light:hover { box-shadow: var(--shadow-md); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 1.1rem;
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(14,92,74,.20) 0%, rgba(247,243,236,.90) 78%);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(37,36,31,.06);
  padding-block: .7rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 44px; height: 44px; flex: none; color: var(--emerald); object-fit: contain; }
img.brand-mark { border-radius: 50%; }
.brand-text { line-height: 1.05; }
.brand-text .b1 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--emerald-deep); display: block; white-space: nowrap; }
.brand-text .b2 { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-text .b1 { font-size: 1.05rem; }
  .brand-text .b2 { font-size: .6rem; letter-spacing: .14em; }
}
@media (max-width: 360px) { .brand-text .b2 { display: none; } }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; color: var(--emerald-deep);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.nav-donate) { display: none; }
  .nav-cta { gap: .4rem; }
  .nav-donate { padding: .6rem 1.05rem; font-size: .85rem; box-shadow: 0 4px 14px rgba(200,150,46,.28); }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -.35rem; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 1.5rem var(--gutter) 2rem;
    gap: 1.1rem; box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
  }
  .nav-links.open a { font-size: 1.1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(200,150,46,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(14,92,74,.10), transparent 55%);
  z-index: -2;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("../img/pattern.svg");
  background-size: 150px;
  opacity: .05;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lede { max-width: 34ch; margin-bottom: 2.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero-stats .stat .n { font-family: var(--display); font-size: 1.9rem; color: var(--emerald); font-weight: 560; line-height: 1; }
.hero-stats .stat .l { font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-top: .35rem; }

/* hero visual card */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(to top, rgba(7,42,34,.94) 2%, rgba(7,42,34,.45) 45%, rgba(7,42,34,.30) 100%),
    linear-gradient(160deg, var(--emerald) 0%, var(--emerald-deep) 60%, var(--emerald-night) 100%);
  background-size: cover; background-position: center;
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem;
  isolation: isolate;
}
.hero-card.has-photo {
  background:
    linear-gradient(to top, rgba(7,42,34,.94) 2%, rgba(7,42,34,.42) 48%, rgba(7,42,34,.28) 100%),
    url("https://westernsydneyproject.blob.core.windows.net/site-images/vision.jpg");
  background-size: cover; background-position: center;
}
.hero-card .ph-pattern {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("../img/pattern.svg");
  background-size: 130px; opacity: .12;
  filter: brightness(0) invert(1);
}
.hero-card.has-photo .ph-pattern { opacity: .05; }
.hero-card.has-photo .ph-icon { display: none; }
.hero-card .ph-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,177,78,.55), transparent 70%);
  top: -60px; right: -60px; z-index: -1; filter: blur(8px);
}
.hero-card.has-photo .ph-glow { display: none; }
.hero-card .ph-badge {
  position: absolute; top: 1.4rem; left: 1.4rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-light);
  border: 1px solid rgba(224,177,78,.4); border-radius: 999px;
  padding: .4rem .9rem; backdrop-filter: blur(4px);
}
.hero-card .ph-icon { width: 54px; height: 54px; color: var(--gold-light); margin-bottom: 1rem; }
.hero-card h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: .4rem; }
.hero-card p { color: rgba(252,250,244,.8); font-size: .92rem; }
.hero-card .img-note {
  position: absolute; inset: auto 0 0 0; /* hint for replacing with photo */
}

.hero-quote {
  margin-top: 2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  text-align: center;
  padding-inline: 1rem;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .hero .lede { max-width: 48ch; }
}

/* ============================================================
   STORY
   ============================================================ */
.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1.1rem; }

.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.story-lead p + p { margin-top: 1.1rem; }
.story-lead .pull {
  font-family: var(--display);
  font-size: clamp(1.4rem,1.1rem+1.4vw,2rem);
  line-height: 1.25;
  color: var(--emerald);
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
}

/* heritage timeline */
.heritage { position: relative; padding-left: 2rem; }
.heritage::before {
  content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(var(--gold), var(--gold-soft));
}
.heritage-item { position: relative; padding-bottom: 2rem; }
.heritage-item:last-child { padding-bottom: 0; }
.heritage-item::before {
  content: ""; position: absolute; left: -2rem; top: .35rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px var(--paper);
}
.heritage-item .yr { font-family: var(--display); font-weight: 600; color: var(--gold); font-size: 1.25rem; }
.heritage-item h4 { color: var(--emerald-deep); margin: .15rem 0 .35rem; font-size: 1.15rem; }
.heritage-item p { font-size: .96rem; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: linear-gradient(155deg, var(--emerald) 0%, var(--emerald-deep) 70%, var(--emerald-night) 100%);
  color: var(--paper);
  position: relative; overflow: hidden;
}
.stats-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/pattern.svg"); background-size: 160px;
  opacity: .07; filter: brightness(0) invert(1); pointer-events: none;
}
.stats-band .section-head h2 { color: var(--paper); }
.stats-band .section-head p { color: rgba(252,250,244,.78); }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: rgba(252,250,244,.12);
  border: 1px solid rgba(252,250,244,.12); border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  background: var(--emerald-deep);
  padding: 2rem 1.4rem; text-align: center;
}
.stat-cell .n {
  font-family: var(--display); font-weight: 540;
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem);
  color: var(--gold-light); line-height: 1;
}
.stat-cell .n .suffix { font-size: .55em; }
.stat-cell .l { margin-top: .6rem; font-size: .86rem; color: rgba(252,250,244,.82); letter-spacing: .02em; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.program-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.program-card::before {
  content:""; position:absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--sand); color: var(--emerald);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.program-card:hover .program-icon { background: var(--emerald); color: var(--gold-light); }
.program-icon svg { width: 28px; height: 28px; }
.program-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.program-card p { font-size: .95rem; }
.program-card .meta {
  margin-top: 1.1rem; font-size: .82rem; font-weight: 600;
  color: var(--gold); letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: .4rem;
}
@media (max-width: 860px) { .programs-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .programs-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROPERTY
   ============================================================ */
.property { background: var(--sand); }
.property-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,5vw,4rem); align-items: start; }

.property-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 5/6; box-shadow: var(--shadow-lg);
  background:
    linear-gradient(to top, rgba(7,42,34,.92) 0%, rgba(7,42,34,.15) 50%, rgba(7,42,34,.40) 100%),
    url("https://westernsydneyproject.blob.core.windows.net/site-images/property-aerial.jpg") center/cover,
    linear-gradient(160deg, #16433a, var(--emerald-night));
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.8rem;
}
.property-figure .ph-pattern {
  position:absolute; inset:0; z-index:0;
  background-image:url("../img/pattern.svg"); background-size:120px;
  opacity:.04; filter: brightness(0) invert(1);
}

/* property photo gallery */
.property-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.property-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.property-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; transition: transform .5s var(--ease); }
.property-gallery figure:hover img { transform: scale(1.05); }
.property-gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: .8rem .9rem .6rem;
  font-size: .76rem; font-weight: 600; color: var(--paper);
  background: linear-gradient(to top, rgba(7,42,34,.85), transparent);
}
.property-figure > * { position: relative; z-index: 1; }
.property-figure .addr-pin {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  background: rgba(252,250,244,.12); border: 1px solid rgba(252,250,244,.2);
  padding: .5rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.property-figure .addr-pin svg { width: 16px; height: 16px; color: var(--gold-light); }
.property-figure .fig-foot h3 { color: var(--paper); font-size: 1.6rem; }
.property-figure .fig-foot p { color: rgba(252,250,244,.8); font-size: .9rem; margin-top: .25rem; }
.property-figure .zoning {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 2;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--emerald-night); background: var(--gold-light);
  padding: .35rem .8rem; border-radius: 999px;
}

.property-specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.8rem 0; }
.spec { background: var(--paper); padding: 1.1rem 1.2rem; }
.spec .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.spec .v { font-family: var(--display); font-size: 1.25rem; color: var(--emerald-deep); margin-top: .15rem; }
.feature-list { display: grid; gap: .7rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .96rem; color: var(--ink-soft); }
.feature-list svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: .15rem; }

@media (max-width: 860px) {
  .property-grid { grid-template-columns: 1fr; }
  .property-figcol { max-width: 460px; }
}

/* ============================================================
   CAMPAIGN TIMELINE
   ============================================================ */
.timeline { background: var(--paper); }
.stages { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 1rem; position: relative; }
.stages::before {
  content:""; position:absolute; left: 6%; right: 6%; top: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.stage { position: relative; z-index: 1; text-align: center; }
.stage .dot {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600;
  background: var(--paper); border: 2px solid var(--line); color: var(--muted);
  position: relative; transition: all .35s var(--ease);
}
.stage.done .dot { background: var(--emerald); border-color: var(--emerald); color: var(--gold-light); }
.stage.current .dot { background: var(--gold); border-color: var(--gold); color: #2A1E05; box-shadow: 0 0 0 6px rgba(200,150,46,.18); }
.stage.current .dot::after {
  content:""; position:absolute; inset:-2px; border-radius:50%;
  border: 2px solid var(--gold); animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%{transform:scale(1);opacity:.7} 70%{transform:scale(1.5);opacity:0} 100%{opacity:0} }
.stage .when { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--gold); text-transform: uppercase; }
.stage h4 { font-size: 1.1rem; margin: .3rem 0 .6rem; }
.stage ul { display: grid; gap: .4rem; }
.stage li { font-size: .86rem; color: var(--ink-soft); position: relative; padding-left: 1rem; }
.stage li::before { content:"·"; position:absolute; left: .3rem; color: var(--gold); font-weight: 700; }
.stage .here {
  display: inline-block; margin-top: .7rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--emerald);
  background: var(--gold-soft); padding: .25rem .7rem; border-radius: 999px;
}
@media (max-width: 820px) {
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stages::before { left: 26px; right: auto; top: 8%; bottom: 8%; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 16px); }
  .stage { display: grid; grid-template-columns: 54px 1fr; column-gap: 1.2rem; row-gap: 0;
    align-items: start; text-align: left; padding-bottom: 2rem; }
  .stage .dot { margin: 0; grid-column: 1; grid-row: 1; }
  .stage .when, .stage h4, .stage ul, .stage .here { grid-column: 2; }
  .stage ul { justify-items: start; }
  .stage li { padding-left: 1rem; }
}

/* ============================================================
   FUNDING
   ============================================================ */
.funding { background: var(--sand-deep); position: relative; overflow: hidden; }
.funding::before {
  content:""; position:absolute; inset:0; background-image:url("../img/pattern.svg");
  background-size: 200px; opacity: .04; pointer-events: none;
}
.funding-card {
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.8rem, 4vw, 3.2rem);
  position: relative; z-index: 1;
}
.funding-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.8rem; }
.funding-top .raised .k { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.funding-top .raised .v { font-family: var(--display); font-size: clamp(2.4rem,1.8rem+2vw,3.6rem); color: var(--emerald); line-height: 1; }
.funding-top .goal { text-align: right; }
.funding-top .goal .k { font-size: .82rem; color: var(--muted); font-weight: 600; }
.funding-top .goal .v { font-family: var(--display); font-size: 1.8rem; color: var(--emerald-deep); }

.progress {
  height: 22px; border-radius: 999px; background: var(--sand);
  border: 1px solid var(--line); overflow: hidden; position: relative;
}
.progress-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 1.6s var(--ease);
  position: relative;
}
.progress-bar::after {
  content:""; position:absolute; inset:0;
  background-image: url("../img/pattern.svg"); background-size: 40px;
  opacity:.18; filter: brightness(0) invert(1);
}
.progress-meta { display: flex; justify-content: space-between; margin-top: .8rem; font-size: .86rem; color: var(--muted); }
.progress-meta strong { color: var(--gold); }

.funding-break { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2rem; }
.break-item { padding: 1.3rem; border-radius: var(--radius); background: var(--sand); }
.break-item .k { font-size: .82rem; color: var(--muted); font-weight: 600; }
.break-item .v { font-family: var(--display); font-size: 1.6rem; color: var(--emerald); margin-top: .2rem; }
.break-item.total { background: var(--emerald); }
.break-item.total .k { color: rgba(252,250,244,.78); }
.break-item.total .v { color: var(--gold-light); }
.funding-deadline { margin-top: 1.8rem; text-align: center; font-size: .95rem; color: var(--ink-soft); }
.funding-deadline strong { color: var(--emerald); }
@media (max-width: 640px) { .funding-break { grid-template-columns: 1fr; } }

/* ============================================================
   EVENTS
   ============================================================ */
.fundraising-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 1.8rem; position: relative;
}
.fundraising-strip { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 5px; }
.fundraising-strip .fs-item { overflow: hidden; height: 360px; }
.fundraising-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.fundraising-strip .fs-item:hover img { transform: scale(1.05); }
.fundraising-photo figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.4rem 1.5rem 1rem;
  color: var(--paper); font-size: .92rem; font-weight: 600;
  background: linear-gradient(to top, rgba(7,42,34,.9), transparent);
  pointer-events: none;
}
@media (max-width: 700px) {
  .fundraising-strip { grid-template-columns: 1fr; }
  .fundraising-strip .fs-item:not(:first-child) { display: none; }
  .fundraising-strip .fs-item { height: 240px; }
}
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: start; }

/* event cover + gallery trigger */
.event-cover {
  position: relative; display: block; width: 100%; padding: 0; border: none;
  border-radius: 10px; overflow: hidden; cursor: pointer; margin-bottom: .3rem;
  aspect-ratio: 16/10; background: var(--sand);
}
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.event-cover:hover img { transform: scale(1.06); }
.event-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,42,34,.55), transparent 55%);
}
.event-cover .cover-badge {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(7,42,34,.85); color: var(--paper); backdrop-filter: blur(4px);
  font-size: .78rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px;
  transition: background .25s var(--ease);
}
.event-cover:hover .cover-badge { background: var(--gold); color: #2A1E05; }
.event-cover .cover-badge svg { width: 15px; height: 15px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; }
.lightbox.open { display: grid; place-items: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,21,17,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox-stage {
  position: relative; z-index: 1; width: min(94vw, 1080px);
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.lightbox-figure { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.lightbox-figure img {
  max-width: 100%; max-height: 76vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); background: var(--emerald-night);
  animation: lbFade .35s var(--ease);
}
@keyframes lbFade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lightbox-cap { color: rgba(252,250,244,.92); font-size: .96rem; text-align: center; max-width: 64ch; min-height: 1.4em; }
.lightbox-count { color: rgba(252,250,244,.6); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(252,250,244,.12); color: var(--paper);
  display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease);
  backdrop-filter: blur(4px);
}
.lb-btn:hover { background: var(--gold); color: #2A1E05; }
.lb-prev { left: -8px; } .lb-next { right: -8px; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(252,250,244,.12); color: var(--paper); display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: background .2s var(--ease);
}
.lb-close:hover { background: var(--gold); color: #2A1E05; }
.lb-close svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .lb-prev { left: 2px; } .lb-next { right: 2px; }
  .lb-btn { width: 42px; height: 42px; }
  .lightbox-figure img { max-height: 68vh; }
}
.event-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; background: var(--paper);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.event-card .badge {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
}
.badge.done { background: var(--emerald); color: var(--gold-light); }
.badge.up { background: var(--gold-soft); color: var(--emerald-deep); }
.event-card .date { font-family: var(--display); font-size: 1.3rem; color: var(--emerald-deep); }
.event-card .where { font-size: .92rem; color: var(--ink-soft); }
.event-card .note { font-size: .88rem; color: var(--muted); margin-top: auto; }
.event-card .raised-pill {
  margin-top: .6rem; align-self: flex-start;
  font-weight: 700; color: var(--gold); font-family: var(--display); font-size: 1.4rem;
}
.event-card .raised-pill small { font-family: var(--body); font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; display:block; text-transform: uppercase; }
@media (max-width: 860px) { .events-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { background: var(--paper); }
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.pillar {
  border-radius: var(--radius-lg); padding: 2.2rem 1.9rem;
  background: linear-gradient(170deg, var(--sand), var(--paper));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.pillar .num { font-family: var(--display); font-size: 3.4rem; color: var(--gold-soft); line-height: .8; }
.pillar h3 { margin: .6rem 0 .6rem; font-size: 1.4rem; }
.pillar p { font-size: .95rem; }
.pillar .pillar-ar { font-family: var(--display); font-style: italic; color: var(--gold); font-size: .9rem; margin-top: .8rem; }
@media (max-width: 800px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DONATE
   ============================================================ */
.donate {
  background: linear-gradient(160deg, var(--emerald-deep) 0%, var(--emerald-night) 100%);
  color: var(--paper); position: relative; overflow: hidden;
}
.donate::before {
  content:""; position:absolute; inset:0; background-image:url("../img/pattern.svg");
  background-size: 170px; opacity:.06; filter: brightness(0) invert(1); pointer-events:none;
}
.donate .section-head h2 { color: var(--paper); }
.donate .section-head p { color: rgba(252,250,244,.8); }
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; position: relative; z-index: 1; }

.ways { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 2rem; }
.way {
  background: rgba(252,250,244,.05); border: 1px solid rgba(252,250,244,.14);
  border-radius: var(--radius); padding: 1.3rem;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.way:hover { background: rgba(252,250,244,.09); border-color: rgba(224,177,78,.4); transform: translateY(-3px); }
.way svg { width: 26px; height: 26px; color: var(--gold-light); margin-bottom: .7rem; }
.way h4 { color: var(--paper); font-size: 1.1rem; margin-bottom: .25rem; }
.way p { color: rgba(252,250,244,.72); font-size: .86rem; }

.donate-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* bank / qr card */
.give-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-lg);
}
.give-card h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.bank-rows { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.bank-row:last-child { border-bottom: none; padding-bottom: 0; }
.bank-row .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.bank-row .v { font-family: var(--display); font-size: 1.15rem; color: var(--emerald-deep); display:flex; align-items:center; gap:.6rem; }
.copy-btn {
  border: 1px solid var(--line); background: var(--sand); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--emerald); transition: background .2s var(--ease), color .2s var(--ease);
}
.copy-btn:hover { background: var(--emerald); color: var(--paper); }
.copy-btn svg { width: 15px; height: 15px; }

.qr-wrap { display: flex; align-items: center; gap: 1.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.qr-box {
  width: 110px; height: 110px; flex: none; border-radius: 12px;
  border: 2px dashed var(--line); display: grid; place-items: center;
  text-align: center; color: var(--muted); font-size: .68rem; padding: .5rem;
  background:
    linear-gradient(var(--sand),var(--sand)) padding-box,
    repeating-linear-gradient(45deg, var(--sand-deep) 0 6px, transparent 6px 12px);
}
.qr-wrap .qr-text { font-size: .86rem; color: var(--ink-soft); }
.qr-wrap .qr-text strong { color: var(--emerald-deep); display: block; font-family: var(--display); font-size: 1.05rem; }

/* editable-content callout */
.placeholder-note {
  margin-top: 1rem; font-size: .78rem; color: var(--muted);
  background: rgba(200,150,46,.1); border: 1px dashed var(--gold);
  border-radius: 8px; padding: .6rem .8rem; line-height: 1.45;
}
.placeholder-note strong { color: var(--gold); }
.donate .placeholder-note { color: rgba(252,250,244,.7); }

@media (max-width: 820px) {
  .donate-grid { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .ways { grid-template-columns: 1fr; } }

/* ============================================================
   VOLUNTEER strip
   ============================================================ */
.volunteer { background: var(--sand); }
.volunteer-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.vol-tags { display: flex; flex-wrap: wrap; gap: .8rem; }
.vol-tag {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.2rem; font-size: .92rem; font-weight: 600; color: var(--emerald-deep);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.vol-tag:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.vol-tag svg { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 760px){
  .volunteer-inner { grid-template-columns: 1fr; }
  .vol-tags { flex-direction: column; align-items: stretch; }
  .vol-tag { justify-content: flex-start; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper); }
.contact-quote {
  text-align: center; max-width: 760px; margin: 0 auto 3rem;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.3rem,1.1rem+1.2vw,1.9rem); line-height: 1.4; color: var(--emerald);
}
.contact-quote .cite { display:block; font-style: normal; font-family: var(--body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; font-weight: 600; }
.contacts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; max-width: 700px; margin-inline: auto; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.contact-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600;
  background: var(--emerald); color: var(--gold-light); font-size: 1.1rem;
}
.contact-card > span { min-width: 0; }
.contact-card .name { font-weight: 700; color: var(--emerald-deep); }
.contact-card .phone { font-size: .92rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; min-width: 0; overflow-wrap: anywhere; }
.contact-card .phone svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
@media (max-width: 760px){ .contacts-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--emerald-night); color: rgba(252,250,244,.72); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem,5vw,4.5rem); }
.footer-brand .brand-mark { background: var(--paper); padding: 4px; box-shadow: 0 0 0 1px rgba(252,250,244,.15); }
.footer-brand .b1 { color: var(--paper); }
.footer-brand .b2 { color: rgba(252,250,244,.6); }
.footer-brand p { margin-top: 1.2rem; font-size: .92rem; max-width: 36ch; color: rgba(252,250,244,.6); }
.footer-col h4 { color: var(--gold-light); font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { font-size: .92rem; color: rgba(252,250,244,.7); padding-block: .35rem; display: block; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(252,250,244,.12); padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: rgba(252,250,244,.5);
}
.footer-bottom .reg { color: rgba(252,250,244,.55); }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(1){ transition-delay:.05s }
[data-reveal-stagger].in > *:nth-child(2){ transition-delay:.13s }
[data-reveal-stagger].in > *:nth-child(3){ transition-delay:.21s }
[data-reveal-stagger].in > *:nth-child(4){ transition-delay:.29s }
[data-reveal-stagger].in > *:nth-child(5){ transition-delay:.37s }
[data-reveal-stagger].in > *:nth-child(6){ transition-delay:.45s }

/* hero load animation */
.hero [data-load] { opacity: 0; transform: translateY(20px); animation: heroIn .9s var(--ease) forwards; }
.hero [data-load="1"]{ animation-delay:.1s } .hero [data-load="2"]{ animation-delay:.22s }
.hero [data-load="3"]{ animation-delay:.34s } .hero [data-load="4"]{ animation-delay:.46s }
.hero [data-load="5"]{ animation-delay:.58s } .hero [data-load="6"]{ animation-delay:.4s }
@keyframes heroIn { to { opacity:1; transform:none; } }

/* back to top */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--emerald); color: var(--gold-light); box-shadow: var(--shadow-md);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.9); transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--emerald-deep); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* toast */
.toast {
  /* hidden state must clear its own height PLUS the 2rem bottom offset,
     or the pill peeks above the viewport edge over the footer */
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, calc(100% + 2.5rem));
  background: var(--emerald-deep); color: var(--paper); padding: .8rem 1.3rem;
  border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  z-index: 200; transition: transform .4s var(--ease); display:flex; align-items:center; gap:.5rem;
}
.toast svg { width: 18px; height: 18px; color: var(--gold-light); }
.toast.show { transform: translate(-50%, 0); }
