/* ==========================================================================
   Inspired Air Fund
   Design system derived from "Inspired Air Fund Concepts 04" (Aug 7, 2026),
   design direction: Waves.

   Palette and type are taken directly from the deck:
     - colours sampled from the vector fills on the CORE ELEMENTS page
     - Domus Titling is the logo face (shipped as extracted vector art, so no
       webfont licence is required); Red Hat is the interface face
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Core palette — sampled from the branding deck */
  --ink:            #0B162A;   /* darkest navy: dark sections, footer        */
  --ink-2:          #14243D;   /* lifted navy for layering on ink            */
  --slate:          #33405C;   /* headings, logo wordmark                    */
  --slate-2:        #4A5573;   /* body copy on light grounds                 */
  --slate-3:        #6B7691;   /* captions, meta                             */

  --blue:           #5287ED;   /* primary brand blue                         */
  --blue-dk:        #3566CE;   /* hover / pressed                            */
  --blue-tint:      #EDF3FE;   /* faintest blue wash                         */
  --periwinkle:     #C7D7FC;

  --terracotta:     #E69165;
  --terracotta-dk:  #C55F31;
  --peach:          #F9D8C7;

  --gold:           #FFDA85;
  --pale-gold:      #FEF4BC;
  --gold-dk:        #A9700D;

  --green:          #66BA4A;
  --green-lt:       #ACD29F;
  --green-dk:       #3A7A2C;

  --orange:         #F77347;   /* Renaissance Philanthropy accent            */

  --paper:          #FFFFFF;
  --paper-2:        #F6F8FC;
  --line:           #E3EAF5;
  --line-2:         #CFD9EA;
  --line-dark:      rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text:    "Red Hat Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --shell: 1216px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 22, 42, .06), 0 2px 8px rgba(11, 22, 42, .05);
  --shadow-md: 0 2px 6px rgba(11, 22, 42, .06), 0 14px 34px rgba(11, 22, 42, .09);
  --shadow-lg: 0 4px 12px rgba(11, 22, 42, .07), 0 28px 64px rgba(11, 22, 42, .13);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-text);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.62;
  color: var(--slate-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

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

a { color: var(--blue-dk); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--periwinkle); color: var(--ink); }

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--slate);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.021em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.15rem + 4.4vw, 4.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 1.05rem + 2.5vw, 2.85rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.2rem, 1.03rem + .62vw, 1.5rem); letter-spacing: -.018em; }
h4 { font-size: 1.0625rem; letter-spacing: -.012em; }

p { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

strong, b { font-weight: 700; color: var(--slate); }

.eyebrow {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--terracotta-dk);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.09rem, 1rem + .42vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate-2);
}

.measure    { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--paper2 { background: var(--paper-2); }

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, .76);
}
.section--ink :is(h1, h2, h3, h4) { color: #fff; }
.section--ink a { color: #fff; }

.rule { height: 1px; background: var(--line); border: 0; }

.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { max-width: 30ch; }
.section-head .lede { margin-top: 1.1rem; max-width: 60ch; }

/* --------------------------------------------------------------------------
   5. Wave motif
   -------------------------------------------------------------------------- */

/* The wave art is generated vector (see assets/waves). Rendered as a
   background-image it stays crisp at any zoom or pixel density. */
.wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.wave--hero  { background-image: url("../assets/waves/wave-hero.svg"); }
.wave--navy  { background-image: url("../assets/waves/wave-navy.svg"); }
.wave--tint  { background-image: url("../assets/waves/wave-tint.svg"); }
.wave--blue  { background-image: url("../assets/waves/wave-on-blue.svg"); }

/* Thin the field out across the text column, full strength at the trailing edge */
.wave--masked {
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.6) 72%, #000 100%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.6) 72%, #000 100%);
}

/* Canvas enhancement: when JS is available the hero field breathes gently.
   The SVG stays behind it as the no-JS / reduced-motion baseline. */
.wave-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.wave-canvas.is-live { opacity: 1; }
.wave-canvas.is-live + .wave--hero { opacity: 0; transition: opacity .9s var(--ease); }

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.008em;
  padding: .84rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(82, 135, 237, .28), 0 12px 26px rgba(82, 135, 237, .22);
}
.btn--primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--slate);
}
.btn--ghost:hover { border-color: var(--slate); background: var(--paper-2); }

.btn--on-ink {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--on-ink:hover { background: var(--periwinkle); border-color: var(--periwinkle); }

.btn--ghost-on-ink {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.btn--ghost-on-ink:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  align-items: center;
}

/* Underlined text link, per the deck's "Learn more" treatment */
.link-underline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 2.5px solid var(--orange);
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-underline:hover {
  color: var(--terracotta-dk);
  border-color: var(--terracotta-dk);
  text-decoration: none;
}
.section--ink .link-underline { color: #fff; }
.section--ink .link-underline:hover { color: var(--gold); border-color: var(--gold); }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-dk);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 78px;
  padding-block: .7rem;
}

.brand { flex: none; display: block; }
.brand img { width: clamp(116px, 12vw, 146px); }

.nav { margin-inline-start: auto; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.9vw, 1.9rem);
  padding: 0;
}
.nav-list a {
  font-family: var(--font-display);
  font-size: .945rem;
  font-weight: 600;
  color: var(--slate);
  padding-block: .4rem;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.nav-list a:hover { text-decoration: none; color: var(--blue-dk); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* Outbound link (Substack) reads as leaving the site */
.nav-list a[target="_blank"] { display: inline-flex; align-items: center; gap: .3rem; }
.nav-list a[target="_blank"] svg { width: 11px; height: 11px; opacity: .6; }

.program-of {
  flex: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-inline-start: clamp(.75rem, 2vw, 1.5rem);
  border-inline-start: 1px solid var(--line);
}
.program-of span {
  font-size: .66rem;
  line-height: 1.25;
  color: var(--slate-3);
  letter-spacing: .015em;
  max-width: 8ch;
}
.program-of img { width: 108px; }

/* Mobile navigation */
.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .55rem .7rem;
  cursor: pointer;
  color: var(--slate);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .program-of { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    margin: 0;
  }
  .nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: .95rem 0; font-size: 1.02rem; }
  .nav-list a::after { display: none; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero::after {                    /* soft wash so the wave never fights text */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #fff 0%, rgba(255,255,255,.94) 38%, rgba(255,255,255,0) 62%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { color: var(--slate); }
.hero h1 .ln { display: block; }
.hero .lede { margin-top: 1.5rem; max-width: 46ch; }
.hero .btn-row { margin-top: 2rem; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 42% 40%;
}
/* small floating stat, echoes the deck's layered cards */
.hero-chip {
  position: absolute;
  bottom: -1.1rem;
  left: -1.1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .95rem 1.15rem;
  display: flex;
  align-items: baseline;
  gap: .55rem;
  max-width: 15rem;
}
.hero-chip b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
  flex: none;
}
.hero-chip span { font-size: .82rem; line-height: 1.3; color: var(--slate-2); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .hero-chip { left: auto; right: .75rem; bottom: -1rem; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
  }
}

/* --------------------------------------------------------------------------
   10. Stat cards (four brand colourways with wave texture)
   -------------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 1.6vw, 1.25rem);
}

.stat {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  min-height: 15.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.stat--peach::before      { background-image: url("../assets/waves/wave-card-peach.svg"); }
.stat--periwinkle::before { background-image: url("../assets/waves/wave-card-periwinkle.svg"); }
.stat--gold::before       { background-image: url("../assets/waves/wave-card-gold.svg"); }
.stat--green::before      { background-image: url("../assets/waves/wave-card-green.svg"); }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 2.1vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
  color: var(--ink);
}
.stat p {
  margin-top: .7rem;
  font-size: .9rem;
  line-height: 1.42;
  color: var(--slate);
}
.stat cite {
  display: block;
  margin-top: .7rem;
  font-size: .72rem;
  font-style: normal;
  color: var(--slate-2);
  opacity: .75;
}

@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } .stat { min-height: 0; } }

/* --------------------------------------------------------------------------
   11. Generic cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.15rem);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.card h3 { margin-bottom: .8rem; }
.card--lift:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Audience card: a coloured spine on the leading edge */
.card--audience { border-top: 4px solid var(--blue); }
.card--audience:nth-of-type(2) { border-top-color: var(--terracotta); }

/* Numbered obstacle list */
.obstacle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.1rem;
  padding-block: clamp(1.3rem, 2.4vw, 1.8rem);
  border-top: 1px solid var(--line);
}
.obstacle:last-child { border-bottom: 1px solid var(--line); }
.obstacle .num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--blue);
  padding-top: .3rem;
  font-variant-numeric: tabular-nums;
}
.obstacle h3 { margin-bottom: .45rem; }
.obstacle p { max-width: 68ch; }

/* Programme cards */
.programme {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.programme .tag {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dk);
}
.programme h3 { margin: 0; }
.programme p { font-size: .96rem; }
.programme .meta {
  margin-top: auto;
  padding-top: .4rem;
  font-size: .8rem;
  color: var(--slate-3);
}

/* --------------------------------------------------------------------------
   12b. Three pillars — health, learning, pandemic resilience
   -------------------------------------------------------------------------- */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
@media (max-width: 940px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.pillar-top {
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.pillar-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: .85;
}
.pillar--health   .pillar-top::before { background-image: url("../assets/waves/wave-card-peach.svg"); }
.pillar--learning .pillar-top::before { background-image: url("../assets/waves/wave-card-periwinkle.svg"); }
.pillar--pandemic .pillar-top::before { background-image: url("../assets/waves/wave-card-green.svg"); }

.pillar-top .kicker {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: .75;
}
.pillar-top h3 { margin-top: .5rem; color: var(--ink); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); }

.pillar-body { padding: clamp(1.35rem, 2.4vw, 1.8rem); display: grid; gap: 1rem; }
.pillar-body ul { list-style: none; padding: 0; display: grid; gap: .95rem; }
.pillar-body li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: .95rem;
  line-height: 1.55;
}
.pillar-body li::before {
  content: "";
  position: absolute;
  left: .2rem; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.pillar-body li b { color: var(--slate); font-weight: 700; }

/* --------------------------------------------------------------------------
   12c. Why schools — numbered reasons
   -------------------------------------------------------------------------- */

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.4vw, 1.75rem); }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; } }

.reason {
  border-top: 3px solid var(--blue);
  padding-top: 1.2rem;
}
.reason .n {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dk);
}
.reason h3 { margin: .5rem 0 .55rem; font-size: 1.14rem; }
.reason p { font-size: .95rem; }
.reasons .reason:nth-child(2) { border-top-color: var(--terracotta); }
.reasons .reason:nth-child(2) .n { color: var(--terracotta-dk); }
.reasons .reason:nth-child(3) { border-top-color: var(--green); }
.reasons .reason:nth-child(3) .n { color: var(--green-dk); }

/* --------------------------------------------------------------------------
   13. Evidence library
   -------------------------------------------------------------------------- */

/* Headline findings pulled out above the filterable library */
.headline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 1.8vw, 1.25rem); }
@media (max-width: 980px) { .headline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .headline-grid { grid-template-columns: 1fr; } }

.headline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2vw, 1.4rem);
  background: var(--paper);
}
.headline b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--blue);
}
.headline p { margin-top: .6rem; font-size: .9rem; line-height: 1.45; color: var(--slate-2); }

/* Filter chips */
.ev-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.chip {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease);
}
.chip:hover { border-color: var(--slate-3); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip .count { opacity: .55; font-weight: 500; margin-inline-start: .3rem; }

/* Multi-column flow rather than a 2-up grid: grid rows would stretch to the
   tallest cell and leave ragged gaps between entries of different lengths. */
.ev-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: clamp(1.75rem, 4vw, 3.5rem);
}
@media (max-width: 860px) { .ev-list { columns: 1; } }

.ev {
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.ev[hidden] { display: none; }
.ev-claim { font-size: .98rem; line-height: 1.55; color: var(--slate-2); }
.ev-claim b { color: var(--slate); font-weight: 700; }
.ev-src {
  margin-top: .45rem;
  font-size: .8rem;
  color: var(--slate-3);
  line-height: 1.4;
}
.ev-src a { color: var(--blue-dk); font-weight: 600; }
.ev-src .dot { opacity: .5; margin-inline: .35rem; }

.ev-empty { padding: 2rem 0; color: var(--slate-3); }

.ev-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--slate-3);
  max-width: 76ch;
}

/* --------------------------------------------------------------------------
   13b. Legacy research list (kept for the compact study cards)
   -------------------------------------------------------------------------- */

.studies { display: grid; gap: 0; }

.study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  gap: .4rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.5rem, 2.8vw, 2.1rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.studies .study:last-child { border-bottom: 1px solid var(--line); }
.study h3 { font-size: clamp(1.06rem, 1rem + .4vw, 1.22rem); }
.study h3 .cite-year {
  display: block;
  font-family: var(--font-text);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--slate-3);
  margin-top: .3rem;
}
.study p { font-size: .96rem; }
.study .finding {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate);
  font-size: .95rem;
  background: var(--blue-tint);
  border-radius: 10px;
  padding: .7rem .9rem;
  line-height: 1.35;
}
.study .finding em {
  display: block;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 500;
  font-size: .8rem;
  color: var(--slate-2);
  margin-top: .25rem;
}

@media (max-width: 820px) {
  .study { grid-template-columns: 1fr; }
  .study .finding { margin-top: .5rem; }
}

/* --------------------------------------------------------------------------
   14. Roles (three-up on ink)
   -------------------------------------------------------------------------- */

.role {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: rgba(255, 255, 255, .035);
}
.role h3 { font-size: 1.16rem; margin-bottom: .55rem; }
.role p { font-size: .96rem; color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   15. Pull quote
   -------------------------------------------------------------------------- */

.pullquote {
  position: relative;
  border-inline-start: 4px solid var(--blue);
  padding: .2rem 0 .2rem clamp(1.25rem, 3vw, 2rem);
  margin-block: clamp(2rem, 4vw, 3rem);
  max-width: 40ch;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 1.15vw, 1.85rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.022em;
  color: var(--slate);
}
.pullquote cite {
  display: block;
  margin-top: .9rem;
  font-style: normal;
  font-size: .85rem;
  color: var(--slate-3);
}
.section--ink .pullquote p { color: #fff; }
.section--ink .pullquote cite { color: rgba(255,255,255,.6); }

/* --------------------------------------------------------------------------
   16. Featured / op-ed band
   -------------------------------------------------------------------------- */

.feature-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(3rem, 6vw, 4.75rem) 0;
}
.feature-band .shell { position: relative; z-index: 2; }
.feature-band .wave { opacity: .85; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: .5rem .95rem .5rem .55rem;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  max-width: 100%;
}
.badge .tag {
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: .26rem .55rem;
}
.badge a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.band-figure {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  justify-content: center;
}
/* Capped at the source's native detail (1091px wide) so it is never upscaled
   past ~1x even on a 2x display -- the deck's photo is only 606px to begin with. */
.band-figure img {
  width: min(620px, 100%);
  filter: drop-shadow(0 -2px 18px rgba(0, 0, 0, .3));
}

/* --------------------------------------------------------------------------
   17. Closing CTA + newsletter
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: rgba(255, 255, 255, .9);
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/waves/wave-on-blue.svg") center / cover no-repeat;
  /* thin the dots out behind the copy, full strength toward the trailing edge */
  -webkit-mask-image: linear-gradient(104deg, rgba(0,0,0,.07) 0%, rgba(0,0,0,.14) 42%, rgba(0,0,0,.5) 74%, #000 100%);
          mask-image: linear-gradient(104deg, rgba(0,0,0,.07) 0%, rgba(0,0,0,.14) 42%, rgba(0,0,0,.5) 74%, #000 100%);
}
.cta h2 { color: #fff; max-width: 24ch; }
.cta .lede { color: rgba(255, 255, 255, .92); max-width: 52ch; margin-top: 1.1rem; }

.newsletter {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, .3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.newsletter h3 { color: #fff; font-size: 1.1rem; margin-bottom: .35rem; }
.newsletter p { font-size: .92rem; color: rgba(255, 255, 255, .88); }

.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; }
.subscribe input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: .82rem 1.15rem;
}
.subscribe input::placeholder { color: var(--slate-3); }
.subscribe input:focus { outline: 3px solid rgba(255,255,255,.85); outline-offset: 2px; }
.form-note { margin-top: .7rem; font-size: .8rem; color: rgba(255,255,255,.8); }

@media (max-width: 780px) { .newsletter { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   18. About / team
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.mission {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.mission .eyebrow { color: var(--blue-dk); }
.mission p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .5vw, 1.24rem);
  font-weight: 500;
  line-height: 1.42;
  color: var(--slate);
  letter-spacing: -.012em;
}

.parentage {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.parentage img { width: 168px; flex: none; }
.parentage p { font-size: .95rem; max-width: 58ch; }

.team-grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .team-grid { grid-template-columns: 1fr; } }

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.person-head { display: flex; align-items: center; gap: .85rem; }
.monogram {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--periwinkle);
}
.person:nth-child(6n+2) .monogram { background: var(--peach); }
.person:nth-child(6n+3) .monogram { background: var(--pale-gold); }
.person:nth-child(6n+4) .monogram { background: var(--green-lt); }
.person:nth-child(6n+5) .monogram { background: var(--periwinkle); }
.person:nth-child(6n+6) .monogram { background: var(--peach); }
.person h3 { font-size: 1.09rem; margin: 0; }
.person .role-title { font-size: .82rem; color: var(--slate-3); margin-top: .15rem; }
.person p { font-size: .93rem; line-height: 1.55; }
.person p.placeholder { color: var(--slate-3); font-style: italic; }

.advisor-grid { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 720px) { .advisor-grid { grid-template-columns: 1fr; } }

.advisor {
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.advisor h4 { color: var(--slate); margin-bottom: .18rem; }
.advisor p { font-size: .9rem; color: var(--slate-2); }

/* --------------------------------------------------------------------------
   19. Article pages
   -------------------------------------------------------------------------- */

.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}
.article-hero .shell { position: relative; z-index: 2; }
.article-hero h1 { color: #fff; max-width: 26ch; }
.article-hero .lede { color: rgba(255, 255, 255, .86); margin-top: 1.35rem; max-width: 58ch; }
.article-meta {
  margin-top: 1.75rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .66);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}
.article-meta strong { color: #fff; font-weight: 600; }

.prose { max-width: 46rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 1.95rem);
  margin-top: 2.5em;
  scroll-margin-top: 7rem;
}
.prose h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.28rem); margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose p { font-size: clamp(1.02rem, .99rem + .2vw, 1.12rem); line-height: 1.7; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose ul { padding-inline-start: 0; list-style: none; display: grid; gap: 1rem; }
.prose ul li {
  position: relative;
  padding-inline-start: 1.9rem;
  font-size: clamp(1rem, .98rem + .18vw, 1.08rem);
  line-height: 1.65;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: .35rem; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.prose ul li strong { color: var(--slate); }
.prose .lede { font-size: clamp(1.14rem, 1.04rem + .5vw, 1.35rem); color: var(--slate-2); }

.callout {
  background: var(--blue-tint);
  border: 1px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
}
.callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:first-of-type { margin-top: .5em; }

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------------
   19b. Interior page heads & cross-page navigation
   -------------------------------------------------------------------------- */

/* Light counterpart to .article-hero, used at the top of every page but home */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}
.page-hero .shell { position: relative; z-index: 2; }
.page-hero .wave { opacity: .6; }
.page-hero::after {                 /* keep the wave field off the text column */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              var(--paper-2) 0%, rgba(246, 248, 252, .93) 40%, rgba(246, 248, 252, 0) 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.05rem, 1.1rem + 3.1vw, 3.2rem); max-width: 20ch; }
.page-hero .lede { margin-top: 1.2rem; max-width: 62ch; }

@media (max-width: 880px) {
  .page-hero::after {
    background: linear-gradient(180deg, rgba(246,248,252,.92), rgba(246,248,252,.6));
  }
}

/* Home-page pillar: one summary paragraph rather than the full bullet list */
.pillar--compact .pillar-body { display: flex; flex-direction: column; gap: .85rem; }
.pillar--compact .pillar-body p { font-size: .96rem; }

/* A single "keep reading" link under a grid, rather than one per card */
.section-more {
  margin-top: clamp(2.75rem, 5.5vw, 4.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.75rem;
  align-items: center;
}

/* Mission band on the home page */
.mission-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .mission-band { grid-template-columns: 1fr; } }

.mission-band .statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.35vw, 2.05rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.022em;
  color: var(--slate);
}
.mission-band .support { margin-top: 1.35rem; max-width: 54ch; }

/* The mission band's onward link needs air beneath it before the next section. */
.mission-band .section-more { margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem); }

/* Onward links at the foot of an interior page */
.next-card { display: flex; flex-direction: column; gap: .55rem; }
.next-card h3 { margin-bottom: 0; }
.next-card p { font-size: .94rem; }
.next-card .link-arrow { margin-top: auto; padding-top: .65rem; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem);
  font-size: .93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; font-size: .9rem; }
.footer-brand a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.footer-cols h4 {
  color: rgba(255, 255, 255, .55);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-cols a { color: rgba(255, 255, 255, .8); }
.footer-cols a:hover { color: #fff; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom .credit { display: flex; align-items: center; gap: .7rem; }
.footer-bottom .credit img { width: 132px; }

/* --------------------------------------------------------------------------
   21. Scroll-in reveal (progressive, opt-out honoured)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .nav-toggle, .wave, .wave-canvas, .cta, .newsletter { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1.2rem; }
  a { color: #000; text-decoration: underline; }
}
