/* Foundations First — site styles (design direction 1a "Paper & Ink") */

:root {
  --yellow: #FFD100;
  --yellow-dark: #EFC400;
  --yellow-tint: #FFEE93;
  --blue: #2271DE;
  --blue-dark: #1a5cbd;
  --blue-tint: #C3DAFC;
  --red: #FF5022;
  --red-tint: #FFDBD0;
  --ink: #1C1C1E;
  --paper: #F6F4EE;
  --ink-60: rgba(28, 28, 30, 0.6);
  --ink-75: rgba(28, 28, 30, 0.75);
  --paper-70: rgba(246, 244, 238, 0.7);
  --paper-85: rgba(246, 244, 238, 0.85);
  --font-display: 'Francois One', sans-serif;
  --font-body: 'Lato', sans-serif;
  --pad-x: 48px;
  --max-w: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; }

.eyebrow {
  font: 700 14px/1.4 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--red { color: var(--red); }
.eyebrow--paper { color: var(--paper-70); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 17px var(--font-display);
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  border: 2px solid transparent;
}
.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--ink); }
.btn--outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }
.btn--outline-paper { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn--outline-paper:hover { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn--ink:hover { background: #000; border-color: #000; color: var(--yellow); }
.btn--blue { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--paper); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--ink);
  color: var(--paper);
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}
.utility .tagline { font-style: italic; }
.utility nav { display: flex; gap: 24px; font-size: 12.5px; letter-spacing: 0.04em; }
.utility nav a { color: var(--paper); text-decoration: none; }
.utility nav a:hover { color: var(--yellow); }

/* ---------- Header / nav ---------- */
.site-header { background: var(--paper); position: relative; z-index: 50; }
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header .logo img { height: 44px; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 15.5px; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { border-bottom: 3px solid var(--yellow); padding-bottom: 3px; }
.main-nav .btn { font-size: 16px; padding: 12px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero (home) ---------- */
/* The image comes in as --hero-img (and --hero-img-mobile) from the markup rather
   than an inline background-image, so the mobile breakpoint can swap in a crop that
   is actually composed for portrait. See the stacked mobile hero below. */
.hero {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero > .wrap {
  position: relative;
  min-height: 680px;
}
.hero__box {
  position: absolute;
  top: 64px;
  left: var(--pad-x);
  width: 560px;
  max-width: calc(100% - 2 * var(--pad-x));
}
.hero__title {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 40px 36px;
  font-size: 46px;
}
.hero__body {
  background: var(--paper);
  padding: 28px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--paper); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { font-size: 48px; max-width: 720px; margin-top: 12px; }
.page-hero p { max-width: 640px; margin-top: 20px; color: var(--paper-85); }
.page-hero--yellow { background: var(--yellow); color: var(--ink); }
.page-hero--yellow .eyebrow { color: var(--ink); opacity: 0.65; }
.page-hero--yellow p { color: var(--ink-75); }
.page-hero--blue { background: var(--blue); color: var(--paper); }
.page-hero--blue .eyebrow { color: var(--yellow); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section h2 { font-size: 36px; max-width: 760px; }
.section h2 + p.lead { margin-top: 18px; }
.section .eyebrow + h2 { margin-top: 10px; }
p.lead { font-size: 18px; max-width: 680px; color: var(--ink-75); }

.section--ink { background: var(--ink); color: var(--paper); }
.section--ink p.lead { color: var(--paper-85); }
.section--blue { background: var(--blue); color: var(--paper); }
.section--blue p.lead { color: var(--paper-85); }
.section--yellow { background: var(--yellow); }
.section--yellow-tint { background: var(--yellow-tint); }
.section--blue-tint { background: var(--blue-tint); }

/* ---------- Brand doodle elements ---------- */
.h2-squiggle::after {
  content: "";
  display: block;
  width: 230px;
  max-width: 60%;
  height: 17px;
  margin-top: 12px;
  background: url('../assets/element-6.svg') no-repeat left center;
  background-size: contain;
}
.doodle-sparkle {
  width: 48px;
  height: auto;
  margin-bottom: 2px;
}
.doodle-arrow {
  width: 150px;
  height: auto;
  align-self: flex-end;
  margin: 18px 40px 0 0;
  transform: rotate(-12deg);
}

/* ---------- Big numeral stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.stat { border-top: 3px solid var(--ink); padding-top: 24px; }
.stat__num { font: 96px/1 var(--font-display); }
.stat__num--yellow { color: var(--yellow); text-shadow: 0 1px 0 rgba(28, 28, 30, 0.15); }
.stat__num--blue { color: var(--blue); }
.stat__num--red { color: var(--red); }
.stat p { margin-top: 12px; color: var(--ink-75); }
.stat .src { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-60); }

/* Pilot stats — the four "where we are now" figures on / and /about (src/data/pilot.json).
   A text-valued stat (the location) sits on the same baseline as the numerals. */
.stats--pilot { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats--pilot .stat__num { font-size: 72px; }
.stats--pilot .stat__num--text { font: 30px/1.15 var(--font-display); min-height: 72px; display: flex; align-items: flex-end; }
.stat__num--ink { color: var(--ink); }
.split .stats--pilot { grid-template-columns: 1fr 1fr; margin-top: 8px; }

/* ---------- Practice cards (blue section) ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.practice {
  background: var(--paper);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.practice:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(28, 28, 30, 0.18); }
.practice__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 20px var(--font-display);
}
.practice h3 { font-size: 21px; }
.practice p { font-size: 15px; line-height: 1.55; color: var(--ink-75); }

/* ---------- Evidence cards (paper & ink: flat, ruled) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.evidence-card {
  background: #fff;
  border-top: 3px solid var(--ink);
  border-radius: 0 0 6px 6px;
  padding: 30px 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.evidence-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(28, 28, 30, 0.12); }
.evidence-card .eyebrow { font-size: 13px; }
.evidence-card h3 { font-size: 25px; margin: 14px 0 12px; }
.evidence-card p { font-size: 15px; color: var(--ink-75); }

/* ---------- Photo band ---------- */
.photo-band { height: 440px; background-size: cover; background-position: center; }
.photo-band--tall { height: 520px; }

/* ---------- Quote ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font: italic 27px/1.5 var(--font-body);
  max-width: 760px;
  margin: 20px auto 16px;
}
.quote-band .attribution { font-size: 15px; color: var(--ink-60); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.1fr 1fr; }
.cta-band__copy {
  /* align left edge with the centered content column on wide screens */
  padding: 72px var(--pad-x) 72px max(var(--pad-x), calc((100vw - var(--max-w)) / 2 + var(--pad-x)));
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.cta-band__copy h2 { font-size: 38px; }
.cta-band__copy p { color: var(--paper-85); max-width: 480px; }
.cta-band__photo { min-height: 340px; background-size: cover; background-position: center; }

/* ---------- Numbered rows (dark/blue lists) ---------- */
.num-rows { display: flex; flex-direction: column; }
.num-row { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(246, 244, 238, 0.3); }
.num-row:last-child { border-bottom: none; }
.num-row__num { font: 28px var(--font-display); color: var(--yellow); min-width: 44px; }
.num-row h3 { font-size: 20px; }
.num-row p { font-size: 15px; line-height: 1.55; color: var(--paper-85); margin-top: 6px; }
.num-rows--ink .num-row { border-color: rgba(28, 28, 30, 0.15); }
.num-rows--ink .num-row__num { color: var(--blue); }
.num-rows--ink .num-row p { color: var(--ink-75); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split__sticky { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Timeline (phases) ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.phase {
  background: #fff;
  border-top: 3px solid var(--ink);
  border-radius: 0 0 6px 6px;
  padding: 26px 22px;
}
.phase__label { font: 700 12.5px var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.phase h3 { font-size: 21px; margin: 10px 0 6px; }
.phase .goal { font-size: 14px; font-style: italic; color: var(--ink-60); margin-bottom: 12px; }
.phase ul { list-style: none; }
.phase li { font-size: 14.5px; line-height: 1.5; color: var(--ink-75); padding: 6px 0 6px 18px; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; background: var(--yellow); border: 1px solid var(--ink); }

/* ---------- Year rows (5-year plan) ---------- */
.year-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(28, 28, 30, 0.15);
}
.year-row:last-child { border-bottom: none; }
.year-row__year { font: 40px/1 var(--font-display); color: var(--blue); }
.year-row h3 { font-size: 22px; }
.year-row .goal { font-size: 14.5px; font-style: italic; color: var(--ink-60); margin: 4px 0 8px; }
.year-row p { font-size: 15.5px; color: var(--ink-75); max-width: 700px; }

/* ---------- Chain (theory of change / CEA) ---------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
.chain--3 { grid-template-columns: repeat(3, 1fr); }
.chain__step { position: relative; padding: 26px 34px 26px 24px; background: #fff; border-top: 3px solid var(--ink); border-radius: 0 0 6px 6px; margin-right: 22px; }
.chain__step:last-child { margin-right: 0; }
.chain__step::after {
  content: "→";
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  font: 22px var(--font-display);
  color: var(--ink);
  width: 22px;
  text-align: center;
}
.chain__step:last-child::after { content: none; }
.section--blue .chain__step::after { color: var(--paper); }
.chain__step .k { font: 26px var(--font-display); color: var(--blue); }
.chain__step p { font-size: 14.5px; line-height: 1.5; color: var(--ink-75); margin-top: 6px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin-top: 36px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1.5px solid var(--ink);
  font-size: 15px;
}
table.data th {
  background: var(--ink);
  color: var(--paper);
  font: 16px var(--font-display);
  letter-spacing: 0.04em;
  text-align: left;
  padding: 14px 18px;
}
table.data td { padding: 13px 18px; border-top: 1px solid rgba(28, 28, 30, 0.15); vertical-align: top; color: var(--ink-75); }
table.data td:first-child { color: var(--ink); font-weight: 700; }
table.data tr.total td { border-top: 2px solid var(--ink); font-weight: 700; color: var(--ink); background: var(--yellow-tint); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data col.hl { background: rgba(255, 209, 0, 0.18); }

/* ---------- Team ---------- */
/* Photo column sized to a one-paragraph bio (client request, Sep 2026). */
.founder { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: start; margin-top: 44px; }
.founder__photo img { border-radius: 6px; border-top: 3px solid var(--ink); }
.founder h3 { font-size: 30px; }
.founder .role { font: 700 13px var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 6px 0 16px; }
.founder p { color: var(--ink-75); margin-bottom: 12px; }
.founder a.email { font-size: 15px; }

.advisors { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.advisor {
  background: #fff;
  border-top: 3px solid var(--ink);
  border-radius: 0 0 6px 6px;
  padding: 26px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
}
.advisor img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.advisor h3 { font-size: 20px; }
.advisor .role { font-size: 13px; font-weight: 700; color: var(--blue); margin: 2px 0 8px; }
.advisor p { font-size: 14.5px; line-height: 1.55; color: var(--ink-75); }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; margin-top: 48px; }

/* Ways to support — replaced the pilot budget breakdown (client request, Sep 2026). */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.way { background: #fff; border-top: 3px solid var(--ink); border-radius: 0 0 6px 6px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.way h3 { font-size: 22px; }
.way p { font-size: 15px; line-height: 1.55; color: var(--ink-75); }
.way .btn { margin-top: auto; align-self: flex-start; }

.budget-bar { margin-top: 40px; }
.budget-bar__labels { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.budget-bar__track { display: flex; height: 34px; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.budget-bar__seg { display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-body); }

.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.scenario { background: #fff; border-top: 3px solid var(--ink); border-radius: 0 0 6px 6px; overflow: hidden; }
.scenario--recommended { border-top: 6px solid var(--yellow); }
.scenario__head { padding: 20px 22px 16px; border-bottom: 1px solid rgba(28, 28, 30, 0.15); }
.scenario__head .tag { display: inline-block; font: 700 11px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; background: var(--yellow); padding: 3px 8px; border-radius: 3px; margin-bottom: 8px; }
.scenario__head h3 { font-size: 22px; }
.scenario__head .amount { font: 34px var(--font-display); color: var(--blue); margin-top: 4px; }
.scenario__head .sub { font-size: 13.5px; color: var(--ink-60); margin-top: 4px; }
.scenario__body { padding: 16px 22px 22px; }
.scenario__body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-75); }

.give-card { background: var(--yellow); border-radius: 8px; padding: 34px 30px; position: sticky; top: 32px; }
.give-card h3 { font-size: 27px; }
.give-card > p { font-size: 15px; color: var(--ink-75); margin: 12px 0 20px; }
.tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(28, 28, 30, 0.08);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  transition: background 0.15s;
}
.tier:hover { background: rgba(28, 28, 30, 0.14); }
.tier .amount { font: 20px var(--font-display); white-space: nowrap; }
.give-card .btn { width: 100%; margin-top: 10px; }

/* ---------- Contact form (dark blue block) ---------- */
.contact-block > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.contact-block { background: var(--blue); border-radius: 10px; color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; }
.contact-block h2 { font-size: 34px; }
.contact-block .intro { color: var(--paper-85); margin-top: 16px; }
.contact-block .locations { margin-top: 26px; font-size: 14.5px; color: var(--paper-85); }
.contact-block .locations strong { color: var(--paper); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font: 700 12px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; color: var(--paper-85); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: rgba(246, 244, 238, 0.1);
  border: 1.5px solid rgba(246, 244, 238, 0.4);
  border-radius: 5px;
  color: var(--paper);
  font: 15px var(--font-body);
  padding: 11px 13px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(246, 244, 238, 0.5); }
.form-field select { appearance: none; }
.form-field select option { color: var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.form-note { font-size: 13px; color: var(--paper-70); margin-top: 10px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--yellow); border-radius: 10px; padding: 48px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: 30px; }
.newsletter p { font-size: 15px; color: var(--ink-75); margin-top: 10px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  font: 15px var(--font-body);
  padding: 12px 14px;
  background: #fff;
}
.newsletter .fine { font-size: 12.5px; color: var(--ink-60); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper-70); }
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 44px;
}
.site-footer .brand img { height: 34px; opacity: 0.95; }
.site-footer .brand p { font-size: 14px; margin-top: 16px; max-width: 300px; }
.site-footer .brand .swahili { font-style: italic; color: var(--yellow); margin-top: 12px; font-size: 14px; }
.site-footer h4 { font: 700 12.5px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14.5px; }
.site-footer a { color: var(--paper-70); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .bottom {
  border-top: 1px solid rgba(246, 244, 238, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 13px;
}

/* ---------- Misc ---------- */
.tick-list { list-style: none; margin-top: 20px; }
.tick-list li { padding: 9px 0 9px 32px; position: relative; color: var(--ink-75); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}
.mascot-divider { display: flex; justify-content: center; padding: 8px 0 0; }
.mascot-divider img { height: 64px; }

.risk-card { background: #fff; border-top: 3px solid var(--ink); border-radius: 0 0 6px 6px; padding: 26px; }
.risk-card h3 { font-size: 20px; }
.risk-card .risk { font-size: 14.5px; color: var(--ink-75); margin-top: 10px; }
.risk-card .risk strong { color: var(--red); font-weight: 700; }
.risk-card .plan { font-size: 14.5px; color: var(--ink-75); margin-top: 8px; }
.risk-card .plan strong { color: var(--blue); font-weight: 700; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --pad-x: 32px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .chain, .chain--3 { grid-template-columns: 1fr; }
  .chain__step { margin-right: 0; margin-bottom: 22px; }
  .chain__step::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .chain__step:last-child { margin-bottom: 0; }
  .split, .split--even { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .contact-block { grid-template-columns: 1fr; padding: 40px 32px; }
  .doodle-arrow { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .give-card { position: static; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  /* Keep the Swahili tagline on mobile (client request) — only the English
     gloss is dropped, so the phrase and Contact still fit on one line. */
  .utility .tagline__gloss { display: none; }
  /* Tighten the chrome above the fold on phones. The logo stays at 44px — it renders
     144px wide and the brand sheet's minimum for the horizontal lockup is 140px, so the
     space has to come out of padding, not the mark. */
  .utility .wrap { gap: 16px; padding-top: 5px; padding-bottom: 5px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 12px 24px rgba(28, 28, 30, 0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px var(--pad-x); font-size: 17px; }
  .main-nav a.active { border-bottom: none; border-left: 4px solid var(--yellow); padding-left: calc(var(--pad-x) - 4px); }
  .main-nav .btn { margin: 12px var(--pad-x) 0; }
  .nav-toggle { display: block; }

  /* Portrait can't carry the desktop overlay. Scaled to cover a narrow, tall hero the
     photo has zero vertical crop room, so the box always covers the people — on a 393px
     phone it hid 75% of the image and left only wall and a poster showing, plus two 20px
     slivers of photo down the sides. So on small screens the hero stacks: a photo band
     cropped for portrait (--hero-img-mobile), then the content box full-bleed beneath it. */
  .hero { background-image: none; }
  .hero::before {
    content: "";
    display: block;
    height: 320px;
    /* Small tablets keep the wide original: it is a landscape composition and suits a
       wide, shallow band. Phones swap to the close crop below — see the 600px rule. */
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
  }
  .hero > .wrap { min-height: 0; padding-left: 0; padding-right: 0; }
  .hero__box { position: static; width: auto; max-width: none; padding: 0; }
  .hero__title { font-size: 32px; padding: 28px 26px 24px; }
  .hero__body { padding: 22px 26px 26px; }

  .page-hero h1 { font-size: 34px; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 28px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .stat__num { font-size: 72px; }
  .stats--pilot, .split .stats--pilot { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats--pilot .stat__num { font-size: 52px; }
  .stats--pilot .stat__num--text { font-size: 24px; min-height: 52px; }
  .ways { grid-template-columns: 1fr; }
  .cards-4, .cards-3, .phases, .scenarios, .advisors { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__copy { padding: 52px var(--pad-x); }
  .cta-band__photo { min-height: 260px; }
  .photo-band { height: 280px; }
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .founder__photo img { max-width: 280px; }
  .year-row { grid-template-columns: 1fr; gap: 8px; }
  .newsletter { grid-template-columns: 1fr; padding: 36px 28px; }
  .newsletter form { flex-direction: column; }
  .quote-band blockquote { font-size: 21px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .bottom { flex-direction: column; align-items: flex-start; }
}

/* Phones: swap to the close crop. In a narrow band the wide original scales down so far
   that the people become incidental — this crop is composed around the three faces and
   the book, so the photo still reads at 393px. */
@media (max-width: 600px) {
  .hero::before {
    height: 300px;
    background-image: var(--hero-img-mobile, var(--hero-img));
  }
}

@media (max-width: 480px) {
  :root { --pad-x: 20px; }
  .btn-row .btn { width: 100%; }
}
