/* ---------- Tokens ---------- */
:root{
  --ink:#0B2F26;          /* deep evergreen, used for fixed dark sections */
  --ink-deep:#071F19;
  --forest:#17603F;
  --gold:#E0A82E;
  --red:#C8232C;
  --teal:#1F4E5B;
  --leaf:#1E8C4A;

  --bg:#F5F8F4;
  --bg-alt:#E8F0EA;
  --surface:#FFFFFF;
  --text:#14231D;
  --muted:#4A5B53;
  --line:#D3DFD7;
  --brand:#17603F;
  --gold-text:#8A5E00;
  --focus:#B87900;

  --display:'Sora','Avenir Next','Segoe UI',system-ui,sans-serif;
  --body:'Montserrat','Avenir Next','Segoe UI',system-ui,sans-serif;
  --wrap:1180px;

  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0C1713; --bg-alt:#101F19; --surface:#15271F; --text:#E8F0EB; --muted:#A5B6AC;
    --line:#25382F; --brand:#5FBF8B; --gold-text:#E0A82E; --focus:#E0A82E;
  }
}
:root[data-theme="dark"]{
  --bg:#0C1713; --bg-alt:#101F19; --surface:#15271F; --text:#E8F0EB; --muted:#A5B6AC;
  --line:#25382F; --brand:#5FBF8B; --gold-text:#E0A82E; --focus:#E0A82E;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 84px);-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:1.06rem;line-height:1.75;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--brand)}
h1,h2,h3,h4{font-family:var(--display);line-height:1.18;margin:0;letter-spacing:-.008em;font-weight:700}
p{margin:0 0 1.15em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:var(--gold);color:var(--ink);padding:.6rem 1rem;font-family:var(--display);font-weight:700;z-index:2000;border-radius:6px}
.skip:focus{left:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 clamp(20px,5vw,40px)}
section{padding:clamp(72px,9.5vw,120px) 0}
.on-dark{color:#fff}
.on-dark a{color:var(--gold)}
h2{font-size:clamp(1.8rem,3.8vw,2.7rem);font-weight:800;margin-bottom:.6em;text-wrap:balance}
.lead{font-size:clamp(1.08rem,1.4vw,1.18rem);line-height:1.6;max-width:60ch}
.muted{color:var(--muted)}
.icon{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.5rem;border-radius:999px;border:2px solid transparent;font-family:var(--display);font-weight:700;font-size:1rem;line-height:1.2;text-decoration:none;cursor:pointer;transition:transform .15s,background-color .15s,color .15s,border-color .15s}
.btn:hover{transform:translateY(-1px)}
.btn-gold{background:var(--gold);color:var(--ink)}
.btn-gold:hover{background:#efbb45}
.btn-line{border-color:rgba(255,255,255,.7);color:#fff}
.btn-line:hover{background:#fff;color:var(--ink)}
.btn-solid{background:var(--forest);color:#fff}
.btn-solid:hover{background:#1c7449}
.btn-outline{border-color:var(--brand);color:var(--brand);background:transparent}
.btn-outline:hover{background:var(--brand);color:var(--bg)}
.btn-row{display:flex;flex-wrap:wrap;gap:14px 16px}

/* ---------- Header ---------- */
.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:1000;background:var(--surface);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:20px;height:68px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.brand img{width:44px;height:44px;border-radius:50%;background:#fff;border:1.5px solid var(--line);box-shadow:0 1px 4px rgba(11,47,38,.1)}
.brand span{font-family:var(--display);font-weight:800;font-size:.98rem;line-height:1.05;letter-spacing:-.01em}
.brand small{display:block;font-weight:600;font-size:.98rem;color:var(--brand)}
.nav{display:flex;align-items:center;gap:26px}
.nav a{font-family:var(--display);font-weight:600;font-size:.98rem;color:var(--text);text-decoration:none}
.nav a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.bar-actions{display:flex;align-items:center;gap:12px}
.menu-btn{display:none;background:none;border:2px solid var(--line);border-radius:10px;width:44px;height:44px;color:var(--text);cursor:pointer;align-items:center;justify-content:center}
.menu-btn .icon{width:22px;height:22px}
@media (max-width:980px){
  .menu-btn{display:inline-flex}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--surface);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:0;padding:8px clamp(20px,5vw,40px) 16px}
  .nav.open{display:flex}
  .nav a{padding:14px 0;border-bottom:1px solid var(--line);font-size:1.05rem}
  .nav a:last-child{border-bottom:0}
}
@media (max-width:480px){
  .site-header .brand span{display:none}
  .brand img{width:42px;height:42px}
  .bar{height:64px}
}

/* ---------- Hero ---------- */
.hero{background:var(--ink);color:#fff;padding:clamp(56px,9vw,116px) 0 clamp(72px,10vw,130px);overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(32px,6vw,80px);align-items:center}
.hero h1{font-size:clamp(2.2rem,4.6vw,4rem);font-weight:800;line-height:1.22;letter-spacing:-.015em;margin-bottom:.55em}
.hero h1 span{display:block;padding-bottom:.06em}
.hero p.sub{font-size:clamp(1.1rem,1.6vw,1.3rem);line-height:1.65;color:#CFE0D6;max-width:52ch;margin-bottom:2em}
.seal{position:relative;width:min(430px,82vw);aspect-ratio:1;margin:0 auto}
.seal .ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.seal .spin{transform-origin:200px 200px;animation:spin 70s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.seal .ring text{font-family:var(--display);font-weight:700;font-size:20px;fill:var(--gold)}
.seal-core{position:absolute;inset:16%;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 8px rgba(224,168,46,.28),0 30px 60px rgba(0,0,0,.35)}
.seal-core img{width:80%;height:auto;mix-blend-mode:multiply}
@media (prefers-reduced-motion:reduce){.seal .spin{animation:none}}
@media (max-width:900px){.hero .wrap{grid-template-columns:1fr}.seal{width:min(320px,80vw)}}

/* ---------- About ---------- */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,88px);align-items:start}
.vm{display:grid;gap:28px}
.vm article{border-left:4px solid var(--gold);padding-left:24px}
.vm h3{font-size:1.5rem;margin-bottom:.4em;display:flex;align-items:center;gap:10px;color:var(--brand)}
.vm p{margin:0}
@media (max-width:860px){.about-grid{grid-template-columns:1fr}}

/* ---------- Values ---------- */
.alt{background:var(--bg-alt)}
.values{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:36px 32px;margin-top:40px;padding:0;list-style:none}
.values li{border-top:3px solid var(--brand);padding-top:16px}
.values h3{font-size:1.4rem;margin-bottom:.35em}
.values p{margin:0;color:var(--muted);font-size:1.02rem;line-height:1.55}

/* ---------- Thematic areas ---------- */
.areas{background:var(--ink);color:#fff}
.areas .split{display:grid;grid-template-columns:.9fr 1.3fr;gap:clamp(32px,6vw,88px);align-items:start}
.areas .intro{position:sticky;top:calc(env(safe-area-inset-top,0px) + 100px)}
.areas .intro p{color:#CFE0D6}
.area-list{list-style:none;margin:0;padding:0}
.area-list li{display:grid;grid-template-columns:1fr 1fr;gap:12px 32px;padding:26px 0;border-top:1px solid rgba(255,255,255,.2)}
.area-list li:last-child{border-bottom:1px solid rgba(255,255,255,.2)}
.area-list h3{font-size:1.5rem}
.area-list p{margin:0;color:#CFE0D6;font-size:1.05rem;line-height:1.55}
@media (max-width:900px){.areas .split{grid-template-columns:1fr}.areas .intro{position:static}}
@media (max-width:560px){.area-list li{grid-template-columns:1fr}}

/* ---------- Programmes ---------- */
.prog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:24px;margin-top:40px}
.prog{background:var(--surface);border:1px solid var(--line);border-top:5px solid var(--c,var(--brand));padding:28px 26px 26px;border-radius:4px 4px 14px 14px}
.prog .icon{width:2.2rem;height:2.2rem;color:var(--c,var(--brand));margin-bottom:18px}
.prog h3{font-size:1.4rem;margin-bottom:.4em}
.prog p{margin:0;color:var(--muted);font-size:1.03rem;line-height:1.6}

/* ---------- Story & impact ---------- */
.story-head{max-width:820px}
.timeline{list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0 28px;position:relative}
.timeline::before{content:"";position:absolute;left:0;right:0;top:9px;height:2px;background:var(--brand);opacity:.35}
.timeline li{position:relative;padding-top:38px}
.timeline li::before{content:"";position:absolute;top:0;left:0;width:20px;height:20px;border-radius:50%;background:var(--bg-alt);border:4px solid var(--brand)}
.timeline li:last-child::before{background:var(--gold);border-color:var(--gold)}
.timeline time{display:block;font-family:var(--display);font-weight:800;font-size:1.25rem;color:var(--gold-text);margin-bottom:.25em}
.timeline h3{font-size:1.2rem;margin-bottom:.35em}
.timeline p{margin:0;color:var(--muted);font-size:1rem;line-height:1.55}
.stats{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:0;margin:72px 0 0;border-top:2px solid var(--brand)}
.stat{padding:28px 24px 0 0}
.stat+.stat{padding-left:24px;border-left:1px solid var(--line)}
.stat dd{order:1;margin:0;font-family:var(--display);font-weight:800;font-size:clamp(2rem,3.4vw,2.9rem);letter-spacing:-.03em;color:var(--brand);line-height:1}
.stat:first-child dd{font-size:clamp(3rem,6vw,5rem)}
.stat dt{margin:10px 0 0;color:var(--muted);font-size:1rem;line-height:1.4;order:2}
.stat{display:flex;flex-direction:column}
@media (max-width:980px){
  .timeline{grid-template-columns:1fr;gap:28px;padding-left:36px}
  .timeline::before{left:9px;right:auto;top:0;bottom:0;width:2px;height:auto}
  .timeline li{padding:0 0 0 0}
  .timeline li::before{left:-36px;top:4px}
  .stats{grid-template-columns:1fr 1fr}
  .stat:first-child{grid-column:1/-1;padding-bottom:20px}
  .stat{padding:24px 16px 0 0}
  .stat+.stat{padding-left:0;border-left:0}
  .stat:nth-child(even){padding-left:16px;border-left:1px solid var(--line)}
}

/* ---------- Events ---------- */
.flyers{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:32px 28px;margin-top:40px;align-items:start}
.flyer{margin:0}
.flyer button{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:6px;overflow:hidden;box-shadow:0 10px 30px rgba(11,47,38,.18)}
.flyer button img{width:100%;height:auto;transition:transform .3s}
.flyer button:hover img{transform:scale(1.02)}
.flyer figcaption{padding-top:16px}
.flyer h3{font-size:1.2rem;margin-bottom:.3em}
.flyer p{margin:0;font-size:1rem;color:var(--muted);line-height:1.55}
dialog.lightbox{border:0;padding:0;background:transparent;max-width:min(94vw,560px);max-height:92vh;overflow:visible}
dialog.lightbox::backdrop{background:rgba(4,16,12,.85)}
dialog.lightbox img{width:100%;max-height:86vh;object-fit:contain;border-radius:6px;background:#000}
dialog.lightbox .close{position:absolute;top:-16px;right:-8px;width:44px;height:44px;border-radius:50%;border:0;background:var(--gold);color:var(--ink);font-family:var(--display);font-weight:800;font-size:1.3rem;cursor:pointer;z-index:2}
dialog.lightbox .nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(11,47,38,.65);color:#fff;font-size:1.2rem;cursor:pointer;display:grid;place-items:center}
dialog.lightbox .nav:hover{background:rgba(11,47,38,.9)}
dialog.lightbox .nav.prev{left:-8px}
dialog.lightbox .nav.next{right:-8px}
dialog.lightbox .count{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);margin:0;background:rgba(0,0,0,.55);color:#fff;font-family:var(--display);font-weight:600;font-size:.85rem;padding:.3rem .8rem;border-radius:999px}
@media (max-width:560px){dialog.lightbox .nav.prev{left:4px}dialog.lightbox .nav.next{right:4px}}
.gallery-btn{margin-top:14px;display:inline-flex;align-items:center;gap:8px;padding:.5rem 1rem;border-radius:999px;border:2px solid var(--brand);background:transparent;color:var(--brand);font-family:var(--display);font-weight:700;font-size:.9rem;cursor:pointer}
.gallery-btn:hover{background:var(--brand);color:var(--bg)}

/* ---------- Videos ---------- */
.video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:28px;margin-top:40px}
.video .frame{position:relative;aspect-ratio:16/9;background:var(--ink);border-radius:8px;overflow:hidden}
.video .frame button,.video .frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video .frame button{cursor:pointer;background:radial-gradient(circle at 50% 50%,#17603F 0,#0B2F26 75%);color:#fff;display:grid;place-items:center;font-family:var(--display)}
.video .play{width:68px;height:68px;border-radius:50%;background:var(--gold);color:var(--ink);display:grid;place-items:center;transition:transform .2s}
.video .frame button:hover .play{transform:scale(1.08)}
.video .play svg{width:28px;height:28px;fill:currentColor;margin-left:4px}
.video p{margin:12px 0 0;font-size:1rem}
.video a{font-family:var(--display);font-weight:600}

/* ---------- Founder ---------- */
.founder-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(32px,6vw,80px);align-items:start}
.quote-panel{background:var(--forest);color:#fff;padding:clamp(28px,4vw,52px);border-radius:6px 6px 6px 40px;position:sticky;top:calc(env(safe-area-inset-top,0px) + 100px)}
.founder-photo{width:104px;height:104px;border-radius:50%;overflow:hidden;margin-bottom:22px;border:3px solid var(--gold);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.founder-photo img{width:100%;height:100%;object-fit:cover}
.quote-panel blockquote{margin:0;font-family:var(--display);font-weight:700;font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
.quote-panel blockquote+blockquote{margin-top:1.2em;font-size:clamp(1.15rem,1.7vw,1.4rem);font-weight:600;color:#D7E7DD}
.quote-panel .who{margin:1.6em 0 0;padding-top:1em;border-top:2px solid var(--gold);font-family:var(--display);font-weight:600;font-size:1rem}
.quote-panel .who strong{display:block;font-size:1.15rem}
.roles{margin:1.4em 0;padding:0;list-style:none;display:grid;gap:10px}
.roles li{padding-left:22px;position:relative;font-size:1.02rem;line-height:1.5}
.roles li::before{content:"";position:absolute;left:0;top:.62em;width:10px;height:10px;border-radius:50%;background:var(--gold)}
details.letter{margin-top:1.6em;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
details.letter summary{cursor:pointer;padding:16px 20px;font-family:var(--display);font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
details.letter summary::-webkit-details-marker{display:none}
details.letter summary::after{content:"+";font-size:1.5rem;line-height:1;color:var(--brand)}
details.letter[open] summary::after{content:"\2212"}
details.letter .body{padding:0 20px 20px;border-top:1px solid var(--line);padding-top:18px}
details.letter .body p{font-size:1.05rem}
@media (max-width:900px){.founder-grid{grid-template-columns:1fr}.quote-panel{position:static}}

/* ---------- Partners ---------- */
.work{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,6vw,80px);align-items:end;margin-bottom:56px}
.ppl-group{margin-top:44px}
.ppl-group:first-of-type{margin-top:28px}
.ppl-heading{font-family:var(--display);font-weight:800;font-size:1.4rem;margin-bottom:.3em}
.ppl-grid{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:28px 20px;text-align:center}
.ppl-photo{width:96px;height:96px;margin:0 auto 14px;border-radius:50%;overflow:hidden;background:var(--bg-alt);border:1px solid var(--line);display:grid;place-items:center}
.ppl-photo img{width:100%;height:100%;object-fit:cover}
.ppl-fallback{font-family:var(--display);font-weight:800;font-size:1.4rem;color:var(--brand)}
.ppl-grid h3{font-size:1.05rem;margin-bottom:.15em}
.ppl-grid p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.4}
.logos{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.logos li{text-align:center}
.logos .tile{aspect-ratio:1;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;place-items:center;overflow:hidden}
.logos img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
.logos span{display:block;margin-top:10px;font-family:var(--display);font-weight:600;font-size:.92rem;line-height:1.25;color:var(--muted)}
@media (max-width:860px){.work{grid-template-columns:1fr;align-items:start}.logos{grid-template-columns:repeat(2,1fr)}}
@media (min-width:861px) and (max-width:1060px){.logos{grid-template-columns:repeat(3,1fr)}}

/* ---------- Get involved ---------- */
.involve{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:24px;margin-top:40px}
.pathway{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:32px 28px}
.pathway .badge{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin-bottom:20px;background:var(--c);color:#fff}
.pathway:nth-child(2) .badge{color:var(--ink)}
.pathway .badge .icon{width:1.7rem;height:1.7rem}
.pathway h3{font-size:1.6rem;margin-bottom:.35em}
.pathway p{color:var(--muted);flex:1}

/* ---------- Donate ---------- */
.donate{background:var(--ink);color:#fff}
.donate .lead{color:#CFE0D6}
.accounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;margin-top:40px;max-width:900px}
.acct{border:1px solid rgba(255,255,255,.25);border-radius:14px;padding:28px}
.acct h3{font-size:1.25rem;color:var(--gold);margin-bottom:.8em}
.acct dl{margin:0 0 18px;display:grid;gap:4px}
.acct dt{font-size:.95rem;color:#B8CDC1}
.acct dd{margin:0 0 8px;font-size:1.05rem}
.acct .num{font-family:var(--display);font-weight:800;font-size:clamp(1.6rem,3vw,2rem);letter-spacing:.06em;margin:0 0 14px}
.copy{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.6);border-radius:999px;padding:.55rem 1.1rem;font-family:var(--display);font-weight:700;font-size:.95rem;cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.copy:hover{background:#fff;color:var(--ink)}
.copy.done{background:var(--gold);border-color:var(--gold);color:var(--ink)}
.donate a:not(.btn){color:var(--gold)}
.donate .note{margin-top:32px;max-width:60ch}

/* ---------- Footer ---------- */
footer{background:var(--ink-deep);color:#B8CDC1;padding:72px 0 calc(28px + env(safe-area-inset-bottom,0px))}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
footer h3{font-size:1.05rem;color:#fff;margin-bottom:1em}
footer a{color:#B8CDC1;text-decoration:none;display:block;padding:4px 0;font-size:1rem}
footer a:hover{color:#fff;text-decoration:underline}
footer .tag{font-family:var(--display);font-weight:700;font-size:1.25rem;color:#fff;line-height:1.25;max-width:22ch;margin:16px 0 0}
footer .brand{color:#fff}
footer .brand small{color:var(--gold)}
footer .brand img{background:#fff;border-radius:50%;padding:3px;border:0;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;margin-top:48px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);font-size:.92rem}
@media (max-width:860px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.foot-grid{grid-template-columns:1fr}}

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