/* ==========================================================================
   Vans For Life — vansforlife.org
   Global stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --crimson: #8a1a31;
  --crimson-deep: #6d1427;
  --crimson-dark: #560f1e;
  --pink: #ffddda;
  --pink-soft: #fff0ee;
  --pink-tint: #fff7f6;
  --blue: #509cf2;
  --blue-deep: #2f7ed6;
  --slate: #282d30;
  --slate-deep: #1b1f21;

  /* Neutrals — warmed slightly so they sit with the crimson */
  --black: #100e0f;
  --ink: #1c1a1b;
  --muted: #5b5356;
  --faint: #8a8085;
  --white: #ffffff;
  --paper: #fffbfa;
  --line: rgba(138, 26, 49, 0.13);
  --line-soft: rgba(138, 26, 49, 0.07);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale — display sizes get negative tracking and tight leading */
  --h1: clamp(2.75rem, 5.6vw, 4.25rem);
  --h2: clamp(2rem, 3.9vw, 2.95rem);
  --h3: clamp(1.5rem, 2.6vw, 2.125rem);
  --h4: clamp(1.2rem, 1.9vw, 1.4rem);
  --body: 1.0625rem;
  --measure: 68ch;

  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Height of the sweeping section dividers. The hero reuses this to keep
     its content clear of the curve — keep the two in sync. */
  --wave-h: clamp(95px, 13.5vw, 205px);

  --header-h: 136px;

  /* Shadows tinted with the brand crimson rather than neutral black —
     keeps depth from going grey against the pink surfaces. */
  --shadow-sm: 0 2px 10px rgba(86, 15, 30, 0.06);
  --shadow: 0 14px 36px -10px rgba(86, 15, 30, 0.16), 0 4px 12px -4px rgba(86, 15, 30, 0.08);
  --shadow-lg: 0 36px 70px -18px rgba(86, 15, 30, 0.24), 0 12px 26px -10px rgba(86, 15, 30, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -0.032em; }
h2 { font-size: var(--h2); line-height: 1.12; letter-spacing: -0.026em; }
h3 { font-size: var(--h3); line-height: 1.2;  letter-spacing: -0.02em; }
h4 { font-size: var(--h4); line-height: 1.3;  letter-spacing: -0.012em; }

p { margin: 0 0 1.3rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--crimson); text-decoration: none; }

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

ul, ol { margin: 0 0 1.3rem; padding-left: 1.35rem; }
li { margin-bottom: 0.6rem; }

strong, b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

::selection { background: var(--crimson); color: #fff; }

:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

/* Explicit background, not transparency: the wave above pulls up by 1px to
   hide its own edge, and a see-through section can't cover anything. */
.section { padding-block: var(--section-y); background: var(--paper); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--flush-top { padding-top: 0; }

.section--paper   { background: var(--paper); }
.section--pink    { background: var(--pink); }
.section--tint    { background: var(--pink-tint); }
.section--crimson { background: var(--crimson); color: rgba(255,255,255,0.92); }
.section--slate   { background: var(--slate); color: rgba(255,255,255,0.9); }
.section--crimson h1, .section--crimson h2, .section--crimson h3, .section--crimson h4,
.section--slate h1,   .section--slate h2,   .section--slate h3,   .section--slate h4 { color: #fff; }
.section--crimson strong,
.section--slate strong { color: #fff; }

/* Colour utilities are authoritative — they must beat component rules
   such as `.prose h2`, which is more specific than a bare class. */
.text-crimson { color: var(--crimson) !important; }
.text-blue    { color: var(--blue) !important; }
.text-white   { color: #fff !important; }
.text-center  { text-align: center; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.section--crimson .lead,
.impact .lead,
.cta-band .lead { color: rgba(255, 255, 255, 0.9); }

/* Small caps label, used above headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }
.eyebrow--center::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}
.section--crimson .eyebrow,
.impact .eyebrow { color: var(--pink); }

/* Section header: heading left, supporting line right */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2,
.section-head h3 { margin: 0; }
.section-head p { margin: 0; }

.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;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 999;
  padding: 0.8rem 1.4rem;
  background: var(--crimson);
  color: #fff;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--crimson);
  border-radius: 0;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
/* Fill sweeps up from the bottom on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--crimson-dark);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover {
  color: #fff;
  border-color: var(--crimson-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: translateY(0); }

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--crimson);
}
.btn--light::before { background: var(--pink); }
.btn--light:hover { color: var(--crimson-dark); border-color: var(--pink); }

.btn--outline {
  background: transparent;
  color: var(--crimson);
}
.btn--outline::before { background: var(--crimson); }
.btn--outline:hover { color: #fff; border-color: var(--crimson); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--crimson); border-color: #fff; }

.btn--sm { min-height: 46px; padding: 0.55rem 1.5rem; font-size: 0.875rem; }

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

/* A button row always follows content, so it carries its own top spacing.
   Scoped overrides below where the neighbouring element already supplies it. */
* + .btn-row { margin-top: 2.5rem; }
.split__body p + .btn-row { margin-top: 2rem; }
.callout * + .btn-row { margin-top: 1.75rem; }
.site-footer * + .btn-row { margin-top: 1.5rem; }
.impact * + .btn-row,
.cta-band * + .btn-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 250, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 24px rgba(86, 15, 30, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding-block: 0.85rem;
  transition: min-height 0.3s var(--ease);
}
.site-header.is-stuck .site-header__inner { min-height: 96px; }

.site-logo { flex-shrink: 0; display: block; }
.site-logo img {
  width: clamp(240px, 34vw, 480px);
  height: auto;
  transition: width 0.3s var(--ease);
}
.site-header.is-stuck .site-logo img { width: clamp(210px, 26vw, 370px); }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list li { margin: 0; }

.site-nav__list a {
  position: relative;
  display: block;
  padding-block: 0.4rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__list a:hover { color: var(--crimson); }
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav__list a[aria-current="page"] { color: var(--crimson); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 66vh, 700px);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  /* Bottom padding clears the sweeping wave, so the headline and button
     never sit under the pink on wide/short viewports. */
  padding-bottom: calc(var(--wave-h) + 1.5rem);
  background: var(--pink);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0 0 -1px 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* Keeps the photograph readable without flattening it to grey */
  filter: saturate(0.62) contrast(1.06) brightness(1.04);
}
/* Directional scrim: photo stays rich on the left, clears to a light
   field on the right where the crimson headline sits. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(103deg,
      rgba(255, 251, 250, 0.24) 0%,
      rgba(255, 248, 247, 0.48) 30%,
      rgba(255, 242, 240, 0.84) 62%,
      rgba(255, 240, 238, 0.94) 100%),
    radial-gradient(120% 90% at 78% 40%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 60%);
}

.hero__grid { position: relative; }

/* Headline and button are one right-aligned block, so the call to action
   reads as part of the statement rather than floating off on its own. */
.hero__body {
  max-width: 46ch;
  margin-left: auto;
  text-align: right;
}

.hero__title {
  margin: 0 0 clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  color: var(--crimson);
}

.hero__cta {
  display: flex;
  justify-content: flex-end;
}

/* Interior page hero — deep crimson wash so the photo reads as imagery
   rather than a faded background, with white type over it. */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 46vh, 480px);
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--crimson);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.05);
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(86,15,30,0.55) 0%, rgba(86,15,30,0.82) 100%),
    linear-gradient(100deg, rgba(138,26,49,0.92) 0%, rgba(138,26,49,0.52) 100%);
}
.page-hero h1 { margin: 0; color: #fff; }
.page-hero .eyebrow { color: var(--pink); }
.page-hero p {
  margin-top: 1.35rem;
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* Wave divider
   The <div class="wave"> background = the colour of the section ABOVE it.
   The <path> fill                  = the colour of the section BELOW it. */
.wave {
  display: block;
  width: 100%;
  height: var(--wave-h);
  margin-bottom: -1px;
  line-height: 0;
}
.wave svg { display: block; width: 100%; height: 100%; }

.wave--to-pink svg path    { fill: var(--pink); }
.wave--to-white svg path   { fill: var(--paper); }
.wave--to-tint svg path    { fill: var(--pink-tint); }
.wave--to-crimson svg path { fill: var(--crimson); }

.wave--from-pink  { background: var(--pink); }
.wave--from-white { background: var(--paper); }
.wave--from-tint  { background: var(--pink-tint); }

.wave--to-slate svg path   { fill: var(--slate); }
.wave--to-black svg path   { fill: var(--black); }
.wave--from-crimson { background: var(--crimson); }
.wave--from-slate   { background: var(--slate); }
.wave--from-blue    { background: var(--blue); }

/* Wave layered over the section above it, so the curve rises across a photo
   or a colour band. Sits a few px past the parent's overflow clip so the SVG's
   antialiased bottom edge is cropped away instead of showing as a seam. */
.hero__wave,
.wave--overlay {
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  z-index: 2;
  height: var(--wave-h);
  margin: 0;
  background: transparent;
}

/* --------------------------------------------------------------------------
   6b. Title band — full-bleed coloured header for interior pages
   -------------------------------------------------------------------------- */
.title-band {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: calc(var(--wave-h) + 0.5rem);
  background: var(--slate);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.title-band h1 {
  margin: 0;
  color: #fff;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.title-band p {
  max-width: 60ch;
  margin: 1.35rem auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.title-band--crimson { background: var(--crimson); }
.title-band--blue { background: var(--blue); }

/* --------------------------------------------------------------------------
   6c. Illustrated band + floating panels
   A colour field (optionally over artwork) with content cards sitting on top.
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
  isolation: isolate;
}
.band--pink    { background: var(--pink); }
.band--crimson { background: var(--crimson); color: rgba(255,255,255,0.92); }
.band--blue    { background: var(--blue); color: #fff; }

/* Centred section title sitting on the band itself */
.band__title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--ink);
}
.band--crimson .band__title,
.band--blue .band__title { color: #fff; }

.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Softens the artwork so panel copy stays legible over it */
.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 221, 218, 0.42) 0%,
    rgba(255, 221, 218, 0.62) 100%);
}

.panel {
  max-width: 830px;
  margin-inline: auto;
  padding: clamp(2rem, 4.4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-size: clamp(1rem, 1.25vw, 1.0938rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}
.panel--wide   { max-width: 940px; }
.panel--center { text-align: center; }

/* Translucent variant that lets the artwork read through.
   Copy goes to full ink here — muted grey over a busy illustration
   drops below a readable contrast ratio. */
.panel--glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 20px 60px -24px rgba(86, 15, 30, 0.2);
  color: var(--ink);
  font-weight: 400;
}

.panel > *:first-child { margin-top: 0; }
.panel > *:last-child  { margin-bottom: 0; }
.panel p { margin-bottom: 1.35rem; }
.panel strong { font-weight: 600; color: var(--ink); }
.panel h1, .panel h2, .panel h3 { color: var(--ink); }

.panel__title {
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--blue) !important;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}
.panel__heading {
  margin-bottom: 1.35rem;
  color: var(--crimson) !important;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

/* Emphasised closing lines inside a panel */
.panel__closing {
  margin-bottom: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--crimson);
}

/* --- Q&A row: a small illustrated chip beside a content card ------------- */
.qa-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}
/* Card first, chip on the right */
.qa-row--reverse { grid-template-columns: minmax(0, 1fr) 160px; }
.qa-row--reverse .qa-chip { order: 2; }

.qa-chip {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.qa-chip img { width: 100%; height: auto; display: block; }

.qa-card {
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}
.qa-card > *:first-child { margin-top: 0; }
.qa-card > *:last-child  { margin-bottom: 0; }
.qa-card p  { margin-bottom: 1.15rem; }
.qa-card ul, .qa-card ol { margin-bottom: 1.15rem; }
.qa-card li { margin-bottom: 0.4rem; }
.qa-card strong { font-weight: 600; color: inherit; }

/* The question / lead-in line */
.qa-q {
  margin: 0 0 0.55rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--blue-deep);
}
.qa-q + p { margin-bottom: 1.6rem; }
.qa-card > .qa-q:not(:first-child) { margin-top: 1.9rem; }

/* On the crimson bands the card copy takes the brand crimson */
.band--crimson .qa-card { color: var(--crimson); }
.band--crimson .qa-q { color: var(--crimson); }
.band--blue .qa-card { color: var(--crimson); }
.band--blue .qa-q { color: var(--crimson); }

/* Cost figure inside a Q&A card */
.qa-figure {
  margin: 1.5rem 0;
  padding: 1.15rem 1.4rem;
  background: var(--pink-tint);
  border-left: 2px solid var(--crimson);
  border-radius: 0 8px 8px 0;
}
.qa-figure b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--crimson);
}
.qa-figure span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  color: var(--faint);
}

/* Two images side by side, edge to edge across the band */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin-block: clamp(2rem, 4vw, 3rem);
}
.duo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   7. Media + text split
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }

/* Framed image: a full outline offset behind the photo adds depth without
   resorting to a heavy drop shadow. */
.split__media { position: relative; }
.split__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--crimson);
  opacity: 0.28;
  pointer-events: none;
}
.split--reverse .split__media::before { inset: 18px 18px -18px -18px; }
.split__media img {
  position: relative;
  width: 100%;
  box-shadow: var(--shadow);
}

.split__body > *:first-child { margin-top: 0; }
.split__body h2 { margin-bottom: 1.25rem; }
.split__body .lead { margin-bottom: 1.75rem; }
.split__body p + .btn-row { margin-top: 2rem; }

/* On dark bands the crimson outline frame would vanish — lighten it */
.section--crimson .split__media::before,
.section--slate .split__media::before { border-color: rgba(255, 255, 255, 0.42); }

/* Caption sitting under a split image (e.g. the guide + PDF button) */
.guide-note {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
}
.section--crimson .guide-note { color: rgba(255, 255, 255, 0.92); }
.section--crimson .guide-note strong { color: #fff; }

/* --- Editorial column: the running copy inside a split ------------------- */
.prose-col {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}
.prose-col > *:first-child { margin-top: 0; }
.prose-col h2 {
  margin-bottom: 1.35rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
}
.prose-col p { margin-bottom: 1.4rem; }
.prose-col strong { font-weight: 600; }
.section--crimson .prose-col,
.section--slate .prose-col { color: rgba(255, 255, 255, 0.9); }
.section--crimson .prose-col h2,
.section--slate .prose-col h2 { color: #fff; }

/* Opening line of a column, one size up */
.prose-col__lead {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section--crimson .prose-col__lead { color: #fff; }

/* Emphasised standalone line inside a column */
.prose-col__statement {
  margin-block: 1.8rem;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--crimson);
}
.section--crimson .prose-col__statement,
.section--slate .prose-col__statement { color: var(--pink); }

/* Figures called out inside a column (the cost-per-life lines) */
.figure-list {
  margin-block: 1.85rem;
  padding: 0;
  list-style: none;
}
.figure-list li {
  position: relative;
  margin: 0 0 0.9rem;
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-left: 2px solid var(--crimson);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
}
.figure-list li:last-child { margin-bottom: 0; }
.figure-list strong {
  font-weight: 600;
  color: var(--crimson);
}
.section--crimson .figure-list li { border-left-color: var(--pink); color: #fff; }
.section--crimson .figure-list strong { color: var(--pink); }

/* Locations inside a dark column */
.section--crimson .locations li,
.section--slate .locations li {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.section--crimson .locations li:hover,
.section--slate .locations li:hover { background: #fff; color: var(--crimson); }

/* Sign-off block inside a dark column.
   `:not(.btn)` matters — otherwise the white-on-white button text disappears. */
.section--crimson .signoff,
.section--slate .signoff { border-top-color: rgba(255, 255, 255, 0.24); }
.section--crimson .signoff a:not(.btn),
.section--slate .signoff a:not(.btn) { color: #fff; }

/* A media column that also stacks a caption/button below the image
   shouldn't get the decorative offset frame. */
.split__media--stack::before { display: none; }

/* --------------------------------------------------------------------------
   8. Guide thumbnails
   -------------------------------------------------------------------------- */
.guide-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.guide-strip a {
  display: block;
  transition: transform 0.45s var(--ease-out);
}
.guide-strip img {
  width: clamp(120px, 14vw, 180px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.45s var(--ease);
}
.guide-strip a:hover { transform: translateY(-10px); }
.guide-strip a:hover img { box-shadow: var(--shadow-lg); }

/* --------------------------------------------------------------------------
   9. Pillar cards (Build / Equip / Reach)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2.25rem, 3.4vw, 3rem) clamp(1.75rem, 2.6vw, 2.5rem) clamp(2.5rem, 3.6vw, 3.25rem);
  background: linear-gradient(158deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}
/* Accent rule that draws across the top on hover */
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.6rem, 2.3vw, 1.95rem);
  letter-spacing: -0.02em;
}
.pillar p {
  margin: 0;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* --------------------------------------------------------------------------
   10. Impact / donate band
   -------------------------------------------------------------------------- */
.impact {
  position: relative;
  padding-block: var(--section-y);
  /* Clearance for the footer swoosh layered over the duotone */
  padding-bottom: calc(var(--wave-h) + 2rem);
  background: var(--crimson);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  isolation: isolate;
}
/* Duotone: the photo is pushed to monochrome then tinted by the crimson
   beneath, so it reads as an intentional treatment, not a faded image. */
.impact__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}
.impact__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.impact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 70% at 50% 30%,
    rgba(86, 15, 30, 0) 0%, rgba(86, 15, 30, 0.62) 100%);
  pointer-events: none;
}
.impact h2, .impact h3 { color: #fff; }

.impact__list {
  max-width: 480px;
  margin: 2.5rem auto 3rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
.impact__list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.25rem;
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.impact__list li:last-child { border-bottom: 0; }
.impact__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.42em;
  width: 12px; height: 1.5px;
  background: var(--pink);
}

.impact-card {
  max-width: 880px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.impact-card h2 { color: var(--crimson); margin-bottom: 1.1rem; }
.impact-card p {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   11. Prose (interior content pages)
   -------------------------------------------------------------------------- */
.prose {
  font-size: 1.0938rem;
  line-height: 1.85;
  color: var(--muted);
}
.prose > * { max-width: var(--measure); }
.prose > .stat-row,
.prose > .locations,
.prose > img,
.prose > .callout,
.prose > .signoff { max-width: none; }

.prose h2 {
  margin-top: clamp(3rem, 5vw, 4.25rem);
  margin-bottom: 1.1rem;
  color: var(--ink);
}
.prose h3 {
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.prose > h2:first-child,
.prose > h3:first-child { margin-top: 0; }

/* Opening paragraph reads a size up */
.prose > p:first-of-type {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prose a {
  color: var(--crimson);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}
.prose a:hover { background-size: 0 1px; }

.prose img {
  width: 100%;
  margin-block: clamp(2.5rem, 5vw, 3.75rem);
  box-shadow: var(--shadow);
}

/* Pull quote — replaces the old flat pink box */
.callout {
  position: relative;
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 3.2vw, 2.5rem) clamp(1.75rem, 3.2vw, 2.75rem);
  background: var(--pink-tint);
  border-left: 2px solid var(--crimson);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.callout--stat {
  border-left: 0;
  border-top: 2px solid var(--crimson);
  text-align: center;
}
.callout--plain { background: var(--paper); box-shadow: var(--shadow-sm); }

.callout__figure {
  display: block;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--crimson);
  margin: 0.5rem 0;
}
.callout__note {
  display: block;
  font-size: 0.9375rem;
  color: var(--faint);
}

/* Emphasised standalone line */
.statement {
  margin-block: clamp(2rem, 4vw, 2.75rem);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.statement--crimson { color: var(--crimson); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin-block: clamp(2.75rem, 5vw, 3.75rem);
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  padding: clamp(1.75rem, 3vw, 2.5rem) 1.25rem;
  background: var(--paper);
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(2.25rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--crimson);
}
.stat__label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--faint);
}

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.8rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 8px; height: 8px;
  background: var(--crimson);
}

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: clamp(1.75rem, 3vw, 2.5rem);
  padding: 0;
  list-style: none;
}
.locations li {
  margin: 0;
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--crimson);
  color: var(--crimson);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.locations li:hover { background: var(--crimson); color: #fff; }

/* Signature / contact block */
.signoff {
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.signoff strong { font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   13. Gallery — dark theme
   -------------------------------------------------------------------------- */

/* Page-scoped dark theme. Applied to <body> so the header, page ground and
   footer read as one continuous black field. */
.theme-dark { background: var(--black); color: rgba(255, 255, 255, 0.82); }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 { color: #fff; }

.theme-dark .site-header {
  background: rgba(16, 14, 15, 0.82);
  border-bottom-color: transparent;
}
.theme-dark .site-header.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.6);
}
/* Turns the crimson lockup pure white — no second logo file needed */
.theme-dark .site-logo img { filter: brightness(0) invert(1); }

.theme-dark .site-nav__list a { color: rgba(255, 255, 255, 0.82); }
.theme-dark .site-nav__list a:hover,
.theme-dark .site-nav__list a[aria-current="page"] { color: #fff; }
.theme-dark .site-nav__list a::after { background: #fff; }
.theme-dark .nav-toggle span { background: #fff; }

/* Inverted Donate button reads far better than crimson on black */
.theme-dark .site-header .btn {
  background: #fff;
  border-color: #fff;
  color: var(--crimson);
}
.theme-dark .site-header .btn::before { background: var(--pink); }
.theme-dark .site-header .btn:hover { color: var(--crimson-dark); border-color: var(--pink); }
/* The collapsed dark nav panel is styled in the 1040px block below, alongside
   the rest of the menu rules — keeping it there avoids a light panel appearing
   between 861px and 1040px on the gallery page. */

/* --- Hero: typographic, no photograph ---------------------------------
   The grid below carries all the imagery, so the opening is a graphic
   statement instead: a crimson glow over a faint contact-sheet grid. */
.gallery-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 52vh, 540px);
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6rem);
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* Crimson bloom rising from the lower edge */
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(78% 120% at 50% 118%, rgba(138, 26, 49, 0.85) 0%, rgba(138, 26, 49, 0) 68%),
    radial-gradient(46% 70% at 50% 0%, rgba(80, 156, 242, 0.16) 0%, rgba(80, 156, 242, 0) 70%);
}

/* Contact-sheet ruling, faded out toward the edges */
.gallery-hero::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.055) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.055) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(66% 62% at 50% 45%, #000 10%, transparent 100%);
          mask-image: radial-gradient(66% 62% at 50% 45%, #000 10%, transparent 100%);
  pointer-events: none;
}

.gallery-hero__mark {
  display: block;
  width: 54px;
  height: 3px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(90deg, var(--crimson) 0%, var(--pink) 100%);
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #fff;
  background: linear-gradient(174deg, #ffffff 28%, var(--pink) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-hero p {
  max-width: 46ch;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Mosaic ----------------------------------------------------------- */
.gallery-section { padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--black); }
/* Wider than the reading container — the photographs carry the page */
.gallery-section .container { max-width: 1560px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px);
  gap: clamp(0.6rem, 1.1vw, 1rem);
}

.gallery-grid button {
  display: block;
  position: relative;
  grid-column: span 4;
  padding: 0;
  border: 0;
  background: #17161a;
  cursor: pointer;
  overflow: hidden;
}

/* Editorial rhythm across 10 tiles: a tall feature, then 3 / 2 / 2.
   Every row packs to exactly 12 columns, so nothing is left orphaned. */
.gallery-grid button:nth-child(1)  { grid-column: span 7; grid-row: span 2; }
.gallery-grid button:nth-child(2)  { grid-column: span 5; }
.gallery-grid button:nth-child(3)  { grid-column: span 5; }
.gallery-grid button:nth-child(7)  { grid-column: span 5; }
.gallery-grid button:nth-child(8)  { grid-column: span 7; }
.gallery-grid button:nth-child(9)  { grid-column: span 6; }
.gallery-grid button:nth-child(10) { grid-column: span 6; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s var(--ease);
}

/* Crimson wash + zoom on hover */
.gallery-grid button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(138,26,49,0.05) 0%, rgba(138,26,49,0.55) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.gallery-grid button:hover img,
.gallery-grid button:focus-visible img { transform: scale(1.05); }
.gallery-grid button:hover::after,
.gallery-grid button:focus-visible::after { opacity: 1; }
.gallery-grid button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* The 12-column mosaic only holds up on wide screens — the span-5/span-7
   tiles collapse to slivers below it, so simplify at narrower widths. */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(160px, 26vw, 260px);
  }
  .gallery-grid button,
  .gallery-grid button:nth-child(1),
  .gallery-grid button:nth-child(2),
  .gallery-grid button:nth-child(3),
  .gallery-grid button:nth-child(7),
  .gallery-grid button:nth-child(8),
  .gallery-grid button:nth-child(9),
  .gallery-grid button:nth-child(10) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-grid button:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(200px, 56vw, 280px);
  }
  .gallery-grid button:nth-child(1) { grid-column: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4.5rem);
  background: rgba(10, 9, 10, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 50px 120px rgba(0,0,0,0.7);
}

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--crimson); border-color: var(--crimson); }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { left: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  /* Clearance for the footer swoosh layered over the gradient */
  padding-bottom: calc(var(--wave-h) + 2rem);
  background: linear-gradient(150deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band h2 {
  max-width: 20ch;
  margin: 0 auto 1.35rem;
  color: #fff;
}
.cta-band p {
  max-width: 58ch;
  margin: 0 auto 2.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0938rem;
  font-weight: 300;
  line-height: 1.7;
}
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.cta-band__contact {
  margin-bottom: 2.25rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   14b. Error page
   -------------------------------------------------------------------------- */
.error-page__note { margin-top: 1.5rem; margin-inline: auto; max-width: 46ch; }
.error-page__actions { margin-top: 2.75rem; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  background: var(--black);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer img { width: clamp(210px, 22vw, 280px); }

.site-footer h4 {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s var(--ease);
}
.site-footer a:hover { color: #fff; }

.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: 0.5rem; }
.site-footer__name { color: #fff; font-weight: 500; }

.social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.social li { margin: 0; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.social a:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: translateY(-3px);
}
.social svg { width: 17px; height: 17px; fill: currentColor; }

.site-footer__tagline {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.42);
}
.site-footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   16. Reveal on scroll
   Progressive enhancement: the hidden state only applies once the inline
   head script has added `.js`. With JS off or broken, content stays visible.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
}

/* The full-size logo needs room, so the nav collapses to a menu earlier than
   the layout breakpoint below — otherwise the links run past the container. */
@media (max-width: 1040px) {
  :root { --header-h: 112px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: block;
    max-height: 0;
    padding: 0 var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out), padding 0.45s var(--ease-out);
  }
  .site-nav.is-open {
    max-height: calc(100vh - var(--header-h));
    padding: 1rem var(--gutter) 2.25rem;
    overflow-y: auto;
  }
  .site-header.is-stuck .site-header__inner { min-height: var(--header-h); }
  .site-header.is-stuck .site-logo img { width: clamp(240px, 34vw, 480px); }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.0625rem;
  }
  .site-nav__list a::after { display: none; }
  .site-nav .btn { width: 100%; margin-top: 1.5rem; }

  .theme-dark .site-nav {
    background: var(--black);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
  .theme-dark .site-nav__list a { border-bottom-color: rgba(255, 255, 255, 0.1); }
}

@media (max-width: 860px) {
  :root { --header-h: 96px; }

  .hero { align-items: flex-end; }
  .hero__body { max-width: none; margin-left: 0; text-align: left; }
  .hero__cta { justify-content: flex-start; }
  /* Text sits left on mobile, so even out the scrim */
  .hero__bg::after {
    background:
      linear-gradient(175deg,
        rgba(255, 251, 250, 0.42) 0%,
        rgba(255, 244, 242, 0.82) 55%,
        rgba(255, 240, 238, 0.94) 100%);
  }

  .page-hero { min-height: clamp(280px, 40vh, 380px); }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media::before { display: none; }

  /* The 160px chip column would squeeze the card to an unreadable width —
     stack instead, with the chip always leading. */
  .qa-row,
  .qa-row--reverse { grid-template-columns: 1fr; }
  .qa-row--reverse .qa-chip { order: -1; }
  .qa-chip { width: 108px; }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  /* Side-by-side photos get too small to read at phone widths */
  .duo { grid-template-columns: 1fr; }
  .duo img { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .lightbox,
  .wave, .hero__wave { display: none !important; }
  body { color: #000; background: #fff; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
