:root{
  /* Five-tone earth palette — one restrained descent from cream to
     terracotta, no off-palette accent colors (no green, no gold). */
  --sand:#F5F5EB;
  --sand-deep:#EFE7DA;
  --about:#EFE7DA;
  --clay:#E1DACA;
  --focus:#C1B6A3;
  --root:#B3907A;

  --ink:#3A2E1F;
  --ink-soft:#6B5D48;

  --serif:'Newsreader', Georgia, serif;
  --sans:'Public Sans', -apple-system, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
@media (prefers-reduced-motion:no-preference){ html{ scroll-behavior:smooth; } }
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--sand);
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; }
:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

/* Scroll reveals — subtle, one-shot, to direct the eye down the page.
   JS adds .reveal to candidate elements, then .is-visible when they enter
   view. Kept small (10px) and quick so it reads as a reveal, not a slide. */
.reveal{
  opacity:0;
  transform:translateY(var(--reveal-y, 10px));
  transition:opacity var(--reveal-duration, .6s) cubic-bezier(.22,.61,.36,1), transform var(--reveal-duration, .6s) cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* HERO */
.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  color:#fff;
  display:flex;
  flex-direction:column;
}
.hero-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}
.hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg,
    rgba(20,15,8,0.55) 0%,
    rgba(20,15,8,0.30) 45%,
    rgba(20,15,8,0.10) 75%,
    var(--sand) 100%);
}

nav{
  position:relative; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  padding:28px 6vw;
  max-width:1280px; margin:0 auto; width:100%;
}
.brandmark{
  display:flex; align-items:center; gap:10px;
  font-family:var(--serif); font-weight:600; font-size:19px;
}
.brandmark .leaf{ width:20px; height:20px; flex-shrink:0; }
.brand-lockup{ height:52px; width:auto; display:block; }

/* Mud blob backing behind the nav logo — the hero photography behind it
   varies too much for the green mark to reliably stand out on its own. */
nav .brandmark{ position:relative; z-index:1; }
nav .brandmark::before{
  content:"";
  position:absolute; z-index:-1;
  inset:-14px -22px -12px -18px;
  border-radius:58% 42% 63% 37% / 41% 55% 45% 59%;
  background:radial-gradient(ellipse at 35% 32%, rgba(58,42,28,0.68) 0%, rgba(58,42,28,0.42) 55%, rgba(58,42,28,0.14) 78%, transparent 92%);
}
.navlinks{ display:flex; gap:34px; list-style:none; }
.navlinks a{
  position:relative;
  font-size:14px; font-weight:500; text-decoration:none;
  color:rgba(255,255,255,0.82);
  transition:color .2s ease;
}
.navlinks a::before{
  content:"";
  position:absolute; z-index:-1;
  inset:-10px -14px;
  border-radius:58% 42% 63% 37% / 41% 55% 45% 59%;
  background:radial-gradient(ellipse at 38% 32%, rgba(179,144,122,0.55) 0%, rgba(179,144,122,0.22) 55%, transparent 72%);
  transform:scale(0.4) rotate(6deg);
  opacity:0;
  transition:transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  pointer-events:none;
}
.navlinks a:hover, .navlinks a:focus-visible{ color:#fff; }
.navlinks a:hover::before, .navlinks a:focus-visible::before{ transform:scale(1) rotate(-2deg); opacity:1; }
.navlinks .current{ color:#fff; border-bottom:1.5px solid rgba(255,255,255,0.85); padding-bottom:2px; }

.nav-toggle{
  display:none;
  flex-direction:column; align-items:flex-end; justify-content:center; gap:5px;
  width:34px; height:34px; background:none; border:none; padding:0; cursor:pointer;
}
.nav-toggle span{
  display:block; width:100%; height:2px; border-radius:2px;
  background:#fff; transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); width:100%; }

@media (max-width:720px){
  .nav-toggle{ display:flex; }
  .navlinks{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:rgba(20,15,8,0.94);
    padding:8px 6vw 22px;
  }
  .navlinks.is-open{ display:flex; }
  .navlinks li{ width:100%; }
  .navlinks a{
    display:block; padding:15px 0;
    border-bottom:1px solid rgba(255,255,255,0.14);
    color:rgba(255,255,255,0.88);
  }
  .navlinks .current{ border-bottom:1px solid rgba(255,255,255,0.14); }
}

.hero-content{
  position:relative; z-index:2;
  flex:1;
  display:flex; align-items:flex-end;
  max-width:1280px; margin:0 auto; width:100%;
  padding:6vw 6vw 9vw;
}
.mulch{
  position:relative;
  max-width:620px;
  color:#fff;
}
.eyebrow{
  font-size:13px; font-weight:600; color:var(--root);
  letter-spacing:0.04em; margin-bottom:14px; display:block;
}
.mulch .eyebrow{ color:rgba(255,255,255,0.85); }
h1{
  font-family:var(--serif); font-weight:500; font-style:italic;
  font-size:clamp(30px, 4.4vw, 52px); line-height:1.12;
  max-width:11ch;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,0.4);
}
.sub{
  margin-top:26px; max-width:520px;
  font-size:16px; line-height:1.7; color:rgba(255,255,255,0.88);
  text-shadow:0 1px 8px rgba(0,0,0,0.5);
}
.cta-row{ margin-top:34px; display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  position:relative;
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--sans); font-weight:600; font-size:14px;
  padding:13px 26px; border-radius:999px; text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease, background .2s ease;
}
.btn::before{
  content:"";
  position:absolute; z-index:-1;
  inset:-16px -22px;
  border-radius:61% 39% 55% 45% / 45% 60% 40% 55%;
  background:radial-gradient(ellipse at 40% 30%, rgba(58,46,31,0.85) 0%, rgba(58,46,31,0.5) 50%, transparent 78%);
  filter:blur(1px);
  transform:scale(0.4) rotate(-6deg);
  opacity:0;
  transition:transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  pointer-events:none;
}
.btn:hover::before{ transform:scale(1) rotate(3deg); opacity:1; }
.btn-primary{ background:var(--root); color:var(--ink); }
.btn-primary:hover{ transform:translateY(-1px); filter:brightness(1.08); }

/* LOGO STRIP */
.logos-strip{
  background:var(--sand); padding:22px 6vw;
  display:flex; align-items:center; gap:24px; flex-wrap:wrap;
  max-width:1280px; margin:0 auto;
}
.logos-label{ font-size:12px; letter-spacing:0.06em; font-weight:600; color:var(--ink-soft); opacity:0.7; }
.logos{ display:flex; align-items:center; gap:32px; flex-wrap:wrap; }
.logos > span:not(.logo-chip){ font-size:12px; letter-spacing:0.05em; font-weight:600; color:var(--ink-soft); opacity:0.55; }
.logo-chip{
  display:flex; align-items:center; justify-content:center;
  height:44px; padding:6px 14px;
  background:#fff; border:1px solid rgba(58,46,31,0.08); border-radius:10px;
  box-shadow:0 1px 3px rgba(58,46,31,0.08);
}
.logo-chip img{ height:100%; width:auto; max-width:96px; object-fit:contain; display:block; }

/* ABOUT */
.about{ background:var(--about); }
.about-inner{
  max-width:1280px; margin:0 auto; padding:6vw;
  display:grid; grid-template-columns:1fr 3fr; gap:40px; align-items:center;
}
@media (max-width:820px){ .about-inner{ grid-template-columns:1fr; gap:32px; } }
.about-text .eyebrow{ color:var(--ink); }
h2{
  font-family:var(--serif); font-weight:500; font-size:clamp(24px,3vw,34px);
  line-height:1.2; margin-bottom:20px;
}
.about-text p{ font-size:15.5px; line-height:1.75; color:var(--ink-soft); }
.about-text p + p{ margin-top:16px; }
.focus-inline{ margin-top:26px; display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  font-size:12.5px; font-weight:500; padding:7px 14px; border-radius:999px;
  background:rgba(58,46,31,0.07); color:var(--ink-soft);
}

.about-photo{
  position:relative; border-radius:28px; overflow:hidden;
}
.about-photo img{ display:block; width:100%; height:auto; }
.about-photo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(20,15,8,0.5) 0%, rgba(20,15,8,0) 30%);
}
.about-photo figcaption{
  position:absolute; left:16px; bottom:14px; font-size:12px; font-weight:500; color:#fff;
}

/* ============================================================
   BELIEF STRIP — bridges About Us into Focus Area. A real photo
   of the land itself, scrimmed dark enough to keep full focus
   on the text sitting on top of it.
   ============================================================ */
.belief-strip{
  position:relative; overflow:hidden;
  background-color:var(--ink);
  background-image:url('assets/pictures/dirt.jpeg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  padding:4vw 6vw;
}
.belief-scrim{
  position:absolute; inset:0;
  background:rgba(20,15,8,0.72);
}
.belief-inner{
  position:relative; z-index:1;
  max-width:620px; margin:0 auto; text-align:center;
}
.belief-inner .eyebrow{ text-align:center; color:rgba(255,255,255,0.7); }
.belief-statement{
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(17px, 1.6vw, 19px); line-height:1.6; color:rgba(255,255,255,0.92);
}

/* ============================================================
   FOCUS AREA — three minimal cards, no icons, clay tone.
   ============================================================ */
.focus-section{
  background-color:var(--focus);
  background-image:
    linear-gradient(180deg, rgba(179,144,122,0) 0%, rgba(179,144,122,0.5) 72%, rgba(179,144,122,0.92) 100%),
    linear-gradient(rgba(193,182,163,0.82), rgba(193,182,163,0.82)),
    url('assets/pictures/barren.png');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.section-inner{ max-width:1280px; margin:0 auto; padding:2vw 6vw 6vw; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head .eyebrow{ color:var(--ink); }
.section-head p{ margin-top:14px; font-size:15.5px; line-height:1.7; color:var(--ink-soft); }

.focus-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:24px; }
@media (max-width:880px){ .focus-grid{ grid-template-columns:1fr; } }

/* Featured card — the pillar with a live case study behind it, given the
   top, full-width slot: the position most likely to be seen and clicked
   on both a mobile scroll and a desktop skim. */
.focus-card--featured{
  grid-column:1 / -1;
  min-height:380px;
  padding:40px 36px;
}
.focus-card--featured h3{ font-size:26px; max-width:22ch; }
.focus-card--featured p{ font-size:15.5px; max-width:52ch; }
.focus-card--featured .focus-link{ font-size:14.5px; margin-top:20px; }
.focus-card{
  background:rgba(255,255,255,0.4);
  border:1px solid rgba(58,46,31,0.1);
  border-radius:20px;
  padding:32px 28px;
  display:block;
  text-decoration:none;
  color:inherit;
  transition:transform .2s ease, box-shadow .2s ease;
}
a.focus-card:hover{ transform:translateY(-3px); box-shadow:0 10px 28px rgba(20,15,8,0.22); }
.focus-card .index{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--ink); opacity:0.7; }
.focus-card h3{
  font-family:var(--serif); font-weight:500; font-size:21px;
  margin-top:14px; margin-bottom:10px;
}
.focus-card p{ font-size:14.5px; line-height:1.65; color:var(--ink-soft); }

.focus-card--photo{
  position:relative;
  min-height:280px;
  display:flex; flex-direction:column; justify-content:flex-end;
  background-image:linear-gradient(180deg, rgba(20,15,8,0.15) 0%, rgba(20,15,8,0.35) 45%, rgba(20,15,8,0.82) 100%), var(--card-photo);
  background-size:cover;
  background-position:var(--card-photo-position, center);
  border-color:rgba(20,15,8,0.3);
}
.focus-card--water{ --card-photo:url('assets/pictures/tank.jpg'); --card-photo-position:center 35%; }
.focus-card--knowledge{ --card-photo:url('assets/pictures/Soil.webp'); --card-photo-position:center; }
.focus-card--agribusiness{ --card-photo:url('assets/pictures/black_farmer.jpg'); --card-photo-position:center 20%; }

.focus-card--photo .index{ color:rgba(255,255,255,0.85); opacity:1; }
.focus-card--photo h3{ color:#fff; text-shadow:0 2px 8px rgba(0,0,0,0.55); }
.focus-card--photo p{ color:rgba(255,255,255,0.92); text-shadow:0 1px 6px rgba(0,0,0,0.5); }

/* ============================================================
   CREATING IMPACT — root zone, richest page. --root is now a soft
   terracotta rather than near-black, so this reads as ink-on-warm
   instead of the old light-on-dark treatment.
   ============================================================ */
.impact-section{ background:var(--root); color:var(--ink); }
#creating-impact.impact-section{
  background-color:var(--root);
  background-image:linear-gradient(rgba(179,144,122,0.87), rgba(179,144,122,0.87)), url('assets/pictures/readysoil.png');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.impact-section .section-head .eyebrow{ color:var(--ink); }
.impact-section .section-head h2{ color:var(--ink); }
.impact-section .section-head p{ color:var(--ink); }

.puddles{ display:flex; gap:40px; flex-wrap:wrap; justify-content:center; padding:12px 0 8px; }
.puddle{
  width:168px; height:168px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  text-align:center; padding:16px 16px 26px;
  background-image:linear-gradient(180deg, rgba(20,15,8,0.12) 0%, rgba(20,15,8,0.32) 55%, rgba(20,15,8,0.72) 100%), url('assets/pictures/3.jpeg');
  background-size:cover;
  background-position:center 62%;
  border:1px solid rgba(20,15,8,0.25);
  box-shadow:inset 0 0 0 5px rgba(255,255,255,0.12), 0 6px 16px rgba(20,15,8,0.28);
}
.puddle:nth-child(2){ margin-top:26px; }
.puddle .stat{ font-family:var(--serif); font-weight:500; font-size:30px; color:#fff; line-height:1; text-shadow:0 2px 8px rgba(0,0,0,0.55); }
.puddle .label{ margin-top:8px; font-size:12.5px; line-height:1.5; color:rgba(255,255,255,0.94); text-shadow:0 1px 5px rgba(0,0,0,0.5); }

.case-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px; }
@media (max-width:880px){ .case-grid{ grid-template-columns:1fr; } }
.case-card{
  background:rgba(255,255,255,0.36);
  border:1px solid rgba(58,46,31,0.14);
  border-radius:20px;
  padding:30px 28px;
}
.case-card .eyebrow{ color:var(--ink); }
.case-card h3{ font-family:var(--serif); font-weight:500; font-size:19px; margin:12px 0 14px; color:var(--ink); }
.case-card p{ font-size:14px; line-height:1.7; color:var(--ink); }
.before-after{ display:flex; gap:16px; margin-top:18px; }
.before-after div{ flex:1; padding:14px 16px; border-radius:12px; background:rgba(255,255,255,0.5); }
.before-after span{ display:block; font-size:11px; letter-spacing:0.05em; font-weight:600; color:var(--ink); margin-bottom:6px; text-transform:uppercase; }
.before-after strong{ font-family:var(--serif); font-size:18px; font-weight:500; color:var(--ink); }

.case-studies{
  background-color:var(--root); color:var(--ink);
  background-image:
    linear-gradient(180deg,
      rgba(179,144,122,0.92) 0%,
      rgba(150,120,95,0.62) 28%,
      rgba(95,74,55,0.42) 58%,
      rgba(20,15,8,0.5) 100%),
    url('assets/pictures/ferile.png');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.case-studies .section-head .eyebrow{ color:var(--ink); }
.case-studies .section-head h2{ color:var(--ink); }
.case-studies .section-head p{ color:var(--ink-soft); }

/* The intro card was outweighing the three photos it's introducing —
   pull it in and turn the photos up so the case-study images stay the
   focus. */
/* Back to the plain card shape — white tint mixed over the muddy.jpg
   texture (instead of flat white) so the text stays clearly readable
   while the card still picks up a bit of the section's own texture. */
.case-intro{
  max-width:480px; padding:26px 26px;
  background-image:
    linear-gradient(rgba(255,255,255,0.84), rgba(255,255,255,0.84)),
    url('assets/pictures/muddy.jpg');
  background-size:cover;
  background-position:center;
}
.case-studies .case-intro .eyebrow{ color:var(--root); }
.case-studies .case-intro h2{ font-size:24px; color:var(--ink); }
.case-studies .case-intro p{ color:var(--ink-soft); }
.case-gallery .gallery-item img{ height:270px; }
@media (max-width:720px){
  .case-gallery .gallery-item img{ height:220px; }
}

/* ============================================================
   CONTACT — Join the Movement band (the one green background),
   then gold-tone donor/farmer paths and forms.
   ============================================================ */
.movement-band{
  position:relative;
  padding:8px 6vw 56px;
  max-width:1280px; margin:0 auto;
}
.movement-inner{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px;
  padding:56px 0;
}

/* Mud splash — thick mud hitting a surface, behind the CTA. Fires once on
   scroll-into-view (this is a whole band, not something a mouse hovers). */
.mud-splash{ position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.mud-splash span{
  position:absolute;
  background:radial-gradient(circle at 35% 32%, rgba(72,50,29,0.88) 0%, rgba(72,50,29,0.56) 42%, rgba(72,50,29,0.2) 70%, transparent 86%);
  opacity:0;
  transform:scale(0) rotate(0deg);
  transition:transform 1s cubic-bezier(.34,1.56,.64,1), opacity .5s ease;
}
.mud-splash.is-visible span{ opacity:1; transform:scale(1) rotate(var(--r, 0deg)); }
.mud-splash span:nth-child(1){
  width:280px; height:190px; top:34%; left:24%; margin:-95px 0 0 -140px;
  border-radius:58% 42% 63% 37% / 41% 55% 45% 59%;
  --r:-8deg; transition-delay:0ms;
}
.mud-splash span:nth-child(2){
  width:170px; height:130px; top:62%; left:73%; margin:-65px 0 0 -85px;
  border-radius:37% 63% 42% 58% / 55% 41% 59% 45%;
  --r:12deg; transition-delay:110ms;
}
.mud-splash span:nth-child(3){
  width:110px; height:95px; top:18%; left:69%; margin:-48px 0 0 -55px;
  border-radius:63% 37% 55% 45% / 42% 58% 41% 59%;
  --r:-16deg; transition-delay:200ms;
}
.mud-splash span:nth-child(4){
  width:85px; height:75px; top:78%; left:34%; margin:-38px 0 0 -43px;
  border-radius:45% 55% 41% 59% / 63% 37% 58% 42%;
  --r:8deg; transition-delay:280ms;
}
.mud-splash span:nth-child(5){
  width:34px; height:30px; top:12%; left:30%; margin:-15px 0 0 -17px;
  border-radius:60% 40% 55% 45% / 45% 55% 40% 60%;
  --r:18deg; transition-delay:360ms;
}
.mud-splash span:nth-child(6){
  width:26px; height:24px; top:82%; left:60%; margin:-12px 0 0 -13px;
  border-radius:45% 55% 40% 60% / 55% 40% 60% 45%;
  --r:-22deg; transition-delay:420ms;
}
@media (prefers-reduced-motion:reduce){
  .mud-splash{ display:none; }
}
/* On narrow screens the desktop blob sizes swallow the whole text column —
   shrink them and pull them out to the corners so the center stays clear. */
@media (max-width:720px){
  .mud-splash span:nth-child(1){
    width:130px; height:100px; top:4%; left:2%; margin:-30px 0 0 -30px;
  }
  .mud-splash span:nth-child(2){
    width:110px; height:85px; top:96%; left:98%; margin:-40px 0 0 -60px;
  }
  .mud-splash span:nth-child(3){
    width:70px; height:60px; top:2%; left:96%; margin:-20px 0 0 -40px;
  }
  .mud-splash span:nth-child(4){
    width:64px; height:54px; top:98%; left:4%; margin:-25px 0 0 -15px;
  }
  .mud-splash span:nth-child(5){
    width:22px; height:20px; top:14%; left:90%; margin:-10px 0 0 -10px;
  }
  .mud-splash span:nth-child(6){
    width:18px; height:16px; top:88%; left:16%; margin:-8px 0 0 -8px;
  }
}
.movement-inner .eyebrow{ color:var(--ink); }
.movement-inner h1{
  font-family:var(--serif); font-weight:500; font-style:italic;
  font-size:clamp(28px,4vw,44px); color:var(--ink); max-width:16ch;
}
.movement-inner p{ margin-top:10px; font-size:16px; color:var(--ink-soft); max-width:52ch; }
.movement-inner .btn-partner{ margin-top:26px; }
.btn-partner{ background:var(--root); color:var(--ink); white-space:nowrap; border:none; cursor:pointer; }
.btn-partner:hover{ transform:translateY(-1px); filter:brightness(1.08); }

.gold-section{ background:var(--clay); }
.gold-section .section-head .eyebrow{ color:var(--ink); }

/* Shared form field styles — used inside the contact modal */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:520px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:13px; font-weight:600; color:var(--ink-soft); }
.field input, .field select, .field textarea{
  font-family:var(--sans); font-size:14px; color:var(--ink);
  padding:11px 14px; border-radius:10px; border:1px solid rgba(58,46,31,0.2);
  background:rgba(255,255,255,0.6);
}
.field textarea{ min-height:88px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--ink); outline-offset:1px; }
.form-note{ display:block; margin-top:12px; font-size:13.5px; color:var(--ink); }

/* ============================================================
   CONTACT MODAL — single CTA opens this; donor/farmer tabs to
   be tailored further once content is finalized.
   ============================================================ */
.modal-overlay{
  position:fixed; inset:0; z-index:50;
  background:rgba(58,46,31,0.55);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.modal-overlay[hidden]{ display:none; }
.modal{
  position:relative; width:100%; max-width:520px; max-height:88vh; overflow-y:auto;
  background:var(--sand); color:var(--ink);
  border-radius:24px; padding:36px 32px;
}
.modal-close{
  position:absolute; top:18px; right:18px;
  width:32px; height:32px; border-radius:50%; border:none;
  background:rgba(58,46,31,0.08); color:var(--ink);
  font-size:18px; line-height:1; cursor:pointer;
}
.modal-close:hover{ background:rgba(58,46,31,0.15); }
.modal-head h3{ font-family:var(--serif); font-weight:500; font-size:22px; margin:8px 0 20px; }
.modal-tabs{ display:flex; gap:8px; margin-bottom:24px; background:rgba(58,46,31,0.06); padding:4px; border-radius:999px; }
.modal-tab{
  flex:1; padding:9px 14px; border-radius:999px; border:none; background:transparent;
  font-family:var(--sans); font-size:13.5px; font-weight:600; color:var(--ink-soft); cursor:pointer;
  transition:background .18s ease, color .18s ease;
}
.modal-tab.is-active{ background:var(--root); color:var(--ink); }
.modal-form[hidden]{ display:none; }
.modal-form .btn-primary{ margin-top:20px; border:none; cursor:pointer; }

/* ============================================================
   FOOTER — always root zone; the bedrock every page returns to.
   ============================================================ */
.site-footer{
  background-color:var(--root);
  background-image:linear-gradient(180deg, rgba(20,15,8,0.72) 0%, rgba(20,15,8,0.82) 100%), url('assets/pictures/rise.jpeg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  color:#fff;
}
.footer-inner{
  max-width:1280px; margin:0 auto; padding:56px 6vw 32px;
  display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:48px;
}
@media (max-width:720px){ .footer-inner{ grid-template-columns:1fr; gap:32px; padding:44px 6vw 28px; } }
.footer-brand .brandmark{ color:#fff; }
.footer-logo{ height:28px; width:auto; flex-shrink:0; display:block; }
.footer-tagline{ margin-top:14px; font-size:13.5px; line-height:1.7; color:rgba(255,255,255,0.82); max-width:36ch; }
.footer-heading{ font-size:11.5px; letter-spacing:0.06em; font-weight:600; color:#fff; text-transform:uppercase; }
.footer-links{ list-style:none; margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.footer-links a{ font-size:14px; color:rgba(255,255,255,0.85); text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }
.footer-contact{ margin-top:14px; font-size:13.5px; line-height:1.85; color:rgba(255,255,255,0.82); font-style:normal; }
.footer-social{ margin-top:18px; }
.footer-social-link{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:600; color:#fff;
  text-decoration:none; padding:8px 14px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  transition:background .18s ease, border-color .18s ease;
}
.footer-social-link:hover{ background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.6); }
.footer-social-link svg{ flex-shrink:0; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.18);
  max-width:1280px; margin:0 auto;
  color:rgba(255,255,255,0.75);
  padding:18px 6vw; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size:12px;
}

/* ============================================================
   FOCUS CARD LINK-OUT — each pillar card links to its flagship
   project page (proof for the claim made on the card).
   ============================================================ */
.focus-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:16px; font-size:13px; font-weight:600;
  text-decoration:none; color:var(--ink);
}
.focus-card--photo .focus-link{ color:#fff; text-shadow:0 1px 6px rgba(0,0,0,0.5); }
.focus-link .arrow{ transition:transform .18s ease; }
.focus-link:hover .arrow{ transform:translateX(3px); }

/* ============================================================
   CASE STUDIES — compact before/after evidence strip, one row per
   real project, each linking to its full detail page. Deliberately
   a different shape from the Focus Area cards above (paired photo
   thumbnails + one stat line, not a full-bleed background card) so
   the two sections don't read as a repeat.
   ============================================================ */
.proof-strip{ display:flex; flex-direction:column; gap:2px; margin-top:8px; border-radius:20px; overflow:hidden; }
.proof-row{
  display:grid; grid-template-columns:220px 1fr; gap:28px; align-items:center;
  background:rgba(255,255,255,0.45); padding:20px 24px; text-decoration:none;
  transition:background .18s ease;
}
@media (max-width:720px){ .proof-row{ grid-template-columns:1fr; } }
.proof-row:hover{ background:rgba(255,255,255,0.75); }
.proof-thumbs{ display:flex; gap:8px; }
.proof-thumb{ position:relative; flex:1; border-radius:12px; overflow:hidden; aspect-ratio:4/3; }
.proof-thumb img{ display:block; width:100%; height:100%; object-fit:cover; }
.proof-thumb .tag{ font-size:9.5px; padding:4px 9px; top:8px; left:8px; }
.proof-index{ font-size:12px; font-weight:600; letter-spacing:0.03em; color:var(--ink-soft); }
.proof-title{ font-family:var(--serif); font-weight:500; font-size:18px; margin:5px 0 8px; color:var(--ink); }
.proof-stat{ font-size:13.5px; line-height:1.6; color:var(--ink-soft); }
.proof-stat strong{ color:var(--ink); font-weight:600; }
.proof-link{ display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:13px; font-weight:600; color:var(--ink); }
.proof-link .arrow{ transition:transform .18s ease; }
.proof-row:hover .proof-link .arrow{ transform:translateX(3px); }

/* ============================================================
   PROJECT DETAIL PAGES — case study sub-pages linked from Focus
   Area cards and the homepage Case Studies section. Reuses the
   same tone/typography vocabulary as the homepage sections.
   ============================================================ */
.project-hero{
  position:relative; overflow:hidden; color:#fff;
  min-height:70vh; display:flex; flex-direction:column;
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.project-hero--mtwapa{ background-image:url('assets/pictures/mtwapa/2.png'); }
.project-hero--sotehub{ background-image:url('assets/pictures/sotehub/3.png'); background-position:center 35%; }
.project-hero--water{ background-image:url('assets/pictures/tank.jpg'); background-position:center 35%; }
.project-hero--agribusiness{ background-image:url('assets/pictures/black_farmer.jpg'); background-position:center 20%; }
.project-hero--chilli{ background-image:url('assets/pictures/chilli/4.png'); }
.project-hero .hero-scrim{
  /* Hero text sits bottom-aligned (see .hero-content below), so the
     darkest part of this scrim needs to sit there too, not at the top —
     it was fading to nearly nothing exactly where the h1/sub/back-link
     are, leaving them unreadable against busy or light photos. */
  background:linear-gradient(180deg,
    rgba(20,15,8,0.45) 0%,
    rgba(20,15,8,0.2) 25%,
    rgba(20,15,8,0.5) 55%,
    rgba(20,15,8,0.82) 85%,
    var(--sand) 100%);
}
.project-hero .hero-content{ align-items:flex-end; padding-bottom:7vw; }
.back-link{
  display:inline-block; font-size:13px; font-weight:600; color:rgba(255,255,255,0.85);
  text-decoration:none; margin-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.4); padding-bottom:2px;
}
.back-link:hover{ color:#fff; border-color:#fff; }

.meta-strip{ background:var(--sand); padding:26px 6vw; }
.meta-row{ max-width:1280px; margin:0 auto; display:flex; gap:10px; flex-wrap:wrap; }
.meta-chip{ font-size:12.5px; font-weight:500; padding:8px 16px; border-radius:999px; background:rgba(58,46,31,0.07); color:var(--ink-soft); }
.meta-chip strong{ color:var(--ink); font-weight:600; }

.story-section{ background:var(--about); }
.story-inner{ max-width:820px; margin:0 auto; padding:6vw; }
.story-inner .eyebrow{ color:var(--ink); }
.story-inner p{ font-size:15.5px; line-height:1.8; color:var(--ink-soft); }
.story-inner p + p{ margin-top:16px; }
.quote-block{
  font-family:var(--serif); font-style:italic; font-size:17px; line-height:1.7; color:var(--ink);
  border-left:3px solid var(--root); padding-left:20px; margin-top:24px;
}

.process-section{ background:var(--sand-deep); }
.process-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:8px; }
@media (max-width:980px){ .process-grid{ grid-template-columns:1fr; } }
.process-card{ background:#fff; border:1px solid rgba(58,46,31,0.1); border-radius:20px; padding:26px; }
.process-card .index{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--ink); opacity:0.6; }
.process-card h3{ font-family:var(--serif); font-weight:500; font-size:18px; margin-top:10px; margin-bottom:8px; }
.process-card p{ font-size:14px; line-height:1.65; color:var(--ink-soft); }

/* Real project photography behind each step, instead of a flat white
   card — the same dark-gradient-over-photo treatment used on the
   Focus Area cards. */
.process-card--photo{
  position:relative;
  min-height:230px;
  display:flex; flex-direction:column; justify-content:flex-end;
  background-image:linear-gradient(180deg, rgba(20,15,8,0.1) 0%, rgba(20,15,8,0.4) 55%, rgba(20,15,8,0.86) 100%), var(--card-photo);
  background-size:cover;
  background-position:var(--card-photo-position, center);
  border:none;
}
.process-card--photo .index{ color:rgba(255,255,255,0.85); opacity:1; }
.process-card--photo h3{ color:#fff; text-shadow:0 1px 6px rgba(0,0,0,0.4); }
.process-card--photo p{ color:rgba(255,255,255,0.9); text-shadow:0 1px 5px rgba(0,0,0,0.4); }

.process-card--barrier-water{ --card-photo:url('assets/pictures/construction4.jpeg'); --card-photo-position:center 40%; }
.process-card--mobilise-water{ --card-photo:url('assets/pictures/construction7.jpeg'); --card-photo-position:center 80%; }
.process-card--sustain-water{ --card-photo:url('assets/pictures/construction13.jpeg'); --card-photo-position:center 65%; }

.process-card--barrier-chain{ --card-photo:url('assets/pictures/chilli/4.png'); --card-photo-position:center 60%; }
.process-card--mobilise-chain{ --card-photo:url('assets/pictures/chilli/3.png'); --card-photo-position:center 45%; }
.process-card--sustain-chain{ --card-photo:url('assets/pictures/chilli/5.png'); --card-photo-position:center 40%; }

.phase-block{ margin-top:40px; }
.phase-block:first-child{ margin-top:0; }
.phase-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.phase-head h3{ font-family:var(--serif); font-weight:500; font-size:21px; color:var(--ink); }
.phase-head span{ font-size:13px; font-weight:600; color:var(--ink-soft); }
.phase-block p{ font-size:14.5px; line-height:1.7; color:var(--ink-soft); margin-bottom:18px; max-width:70ch; }
.group-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
@media (max-width:820px){ .group-grid{ grid-template-columns:1fr; } }
.group-card{ background:#fff; border:1px solid rgba(58,46,31,0.1); border-radius:16px; padding:18px 20px; }
.group-card strong{ display:block; font-size:14.5px; color:var(--ink); margin-bottom:4px; }
.group-card span{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; }

.results-section{ background:var(--root); color:var(--ink); }
.results-section .section-head .eyebrow{ color:var(--ink); }
.results-section .section-head h2{ color:var(--ink); }
.results-section .section-head p{ color:var(--ink); }
.checklist{ list-style:none; display:grid; grid-template-columns:repeat(2, 1fr); gap:12px 28px; margin-top:8px; }
@media (max-width:720px){ .checklist{ grid-template-columns:1fr; } }
.checklist li{ font-size:14.5px; line-height:1.6; padding-left:26px; position:relative; color:var(--ink); }
.checklist li::before{ content:"\2713"; position:absolute; left:0; top:0; font-weight:700; color:var(--ink); }

.ba-section{ background:var(--focus); }
.ba-photos{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px; }
@media (max-width:720px){ .ba-photos{ grid-template-columns:1fr; } }
.ba-photo{ position:relative; border-radius:20px; overflow:hidden; }
.ba-photo img{ display:block; width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
.ba-photo .tag{
  position:absolute; top:14px; left:14px; font-size:12px; font-weight:600; letter-spacing:0.04em;
  text-transform:uppercase; padding:6px 14px; border-radius:999px; background:rgba(20,15,8,0.65); color:#fff;
}
.ba-caption{ margin-top:10px; font-size:13.5px; color:var(--ink-soft); line-height:1.6; }
.story-photo{ margin-top:8px; border-radius:24px; overflow:hidden; }
.story-photo img{ width:100%; display:block; max-height:440px; object-fit:cover; }

.gallery-section{ background:var(--clay); }

/* ============================================================
   PROJECT PAGE BACKGROUND BORROWS — the same photo/overlay
   treatments used for Focus Areas, Creating Impact and Case
   Studies on the homepage, reused on the project detail pages so
   equivalent sections read as the same visual language.
   ============================================================ */
.bg-barren{
  background-color:var(--focus);
  background-image:
    linear-gradient(180deg, rgba(179,144,122,0) 0%, rgba(179,144,122,0.5) 72%, rgba(179,144,122,0.92) 100%),
    linear-gradient(rgba(193,182,163,0.82), rgba(193,182,163,0.82)),
    url('assets/pictures/barren.png');
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.bg-readysoil{
  background-color:var(--root); color:var(--ink);
  background-image:linear-gradient(rgba(179,144,122,0.87), rgba(179,144,122,0.87)), url('assets/pictures/readysoil.png');
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.bg-readysoil .section-head .eyebrow, .bg-readysoil .section-head h2, .bg-readysoil .section-head p{ color:var(--ink); }
.bg-ferile{
  background-color:var(--root); color:var(--ink);
  background-image:
    linear-gradient(180deg,
      rgba(179,144,122,0.92) 0%,
      rgba(150,120,95,0.62) 28%,
      rgba(95,74,55,0.42) 58%,
      rgba(20,15,8,0.5) 100%),
    url('assets/pictures/ferile.png');
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.bg-ferile .section-head .eyebrow{ color:var(--ink); }
.bg-ferile .section-head h2{ color:var(--ink); }
.bg-ferile .section-head p{ color:var(--ink-soft); }
.gallery-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:8px; }
@media (max-width:880px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:1fr; } }
.gallery-item{ position:relative; border-radius:16px; overflow:hidden; }
.gallery-item img{ display:block; width:100%; height:220px; object-fit:cover; }
.gallery-item::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,15,8,0.55) 0%, rgba(20,15,8,0) 45%); }
.gallery-item figcaption{ position:absolute; left:12px; right:12px; bottom:10px; z-index:1; font-size:12px; font-weight:500; color:#fff; text-shadow:0 1px 5px rgba(0,0,0,0.6); }

.next-project{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background:rgba(255,255,255,0.5); border:1px solid rgba(58,46,31,0.12); border-radius:20px;
  padding:24px 28px; margin-top:8px;
}
.next-project span{ font-size:13px; font-weight:600; color:var(--ink-soft); display:block; margin-bottom:4px; }
.next-project strong{ font-family:var(--serif); font-weight:500; font-size:19px; color:var(--ink); }
.next-project a.btn{ background:var(--ink); color:#fff; text-decoration:none; }

/* Results checklist — deep earth brown */
.bg-ferile .focus-card{
  background:rgba(72,50,29,0.88);
  border:1px solid rgba(255,255,255,0.14);
  color:#fff;
}

.bg-ferile .focus-card .checklist li{
  color:#fff;
}

.bg-ferile .focus-card .checklist li::before{
  color:#fff;
}