/* ==========================================================================
   Hope Beyond Borders — Design System & Site Styles
   Palette: Olive Garden inspired (deep olive, sage, cream, earth, bronze)
   ========================================================================== */

/* -------------------------------- Tokens -------------------------------- */
:root{
  /* Colors — core palette */
  --forest:        #1E2A20;
  --forest-2:      #172018;
  --olive:         #3A4A32;
  --olive-2:       #4C5F41;
  --olive-light:   #63775353;
  --sage:          #8A9A7B;
  --sage-light:    #B7C2A9;
  --cream:         #F3EEE1;
  --ivory:         #FBF9F3;
  --earth:         #BDAF91;
  --earth-2:       #A5946E;
  --gold:          #A6873F;
  --gold-light:    #CBAE6B;
  --ink:           #20261B;
  --ink-soft:      #4A5142;
  --white:         #FFFFFF;

  /* Semantic */
  --bg-body:        var(--ivory);
  --bg-alt:         var(--cream);
  --bg-dark:        var(--forest);
  --bg-dark-2:      var(--forest-2);
  --text-body:      var(--ink);
  --text-muted:     var(--ink-soft);
  --text-on-dark:   var(--ivory);
  --text-on-dark-muted: #C9CFBF;
  --border-soft:    rgba(32, 38, 27, 0.12);
  --border-on-dark: rgba(251, 249, 243, 0.16);
  --accent:         var(--gold);
  --brand:          var(--olive);

  /* Typography */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-hero:   clamp(2.6rem, 2.1vw + 2.1rem, 5.6rem);
  --fs-h1:     clamp(2.2rem, 1.6vw + 1.7rem, 3.75rem);
  --fs-h2:     clamp(1.85rem, 1.1vw + 1.5rem, 2.85rem);
  --fs-h3:     clamp(1.375rem, 0.5vw + 1.2rem, 1.75rem);
  --fs-h4:     clamp(1.125rem, 0.2vw + 1.05rem, 1.3rem);
  --fs-lead:   clamp(1.125rem, 0.35vw + 1.02rem, 1.4rem);
  --fs-body:   1rem;
  --fs-small:  0.875rem;
  --fs-eyebrow:0.8125rem;

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-max: 1360px;
  --container-narrow: 780px;
  --container-mid: 1040px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 12px rgba(30, 42, 32, 0.08);
  --shadow-md: 0 12px 40px rgba(30, 42, 32, 0.14);
  --shadow-lg: 0 24px 70px rgba(23, 32, 24, 0.22);

  /* Motion */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  /* Z-layers */
  --z-header: 100;
  --z-menu: 200;
  --z-cursor: 300;
  --z-progress: 150;
}

/* -------------------------------- Reset ---------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}
body{
  margin: 0;
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg{ display: block; max-width: 100%; }
img{ height: auto; }
input, button, textarea, select{ font: inherit; color: inherit; }
button{ cursor: pointer; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure{ margin: 0; }
table{ border-collapse: collapse; }
:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ------------------------------ Typography -------------------------------- */
h1, h2, h3, h4, .font-serif{
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest);
}
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); }
h4{ font-size: var(--fs-h4); font-weight: 600; }

.lead{ font-size: var(--fs-lead); line-height: 1.5; color: var(--text-muted); font-weight: 400; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.on-dark{ color: var(--gold-light); }

.text-muted{ color: var(--text-muted); }
.on-dark{ color: var(--text-on-dark); }
.on-dark .lead, .lead.on-dark{ color: var(--text-on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4{ color: var(--ivory); }

/* -------------------------------- Layout ---------------------------------- */
.container{
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow{ max-width: var(--container-narrow); }
.container--mid{ max-width: var(--container-mid); }

.section{ padding-block: var(--space-2xl); position: relative; }
.section--tight{ padding-block: var(--space-xl); }
.section--dark{ background: var(--bg-dark); color: var(--text-on-dark); }
.section--cream{ background: var(--bg-alt); }
.section--ivory{ background: var(--bg-body); }

.section-head{
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head > .eyebrow{ margin-bottom: var(--space-sm); }
.section-head > h2{ margin-top: var(--space-xs); }
.section-head > p{ margin-top: var(--space-sm); }

.grid{ display: grid; gap: var(--space-lg); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-5{ grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .grid-5{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-5{ grid-template-columns: 1fr; }
}

/* -------------------------------- Buttons --------------------------------- */
.btn{
  --btn-bg: var(--olive);
  --btn-fg: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
  will-change: transform;
}
.btn:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn .btn-arrow{
  display: inline-flex;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.btn:hover .btn-arrow{ transform: translateX(4px); }

.btn-primary{ --btn-bg: var(--olive); --btn-fg: var(--ivory); }
.btn-primary:hover{ --btn-bg: var(--forest); }

.btn-gold{ --btn-bg: var(--gold); --btn-fg: var(--forest); }
.btn-gold:hover{ --btn-bg: var(--gold-light); }

.btn-outline{
  --btn-bg: transparent;
  --btn-fg: var(--forest);
  border-color: var(--border-soft);
}
.btn-outline:hover{ --btn-bg: var(--forest); --btn-fg: var(--ivory); border-color: var(--forest); }

.btn-outline-light{
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  border-color: var(--border-on-dark);
}
.btn-outline-light:hover{ --btn-bg: var(--ivory); --btn-fg: var(--forest); }

.btn-block{ width: 100%; justify-content: center; }
.btn-sm{ padding: 0.7rem 1.3rem; font-size: 0.875rem; }

.btn-group{ display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

/* --------------------------------- Header --------------------------------- */
.site-header{
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  padding-block: 1.35rem;
  transition: padding var(--dur-med) var(--ease-soft), background var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft), border-color var(--dur-med) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.site-header.is-scrolled{
  padding-block: 0.85rem;
  background: rgba(251, 249, 243, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px rgba(30, 42, 32, 0.06);
}
.site-header.is-hero-dark:not(.is-scrolled) .brand-word,
.site-header.is-hero-dark:not(.is-scrolled) .nav-link,
.site-header.is-hero-dark:not(.is-scrolled) .brand-mark{ color: var(--ivory); }
.site-header.is-hero-dark:not(.is-scrolled) .nav-link::after{ background: var(--gold-light); }
.site-header.is-hero-dark:not(.is-scrolled) .btn-outline{ --btn-fg: var(--ivory); border-color: var(--border-on-dark); }
.site-header.is-hero-dark:not(.is-scrolled) .menu-toggle span{ background: var(--ivory); }

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest);
  transition: color var(--dur-med) var(--ease-soft);
  z-index: 2;
}
.brand-mark{ width: 40px; height: 40px; color: var(--olive); flex-shrink: 0; transition: color var(--dur-med) var(--ease-soft); }
.brand-word{ line-height: 1.1; transition: color var(--dur-med) var(--ease-soft); }
.brand-word small{ display: block; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }

.nav-primary{ display: flex; align-items: center; gap: var(--space-lg); }
.nav-links{ display: flex; align-items: center; gap: var(--space-md); }
.nav-link{
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 0.3rem;
  transition: color var(--dur-fast) var(--ease-soft);
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right var(--dur-med) var(--ease-premium);
}
.nav-link:hover::after, .nav-link.is-active::after{ right: 0; }
.nav-link.is-active{ color: var(--olive); font-weight: 600; }

.header-cta{ display: flex; align-items: center; gap: var(--space-sm); }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}
.menu-toggle span{
  width: 100%;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-soft), opacity var(--dur-fast) var(--ease-soft), background var(--dur-med) var(--ease-soft);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen overlay menu */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: circle(2% at calc(100% - 46px) 46px);
  transition: clip-path 0.65s var(--ease-premium);
  pointer-events: none;
}
.mobile-menu.is-open{ clip-path: circle(150% at calc(100% - 46px) 46px); pointer-events: auto; }
.mobile-menu-links{ display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu-links a{
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--ivory);
  opacity: 0.55;
  padding-block: 0.25rem;
  transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
  transform: translateY(10px);
}
.mobile-menu.is-open .mobile-menu-links a{ transform: translateY(0); }
.mobile-menu-links a:hover, .mobile-menu-links a.is-active{ opacity: 1; }
.mobile-menu-foot{
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--text-on-dark-muted);
}
.mobile-menu-foot a{ color: var(--gold-light); }

@media (max-width: 900px){
  .nav-primary > .nav-links{ display: none; }
  .header-cta .btn-outline{ display: none; }
  .menu-toggle{ display: flex; }
}

/* --------------------------------- Footer ---------------------------------- */
.site-footer{
  background: var(--forest-2);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-2xl) var(--space-lg);
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand .brand{ color: var(--ivory); margin-bottom: var(--space-sm); }
.footer-brand .brand-mark{ color: var(--gold-light); }
.footer-tagline{ max-width: 30ch; color: var(--text-on-dark-muted); }
.footer-social{ display: flex; gap: 0.6rem; margin-top: var(--space-md); }
.footer-social a{
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-dark);
  border-radius: 50%;
  color: var(--ivory);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.footer-social a:hover{ background: var(--olive); border-color: var(--olive); }
.footer-social svg{ width: 16px; height: 16px; }

.footer-heading{
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}
.footer-links{ display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a{ transition: color var(--dur-fast); }
.footer-links a:hover{ color: var(--ivory); }

.footer-newsletter form{ display: flex; gap: 0.5rem; margin-top: var(--space-sm); }
.footer-newsletter input[type="email"]{
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-on-dark);
  background: rgba(251,249,243,0.06);
  color: var(--ivory);
}
.footer-newsletter input::placeholder{ color: var(--text-on-dark-muted); }
.footer-newsletter button{
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.footer-newsletter button:hover{ background: var(--gold-light); }
.footer-note{ font-size: var(--fs-small); margin-top: var(--space-sm); color: var(--text-on-dark-muted); opacity: 0.75; }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: var(--fs-small);
}
.footer-bottom-links{ display: flex; gap: var(--space-md); }
.footer-bottom-links a:hover{ color: var(--ivory); }

@media (max-width: 980px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .footer-top{ grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* ------------------------------ Scroll progress ---------------------------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--sage));
  z-index: var(--z-progress);
}

/* --------------------------------- Cursor ----------------------------------- */
.cursor-dot{
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease;
}
.cursor-dot.is-active{ opacity: 1; }
.cursor-dot.is-hover{ width: 44px; height: 44px; background: rgba(166,135,63,0.35); }
@media (hover: none), (max-width: 900px){ .cursor-dot{ display: none; } }

/* ---------------------------------- Hero ------------------------------------ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: var(--space-xl);
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.08);
}
.hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,32,24,0.55) 0%, rgba(23,32,24,0.55) 30%, rgba(23,32,24,0.92) 100%),
              linear-gradient(90deg, rgba(23,32,24,0.75) 0%, rgba(23,32,24,0.25) 55%, rgba(23,32,24,0.55) 100%);
}
.hero-shape{
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-content{
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-content .eyebrow{ margin-bottom: var(--space-md); }
.hero-title{
  font-size: var(--fs-hero);
  color: var(--ivory);
  overflow: hidden;
}
.hero-title .line{ display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line span{ display: inline-block; will-change: transform; }
.hero-lead{
  margin-top: var(--space-md);
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}
.hero-actions{ margin-top: var(--space-lg); }
.hero-scroll-cue{
  position: absolute;
  left: var(--gutter);
  bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  z-index: 1;
}
.hero-scroll-cue .line{
  width: 1px; height: 36px;
  background: var(--border-on-dark);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue .line::after{
  content: "";
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold-light);
  animation: scrollcue 2.2s var(--ease-soft) infinite;
}
@keyframes scrollcue{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

.hero-stat-chip{
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-xl);
  z-index: 1;
  max-width: 300px;
  padding: var(--space-md);
  background: rgba(251,249,243,0.08);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (max-width: 1100px){ .hero-stat-chip{ display: none; } }

/* Page (interior) hero — shorter, for About/Programs/Get Involved/Contact */
.page-hero{
  position: relative;
  padding-top: 10.5rem;
  padding-bottom: var(--space-2xl);
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
}
.page-hero .container{ position: relative; z-index: 1; }
.page-hero-bg{ position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img{ width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,32,24,0.75), rgba(23,32,24,0.94));
}
.page-hero h1{ color: var(--ivory); max-width: 18ch; }
.page-hero .lead{ max-width: 56ch; margin-top: var(--space-md); }
.breadcrumb{
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-small); color: var(--text-on-dark-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a:hover{ color: var(--ivory); }

/* ------------------------------ Organic shapes ------------------------------ */
.blob{
  position: absolute;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  pointer-events: none;
}
.leaf-line{ position: absolute; pointer-events: none; opacity: 0.35; }

/* ------------------------------ Mission intro ------------------------------ */
.mission-intro{ background: var(--bg-body); }
.mission-statement{
  max-width: 920px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.75rem);
  line-height: 1.35;
  color: var(--forest);
}
.mission-statement .word{ opacity: 0.18; transition: opacity 0.4s; }
.mission-statement .word.is-lit{ opacity: 1; }
.mission-meta{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* ------------------------------ Impact storytelling ------------------------------ */
.story-pin{
  position: relative;
  background: var(--bg-dark);
  color: var(--ivory);
}
.story-viewport{
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.story-media{
  position: absolute;
  inset: 0;
}
.story-media img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.story-media img.is-active{ opacity: 1; }
.story-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,32,24,0.92) 0%, rgba(23,32,24,0.65) 45%, rgba(23,32,24,0.25) 100%);
}
.story-body{
  position: relative;
  z-index: 1;
  width: 100%;
}
.story-body .container{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-lg); align-items: end; }
.story-index{
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4vw, 5.5rem);
  color: var(--gold-light);
  opacity: 0.85;
  line-height: 1;
}
.story-panels{ position: relative; min-height: 220px; }
.story-panel{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft), visibility 0.5s;
}
.story-panel.is-active{ opacity: 1; visibility: visible; transform: translateY(0); }
.story-panel h3{ color: var(--ivory); font-size: var(--fs-h2); max-width: 14ch; }
.story-panel p{ margin-top: var(--space-sm); max-width: 44ch; color: var(--text-on-dark-muted); font-size: var(--fs-lead); }
.story-progress{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}
.story-progress span{
  flex: 1;
  height: 3px;
  background: var(--border-on-dark);
  overflow: hidden;
  border-radius: 2px;
}
.story-progress span i{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-light);
}
.story-progress span.is-done i{ width: 100%; }
.story-caption{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-panel-media{ display: none; }

@media (max-width: 900px){
  /* Mobile alternative: instead of a scroll-scrubbed pin (too short a
     scroll distance to feel deliberate on small screens), show all five
     stages as readable stacked cards, each with its own image. */
  .story-pin{ height: auto !important; }
  .story-viewport{ position: static; height: auto; display: block; padding-block: var(--space-2xl) var(--space-xl); }
  .story-media{ display: none; }
  .story-index{ display: none; }
  .story-progress, .story-caption{ display: none; }
  .story-body .container:first-child{ padding-bottom: 0; }
  .story-panels{ min-height: 0; position: static; }
  .story-panel{
    position: static; opacity: 1; visibility: visible; transform: none;
    display: block; padding-block: var(--space-lg);
    border-top: 1px solid var(--border-on-dark);
  }
  .story-panel:first-child{ border-top: none; padding-top: 0; }
  .story-panel-media{
    display: block; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: var(--space-md);
  }
  .story-panel-media img{ width: 100%; height: 100%; object-fit: cover; }
}

/* ------------------------------ Beyond the numbers ------------------------------ */
.numbers{
  background: var(--bg-alt);
  position: relative;
}
.numbers-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.number-card{
  padding: var(--space-lg) var(--space-md);
  background: var(--ivory);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.number-card .stat-word{
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
  color: var(--olive);
  display: block;
}
.number-card p{ margin-top: var(--space-sm); color: var(--text-muted); }
@media (max-width: 900px){ .numbers-grid{ grid-template-columns: 1fr; } }

/* ------------------------------ Approach / pathway ------------------------------ */
.approach{ position: relative; overflow: hidden; }
.approach-path{
  position: relative;
  margin-top: var(--space-2xl);
}
.approach-path svg{ width: 100%; height: auto; display: block; }
.approach-path .path-line{
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.approach-steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-top: -2rem;
}
.approach-step{
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}
.approach-step .step-index{
  width: 56px; height: 56px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  color: var(--olive);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}
.approach-step h4{ margin-bottom: 0.4rem; }
.approach-step p{ font-size: var(--fs-small); color: var(--text-muted); }

@media (max-width: 900px){
  .approach-steps{ grid-template-columns: 1fr; margin-top: var(--space-lg); gap: var(--space-lg); }
  .approach-path{ display: none; }
}

/* ------------------------------ Community feature (image expand) ------------------------------ */
.community-feature{ background: var(--forest); color: var(--ivory); overflow: hidden; }
.feature-media{
  position: relative;
  width: 84%;
  max-width: 1180px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  will-change: width;
}
.feature-media img{ width: 100%; height: 100%; object-fit: cover; }
.feature-text{
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-top: var(--space-xl);
}
@media (max-width: 700px){ .feature-media{ width: 100%; aspect-ratio: 4/5; } }

/* ------------------------------ Final CTA ------------------------------ */
.final-cta{
  background: linear-gradient(160deg, var(--olive) 0%, var(--forest) 100%);
  color: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2{ color: var(--ivory); max-width: 18ch; margin-inline: auto; }
.final-cta .btn-group{ justify-content: center; margin-top: var(--space-lg); }

/* ------------------------------ Reveal utilities (JS controlled) ------------------------------ */
.reveal{ opacity: 1; }
.js-ready .reveal{ opacity: 0; }
.js-ready .reveal-up{ transform: translateY(40px); }
.js-ready .reveal-fade{ opacity: 0; }
.js-ready .reveal-scale{ transform: scale(0.92); opacity: 0; }
.js-ready .reveal-mask{ clip-path: inset(0 0 100% 0); }
.js-ready .hero-fade-in{ opacity: 0; }
/* Note: the hero title spans are intentionally NOT pre-hidden via a CSS
   transform here (unlike the other reveal helpers above). GSAP's yPercent
   transform system reads an element's existing CSS transform when it
   first takes over the property; a percentage-based transform already
   in place there causes fromTo's start/end to resolve to the same
   computed value (a no-op). GSAP's own fromTo({yPercent:120}) call sets
   the hidden state inline, synchronously, before first paint (the script
   runs at the end of body), so no separate CSS pre-hide is needed. */

/* ------------------------------ Cards (generic) ------------------------------ */
.card{
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .card-icon{
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--olive);
  margin-bottom: var(--space-md);
}
.card h3, .card h4{ margin-bottom: 0.5rem; }
.card p{ color: var(--text-muted); }

/* ------------------------------ Floating impact words (3D-ish) ------------------------------ */
.impact-field{
  position: relative;
  height: clamp(280px, 34vw, 420px);
  perspective: 1200px;
}
.impact-word{
  position: absolute;
  font-family: var(--font-serif);
  color: var(--sage);
  opacity: 0.75;
  white-space: nowrap;
  will-change: transform;
}

/* ------------------------------ Forms ------------------------------ */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-field{ display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-md); }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size: var(--fs-small); font-weight: 600; color: var(--forest); }
.form-field input,
.form-field textarea,
.form-field select{
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus{
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(58,74,50,0.12);
  outline: none;
}
.form-field textarea{ resize: vertical; min-height: 140px; }
.form-checkbox{
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  cursor: pointer;
}
.form-checkbox input{ margin-top: 0.2rem; width: 17px; height: 17px; accent-color: var(--olive); flex-shrink: 0; }
.form-note{ font-size: 0.8rem; color: var(--text-muted); margin-top: -0.5rem; margin-bottom: var(--space-md); }
.form-status{
  margin-top: var(--space-md);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  display: none;
}
.form-status.is-visible{ display: block; }
.form-status.is-success{ background: rgba(138,154,123,0.18); color: var(--forest); display: block; }
.form-status.is-error{ background: rgba(166,63,63,0.12); color: #7a2b2b; display: block; }

@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

/* ------------------------------ Values / accordion (About) ------------------------------ */
.values-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.value-card{
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  border: 1px solid var(--border-soft);
  position: relative;
}
.value-card .value-index{
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--sage);
  opacity: 0.6;
  display: block;
  margin-bottom: var(--space-sm);
}
@media (max-width: 900px){ .values-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .values-grid{ grid-template-columns: 1fr; } }

.accordion-item{ border-bottom: 1px solid var(--border-soft); }
.accordion-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  color: var(--forest);
}
.accordion-trigger .plus{
  width: 28px; height: 28px;
  flex-shrink: 0;
  position: relative;
}
.accordion-trigger .plus::before,
.accordion-trigger .plus::after{
  content: "";
  position: absolute;
  background: var(--olive);
  transition: transform var(--dur-fast) var(--ease-soft);
}
.accordion-trigger .plus::before{ top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.accordion-trigger .plus::after{ left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.accordion-item.is-open .accordion-trigger .plus::after{ transform: rotate(90deg); }
.accordion-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-soft);
}
.accordion-panel p{ padding-bottom: var(--space-md); max-width: 60ch; color: var(--text-muted); }

/* ------------------------------ Programs page interactive ------------------------------ */
.programs-layout{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.programs-nav{ position: sticky; top: 8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.programs-nav button{
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.programs-nav button .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-soft);
  flex-shrink: 0;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.programs-nav button.is-active{ background: var(--bg-alt); color: var(--forest); }
.programs-nav button.is-active .dot{ background: var(--gold); transform: scale(1.4); }
.programs-nav button:hover{ color: var(--forest); }

.programs-panel{ position: relative; min-height: 560px; }
.program-view{
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.program-view.is-active{ display: grid; }
.program-view figure{ border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.program-view img{ width: 100%; height: 100%; object-fit: cover; }
.program-view .program-eyebrow{ color: var(--program-accent, var(--gold)); }
.program-view h3{ font-size: var(--fs-h1); margin-top: 0.5rem; }
.program-view .program-desc{ margin-top: var(--space-md); font-size: var(--fs-lead); color: var(--text-muted); }
.program-detail-list{ margin-top: var(--space-md); display: flex; flex-direction: column; gap: 0.65rem; }
.program-detail-list li{
  display: flex; gap: 0.6rem; align-items: flex-start;
  color: var(--text-body);
}
.program-detail-list svg{ flex-shrink: 0; margin-top: 3px; color: var(--program-accent, var(--gold)); }

@media (max-width: 980px){
  .programs-layout{ grid-template-columns: 1fr; }
  .programs-nav{ position: static; flex-direction: row; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; }
  .programs-nav button{ white-space: nowrap; }
  .program-view{ grid-template-columns: 1fr; }
  .program-view figure{ aspect-ratio: 16/10; }
}

/* ------------------------------ Get Involved cards ------------------------------ */
.involve-tabs{ display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--space-xl); }
.involve-tab{
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--ivory);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.involve-tab.is-active{ background: var(--olive); color: var(--ivory); border-color: var(--olive); }

.donate-panel{
  background: var(--bg-dark);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
.donate-amounts{ display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-md); }
.donate-amounts button{
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-on-dark);
  background: transparent;
  color: var(--ivory);
  font-weight: 600;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.donate-amounts button.is-selected, .donate-amounts button:hover{ background: var(--gold); color: var(--forest); border-color: var(--gold); }
@media (max-width: 900px){ .donate-panel{ grid-template-columns: 1fr; } }

.share-links{ display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-md); }
.share-links a{
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.share-links a:hover{ background: var(--forest); color: var(--ivory); border-color: var(--forest); }

/* ------------------------------ Contact page ------------------------------ */
.contact-layout{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info-card{
  background: var(--bg-dark);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-info-item{ display: flex; gap: 1rem; padding-block: var(--space-md); border-top: 1px solid var(--border-on-dark); }
.contact-info-item:first-of-type{ border-top: none; padding-top: 0; }
.contact-info-item .icon{
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(251,249,243,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
}
.contact-info-item h4{ color: var(--ivory); margin-bottom: 0.2rem; }
.contact-info-item a, .contact-info-item p{ color: var(--text-on-dark-muted); }
.contact-info-item a:hover{ color: var(--ivory); }
.contact-form-card{ background: var(--ivory); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-lg); }

@media (max-width: 900px){ .contact-layout{ grid-template-columns: 1fr; } }

/* ------------------------------ 404-safe utility & misc ------------------------------ */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--ivory);
  padding: 0.8rem 1.2rem;
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus{ left: var(--space-sm); top: var(--space-sm); }

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider{ height: 1px; background: var(--border-soft); border: none; margin-block: var(--space-lg); }

.badge-list{ display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge{
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--olive);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* ------------------------------ Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-ready .reveal,
  .js-ready .reveal-up,
  .js-ready .reveal-fade,
  .js-ready .reveal-scale,
  .js-ready .reveal-mask,
  .js-ready .hero-fade-in,
  .js-ready .hero-title .line span{
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ------------------------------ Responsive: large type guards ------------------------------ */
@media (max-width: 480px){
  .hero{ padding-top: 6.5rem; }
  .hero-stat-chip{ display: none; }
  :root{ --space-2xl: 4rem; --space-3xl: 5rem; }
}
