@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --ink:#26221A;
  --ink-soft:#4A4436;
  --paper:#FFFFFF;
  --paper-raised:#F7F5F0;
  --accent:#8F7332;
  --accent-deep:#5C4A20;
  --rule:#E6E2D6;
  --muted:#6B6455;
  --white:#FFFFFF;
  --radius:2px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.55;
}
::selection{ background:var(--accent); color:var(--white); }

a{color:inherit;}
img,svg{display:block;}

h1,h2,h3{ font-family:'Fraunces', serif; font-weight:600; letter-spacing:-0.01em; }

.wrap{ max-width:1280px; margin:0 auto; padding:0 28px; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--rule);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:'Fraunces',serif; font-weight:600; font-size:19px; text-decoration:none; }
.brand .logo{
  height:44px; width:auto;
}
.navlinks{ display:flex; gap:28px; list-style:none; font-size:14.5px; }
.navlinks a{ text-decoration:none; border-bottom:1px solid transparent; padding-bottom:2px; }
.navlinks a:hover{ border-bottom-color:var(--accent); }
.navlinks{ display:none; }
@media(min-width:820px){ .navlinks{ display:flex; } }

/* Mobile menu */
.nav-toggle{
  display:none; background:none; border:none; cursor:pointer;
  width:40px; height:40px; padding:9px 8px;
  flex-direction:column; justify-content:space-between;
}
.nav-toggle span{ display:block; height:2px; width:100%; background:var(--ink); transition:transform .25s ease, opacity .2s ease; }
.nav.open .nav-toggle span:nth-child(1){ transform:translateY(10px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2){ opacity:0; }
.nav.open .nav-toggle span:nth-child(3){ transform:translateY(-10px) rotate(-45deg); }
@media(max-width:819px){
  .nav-toggle{ display:flex; }
  .navlinks{
    position:absolute; top:72px; left:0; right:0;
    background:var(--white); border-bottom:1px solid var(--rule);
    flex-direction:column; gap:0; padding:8px 28px 14px;
    box-shadow:0 14px 24px rgba(38,34,26,0.07);
  }
  .navlinks li{ border-bottom:1px solid var(--rule); }
  .navlinks li:last-child{ border-bottom:none; }
  .navlinks a{ display:block; padding:14px 0; font-size:15.5px; }
  .nav.open .navlinks{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{ position:relative; padding:88px 0 72px; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0;
  background-image:repeating-linear-gradient(to bottom, transparent, transparent 27px, rgba(92,74,32,0.06) 28px);
  pointer-events:none;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--accent); display:flex; align-items:center; gap:10px; margin-bottom:22px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--accent); }
.hero h1{
  font-size:clamp(30px, 4.5vw + 12px, 58px); line-height:1.06; max-width:none; margin-bottom:26px;
}
.hero p.lede{ font-size:clamp(16px, 1vw + 13px, 19px); max-width:none; color:var(--ink-soft); margin-bottom:34px; }
.cta-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.btn{
  font-family:'IBM Plex Sans', sans-serif; font-weight:600; font-size:17px;
  padding:18px 34px; border-radius:var(--radius); text-decoration:none; display:inline-block;
  text-align:center;
  border:1.5px solid var(--ink); transition:transform .15s ease;
}
.btn-primary{ background:var(--accent); color:var(--white); border-color:var(--accent); }
.btn-primary:hover{ transform:translateY(-1px); background:var(--accent-deep); border-color:var(--accent-deep); }
.btn-ghost{ background:transparent; color:var(--ink); }
.btn-ghost:hover{ background:var(--paper-raised); }

/* ---------- Section shell ---------- */
section{ padding:72px 0; }
.section-head{ margin-bottom:44px; }
.section-head .tag{
  font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--accent); display:flex; align-items:center; gap:10px;
}
.section-head .tag::before{ content:""; width:22px; height:1px; background:var(--accent); }
.section-head h2{ font-size:clamp(26px,3.4vw,36px); margin-top:10px; max-width:24ch; }

/* ---------- Problem — broadsheet stat band ---------- */
#problem{
  background:var(--paper-raised);
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
}
.stat-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:8px; }
.stat{
  background:var(--white); border:1px solid var(--rule); border-top:3px solid var(--accent);
  padding:24px 22px 26px;
}
.stat .num{ font-family:'Fraunces', serif; font-size:clamp(36px,4vw,46px); font-weight:600; line-height:1; }
.stat .num::after{ content:""; display:block; width:28px; height:2px; background:var(--accent); margin:14px 0 12px; }
.stat .lbl{ font-size:13.5px; color:var(--muted); }
.source-note{
  font-size:12.5px; color:var(--muted); margin-top:24px;
  font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em;
}

/* ---------- Who we help — indexed ledger ---------- */
.ledger{ border-top:2px solid var(--accent); counter-reset:case; }
.ledger-row{
  display:flex; justify-content:space-between; align-items:baseline; gap:24px;
  padding:20px 12px; border-bottom:1px solid var(--rule);
  counter-increment:case;
  transition:background .2s ease, padding-left .2s ease;
}
.ledger-row:hover{ background:var(--paper-raised); padding-left:20px; }
.ledger-row .type{ font-family:'Fraunces', serif; font-weight:600; font-size:18px; flex-shrink:0; }
.ledger-row .type::before{
  content:"0" counter(case);
  font-family:'IBM Plex Mono', monospace; font-size:12.5px; font-weight:400;
  color:var(--accent); margin-right:14px;
}
.ledger-row .desc{ color:var(--muted); font-size:14.5px; max-width:42ch; text-align:right; }
@media(max-width:700px){ .ledger-row{ flex-direction:column; gap:8px; } .ledger-row .desc{ text-align:left; padding-left:34px; } }

/* ---------- Process — timeline ---------- */
#how{ border-top:1px solid var(--rule); }
.how-grid{ display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:820px){ .how-grid{ grid-template-columns:1fr 1fr; gap:48px; align-items:stretch; } }
.how-illustration{ display:flex; }
.how-illustration img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
@media(max-width:819px){
  .how-illustration{ order:-1; max-width:320px; margin:0 auto; }
  .how-illustration img{ height:auto; }
}
.process{ position:relative; padding-left:8px; }
.process::before{
  content:""; position:absolute; left:31px; top:28px; bottom:28px;
  width:1px; background:var(--rule);
}
.step{ position:relative; display:flex; gap:26px; padding:22px 0; }
.step .n{
  position:relative; z-index:1; flex-shrink:0;
  width:48px; height:48px; border-radius:50%;
  border:1.5px solid var(--accent); background:var(--white); color:var(--accent-deep);
  font-family:'IBM Plex Mono', monospace; font-size:13px;
  display:flex; align-items:center; justify-content:center;
}
.step > div:last-child{ padding-top:10px; }
.step h3{ font-size:19px; margin-bottom:6px; }
.step p{ color:var(--ink-soft); max-width:52ch; font-size:15px; }

/* ---------- Trust — dark bronze charter ---------- */
.trust{
  background:var(--accent-deep); color:#F0EBDD;
  background-image:repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(251,251,248,0.02) 6px, rgba(251,251,248,0.02) 7px);
}
.trust .section-head .tag{ color:#CBB878; }
.trust .section-head .tag::before{ background:#CBB878; }
.trust h2{ color:var(--white); }
.trust-grid{ display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:820px){ .trust-grid{ grid-template-columns:1.1fr 0.9fr; gap:48px; } }
.trust-card{
  background:rgba(251,251,248,0.05); border:1px solid rgba(251,251,248,0.16);
  border-top:2px solid #CBB878; padding:28px;
}
.trust-card h3{
  color:#CBB878; font-size:13px; margin-bottom:12px;
  font-family:'IBM Plex Mono', monospace; font-weight:500;
  text-transform:uppercase; letter-spacing:0.12em;
}
.trust-card p, .trust-card li{ color:#E7E0CB; font-size:14.5px; }
.trust ul{ padding-left:18px; margin-top:10px; }
.trust li{ margin-bottom:8px; }
.trust-note{ font-size:13.5px; color:#CFC4A2; margin-top:26px; padding-top:20px; border-top:1px solid rgba(251,251,248,0.18); }
.trust-note a{ color:var(--white); text-decoration:underline; }

/* ---------- Funders — exhibit cards ---------- */
#funders{ background:var(--paper-raised); border-bottom:1px solid var(--rule); }
.funders-grid{ display:grid; grid-template-columns:1fr; gap:24px; counter-reset:exhibit; }
@media(min-width:820px){ .funders-grid{ grid-template-columns:repeat(3,1fr); } }
.fcard{
  position:relative; background:var(--white); border:1px solid var(--rule);
  border-top:3px solid var(--accent); padding:26px 24px;
  counter-increment:exhibit;
  transition:transform .2s ease, box-shadow .2s ease;
}
.fcard:hover{ transform:translateY(-4px); box-shadow:0 10px 24px rgba(38,34,26,0.08); }
/* .fcard::after{
  content:counter(exhibit, upper-alpha);
  position:absolute; top:18px; right:20px;
  width:26px; height:26px; border-radius:50%;
  border:1px solid var(--rule); color:var(--muted);
  font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  display:flex; align-items:center; justify-content:center;
} */
.fcard .tag{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--accent); text-transform:uppercase; letter-spacing:0.1em; }
.fcard h3{ font-size:18px; margin:10px 0 8px; }
.fcard p{ font-size:14.5px; color:var(--ink-soft); }

/* ---------- Footer ---------- */
footer{ background:var(--accent-deep); color:#CFC4A2; padding:44px 0; }
footer .wrap{ display:flex; flex-direction:column; gap:18px; }
.foot-top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; }
.foot-brand{ font-family:'Fraunces',serif; color:var(--white); font-size:18px; }
.foot-links{ display:flex; gap:20px; list-style:none; font-size:13.5px; flex-wrap:wrap; }
.foot-links a{ text-decoration:none; }
.foot-links a:hover{ text-decoration:underline; }
.legal{ font-size:12.5px; line-height:1.6; border-top:1px solid rgba(251,251,248,0.15); padding-top:18px; color:#BBAE87; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
.reveal-fade{ opacity:0; transition:opacity .7s ease; }
.reveal-fade.in{ opacity:1; }

/* ---------- Responsive adjustments ---------- */
@media(min-width:600px) and (max-width:819px){
  .funders-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:700px){
  .wrap{ padding:0 20px; }
  section{ padding:48px 0; }
  .hero{ padding:56px 0 48px; }
  .section-head{ margin-bottom:32px; }
  .btn{ font-size:16px; padding:15px 22px; }
  .cta-row{ gap:10px; }
  .cta-row .btn{ flex:1 1 auto; }
  .ledger-row{ padding:16px 4px; }
  .ledger-row:hover{ padding-left:4px; }
  .ledger-row .type{ flex-shrink:1; font-size:17px; }
  .process{ padding-left:0; }
  .process::before{ left:19px; }
  .step{ gap:16px; padding:18px 0; }
  .step .n{ width:40px; height:40px; font-size:12px; }
  .step > div:last-child{ padding-top:8px; }
  .trust-card{ padding:22px 20px; }
  .fcard{ padding:22px 20px; }
  footer{ padding:36px 0; }
}
@media(max-width:420px){
  .brand{ font-size:17px; }
  .cta-row .btn{ width:100%; }
  .stat-row{ grid-template-columns:1fr; }
}
