/* =========================================================
   Our Trees, Our Life · Miti Yetu, Maisha Yetu
   Earthy design system
   ========================================================= */
:root {
  --forest: #1C2A1B;
  --forest-2: #24361F;
  --moss: #3B5530;
  --olive: #9DA31F;      /* brand olive from logo */
  --olive-2: #B9C03A;
  --clay: #B4612F;
  --clay-2: #D07A43;
  --sand: #EDE3CF;
  --cream: #F8F3E8;
  --bark: #2A1F17;
  --ink: #1D1B15;
  --muted: #6B6556;
  --line: rgba(29, 27, 21, .12);
  --line-light: rgba(248, 243, 232, .16);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
}

html[lang="zh"] {
  --f-display: "Noto Serif SC", "Fraunces", serif;
  --f-body: "Noto Sans SC", "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
::selection { background: var(--olive); color: var(--forest); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--dark { background: var(--forest); color: var(--cream); }
.section--sand { background: var(--sand); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--olive); color: var(--forest); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.h1, .hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: .98;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.h2 em, .h1 em { font-style: italic; color: var(--olive); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 20px;
}
.section--dark .eyebrow, .section-head--light .eyebrow { color: var(--olive-2); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero__eyebrow::before { display: none; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section-head--split > p { color: var(--muted); font-size: 18px; margin: 0; }
.section-head--light { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--forest); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn--olive { --bg: var(--olive); --fg: var(--forest); }
.btn--olive:hover { color: var(--cream); box-shadow: 0 14px 34px -14px rgba(157,163,31,.8); }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(248,243,232,.55); backdrop-filter: blur(6px); }
.btn--ghost::after { background: var(--cream); }
.btn--ghost:hover { color: var(--forest); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 24px; bottom: 0; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: scaleX(.3); }
.link-arrow i { font-style: normal; transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(6px); }

.round { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-light); font-size: 18px; transition: background .3s, color .3s; }
.round:hover { background: var(--olive); color: var(--forest); box-shadow: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--forest); color: var(--cream);
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__tree { width: 96px; height: 96px; }
.loader__ring { fill: none; stroke: var(--olive); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.2s var(--ease) forwards; }
.loader__trunk { fill: none; stroke: var(--cream); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1s .3s var(--ease) forwards; }
.loader__leaf { fill: var(--cream); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease) forwards; }
.loader__leaf:nth-of-type(2) { animation-delay: .8s; } .loader__leaf:nth-of-type(3) { animation-delay: .9s; }
.loader__leaf:nth-of-type(4) { animation-delay: 1s; } .loader__leaf:nth-of-type(5) { animation-delay: 1.1s; }
.loader__word { font-family: var(--f-display); font-style: italic; font-size: 18px; opacity: 0; animation: fade .8s .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes fade { to { opacity: .85; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--cream);
  transition: background .5s var(--ease), color .5s, height .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
}
.header__inner { height: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.header.is-solid { --header-h: 70px; background: rgba(248, 243, 232, .9); backdrop-filter: blur(14px) saturate(1.4); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 44px; height: 44px; object-fit: contain; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark--dark { display: none; }
.header.is-solid .brand__mark--light { display: none; }
.header.is-solid .brand__mark--dark { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.brand__text em { font-size: 12px; opacity: .75; letter-spacing: .04em; }

.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; font-weight: 600; font-size: 15px; border-radius: 999px; transition: background .3s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--olive); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .06em; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .9; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; margin: 0; padding: 8px; list-style: none;
  background: var(--cream); color: var(--ink); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu li { padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.lang__menu li:hover { background: var(--sand); }
.lang__menu li[aria-selected="true"] { color: var(--moss); }
.lang__menu li[aria-selected="true"]::after { content: "●"; color: var(--olive); font-size: 10px; align-self: center; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fallback { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); }
.hero.no-video .hero__video { display: none; }
.hero.no-video .hero__fallback { opacity: 1; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1.02) translate(-1.5%, 1%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,28,18,.55) 0%, rgba(20,28,18,0) 30%),
    linear-gradient(90deg, rgba(20,28,18,.55) 0%, rgba(20,28,18,0) 60%),
    linear-gradient(0deg, rgba(20,28,18,.92) 0%, rgba(20,28,18,.45) 45%, rgba(20,28,18,.1) 75%),
    radial-gradient(ellipse at 20% 100%, rgba(180,97,47,.28), transparent 60%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(110px, 14vh, 160px); padding-top: 140px; }
.hero__eyebrow { color: var(--cream); background: rgba(248,243,232,.1); backdrop-filter: blur(8px); padding: 8px 16px 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); letter-spacing: .12em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive-2); box-shadow: 0 0 0 0 rgba(185,192,58,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(185,192,58,0); } 100% { box-shadow: 0 0 0 0 rgba(185,192,58,0); } }
.hero__title { max-width: 12ch; margin-bottom: 28px; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); opacity: .9; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sound control */
.sound {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(110px, 14vh, 160px);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px; border-radius: 999px;
  background: rgba(248,243,232,.12); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-light);
  color: var(--cream); text-align: left;
  transition: background .4s, transform .5s var(--ease);
}
.sound:hover { background: rgba(248,243,232,.2); transform: translateY(-2px); }
.sound__bars { width: 46px; height: 46px; border-radius: 50%; background: var(--olive); display: flex; align-items: center; justify-content: center; gap: 3px; position: relative; }
.sound__bars::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--olive); opacity: 0; }
.sound:not([aria-pressed="true"]) .sound__bars::before { animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.sound__bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--forest); transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.2s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.5s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.7s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 22px; } }
.sound__label { display: flex; flex-direction: column; line-height: 1.25; }
.sound__label strong { font-size: 15px; }
.sound__label small { font-size: 12px; opacity: .7; }

.toast {
  position: absolute; z-index: 4; right: var(--gutter); bottom: calc(clamp(110px, 14vh, 160px) + 84px);
  margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--cream); color: var(--forest); font-weight: 600; font-size: 14px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none;
}
.toast.is-show { opacity: 1; transform: none; }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.scroll-cue i { width: 1.5px; height: 46px; background: linear-gradient(var(--cream), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--olive-2); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--olive); color: var(--forest); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; white-space: nowrap; }
.marquee__track b { font-style: normal; font-size: .6em; opacity: .6; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mission ---------- */
.mission__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.mission__media { position: relative; border-radius: var(--r-lg); }
.mission__media img { width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: 62% 50%; border-radius: var(--r-lg); }
.mission__badge {
  position: absolute; right: -24px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--clay); color: var(--cream); display: grid; place-content: center; text-align: center; padding: 18px;
  box-shadow: 0 20px 50px -20px rgba(180,97,47,.8);
  animation: float 6s ease-in-out infinite;
}
.mission__badge strong { font-family: var(--f-display); font-size: 40px; font-weight: 400; line-height: 1; }
.mission__badge span { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
.mission__text > p { color: var(--muted); font-size: 18px; margin-top: 28px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 40px; }
.vm__item { padding: 26px; border-radius: var(--r); background: var(--sand); }
.vm__item h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 10px; color: var(--moss); }
.vm__item p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Programs: wide expanding panels ---------- */
.panels { display: flex; gap: 16px; height: clamp(480px, 62vh, 640px); }
.panel {
  position: relative; flex: 1; min-width: 0; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  transition: flex 1s var(--ease);
}
.panel.is-open { flex: 4.2; cursor: default; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.75) brightness(.8); }
.panel.is-open img { transform: scale(1); filter: none; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,28,18,.92) 0%, rgba(20,28,18,.2) 55%, rgba(20,28,18,.1)); }
.panel__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); }
.panel__num { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--olive-2); display: block; margin-bottom: 10px; }
.panel h3 { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; white-space: nowrap; }
.panel:not(.is-open) .panel__body { top: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-inline: 8px; }
.panel:not(.is-open) h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(20px, 1.8vw, 26px); max-height: 100%; }
.panel:not(.is-open) .panel__num { order: 2; margin: 14px 0 0; }
.panel:not(.is-open) p, .panel:not(.is-open) .link-arrow { position: absolute; visibility: hidden; }
.panel p, .panel .link-arrow { max-width: 520px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease); }
.panel p { margin: 14px 0 22px; color: rgba(248,243,232,.85); }
.panel.is-open p, .panel.is-open .link-arrow { opacity: 1; transform: none; transition-delay: .35s; }
.panel.is-open .link-arrow { transition-delay: .45s; }
.panel:not(.is-open) p, .panel:not(.is-open) .link-arrow { pointer-events: none; }

/* ---------- Impact ---------- */
.impact { color: var(--cream); overflow: hidden; background: var(--forest); }
.impact__bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; filter: brightness(.38) saturate(.8); will-change: transform; }
.impact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,42,27,.6), rgba(28,42,27,.2) 50%, rgba(28,42,27,.8)); }
.impact__inner { position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 36px 28px 10px 0; border-right: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--f-display); font-weight: 300; font-size: clamp(48px, 6vw, 88px); line-height: 1; color: var(--olive-2); font-variant-numeric: tabular-nums; }
.stat span:not(.count) { font-size: 15px; opacity: .85; max-width: 22ch; }
.impact__note { margin-top: 40px; font-size: 13px; opacity: .55; font-style: italic; }

/* ---------- Sponsor ---------- */
.sponsor__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; }
.sponsor__card { background: var(--forest); color: var(--cream); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); }
.sponsor__card .eyebrow { color: var(--olive-2); }
.sponsor__card > p { opacity: .8; margin: 18px 0 30px; }
.picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { min-width: 64px; height: 52px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 17px; box-shadow: inset 0 0 0 1.5px var(--line-light); transition: background .3s, color .3s, transform .3s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip.is-on { background: var(--olive); color: var(--forest); box-shadow: none; }
.chip--input { display: inline-flex; align-items: center; padding: 0; }
.chip--input input { width: 84px; height: 100%; background: transparent; border: 0; color: inherit; font: inherit; text-align: center; outline: 0; }
.chip--input input::placeholder { color: rgba(248,243,232,.5); }
.sponsor__total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 0; margin-bottom: 24px; border-block: 1px solid var(--line-light); min-height: 120px; }
.sponsor__trees { display: block; font-size: 15px; opacity: .8; }
.sponsor__price { display: block; font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--olive-2); transition: transform .4s var(--ease); }
.sponsor__price.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.tree-grow { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 4px; max-width: 55%; }
.tree-grow svg { width: 22px; height: 26px; animation: sprout .6s var(--ease) backwards; }
@keyframes sprout { from { transform: scale(0) translateY(10px); opacity: 0; } }
.sponsor__small { font-size: 13px; opacity: .6; text-align: center; margin: 14px 0 0; }

.sponsor__goal { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; }
.sponsor__goal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.goal { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 24px; border-radius: var(--r); background: rgba(248,243,232,.92); backdrop-filter: blur(10px); }
.goal__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.goal__row strong { font-family: var(--f-display); font-size: 26px; font-weight: 500; }
.goal__row--small { font-size: 14px; color: var(--muted); }
.goal__bar { height: 10px; background: var(--sand); border-radius: 99px; margin: 14px 0 10px; overflow: hidden; }
.goal__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--moss), var(--olive)); transition: width 2s var(--ease); }

/* ---------- Why ---------- */
.why { background: var(--cream); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why__card { padding: 34px 28px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .4s; }
.why__card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(28,42,27,.35); background: var(--forest); color: var(--cream); }
.why__card:hover p { color: rgba(248,243,232,.75); }
.why__card svg { width: 48px; height: 48px; fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.why__card h3 { font-family: var(--f-display); font-size: 24px; margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: 15px; margin: 0; transition: color .4s; }

/* ---------- Quote ---------- */
.quote__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.quote__fig { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.quote__fig img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quote__mark { width: 64px; fill: var(--clay); margin-bottom: 26px; }
.quote__text { margin: 0; }
.quote__text p { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 32px; }
.quote__text footer { display: flex; flex-direction: column; }
.quote__text footer strong { font-size: 18px; }
.quote__text footer span { color: var(--muted); }

/* ---------- Gallery strip ---------- */
.strip { overflow: hidden; }
.strip__ctrl { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.strip__ctrl .link-arrow { margin-left: 16px; }
.strip__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 10px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  cursor: grab;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.container.section-head--split { max-width: var(--container); }
.strip__item { margin: 0; flex: 0 0 auto; height: clamp(300px, 46vh, 460px); border-radius: var(--r); overflow: hidden; scroll-snap-align: start; position: relative; }
.strip__item img { height: 100%; width: auto; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.strip__item:hover img { transform: scale(1.06); }

/* ---------- Help ---------- */
.help__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.help__card {
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 32px 28px;
  border-radius: var(--r-lg); background: var(--sand); overflow: hidden;
  transition: transform .6s var(--ease), background .5s, color .5s;
  transform-style: preserve-3d;
}
.help__card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: var(--olive); opacity: .18; transition: transform .9s var(--ease), opacity .5s; }
.help__card:hover { background: var(--moss); color: var(--cream); }
.help__card:hover::before { transform: scale(3.2); opacity: .25; }
.help__icon { position: relative; width: 56px; height: 56px; display: grid; place-content: center; border-radius: 16px; background: var(--forest); color: var(--olive-2); margin-bottom: auto; transition: transform .6s var(--ease); }
.help__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help__card:hover .help__icon { transform: rotate(-8deg) scale(1.08); }
.help__card h3 { position: relative; font-family: var(--f-display); font-size: 28px; margin: 40px 0 10px; }
.help__card p { position: relative; margin: 0; color: var(--muted); font-size: 15px; transition: color .5s; }
.help__card:hover p { color: rgba(248,243,232,.8); }
.help__card > i { position: absolute; right: 26px; bottom: 26px; font-style: normal; font-size: 22px; transform: translateX(-10px); opacity: 0; transition: .5s var(--ease); }
.help__card:hover > i { transform: none; opacity: 1; }

/* ---------- Band ---------- */
.band { position: relative; overflow: hidden; color: var(--cream); padding-block: clamp(120px, 16vw, 220px); text-align: center; background: var(--forest); }
.band__bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; filter: brightness(.32) saturate(.8); }
.band__inner { position: relative; z-index: 2; }
.band .h1 { max-width: 14ch; margin: 0 auto 40px; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bark); color: rgba(248,243,232,.78); padding-top: 90px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 60px; }
.footer__brand img { margin-bottom: 18px; }
.footer__name { font-family: var(--f-display); font-size: 22px; color: var(--cream); line-height: 1.2; }
.footer__name em { font-size: 15px; color: var(--olive-2); }
.footer h4 { color: var(--cream); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid > div > a, .footer__grid > div > span { display: block; margin-bottom: 10px; transition: color .3s, transform .3s var(--ease); }
.footer__grid > div > a:hover { color: var(--olive-2); transform: translateX(4px); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-content: center; box-shadow: inset 0 0 0 1px var(--line-light); transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--olive); color: var(--forest); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.news { display: flex; gap: 8px; margin-top: 14px; padding: 6px; border-radius: 999px; background: rgba(248,243,232,.08); box-shadow: inset 0 0 0 1px var(--line-light); }
.news input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 14px; color: var(--cream); font: inherit; }
.news input::placeholder { color: rgba(248,243,232,.5); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line-light); font-size: 14px; }
.to-top:hover { color: var(--olive-2); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 12% 12% 12% round var(--r-lg)); transition: clip-path 1.4s var(--ease); }
.reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.reveal-img.is-in img { transform: scale(1); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 100px var(--gutter) 40px;
    background: var(--forest); color: var(--cream); clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease-in-out); }
  .nav a { font-family: var(--f-display); font-size: clamp(36px, 8vw, 56px); font-weight: 400; padding: 6px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .nav a::after { left: 0; right: auto; width: 60px; bottom: 6px; }
  body.menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 40px); }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .25s; } body.menu-open .nav a:nth-child(3) { transition-delay: .3s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .35s; } body.menu-open .nav a:nth-child(5) { transition-delay: .4s; }
  body.menu-open .nav a:nth-child(6) { transition-delay: .45s; } body.menu-open .nav a:first-child { transition-delay: .2s; }
  body.menu-open .header { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open .header .brand__mark--light { display: block; } body.menu-open .header .brand__mark--dark { display: none; }
  body.menu-open { overflow: hidden; }
  .burger { display: block; }
  .why__grid, .help__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .mission__grid, .quote__grid, .sponsor__grid, .section-head--split { grid-template-columns: 1fr; }
  .mission__badge { right: 16px; bottom: -30px; width: 120px; height: 120px; }
  .mission__badge strong { font-size: 32px; }
  .vm { grid-template-columns: 1fr; }
  .strip__ctrl { justify-content: flex-start; }
  /* panels become stacked wide cards */
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; height: 420px; }
  .panel img { transform: none; filter: none; }
  .panel:not(.is-open) .panel__body { top: auto; display: block; padding: 24px; }
  .panel:not(.is-open) h3 { writing-mode: horizontal-tb; transform: none; font-size: clamp(22px, 6vw, 30px); white-space: normal; }
  .panel h3 { white-space: normal; }
  .panel:not(.is-open) .panel__num { margin: 0 0 10px; }
  .panel:not(.is-open) p, .panel:not(.is-open) .link-arrow { position: static; visibility: visible; }
  .panel p, .panel .link-arrow { opacity: 1; transform: none; pointer-events: auto !important; }
  .sound { left: var(--gutter); right: auto; bottom: 28px; padding-right: 18px; }
  .toast { left: var(--gutter); right: auto; bottom: 104px; }
  .hero__content { padding-bottom: 130px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .brand__text em { display: none; }
  .brand__text strong { font-size: 16px; }
  .header__actions .btn { display: none; }
  .why__grid, .help__grid, .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 24px 12px 6px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .help__card { min-height: 260px; }
  .tree-grow { display: none; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; } .reveal-img img { transform: none; }
}

/* =========================================================
   INNER PAGES
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: clamp(460px, 72svh, 720px); display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--forest); }
.page-hero__bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.page-hero .hero__shade { background:
  linear-gradient(180deg, rgba(20,28,18,.6) 0%, rgba(20,28,18,0) 32%),
  linear-gradient(0deg, rgba(20,28,18,.94) 0%, rgba(20,28,18,.5) 45%, rgba(20,28,18,.15) 80%),
  radial-gradient(ellipse at 10% 100%, rgba(180,97,47,.3), transparent 60%); }
.page-hero__content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero .h1 { max-width: 14ch; margin-bottom: 22px; }
.page-hero__lead { max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); opacity: .88; margin: 0; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; color: var(--olive-2); }
.crumbs a { opacity: .75; color: var(--cream); transition: opacity .3s; }
.crumbs a:hover { opacity: 1; }
.crumbs i { font-style: normal; opacity: .5; color: var(--cream); }

/* ---------- Generic layout helpers ---------- */
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.section--dark .lead { color: rgba(248,243,232,.78); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.two-col--top { align-items: start; }
.two-col > div > p:not(.eyebrow) { color: var(--muted); }
.section--dark .two-col > div > p:not(.eyebrow) { color: rgba(248,243,232,.78); }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.media-frame.mt { margin-top: 32px; }
.two-col .h2, .founder .h2 { margin-bottom: 22px; }
.media-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); }
.media-frame--wide img { aspect-ratio: 4/3; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%231C2A1B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.mt { margin-top: 32px; }

/* ---------- About: story + founder ---------- */
.story__year { font-family: var(--f-display); font-size: clamp(90px, 14vw, 200px); line-height: .85; color: var(--olive); font-weight: 300; letter-spacing: -.04em; margin-bottom: 18px; }
.founder { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.founder__card { background: var(--forest); color: var(--cream); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); }
.founder__card .quote__mark { fill: var(--olive); width: 52px; }
.founder__card .big { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; }
.founder__card footer { margin-top: 24px; display: flex; flex-direction: column; }
.founder__card footer span { opacity: .7; font-size: 15px; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { padding: 30px 24px; border-radius: var(--r); background: rgba(248,243,232,.05); box-shadow: inset 0 0 0 1px var(--line-light); transition: background .5s, transform .6s var(--ease); }
.value:hover { background: var(--olive); color: var(--forest); transform: translateY(-6px); }
.value:hover p { color: rgba(28,42,27,.8); }
.value b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 18px; color: var(--olive-2); display: block; margin-bottom: 40px; transition: color .5s; }
.value:hover b { color: var(--forest); }
.value h3 { font-family: var(--f-display); font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
.value p { font-size: 14.5px; color: rgba(248,243,232,.7); margin: 0; transition: color .5s; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-display); font-size: 54px; font-weight: 300; color: var(--clay); line-height: 1; display: block; margin-bottom: 22px; }
.step h3 { font-family: var(--f-display); font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Programs detail ---------- */
.subnav { position: sticky; top: 0; z-index: 50; background: rgba(248,243,232,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
body.header-shown .subnav { top: 70px; }
.subnav .container { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.subnav a:hover, .subnav a.is-active { background: var(--forest); color: var(--cream); box-shadow: none; }

.program { padding-block: clamp(70px, 9vw, 130px); scroll-margin-top: 130px; }
.program:nth-of-type(even) { background: var(--sand); }
.program:nth-of-type(even) .media-frame { order: 2; }
.program__num { font-family: var(--f-display); font-style: italic; color: var(--clay); font-size: 20px; display: block; margin-bottom: 14px; }
.program .h2 { margin-bottom: 22px; }
.program__tag { position: absolute; left: 18px; bottom: 18px; padding: 10px 16px; border-radius: 999px; background: rgba(248,243,232,.92); backdrop-filter: blur(8px); font-weight: 700; font-size: 13px; color: var(--forest); }

/* ---------- Impact page ---------- */
.sdgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sdg { border-radius: var(--r); padding: 28px 24px; color: #fff; min-height: 230px; display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.sdg:hover { transform: translateY(-6px) rotate(-1deg); }
.sdg strong { font-family: var(--f-display); font-size: 56px; font-weight: 300; line-height: 1; margin-bottom: auto; }
.sdg h3 { font-size: 18px; font-weight: 700; margin: 26px 0 6px; }
.sdg p { font-size: 14px; opacity: .92; margin: 0; }
.sdg--4 { background: #C5192D; } .sdg--6 { background: #1C9AC0; }
.sdg--13 { background: #3F7E44; } .sdg--15 { background: #4E9A2A; }

.timeline { position: relative; max-width: 900px; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--olive), var(--clay)); }
.tl { position: relative; padding-bottom: 48px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -44px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 4px var(--olive); }
.tl--future::before { box-shadow: inset 0 0 0 2px var(--clay); }
.tl time { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.tl h3 { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; margin: 6px 0 8px; }
.tl p { color: var(--muted); margin: 0; max-width: 60ch; }

.goal-wide { background: var(--forest); color: var(--cream); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.goal-wide .eyebrow { color: var(--olive-2); }
.goal-wide .goal__bar { background: rgba(248,243,232,.12); height: 14px; }
.goal-wide .goal__row--small { color: rgba(248,243,232,.7); }
.goal-wide .goal__row strong { font-size: clamp(32px, 4vw, 48px); }

/* ---------- Gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }
.filter.is-on { background: var(--forest); color: var(--cream); box-shadow: none; }
.filter small { opacity: .6; margin-left: 4px; font-weight: 600; font-size: 12px; }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin: 0 0 16px; border-radius: var(--r); overflow: hidden; position: relative; cursor: zoom-in; background: var(--sand); display: block; width: 100%; padding: 0; animation: sprout .7s var(--ease) backwards; }
.masonry__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.masonry__item::after { content: "+"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--forest); display: grid; place-content: center; font-size: 22px; opacity: 0; transform: scale(.6); transition: .5s var(--ease); }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item:hover::after, .masonry__item:focus-visible::after { opacity: 1; transform: none; }
.masonry__item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(16,22,15,.96); display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { grid-column: 2; max-width: 100%; max-height: 86vh; margin: 0 auto; border-radius: var(--r-sm); object-fit: contain; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox .round { color: var(--cream); justify-self: center; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(248,243,232,.7); font-size: 14px; letter-spacing: .1em; }
body.lb-open { overflow: hidden; }

/* ---------- Get involved ---------- */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; max-width: 920px; }
.ways a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r); background: rgba(248,243,232,.08); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--cream); transition: background .4s, color .4s, transform .5s var(--ease); }
.ways a:hover { background: var(--olive); color: var(--forest); transform: translateY(-4px); }
.ways b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.ways span { font-size: 14px; opacity: .75; }

.donate { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.donate .sponsor__card { position: sticky; top: 96px; }
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(248,243,232,.08); box-shadow: inset 0 0 0 1px var(--line-light); margin-bottom: 22px; }
.toggle button { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: background .3s, color .3s; }
.toggle button.is-on { background: var(--cream); color: var(--forest); }
.pay { display: grid; gap: 14px; }
.pay__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 0 var(--line); }
.pay__item .help__icon { margin: 0; }
.pay__item h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 4px; }
.pay__item p { margin: 0; color: var(--muted); font-size: 15px; }
.pay__item code { font-family: var(--f-body); font-weight: 700; color: var(--forest); background: var(--sand); padding: 2px 8px; border-radius: 6px; }

.get-card { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); background: #fff; box-shadow: 0 1px 0 var(--line); }
.section--sand .get-card { background: var(--cream); }
[id] { scroll-margin-top: 90px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(157,163,31,.18); background: #fff; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; align-self: center; }
.form__ok { display: none; grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; background: rgba(157,163,31,.18); color: var(--forest); font-weight: 600; margin: 0; }
.form.is-sent .form__ok { display: block; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -70px; position: relative; z-index: 3; }
.ccard { background: #fff; border-radius: var(--r); padding: 28px 24px; box-shadow: 0 30px 60px -36px rgba(28,42,27,.45); display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--ease), background .4s, color .4s; }
.ccard:hover { transform: translateY(-6px); background: var(--forest); color: var(--cream); }
.ccard:hover span { color: rgba(248,243,232,.7); }
.ccard .help__icon { margin-bottom: 18px; }
.ccard small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.ccard strong { font-size: 17px; word-break: break-word; }
.ccard span { font-size: 14px; color: var(--muted); transition: color .4s; }
.contact-top { padding-top: 0; }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--sand); height: 100%; min-height: 440px; }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: saturate(.85) sepia(.1); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__group + .faq__group { margin-top: 56px; }
.faq__group > h2 { font-family: var(--f-display); font-size: 28px; margin-bottom: 8px; color: var(--moss); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; transition: background .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--olive); box-shadow: none; transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq summary:hover { color: var(--moss); }
.faq details p { color: var(--muted); padding: 0 60px 24px 0; margin: 0; max-width: 70ch; }
.faq-aside { position: sticky; top: 100px; }
.faq-aside .sponsor__card p { opacity: .8; }

/* ---------- Inner-page responsive ---------- */
@media (max-width: 1100px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .steps, .sdgs, .contact-cards, .ways { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .two-col, .founder, .donate, .goal-wide, .faq-grid { grid-template-columns: 1fr; }
  .program:nth-of-type(even) .media-frame { order: 0; }
  .media-frame img { aspect-ratio: 4/3; }
  .donate .sponsor__card, .faq-aside { position: static; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox img { grid-column: 1; max-height: 76vh; }
  .lightbox .round[data-lb] { position: absolute; bottom: 12px; }
  .lightbox .round[data-lb="-1"] { left: 16px; } .lightbox .round[data-lb="1"] { right: 16px; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 560px) {
  .values, .steps, .sdgs, .contact-cards, .ways, .form { grid-template-columns: 1fr; }
  .step + .step, .step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-cards { margin-top: -40px; }
  .page-hero .h1 { font-size: clamp(40px, 11vw, 56px); }
  body.header-shown .subnav { top: 72px; }
}

.page--con .page-hero__content { padding-bottom: clamp(110px, 12vw, 160px); }
@media (max-width: 560px) {
  .ways { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .ways a { padding: 14px 16px; }
  .ways b { font-size: 19px; }
  .ways span { font-size: 12.5px; }
  .ccard { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .ccard .help__icon { grid-row: span 3; width: 48px; height: 48px; margin: 0; }
}

/* ---------- Hero: YouTube background video ---------- */
.hero__yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__yt iframe { position: absolute; left: 50%; top: 50%; border: 0; transform: translate(-50%, -50%); }
.hero.is-playing .hero__yt { opacity: 1; }
.hero.is-playing .hero__fallback { opacity: 0; animation: none; transition: opacity 1.2s; }

/* Full-screen button */
.fs-btn {
  position: absolute; z-index: 3; right: var(--gutter); bottom: calc(clamp(110px, 14vh, 160px) + 86px);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(248,243,232,.12); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--cream);
  transition: background .3s, transform .5s var(--ease);
}
.fs-btn:hover { background: var(--olive); color: var(--forest); transform: scale(1.06); }
.fs-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fs-btn__out, .hero.is-fs .fs-btn__in { display: none; }
.hero.is-fs .fs-btn__out { display: block; }
.hero.no-video .fs-btn { display: none; }

/* While full screen: let the film speak, hide the headline */
.hero.is-fs .hero__content, .hero.is-fs .scroll-cue { opacity: 0; pointer-events: none; }
.hero.is-fs .hero__shade { opacity: .25; }
.hero.is-fs .grain { display: none; }
.hero.is-fs .fs-btn { bottom: 28px; right: calc(var(--gutter) + 0px); }
.hero.is-fs .sound { bottom: 28px; right: calc(var(--gutter) + 60px); left: auto; }
.hero.is-fs .toast { bottom: 96px; }
.hero__content, .hero__shade, .scroll-cue { transition: opacity .6s var(--ease); }
.hero:fullscreen { width: 100%; height: 100%; min-height: 100%; }

@media (max-width: 860px) {
  .fs-btn { left: auto; right: var(--gutter); bottom: 32px; }
  .hero.is-fs .sound { left: var(--gutter); right: auto; }
}
/* Cinema mode: exactly one screen tall, header tucked away */
.hero.is-fs { height: 100vh; height: 100svh; min-height: 0; }
body.is-cinema .header { transform: translateY(-100%); }
