/* ==========================================================================
   NatureDefender — Core Stylesheet
   Design system: Luxury editorial dark theme built for a conservation NGO.
   Signature motif: "growth rings" (tree-ring scroll progress) and root-line
   dividers, echoing the brand mark of a tree whose roots meet a river.
   ========================================================================== */

:root {
  /* ---- Palette -------------------------------------------------------- */
  --forest: #0e3b2e;
  --forest-deep: #0a2a21;
  --emerald: #1d8a5a;
  --emerald-bright: #27b077;
  --off-white: #f8f9f4;
  --charcoal: #111111;
  --black: #050505;
  --gold: #c8a96a;
  --gold-bright: #e0c088;
  --mist: #a9b8b2;

  /* text on dark */
  --ink-100: rgba(248, 249, 244, 0.96);
  --ink-70: rgba(248, 249, 244, 0.72);
  --ink-45: rgba(248, 249, 244, 0.45);
  --hairline: rgba(248, 249, 244, 0.12);
  --hairline-strong: rgba(248, 249, 244, 0.2);

  /* glass */
  --glass-fill: rgba(248, 249, 244, 0.05);
  --glass-fill-strong: rgba(248, 249, 244, 0.09);
  --glass-border: rgba(248, 249, 244, 0.14);

  /* type */
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-eyebrow: "Inter", sans-serif;

  /* rhythm */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad: clamp(5rem, 12vw, 10rem);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --max-w: 1440px;
}

/* ---- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* Lenis governs smooth scroll */
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -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; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--off-white);
  color: var(--black);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---- Typography ---------------------------------------------------------*/
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--off-white);
}

h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); font-weight: 700; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { margin: 0; color: var(--ink-70); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-eyebrow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-bright);
}

.section-head {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head.centered { max-width: 42rem; margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; max-width: 38rem; }

.text-serif-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  color: var(--ink-100);
  font-weight: 500;
  line-height: 1.5;
}

/* ---- Layout helpers ------------------------------------------------------*/
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); position: relative; }
.section--tight { padding-top: calc(var(--section-pad) * 0.55); padding-bottom: calc(var(--section-pad) * 0.55); }
.section--forest { background: linear-gradient(180deg, var(--black) 0%, var(--forest-deep) 45%, var(--forest) 100%); }
.section--charcoal { background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 28%), linear-gradient(180deg, #050505 0%, #09120e 100%); }
.section--black { background: radial-gradient(circle at center right, rgba(255,255,255,0.04), transparent 22%), linear-gradient(180deg, #050505 0%, #0c1410 100%); }

/* root-line divider — signature structural device echoing the mark's roots */
.root-divider {
  position: relative;
  height: 90px;
  margin: 0 auto;
  max-width: var(--max-w);
  overflow: visible;
}
.root-divider svg { width: 100%; height: 100%; }
.root-divider path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-opacity: 0.35;
  stroke-dasharray: 1 1;
  vector-effect: non-scaling-stroke;
}

/* ---- Buttons ------------------------------------------------------------*/
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease;
}
.btn span.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple 700ms var(--ease-out);
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.4); opacity: 0; } }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--black);
  box-shadow: 0 10px 30px -12px rgba(200, 169, 106, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(200, 169, 106, 0.7); }

.btn--ghost {
  background: var(--glass-fill);
  color: var(--off-white);
  border-color: var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn--ghost:hover { background: var(--glass-fill-strong); border-color: var(--hairline-strong); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--off-white);
}
.btn--outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn--sm { padding: 0.8rem 1.5rem; font-size: 0.82rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-bright);
  border-bottom: 1px solid transparent;
  transition: gap 0.35s var(--ease-out), border-color 0.35s ease;
}
.link-arrow:hover { gap: 0.85rem; border-color: var(--gold-bright); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---- Header / Nav --------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.4rem 0;
  transition: padding 0.5s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 0.85rem 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(200,169,106,0.35), rgba(29,138,90,0.18) 60%, transparent 75%);
  border: 1px solid var(--hairline-strong);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--off-white);
}
.brand-name em { color: var(--gold-bright); font-style: normal; }

.main-nav ul { display: flex; align-items: center; gap: clamp(1.4rem, 2vw, 2.6rem); }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-70);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--off-white); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--glass-fill);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(5,5,5,0.98);
  display: flex;
  flex-direction: column;
  padding: 6.5rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-in-out);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-nav a { font-family: var(--font-display); font-size: 2.2rem; color: var(--off-white); }
.mobile-nav .mobile-nav-close {
  position: absolute; top: 1.4rem; right: var(--gutter);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); background: var(--glass-fill);
  display: flex; align-items: center; justify-content: center;
}

/* ---- Hero -----------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,0.55) 78%, var(--black) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 6;
  width: 100%;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-content .wrap { display: flex; flex-direction: column; gap: 1.8rem; }
.hero-title {
  color: var(--off-white) !important;
  position: relative;
  z-index: 2;
  overflow: visible !important;
}
.hero-title .line { display: block; overflow: visible !important; }
.hero-title .line span { display: inline-block; will-change: transform; transform: none !important; opacity: 1 !important; }
.hero-kicker {
  font-family: var(--font-eyebrow);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero-title {
  max-width: 18ch;
  font-size: clamp(3rem, 8vw, 7.2rem);
  overflow: hidden;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; will-change: transform; }
.hero-sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-70);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.5rem; }

.scroll-hint {
  position: absolute;
  bottom: clamp(1.6rem, 3vw, 2.6rem);
  right: var(--gutter);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-45);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint .stem {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .stem::after {
  content: "";
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold-bright);
  animation: stem-drip 2.2s var(--ease-in-out) infinite;
}
@keyframes stem-drip { to { top: 100%; } }

/* ---- Growth-ring scroll progress (signature element) ---------------------*/
.growth-ring {
  position: fixed;
  right: clamp(1.1rem, 2.4vw, 2.4rem);
  bottom: clamp(1.1rem, 2.4vw, 2.4rem);
  z-index: 400;
  width: 64px; height: 64px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.growth-ring.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.growth-ring svg { width: 100%; height: 100%; }
.growth-ring circle.track { fill: none; stroke: var(--hairline); stroke-width: 1; }
.growth-ring circle.ring { fill: none; stroke-width: 1; opacity: 0.55; }
.growth-ring circle.progress {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.growth-ring .to-top {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(5,5,5,0.55);
  backdrop-filter: blur(6px);
}
.growth-ring .to-top svg.arrow { width: 16px; height: 16px; stroke: var(--off-white); }

/* ---- Loading screen -------------------------------------------------------*/
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.6rem;
}
.loader-mark { width: 64px; height: 64px; opacity: 0.9; }
.loader-word {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--ink-70);
}
.loader-bar {
  width: 200px; height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.loader-bar span {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--gold-bright);
}
.loader.is-hidden { pointer-events: none; }

/* ---- Cards ---------------------------------------------------------------*/
.glass-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stat-grid, .value-grid, .impact-grid {
  display: grid;
  gap: 1.5rem;
}

/* Mission */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.mission-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.mission-media .photo-fill { position: absolute; inset: 0; }
.mission-media .frame-caption {
  position: absolute; left: 1.4rem; bottom: 1.4rem; right: 1.4rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-70);
}
.mission-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.mission-copy .stats-inline { display: flex; gap: clamp(1.8rem, 4vw, 3rem); margin-top: 0.5rem; }
.mission-copy .stats-inline strong {
  display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-bright);
}
.mission-copy .stats-inline span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }

/* Impact / stats */
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  text-align: left;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--off-white);
  display: flex; align-items: baseline; gap: 0.15rem;
}
.stat-number .unit { font-size: 1.4rem; color: var(--gold-bright); }
.stat-label { font-size: 0.85rem; color: var(--ink-45); letter-spacing: 0.03em; }
.stat-card .stat-icon { color: var(--emerald-bright); width: 26px; height: 26px; }

/* Featured projects (home) */
.project-scroller {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--hairline);
  isolation: isolate;
}
.project-card .photo-fill { position: absolute; inset: 0; transition: transform 1.1s var(--ease-out); }
.project-card:hover .photo-fill { transform: scale(1.08); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0) 30%, rgba(5,5,5,0.92) 100%);
}
.project-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem;
  z-index: 2;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.project-tag {
  align-self: flex-start;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(29, 138, 90, 0.35);
  border: 1px solid rgba(200,169,106,0.4);
  color: var(--gold-bright);
}
.project-card h3 { color: var(--off-white); }
.project-card p { font-size: 0.9rem; color: var(--ink-70); }
.project-card .link-arrow { margin-top: 0.3rem; }

/* Why nature matters */
.matters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.matter-card { padding: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.matter-card .num {
  font-family: var(--font-display); font-style: italic;
  color: var(--gold-bright); font-size: 1rem;
}
.matter-card svg { width: 28px; height: 28px; color: var(--emerald-bright); }

/* CTA banners */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
}
.cta-banner--volunteer::before { background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 130%); }
.cta-banner--donate::before { background: linear-gradient(135deg, #1a1a1a 0%, var(--forest-deep) 140%); }
.cta-banner--donate { border: 1px solid var(--hairline-strong); }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-banner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }

/* Testimonials */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { padding: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; justify-content: space-between; min-height: 260px; }
.testimonial-quote { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-100); line-height: 1.5; }
.testimonial-person { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--off-white); font-size: 0.95rem;
}
.testimonial-person .name { font-weight: 600; font-size: 0.92rem; color: var(--off-white); }
.testimonial-person .role { font-size: 0.78rem; color: var(--ink-45); }

/* Updates */
.updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.update-card { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.update-date { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.update-card h3 { font-size: 1.2rem; }

/* Newsletter */
.newsletter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: clamp(2.2rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: 0.8rem; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter-form input {
  flex: 1; padding: 1rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--hairline-strong); background: rgba(5,5,5,0.4);
  color: var(--off-white); font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: var(--ink-45); }

/* Footer */
.site-footer { padding-top: clamp(4rem, 8vw, 6rem); background: var(--black); border-top: 1px solid var(--hairline); }
.footer-top { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand p { max-width: 26rem; margin-top: 1rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; color: var(--ink-70); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold-bright); }
.social-row { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-100); /* higher contrast on dark footer */
  transition: all 0.35s var(--ease-out);
}
.social-btn:hover { color: var(--black); background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; color: currentColor; stroke: currentColor; fill: currentColor; }

/* Force high-contrast for SVG icons (override inline attributes if needed) */
.site-footer .social-btn svg {
  stroke: var(--off-white) !important;
  fill: var(--off-white) !important;
  opacity: 1 !important;
}

/* Fallback: if SVG icons aren't injected (Lucide unavailable), show the aria-label text */
.social-btn:not(:has(svg))::before {
  content: attr(aria-label);
  font-size: 0.82rem;
  color: var(--off-white);
  padding: 0 0.35rem;
  white-space: nowrap;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 0; border-top: 1px solid var(--hairline);
  font-size: 0.78rem; color: var(--ink-45); flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: var(--ink-45); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---- Page hero (interior pages) ------------------------------------------*/
.page-hero {
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(29,138,90,0.28), transparent 60%), var(--black);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-crumb { font-size: 0.8rem; color: var(--ink-45); margin-bottom: 1.2rem; display: flex; gap: 0.5rem; align-items: center; }
.page-hero-crumb a:hover { color: var(--gold-bright); }
.page-hero h1 { max-width: 20ch; }
.page-hero .text-serif-lead { max-width: 42rem; margin-top: 1.4rem; }

/* ---- About page ----------------------------------------------------------*/
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.story-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--hairline); position: sticky; top: 7rem; }
.story-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.story-copy p + p { margin-top: -0.6rem; }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar-card { padding: 2.2rem; }
.pillar-card .eyebrow { margin-bottom: 1rem; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value-card { padding: 1.9rem; text-align: left; }
.value-card svg { width: 26px; height: 26px; color: var(--gold-bright); margin-bottom: 1rem; }

.timeline { position: relative; padding-left: 2.6rem; display: flex; flex-direction: column; gap: 2.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.6rem; top: 0.3rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--gold-bright);
}
.timeline-year { font-family: var(--font-display); font-style: italic; color: var(--gold-bright); font-size: 1.1rem; }
.timeline-item h3 { margin-top: 0.4rem; }
.timeline-item p { margin-top: 0.5rem; max-width: 42rem; }

/* ---- Projects page ---------------------------------------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.filter-chip {
  padding: 0.65rem 1.3rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--hairline-strong); color: var(--ink-70); background: transparent;
  transition: all 0.3s ease;
}
.filter-chip:hover { border-color: var(--gold-bright); color: var(--off-white); }
.filter-chip.is-active { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--black); }

.projects-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.project-full-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
}
.project-full-media { aspect-ratio: 16/10; position: relative; }
.project-full-body { padding: 1.9rem 2rem 2.1rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.project-full-body .impact-line {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--emerald-bright); font-weight: 600;
}
.project-full-body .impact-line svg { width: 18px; height: 18px; }
.project-full-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.6rem; }

/* ---- Contact page ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field label { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-45); }
.field input, .field textarea, .field select {
  padding: 0.95rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong); background: rgba(255,255,255,0.03);
  color: var(--off-white); font-size: 0.95rem; transition: border-color 0.3s ease, background 0.3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-bright); background: rgba(255,255,255,0.05); }
.field textarea { resize: vertical; min-height: 140px; }
.form-status { font-size: 0.88rem; min-height: 1.4rem; }
.form-status.success { color: var(--emerald-bright); }
.form-status.error { color: #e07a5f; }

.contact-info-card { padding: 2.2rem; display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-row .icn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(29,138,90,0.25); border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-row .icn svg { width: 18px; height: 18px; color: var(--gold-bright); }
.contact-info-row h4 { font-size: 0.95rem; color: var(--off-white); margin-bottom: 0.25rem; }
.contact-info-row p a { color: var(--ink-70); }
.contact-info-row p a:hover { color: var(--gold-bright); }

.map-placeholder {
  margin-top: 3rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline); aspect-ratio: 21/9; position: relative;
  background:
    linear-gradient(rgba(14,59,46,0.55), rgba(5,5,5,0.75)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 40px),
    var(--forest-deep);
  display: flex; align-items: center; justify-content: center;
}
.map-placeholder .pin {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: var(--ink-70);
}
.map-placeholder svg { width: 34px; height: 34px; color: var(--gold-bright); }

/* ---- Photo placeholder system (stand-ins for real photography) ----------*/
.photo-fill {
  background-size: cover;
  background-position: center;
  position: relative;
}
.photo-fill::after {
  content: attr(data-caption);
  position: absolute; inset: auto 0 0 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ph-forest    { background-image: url('../images/forest.jpg.webp'); background-size: cover; background-position: center; }
.ph-canopy    { background-image: url('../images/canopy.jpg'); background-size: cover; background-position: center; }
.ph-river     { background-image: url('../images/river.avif'); background-size: cover; background-position: center; }
.ph-wildlife  { background-image: url('../images/wildlife.jpeg'); background-size: cover; background-position: center; }
.ph-mountain  { background-image: url('../images/mountain.jpg.avif'); background-size: cover; background-position: center; }
.ph-volunteer { background-image: linear-gradient(160deg,#12210f 0%,#2c5c2a 55%,#7fae4e 130%); }
.ph-plastic   { background-image: linear-gradient(160deg,#031418 0%,#0a3a44 55%,#1d8aa0 130%); }
.ph-earth     { background-image: linear-gradient(160deg,#0a1c14 0%,#1d3b2a 55%,#c8a96a 140%); }
.ph-team1     { background-image: linear-gradient(160deg,#1a1204 0%,#3a2c12 60%,#8a6a3a 130%); }
.ph-team2     { background-image: linear-gradient(160deg,#04141a 0%,#123a3a 60%,#3a8a7a 130%); }
.ph-team3     { background-image: linear-gradient(160deg,#12100a 0%,#3a3212 60%,#8a7a3a 130%); }
.ph-team4     { background-image: linear-gradient(160deg,#0a1c0f 0%,#1d3b26 60%,#4e8a5a 130%); }

