/* Base: reset, typography, layout primitives, utilities */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Headings: DM Sans 400, sentence case, no tracking (reference) ---- */
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: normal;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.2381; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.3125; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.4; font-weight: 500; }
h5 { font-size: var(--fs-h5); line-height: 1.5; font-weight: 500; }

/* Signature device: emphasis by tone, never by weight */
h1 em, h2 em, h3 em, .h2 em, .h3 em { font-style: normal; color: var(--accent); }
.on-dark h1 em, .on-dark h2 em, .hero h1 em, .challenges h2 em, .impact__band h2 em, .cta-band h2 em { color: var(--accent-on-dark); }

/* ---- Layout ---- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 4vw, 56px) clamp(56px, 6vw, 96px); }
.section--tight-top { padding-top: clamp(56px, 6vw, 96px); padding-bottom: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--tint); }

.section-head { margin-bottom: clamp(40px, 4vw, 64px); }
.section-head h2, .section-head .h2 { margin-bottom: 0; }
.section-head--split {
  display: grid; gap: var(--s-5) var(--gap-lg);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
}
.section-head--split > :last-child { justify-self: start; }
.section-head--split > .btn:last-child { justify-self: end; margin-top: 0; }
.section-head--split .btn { margin-top: var(--s-5); }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--pad { padding-top: var(--section-y); }
.section-head__text { font-size: var(--fs-lead); line-height: 1.55; max-width: 560px; margin: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent-strong);
  margin: 0 0 var(--s-4);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--accent-on-dark); }
.section-head--center .eyebrow { justify-content: center; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.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: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: var(--r-pill);
  transition: top var(--t-ui) ease-out;
}
.skip-link:focus { top: 16px; }

/* Visible focus everywhere (missing in reference and on the current site) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .challenges :focus-visible, .impact__band :focus-visible,
.cta-band :focus-visible, .footer :focus-visible { outline-color: var(--accent-on-dark); }

/* Icons: Lucide at hairline weight (reference: 1–1.1px strokes) */
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- Reveal on scroll (reference: short horizontal/vertical slide + fade) ---- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease-reveal); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .section-head--split > .btn:last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
