/* ==========================================================================
   Hillare Educational Foundation — design tokens
   Palette derived from the HEF brochure: forest/olive green, earth brown,
   white paper. Millet gold is a restrained supporting accent (brochure icons).
   ========================================================================== */

:root {
  /* Colour */
  --c-forest: #2e3b2b;
  --c-forest-deep: #1c251b;
  --c-olive: #5b6842;
  --c-olive-soft: #a7b18c;
  --c-sage: #e6eadd;
  --c-earth: #6f4a36;
  --c-earth-deep: #56392a;
  --c-millet: #e2ae4a;
  --c-millet-bright: #edbf62;
  --c-paper: #faf8f3;
  --c-ink: #1b2219;
  --c-ink-muted: #4e574b;
  --c-light: #f3f1e8;

  /* Type families */
  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* Type scale (fluid) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-ui: 1rem;
  --fs-body: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --fs-lead: clamp(1.1875rem, 1.04rem + 0.6vw, 1.5rem);
  --fs-h4: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.18rem + 0.8vw, 1.875rem);
  --fs-d3: clamp(1.75rem, 1.3rem + 1.9vw, 2.875rem);
  --fs-d2: clamp(2.125rem, 1.35rem + 3.2vw, 4.375rem);
  --fs-d1: clamp(2.5rem, 1.2rem + 5.4vw, 6.25rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(4.5rem, 2.4rem + 7vw, 9.5rem);
  --gutter: clamp(1.25rem, 0.55rem + 3vw, 3.5rem);
  --col-gap: clamp(1.25rem, 0.5rem + 2.4vw, 3rem);
  --max: 78rem;

  /* Shape — one soft "arch" corner on editorial photography, crisp elsewhere */
  --arch: clamp(3rem, 0.8rem + 8vw, 9rem);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 240ms;

  --header-h: 4.5rem;
}

@media (min-width: 64em) {
  :root { --header-h: 5.25rem; }
}

/* Section themes: every surface sets its own foreground, rules, focus and CTA colours */
:root,
.theme-paper {
  --bg: var(--c-paper);
  --fg: var(--c-ink);
  --fg-muted: var(--c-ink-muted);
  --rule: rgb(27 34 25 / 0.16);
  --heading: var(--c-forest);
  --link: var(--c-earth);
  --tab-bg: var(--c-earth);
  --tab-fg: #fff;
  --btn-bg: var(--c-earth);
  --btn-bg-hover: var(--c-earth-deep);
  --btn-fg: #fff;
  --focus: var(--c-forest);
}

.theme-sage {
  --bg: var(--c-sage);
  --fg: var(--c-ink);
  --fg-muted: #475045;
  --rule: rgb(27 34 25 / 0.2);
  --heading: var(--c-forest);
  --link: var(--c-earth-deep);
  --tab-bg: var(--c-earth);
  --tab-fg: #fff;
  --btn-bg: var(--c-earth);
  --btn-bg-hover: var(--c-earth-deep);
  --btn-fg: #fff;
  --focus: var(--c-forest);
}

.theme-forest,
.theme-deep {
  --bg: var(--c-forest);
  --fg: var(--c-light);
  --fg-muted: rgb(243 241 232 / 0.8);
  --rule: rgb(243 241 232 / 0.2);
  --heading: #fff;
  --link: var(--c-millet);
  --tab-bg: var(--c-millet);
  --tab-fg: var(--c-forest-deep);
  --btn-bg: var(--c-millet);
  --btn-bg-hover: var(--c-millet-bright);
  --btn-fg: var(--c-forest-deep);
  --focus: var(--c-millet);
}

.theme-deep { --bg: var(--c-forest-deep); }

.theme-earth {
  --bg: var(--c-earth);
  --fg: #fbf6f0;
  --fg-muted: rgb(251 246 240 / 0.84);
  --rule: rgb(251 246 240 / 0.26);
  --heading: #fff;
  --link: #fff;
  --tab-bg: var(--c-paper);
  --tab-fg: var(--c-earth-deep);
  --btn-bg: var(--c-paper);
  --btn-bg-hover: #fff;
  --btn-fg: var(--c-earth-deep);
  --focus: var(--c-millet);
}

[class*="theme-"] {
  background-color: var(--bg);
  color: var(--fg);
}

/* ==========================================================================
   Base: reset, typography, focus, utilities, motion
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading, var(--c-forest));
  text-wrap: balance;
}

h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; }

p { text-wrap: pretty; }

a { color: var(--link, var(--c-earth)); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--c-millet); color: var(--c-forest-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus, var(--c-forest));
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Display headlines: the brochure's heavy/light weight contrast ---- */
.display-1,
.display-2,
.display-3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.028em;
}
.display-1 strong,
.display-2 strong,
.display-3 strong { font-weight: 800; }

.display-1 { font-size: var(--fs-d1); line-height: 0.98; }
.display-2 { font-size: var(--fs-d2); line-height: 1.02; }
.display-3 { font-size: var(--fs-d3); line-height: 1.08; letter-spacing: -0.02em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg);
}

.muted { color: var(--fg-muted); }

.prose > * + * { margin-top: 1.1em; }
.prose { max-width: 38rem; }
.prose p { color: var(--fg); }

.ui-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Accessibility helpers ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--c-millet);
  color: var(--c-forest-deep);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---- Scroll reveal ----
   Content is visible by default. main.js marks everything already on screen as
   visible, then adds .reveal-on so only content below the fold animates in. */
.reveal {
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-on .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .reveal-on .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* ==========================================================================
   Layout primitives & shared components
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-arrow { transition: transform var(--dur) var(--ease); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgb(27 34 25 / 0.1);
  box-shadow: 0 10px 30px -24px rgb(27 34 25 / 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  min-height: 44px;
  color: var(--c-forest);
  text-decoration: none;
}
.brand__mark { width: 3.1rem; height: auto; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.12;
}
.brand__first { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__rest { font-size: 0.75rem; font-weight: 600; color: var(--c-ink-muted); letter-spacing: 0.01em; }

@media (min-width: 64em) {
  .brand__mark { width: 3.6rem; }
  .brand__first { font-size: 1.25rem; }
  .brand__rest { font-size: 0.8125rem; }
}

.site-nav { display: none; }

.site-nav ul { display: flex; gap: 0.15rem; }
.site-nav a {
  position: relative;
  display: block;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.4rem;
  height: 2px;
  background: var(--c-earth);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.site-nav a:hover { color: var(--c-forest); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--c-forest); font-weight: 600; }

.site-header .site-header__cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  background: transparent;
  border: 1.5px solid rgb(27 34 25 / 0.22);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-forest);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.menu-toggle:hover { border-color: var(--c-forest); }
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 300ms var(--ease), top 300ms var(--ease);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: var(--s-5) var(--s-7);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }

.mobile-menu__inner { display: grid; gap: var(--s-6); }
.mobile-menu__links { border-top: 1px solid var(--rule); }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-decoration: none;
}
.mobile-menu__links a[aria-current="page"] { color: var(--c-millet); }
.mobile-menu__contact { display: grid; gap: 0.25rem; }
.mobile-menu__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
}

@media (min-width: 48em) {
  .site-header .site-header__cta { display: inline-flex; min-height: 2.75rem; padding: 0.6em 1.1em; }
}

@media (min-width: 75em) {
  .site-header__inner { gap: var(--s-5); }
  .site-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---- Buttons & links ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.8em 1.35em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }

.btn--ghost { background: transparent; color: var(--fg); border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color var(--dur) var(--ease);
}
.link-arrow:hover { text-decoration-color: transparent; }
.link-arrow:hover .icon-arrow { transform: translateX(4px); }

/* ---- Brochure label tab ---- */
.tab {
  display: inline-block;
  margin: 0;
  padding: 0.6em 0.85em 0.55em;
  background: var(--tab-bg);
  color: var(--tab-fg);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tab + h1,
.tab + h2,
.tab + .display-2,
.tab + .display-3 { margin-top: var(--s-5); }

/* ---- Section heads ---- */
.section-head { margin-bottom: clamp(2.5rem, 1.4rem + 4vw, 5rem); }
.section-head--split { display: grid; gap: var(--s-5); }
.section-head--split > p { max-width: 32rem; }

@media (min-width: 64em) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--col-gap);
    align-items: end;
  }
}

/* ---- Editorial photography: one soft "arch" corner ---- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--arch) 0 0 0;
  background: rgb(27 34 25 / 0.08);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(27 34 25 / 0.08);
  pointer-events: none;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.reveal img { transition: transform 1600ms var(--ease); }
.reveal-on .photo.reveal:not(.is-visible) img { transform: scale(1.06); }

/* A full arch (doorway) for single portraits */
.photo--portrait { border-radius: 999px 999px var(--radius) var(--radius); }

/* ---- Lists ---- */
.check-list { border-top: 1px solid var(--rule); }
.check-list li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2.1rem;
  border-bottom: 1px solid var(--rule);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.45rem;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2px solid var(--c-olive);
  border-bottom: 2px solid var(--c-olive);
  transform: rotate(-45deg);
}

.rule-list { border-top: 1px solid var(--rule); }
.rule-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
}

/* ---- Inner page hero ---- */
.page-hero { padding-block: clamp(3.25rem, 1.8rem + 5vw, 7rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.page-hero__grid { display: grid; gap: var(--s-6); }
.page-hero h1 { max-width: 17ch; }
.page-hero__lead,
.page-hero__lead .lead { color: var(--fg-muted); }
.page-hero__lead { max-width: 34rem; }

@media (min-width: 64em) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--col-gap);
    align-items: end;
  }
}

.jump-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: var(--s-5); }
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-millet);
  text-decoration: none;
}
.jump-links .icon-arrow { transform: rotate(90deg); }
.jump-links a:hover .icon-arrow { transform: rotate(90deg) translateX(3px); }

/* ---- CTA band ---- */
.cta-band { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.cta-band__inner { display: grid; gap: var(--s-6); align-items: end; }
.cta-band h2 { max-width: 22ch; }

@media (min-width: 64em) {
  .cta-band__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--col-gap); }
  .cta-band .btn-row { justify-content: flex-end; }
}

/* ---- Footer ---- */
.site-footer { padding-top: clamp(4rem, 2.5rem + 5vw, 7.5rem); }

.prefooter {
  display: grid;
  gap: var(--s-6);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}
.prefooter__title { max-width: 14ch; }
/* The contact page already leads with these details */
body[data-page="contact"] .prefooter,
[data-route-current="contact"] .prefooter { display: none; }
.prefooter__links { display: grid; gap: var(--s-5); }
.prefooter__links li { display: grid; gap: 0.2rem; }
.prefooter__links .ui-label { color: var(--fg-muted); }
.prefooter__links a {
  justify-self: start;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.95rem + 1.3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease);
}
.prefooter__links a:hover { color: var(--c-millet); }

@media (min-width: 64em) {
  .prefooter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--col-gap); align-items: end; }
}

.site-footer__main {
  display: grid;
  gap: var(--s-6) var(--col-gap);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
@media (min-width: 40em) {
  .site-footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .site-footer__main { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: auto; }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
}
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-paper);
}
.footer-brand__mark img { width: 3.35rem; }
.footer-brand__name {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}
.site-footer__about p { margin-top: var(--s-5); max-width: 36ch; font-size: var(--fs-sm); color: var(--fg-muted); }
.site-footer__about .btn { margin-top: var(--s-5); }

.site-footer__col h3 { color: var(--fg-muted); }
.site-footer__col ul { margin-top: var(--s-3); }
.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer__col a:hover { color: var(--c-millet); }
.site-footer address {
  margin-top: var(--s-4);
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg);
}

.site-footer__legal {
  padding-block: var(--s-5);
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

/* ==========================================================================
   Page compositions
   ========================================================================== */

/* ---------- Shared 12-column editorial grid (desktop) ---------- */
@media (min-width: 64em) {
  .home-about__grid,
  .home-work__grid,
  .home-people__grid,
  .home-target__grid,
  .home-founder__grid,
  .story__grid,
  .approach__grid,
  .context__grid,
  .workplan__grid,
  .school__grid,
  .outcomes__grid,
  .involve__grid,
  .involve-partner__grid,
  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}

/* ================= HOME ================= */

/* Hero: forest field; photograph straddles into the paper below */
.home-hero {
  --overlap: clamp(4.5rem, 1.5rem + 10vw, 13rem);
  padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  background: linear-gradient(
    to bottom,
    var(--c-forest) 0,
    var(--c-forest) calc(100% - var(--overlap)),
    var(--c-paper) calc(100% - var(--overlap))
  );
}

.home-hero__grid {
  display: grid;
  gap: var(--s-6);
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}


.home-hero h1 {
  font-size: clamp(2.5rem, 1rem + 3.7vw, 4.625rem);
  line-height: 1;
  max-width: 16ch;
}

.home-hero__aside .lead {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 36ch;
}
.home-hero__aside .btn-row { margin-top: var(--s-5); }
.home-hero__aside .btn { flex: 1 1 13rem; }

.home-hero__media {
  margin: 0 0 0 max(var(--gutter), calc((100% - var(--max)) / 2));
}
.photo--hero { aspect-ratio: 4 / 3; border-radius: var(--arch) 0 0 0; }
.photo--hero img { object-position: 50% 70%; }

@media (min-width: 40em) {
  .photo--hero { aspect-ratio: 16 / 10; }
}

@media (min-width: 64em) {
  .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }
  .home-hero__heading { grid-column: 1 / span 8; }
  .home-hero__aside { grid-column: 9 / -1; padding-bottom: 0.4rem; }
  .home-hero__aside .btn { flex: 0 0 auto; }
  .photo--hero { aspect-ratio: 1.85; max-height: 46rem; }
  .photo--hero img { object-position: 50% 80%; }
}

/* Load choreography: heading, then aside, then the photo opens upward */
@media (prefers-reduced-motion: no-preference) {
  .js .home-hero__heading { animation: rise 900ms var(--ease) both; }
  .js .home-hero__aside { animation: rise 900ms var(--ease) 140ms both; }
  .js .photo--hero { animation: open 1300ms var(--ease) 220ms both; }
  .js .photo--hero img { animation: settle 1800ms var(--ease) 220ms both; }
}
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes open { from { clip-path: inset(18% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }

/* About intro */
.home-about { padding-top: clamp(3.5rem, 2rem + 5vw, 7rem); }
.home-about__grid { display: grid; gap: var(--s-6); }
.home-about__body .link-arrow { margin-top: var(--s-2); }

@media (min-width: 64em) {
  .home-about__head { grid-column: 1 / span 5; }
  .home-about__body { grid-column: 7 / -1; padding-top: 3.4rem; }
}

.ledger {
  display: grid;
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--rule);
}
.ledger__item {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
}
.ledger dt {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-forest);
}
.ledger dd { max-width: 30ch; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-muted); }

@media (min-width: 40em) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
}
@media (min-width: 64em) {
  .ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .ledger__item { padding: var(--s-5) var(--s-5) 0 0; border-bottom: 0; }
  .ledger__item + .ledger__item { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
}

/* What we do */
.home-work__grid { display: grid; gap: var(--s-7); }
.home-work__text { margin-top: var(--s-5); max-width: 36ch; color: var(--fg-muted); }
.home-work__photo { margin-top: var(--s-6); aspect-ratio: 16 / 10; }
.home-work__photo img { object-position: 35% 50%; }

@media (min-width: 64em) {
  .home-work__intro { grid-column: 1 / span 5; }
  .home-work__sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .row-list { grid-column: 7 / -1; align-self: start; }
}

.row-list { border-top: 1px solid var(--rule); }
.row-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s-5);
  row-gap: 0.5rem;
  padding-block: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}
.row-link__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--heading);
  transition: color var(--dur) var(--ease);
}
.row-link__text { grid-column: 1; max-width: 46ch; font-size: var(--fs-sm); color: var(--fg-muted); }
.row-link__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgb(27 34 25 / 0.25);
  border-radius: 50%;
  color: var(--c-earth);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.row-link:hover .row-link__title { color: var(--c-earth); }
.row-link:hover .row-link__icon { background: var(--c-earth); border-color: var(--c-earth); color: #fff; }
.row-link:hover .icon-arrow { transform: translateX(2px); }

/* Who we serve */
.home-people__grid { display: grid; gap: var(--s-7); }
.home-people__note {
  margin-top: var(--s-5);
  max-width: 34ch;
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.45;
  color: var(--fg-muted);
}

@media (min-width: 64em) {
  .home-people__head { grid-column: 1 / span 5; }
  .people-list { grid-column: 7 / -1; align-self: end; }
}

.people-list { border-top: 1px solid var(--rule); }
.people-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  padding-block: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.people-list__name {
  font-family: var(--font-display);
  font-size: var(--fs-d3);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}
.people-list__note { max-width: 24ch; font-size: var(--fs-sm); line-height: 1.45; color: var(--fg-muted); }

/* Target */
.home-target__grid { display: grid; gap: var(--s-7); }
.target__figure {
  margin-block: var(--s-4) var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(7.5rem, 3.5rem + 16vw, 17rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--c-forest);
}
.target__pct {
  margin-left: 0.04em;
  font-size: 0.42em;
  font-weight: 300;
  letter-spacing: 0;
  vertical-align: 0.95em;
  color: var(--c-earth);
}
.target__label {
  max-width: 24ch;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-ink);
}
.home-target__list-title { color: var(--c-earth); margin-bottom: var(--s-4); }
.home-target__list .link-arrow { margin-top: var(--s-5); }

@media (min-width: 64em) {
  .target { grid-column: 1 / span 6; }
  .home-target__list { grid-column: 8 / -1; align-self: end; }
}

/* Quote band */
.quote-band { display: grid; }
.quote-band__media { aspect-ratio: 4 / 3; }
.quote-band__media img { object-position: 45% 55%; }
.quote-band__body { display: flex; align-items: center; padding: var(--section) var(--gutter); }
.quote p {
  max-width: 22ch;
  font-family: var(--font-text);
  font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.75rem);
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-indent: -0.42em;
  color: #fff;
}
.quote footer { margin-top: var(--s-5); color: var(--fg-muted); }

@media (min-width: 64em) {
  .quote-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(34rem, 52vw, 46rem); }
  .quote-band__body {
    grid-column: 1;
    grid-row: 1;
    padding-left: max(var(--gutter), calc(50vw - var(--max) / 2));
    padding-right: var(--col-gap);
  }
  .quote-band__media { grid-column: 2; grid-row: 1; aspect-ratio: auto; }
}

/* Founder */
.home-founder__grid { display: grid; gap: var(--s-6); align-items: center; }
.home-founder__photo { width: min(100%, 24rem); aspect-ratio: 4 / 5; }
.home-founder__photo img { object-position: 44% 40%; }
.home-founder__body .prose { margin-top: var(--s-5); }
.home-founder__body .link-arrow { margin-top: var(--s-5); }

@media (min-width: 64em) {
  .home-founder__photo { grid-column: 2 / span 4; width: 100%; }
  .home-founder__body { grid-column: 7 / -1; }
}

/* Get involved */
.home-involve__head { max-width: 48rem; }
.home-involve__head .lead { margin-top: var(--s-5); color: var(--fg-muted); }

.paths {
  display: grid;
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.path p { flex-grow: 1; max-width: 34ch; color: var(--fg-muted); }

@media (min-width: 64em) {
  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path { padding: var(--s-6) var(--s-6) 0 0; border-bottom: 0; }
  .path + .path { padding-left: var(--s-6); border-left: 1px solid var(--rule); }
}

/* ================= ABOUT ================= */

.story__grid { display: grid; gap: var(--s-7); }
.story__figure .photo { width: min(100%, 20rem); aspect-ratio: 4 / 5; }
.story__figure .photo img { object-position: 44% 40%; }
.story__figure figcaption { display: grid; gap: 0.15rem; margin-top: var(--s-4); }
.story__name { font-family: var(--font-display); font-weight: 700; color: var(--c-forest); }
.story__role { font-size: var(--fs-sm); color: var(--fg-muted); }
.story__prose { margin-top: var(--s-6); }
.story__prose .story__subhead { margin-top: 2.2em; font-size: var(--fs-h4); color: var(--c-forest); }

@media (min-width: 64em) {
  .story__aside { grid-column: 1 / span 4; }
  .story__figure { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .story__figure .photo { width: 100%; }
  .story__body { grid-column: 6 / -1; }
}

.mission__groups { display: grid; gap: var(--s-6) var(--col-gap); }
.mission__group { padding-top: var(--s-5); border-top: 2px solid var(--c-millet); }
.mission__group h3 { color: var(--c-millet); }
.mission__group ul { margin-top: var(--s-3); }
.mission__group li { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.mission__group li:last-child { border-bottom: 0; }

@media (min-width: 48em) { .mission__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .mission__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.goals__statement {
  margin-top: var(--s-6);
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.15rem + 2.9vw, 3.875rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--c-ink);
}
.goals__statement strong { font-weight: 800; color: var(--c-forest); }

.approach__grid { display: grid; gap: var(--s-6); }
.approach__head .muted { margin-top: var(--s-5); max-width: 30ch; }

@media (min-width: 64em) {
  .approach__head { grid-column: 1 / span 5; }
  .approach__head { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
  .rule-list { grid-column: 7 / -1; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--s-5);
}
.person__photo {
  width: 100%;
  max-width: 13rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--c-olive);
  border-radius: 50%;
  background: var(--c-sage);
}
.person__name { margin-top: var(--s-4); font-size: var(--fs-h4); color: var(--c-forest); }
.person__role { margin-top: 0.2rem; font-size: var(--fs-sm); color: var(--fg-muted); }

@media (min-width: 48em) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--col-gap); } }

.roles {
  display: grid;
  gap: var(--s-6);
  margin-top: clamp(4rem, 2.5rem + 5vw, 7rem);
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--rule);
}
.roles__head p { margin-top: var(--s-4); max-width: 34ch; }
.roles__list { border-top: 1px solid var(--rule); }
.roles__list div { display: grid; gap: 0.25rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.roles__list dt { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; color: var(--c-forest); }
.roles__list dd { color: var(--fg-muted); }

@media (min-width: 40em) {
  .roles__list div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--s-5); align-items: baseline; }
}
@media (min-width: 64em) {
  .roles { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); }
}

/* ================= PROGRAMMES ================= */

.context__grid { display: grid; gap: var(--s-6); align-items: center; }
.context__photo { aspect-ratio: 3 / 2; }
.context__body .prose { margin-top: var(--s-5); }

@media (min-width: 64em) {
  .context__photo { grid-column: 1 / span 6; }
  .context__body { grid-column: 8 / -1; }
}

.chapters { display: grid; padding-bottom: var(--section); }

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.6rem var(--gutter);
  overflow-x: auto;
  background: color-mix(in srgb, var(--c-paper) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--rule);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav__title { display: none; }
.subnav ul { display: flex; gap: 0.5rem; white-space: nowrap; }
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.subnav a:hover { border-color: var(--c-forest); }
.subnav a[aria-current="true"] { background: var(--c-forest); border-color: var(--c-forest); color: #fff; }

.chapter { padding-block: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.chapter:first-child { border-top: 0; }
.chapter__head { max-width: 44rem; }
.chapter__head .lead { margin-top: var(--s-4); color: var(--fg-muted); }
.chapter__photo { margin-top: var(--s-6); aspect-ratio: 16 / 9; }
.chapter__photo img { object-position: 40% 40%; }

@media (min-width: 64em) {
  .chapters { grid-template-columns: 14.5rem minmax(0, 1fr); column-gap: clamp(3rem, 1rem + 5vw, 7rem); }
  .chapter { scroll-margin-top: calc(var(--header-h) - 1rem); }
  .subnav {
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
    margin: clamp(3rem, 2rem + 4vw, 6rem) 0 0;
    padding: 0;
    overflow: visible;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
  }
  .subnav__title { display: block; margin-bottom: var(--s-4); color: var(--fg-muted); }
  .subnav ul { flex-direction: column; gap: 0; white-space: normal; border-left: 1px solid var(--rule); }
  .subnav a {
    min-height: 0;
    margin-left: -1px;
    padding: 0.6rem 0 0.6rem 1.1rem;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--fg-muted);
  }
  .subnav a:hover { color: var(--c-forest); border-color: var(--c-olive-soft); }
  .subnav a[aria-current="true"] { background: none; color: var(--c-forest); font-weight: 600; border-left-color: var(--c-earth); }
  .chapter__photo { aspect-ratio: 21 / 9; }
}

.facts { margin-top: var(--s-6); border-top: 1px solid var(--rule); }
.facts__row { display: grid; gap: 0.35rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.facts dt {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-earth);
}
.facts dd { max-width: 54ch; }

@media (min-width: 48em) {
  .facts__row { grid-template-columns: 12rem minmax(0, 1fr); column-gap: var(--s-6); align-items: baseline; }
}

.so-far { margin-top: var(--s-6); padding: var(--s-5) var(--s-5) var(--s-2); background: var(--c-sage); }
.so-far h3 { color: var(--c-forest); }
.so-far .check-list { margin-top: var(--s-3); border-top: 0; }
.so-far .check-list li:last-child { border-bottom: 0; }
.so-far .check-list li { border-color: rgb(27 34 25 / 0.14); }

/* Work plan timeline (a real sequence, so it is numbered) */
.workplan__grid { display: grid; gap: var(--s-7); }
.workplan__sticky .lead { margin-top: var(--s-5); max-width: 32ch; }

@media (min-width: 64em) {
  .workplan__head { grid-column: 1 / span 5; }
  .workplan__sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .timeline { grid-column: 7 / -1; }
}

.timeline { counter-reset: step; }
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: var(--s-5);
  padding-bottom: var(--s-6);
  counter-increment: step;
}
.timeline__step::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: calc(1.5rem - 0.75px);
  width: 1.5px;
  background: var(--rule);
}
.timeline__step::after {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--c-millet);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-millet);
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step:last-child::before { display: none; }
.timeline__activity {
  grid-column: 2;
  padding-top: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.timeline__owner { grid-column: 2; margin-top: 0.3rem; font-size: var(--fs-sm); color: var(--fg-muted); }

/* ================= IMPACT ================= */

.milestones { display: grid; }
.milestone { position: relative; padding: 0 0 var(--s-6) 2.25rem; }
.milestone::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: calc(0.5rem - 0.75px);
  width: 1.5px;
  background: var(--rule);
}
.milestone:last-child::before { display: none; }
.milestone::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--c-earth);
  box-shadow: 0 0 0 5px var(--c-paper);
}
.milestone__when {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-earth);
}
.milestone__title { margin-top: 0.5rem; }
.milestone__title + p { margin-top: 0.6rem; color: var(--fg-muted); }

@media (min-width: 64em) {
  .milestones { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .milestone { padding: 2.5rem 0 0; }
  .milestone::before {
    top: calc(0.5rem - 0.75px);
    bottom: auto;
    left: 0;
    right: calc(var(--col-gap) * -1);
    width: auto;
    height: 1.5px;
  }
  .milestone:last-child::before { display: block; right: 0; }
}

.school__grid { display: grid; gap: var(--s-7); }
.school__body .prose { margin-top: var(--s-5); }
.school__figures { border-top: 1px solid var(--rule); }
.figure {
  display: grid;
  gap: 0.35rem var(--s-5);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.figure__value {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2.2rem + 4vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-millet);
}
.figure__label { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; line-height: 1.3; color: #fff; }

@media (min-width: 40em) {
  .figure { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: baseline; }
}

@media (min-width: 64em) {
  .school__body { grid-column: 1 / span 6; }
  .school__figures { grid-column: 8 / -1; align-self: center; }
  .figure { grid-template-columns: 11rem minmax(0, 1fr); }
}

.outcomes__grid { display: grid; gap: var(--s-7); align-items: start; }
.outcomes__photo { aspect-ratio: 3 / 2; }
.outcome-list { margin-top: var(--s-6); border-top: 1px solid var(--rule); }
.outcome {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.35;
}
.outcome--lead { display: grid; gap: 0.4rem; padding-block: 1.5rem; }
.outcome__figure {
  font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--c-forest);
}
.outcome--lead .outcome__text { max-width: 26ch; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }

@media (min-width: 64em) {
  .outcomes__photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .outcomes__body { grid-column: 7 / -1; }
}

.phases { display: grid; gap: var(--s-6) var(--col-gap); }
.phase { padding-top: var(--s-5); border-top: 2px solid var(--c-forest); }
.phase__when { color: var(--c-earth); }
.phase h3 { margin-top: 0.5rem; }
.phase h3 + p { margin-top: 0.6rem; color: var(--fg-muted); }

@media (min-width: 48em) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ================= GET INVOLVED ================= */

.involve__grid { display: grid; gap: var(--s-7); align-items: center; }
.involve__photo { aspect-ratio: 4 / 3; }
.involve__photo img { object-position: 40% 50%; }
.involve__body .prose { margin-top: var(--s-5); }
.involve__body .btn-row { margin-top: var(--s-6); }

@media (min-width: 64em) {
  .involve__photo { grid-column: 1 / span 6; }
  .involve__body { grid-column: 8 / -1; }
}

.involve-partner__grid { display: grid; gap: var(--s-7); }
.involve-partner__body .prose { margin-top: var(--s-5); }
.involve-partner__body .btn-row { margin-top: var(--s-6); }
.involve-partner__list h3 { color: var(--c-millet); }

@media (min-width: 64em) {
  .involve-partner__body { grid-column: 1 / span 5; }
  .involve-partner__list { grid-column: 7 / -1; }
}

.big-list { margin-top: var(--s-4); border-top: 1px solid var(--rule); }
.big-list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}

.support-grid { display: grid; border-top: 1px solid var(--rule); }
.support-item { padding-block: var(--s-5); border-bottom: 1px solid var(--rule); }
.support-item h3 { font-size: var(--fs-h3); }
.support-item p { margin-top: 0.4rem; color: var(--fg-muted); }

@media (min-width: 48em) {
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-item { padding: var(--s-6) var(--s-6) var(--s-6) 0; }
  .support-item:nth-child(even) { padding-left: var(--s-6); border-left: 1px solid var(--rule); }
}

.give {
  display: grid;
  gap: var(--s-5);
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--arch) 0 0 0;
}
.give__text p { margin-top: var(--s-3); max-width: 44ch; color: var(--fg-muted); }
.give__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.give__actions .btn { flex: 1 1 14rem; }

@media (min-width: 64em) {
  .give { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-7); padding-left: clamp(3.5rem, 2rem + 4vw, 6rem); }
  .give__actions .btn { flex: 0 0 auto; }
}

/* ================= CONTACT ================= */

.contact__grid { display: grid; gap: var(--s-7); align-items: start; }

@media (min-width: 64em) {
  .contact__details { grid-column: 1 / span 5; }
  .contact__form { grid-column: 7 / -1; }
}

.contact-list { border-top: 1px solid var(--rule); }
.contact-list__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-sage);
  color: var(--c-forest);
}
.contact-list__icon .icon { width: 1.35rem; height: 1.35rem; }
.contact-list h2 { margin-bottom: 0.45rem; color: var(--c-earth); }
.contact-list address { font-style: normal; }
.contact-list .link-arrow { margin-top: 0.4rem; }
.contact-list__big {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list__big:hover { color: var(--c-earth); text-decoration: underline; text-underline-offset: 0.25em; }

.contact__form {
  padding: clamp(1.5rem, 0.9rem + 3vw, 3.5rem);
  border-radius: var(--arch) 0 0 0;
}
@media (min-width: 64em) {
  .contact__form { padding-left: clamp(3rem, 2rem + 3vw, 5rem); }
}
.form-intro { margin-top: var(--s-3); font-size: var(--fs-sm); }

.form { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-ink);
}
.field__optional { font-weight: 500; color: var(--fg-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid rgb(27 34 25 / 0.3);
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--c-ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgb(27 34 25 / 0.55); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--c-forest);
  box-shadow: 0 0 0 3px rgb(46 59 43 / 0.28);
}
.field [aria-invalid="true"] { border-color: #9a2f1c; }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(154 47 28 / 0.25); }
.field__error {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #9a2f1c;
}

.select { position: relative; }
.select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--c-forest);
  border-bottom: 2px solid var(--c-forest);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form__submit { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-2); }
.form__note { font-size: var(--fs-sm); max-width: 40ch; }
.form__status { font-family: var(--font-display); font-weight: 600; color: var(--c-forest); }
.form__status:empty { display: none; }
