/* HIEF V4 — shared components and page layouts. Mobile first. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--deep-blue);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.13; letter-spacing: -0.018em; }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
p { margin: 0 0 var(--s-4); max-width: 65ch; }
ul, ol { padding-left: 1.2em; }
a { color: var(--brand-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--deep-blue); font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--seal-gold); box-shadow: 0 0 0 3px var(--deep-blue); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--deep-blue); color: var(--white); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-media); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); outline-color: var(--seal-gold); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--blue { background: var(--deep-blue); color: #dfe6f3; }
.section--brand { background: var(--brand-blue); color: #e9eef8; }
.section--blue h2, .section--blue h3, .section--blue h4,
.section--brand h2, .section--brand h3, .section--brand h4 { color: var(--white); }
.section--blue a:not(.btn), .section--brand a:not(.btn) { color: var(--white); }
.section--tight { padding-block: var(--divider-y); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-eyebrow); line-height: 1.4; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue);
  margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--seal-gold); border-radius: 2px; }
.on-dark .eyebrow, .section--blue .eyebrow, .section--brand .eyebrow { color: var(--white); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--body); max-width: 48ch; }
.on-dark .lead, .section--blue .lead, .section--brand .lead { color: #e3e9f5; }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head p { font-size: var(--fs-lead); line-height: 1.5; }
.caption, figcaption {
  font-size: var(--fs-caption); line-height: 1.5; color: var(--body); margin-top: var(--s-3);
  max-width: 70ch;
}
.note {
  font-size: var(--fs-ui); line-height: 1.5; border-left: 3px solid var(--seal-gold);
  padding: var(--s-3) var(--s-4); background: var(--paper); border-radius: 0 var(--r-media) var(--r-media) 0;
  max-width: 65ch;
}
.section--paper .note { background: var(--white); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  font: 600 var(--fs-ui)/1.25 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--deep-blue); }
.btn-secondary { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-secondary:hover { background: var(--blue-tint); }
.on-dark .btn-primary, .section--blue .btn-primary, .section--brand .btn-primary, .btn-gold {
  background: var(--seal-gold); color: var(--deep-blue);
}
.on-dark .btn-primary:hover, .section--blue .btn-primary:hover, .section--brand .btn-primary:hover, .btn-gold:hover { background: #f0c95a; }
.on-dark .btn-secondary, .section--blue .btn-secondary, .section--brand .btn-secondary { color: var(--white); border-color: var(--white); }
.on-dark .btn-secondary:hover, .section--blue .btn-secondary:hover, .section--brand .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.arrow { display: inline-block; transition: transform 160ms ease; }
.text-link { font-weight: 600; }
.text-link:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* ---------- Preview notice + header ---------- */
.preview-notice {
  background: var(--deep-blue); color: var(--white); text-align: center;
  font-size: var(--fs-caption); line-height: 1.4; padding: 8px var(--gutter); font-weight: 600;
}
.preview-notice span { color: var(--seal-gold); }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(16, 38, 74, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--deep-blue); min-height: 48px; }
.brand img { width: 52px; height: 52px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.15; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; min-width: 48px;
  padding: 0 16px; border: 2px solid var(--brand-blue); border-radius: var(--r-pill);
  background: var(--white); color: var(--brand-blue); font: 600 var(--fs-ui)/1 var(--font-body); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle[aria-expanded="true"] { background: var(--brand-blue); color: var(--white); }

.site-nav { font-size: var(--fs-ui); }
.nav-list, .subnav { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--deep-blue); text-decoration: none; font-weight: 600; }
.nav-list a[aria-current="page"] { color: var(--brand-blue); text-decoration: underline; text-decoration-color: var(--seal-gold); text-decoration-thickness: 3px; text-underline-offset: 0.4em; }
.nav-donate { background: var(--brand-blue); color: var(--white) !important; border-radius: var(--r-pill); padding: 0 20px; }
.nav-donate:hover { background: var(--deep-blue); }
.nav-donate[aria-current="page"] { text-decoration: none !important; box-shadow: inset 0 -3px 0 var(--seal-gold); }

/* Mobile navigation (default) */
.header-inner { flex-wrap: wrap; }
.site-nav { flex-basis: 100%; padding-bottom: var(--s-5); }
.js .site-nav:not(.is-open) { display: none; }
.nav-list > li { border-top: 1px solid var(--line); }
.nav-list > li > a, .nav-group-head > a { display: flex; align-items: center; min-height: 52px; padding: 4px 0; }
.nav-group-head { display: flex; align-items: center; justify-content: space-between; }
.sub-toggle { display: none; }
.subnav { padding: 0 0 var(--s-3) var(--s-4); border-left: 3px solid var(--seal-gold); margin-bottom: var(--s-3); }
.subnav a { display: flex; align-items: center; min-height: 44px; font-weight: 400; }
.nav-list > li.nav-cta { border-top: 0; padding-top: var(--s-4); }
.nav-list > li.nav-cta a { display: inline-flex; justify-content: center; min-height: 48px; width: 100%; }

@media (min-width: 1120px) {
  .menu-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav, .js .site-nav:not(.is-open) { display: block; flex-basis: auto; padding: 0; }
  .nav-list { display: flex; align-items: center; gap: var(--s-1); }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a, .nav-group-head > a { min-height: 48px; padding: 0 12px; }
  .nav-group-head { gap: 0; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 48px;
    border: 0; background: none; color: var(--deep-blue); cursor: pointer; border-radius: 6px; padding: 0;
  }
  .sub-toggle svg { width: 14px; height: 14px; transition: transform 160ms ease; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .subnav {
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; z-index: 60;
    background: var(--white); border: 1px solid var(--line); border-left: 0; border-top: 3px solid var(--seal-gold);
    border-radius: 0 0 var(--r-media) var(--r-media); box-shadow: var(--shadow-overlay); padding: var(--s-2);
    display: none; margin: 0;
  }
  .subnav a { padding: 0 12px; min-height: 44px; border-radius: 6px; }
  .subnav a:hover { background: var(--paper); }
  /* Without JS, hover/focus reveal the group so every link remains reachable. */
  html:not(.js) .nav-group:hover .subnav, html:not(.js) .nav-group:focus-within .subnav { display: block; }
  .js .nav-group.is-open .subnav { display: block; }
  .nav-list > li.nav-cta { padding: 0 0 0 var(--s-3); }
  .nav-list > li.nav-cta a { width: auto; }
  .brand img { width: 60px; height: 60px; }
  .brand-name { font-size: 1.125rem; }
}

/* R1-O5c, corrected after independent review (R1-RV1 I-1):
   At 1120–1126 the desktop nav's eight labels wrapped to two text lines inside their links.
   `.nav-list` is flex-wrap:nowrap, so this was label wrapping, not a second flex row; the
   staggered `li` tops are what the probe counted as two rows. Removing the 4px nav gap in this
   band frees ~28px against a ~6px overflow and cures it. Scoped to 1120–1139; geometry at 1140+
   is identical with and without this block.
   The padding and .sub-toggle declarations originally here were removed: both were overridden
   downstream (site.css padding rule later in the file; .sub-toggle width:48px in the Increment-2
   block) and had no effect. */
@media (min-width: 1120px) and (max-width: 1139px) {
  .nav-list { gap: 0; }
}

/* ---------- Breadcrumbs + interior hero ---------- */
.breadcrumbs { font-size: var(--fs-caption); margin-bottom: var(--s-5); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--control-border); }
.breadcrumbs a { color: var(--brand-blue); }
.page-hero { padding-block: var(--hero-y) var(--section-y); }
.page-hero__grid { display: grid; gap: var(--s-6); align-items: center; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 52ch; }
.page-hero__media img { border-radius: var(--r-media); width: 100%; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); }
}

/* ---------- Home hero ---------- */
.home-hero { background: var(--deep-blue); color: var(--white); position: relative; }
.home-hero__copy { padding-block: var(--hero-y); }
.home-hero h1 {
  font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.025em; color: var(--white);
  max-width: 11ch; margin-bottom: var(--s-5);
}
.home-hero .lead { color: #e3e9f5; max-width: 48ch; }
.home-hero__media { margin: 0; }
.home-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 58% 48%; }
.home-hero__media figcaption { color: #cfd9ec; padding: var(--s-3) var(--gutter) var(--s-4); margin: 0; max-width: none; }
@media (max-width: 359px) { .home-hero h1 { font-size: 2.375rem; } }
@media (min-width: 1000px) {
  .home-hero { min-height: 640px; display: grid; }
  .home-hero__media { position: absolute; inset: 0 0 0 auto; width: min(72%, 1016px); height: 100%; }
  .home-hero__media img { height: 100%; aspect-ratio: auto; object-position: 58% 48%; }
  .home-hero__media::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--deep-blue) 0%, rgba(16, 38, 74, 0.9) 22%, rgba(16, 38, 74, 0.35) 60%, rgba(16, 38, 74, 0.1) 100%);
  }
  .home-hero__media figcaption {
    position: absolute; z-index: 2; right: 0; bottom: 0; padding: 10px 16px; max-width: 360px;
    background: rgba(16, 38, 74, 0.86); color: #e3e9f5; border-top-left-radius: var(--r-media);
  }
  .home-hero__copy { position: relative; z-index: 2; padding-block: 120px 128px; align-self: center; }
  .home-hero__copy > * { max-width: 720px; }
  .home-hero h1 { max-width: 12ch; }
}
/* R1-O7 / CM-43 (A1) below 1000px: restrained edge overlap. The photo is ordered directly after the h1 and its
   top edge rises under the last headline line; lead and actions follow on the solid field. DOM order unchanged. */
@media (max-width: 999.98px) {
  .home-hero { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); padding-block: var(--hero-y); }
  .home-hero__copy { display: contents; }
  .home-hero__copy > * { grid-column: 2; }
  .home-hero .eyebrow { order: 1; justify-self: start; }
  .home-hero h1 { order: 2; position: relative; z-index: 1; margin-bottom: -0.42em; }
  .home-hero__media { order: 3; grid-column: 1 / -1; position: relative; }
  .home-hero__media::before {
    content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 1.2;
    background: linear-gradient(180deg, rgba(16, 38, 74, 0.9) 0%, rgba(16, 38, 74, 0.86) 34%, rgba(16, 38, 74, 0) 100%);
  }
  .home-hero .lead { order: 4; }
  .home-hero .btn-row { order: 5; }
}

/* ---------- Proof strip ---------- */
.proof { background: var(--brand-blue); color: var(--white); }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; }
.proof__item { padding: var(--s-6) 0; border-top: 1px solid rgba(228, 181, 47, 0.7); display: flex; gap: var(--s-4); align-items: center; }
.proof__item:first-child { border-top: 0; }
/* CM-45 (A3): hollow static numeral — field-matching fill + four-direction 1px text-shadow. No text-stroke, no count-up. */
.proof__num {
  font: 600 var(--fs-numeral)/1 var(--font-display); color: var(--brand-blue); letter-spacing: -0.03em; flex: none; min-width: 1.1ch;
  text-shadow: 1px 0 var(--seal-gold), -1px 0 var(--seal-gold), 0 1px var(--seal-gold), 0 -1px var(--seal-gold);
}
.proof__label { font-size: var(--fs-ui); line-height: 1.45; color: #e3e9f5; }
.proof__label strong { display: block; font-family: var(--font-display); color: var(--white); font-size: var(--fs-h4); line-height: 1.3; margin-bottom: 2px; }
.proof__label a { color: var(--white); font-weight: 600; }
.proof__icon { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid var(--seal-gold); display: grid; place-items: center; }
.proof__icon svg { width: 24px; height: 24px; }
.proof__foot { font-size: var(--fs-caption); color: #cfd9ec; padding-bottom: var(--s-5); margin: 0; max-width: none; }
@media (min-width: 900px) {
  .proof__list { grid-template-columns: repeat(3, 1fr); }
  .proof__item { border-top: 0; border-left: 1px solid rgba(228, 181, 47, 0.7); padding: var(--s-7) var(--s-6); }
  .proof__item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Split layouts ---------- */
.split { display: grid; gap: var(--s-6); align-items: center; }
.split__media img { border-radius: var(--r-media); width: 100%; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--reverse .split__media { order: 2; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--48 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .split--84 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .split--84 .split__media { order: 2; }
}
.seal-detail { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--fs-caption); color: var(--body); }
.seal-detail img { width: 56px; height: 56px; }

/* ---------- Documentary rail ---------- */
.rail { margin-top: var(--s-6); }
.rail__track {
  list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 86%); gap: var(--gap); overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
  padding-bottom: var(--s-3);
}
.rail__item { scroll-snap-align: start; margin: 0; }
.rail__frame {
  background: var(--white); border-radius: var(--r-media);
  overflow: hidden; border: 1px solid var(--line);
}
.rail__frame img { width: 100%; height: auto; }
.rail__controls {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  background: var(--brand-blue); color: var(--white); border-radius: var(--r-pill); padding: 6px 6px 6px 24px; margin-top: var(--s-4);
}
.rail__status { font-size: var(--fs-ui); font-weight: 600; }
.rail__buttons { display: flex; gap: var(--s-2); }
.rail__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--white); background: transparent; color: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: background-color 160ms ease;
}
.rail__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); }
.rail__btn:disabled { opacity: 0.45; cursor: default; }
.rail__btn svg { width: 20px; height: 20px; }
.rail__controls :focus-visible { outline-color: var(--seal-gold); box-shadow: 0 0 0 3px var(--brand-blue); }
@media (min-width: 768px) { .rail__track { grid-auto-columns: minmax(320px, 46%); } }
@media (min-width: 1120px) { .rail__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--gap); list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border-radius: var(--r-card); padding: var(--s-6); position: relative;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.section--paper .card { border-color: transparent; box-shadow: var(--shadow-card); }
.card h3 { font-size: var(--fs-h4); line-height: 1.3; }
.card p { font-size: var(--fs-ui); line-height: 1.55; }
.card .text-link { margin-top: auto; padding-top: var(--s-3); display: inline-flex; min-height: 48px; align-items: center; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-tint); color: var(--brand-blue); display: grid; place-items: center; margin-bottom: var(--s-5); }
.card__icon svg { width: 28px; height: 28px; }
.card__num { font: 600 0.875rem/1 var(--font-display); color: var(--brand-blue); letter-spacing: 0.04em; margin-bottom: var(--s-3); }
.card__media { margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) var(--s-5); overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 240ms ease; }
.card__media figcaption { padding: 0 var(--s-6); }
.card--story .card__label { font-size: var(--fs-caption); font-weight: 600; color: var(--brand-blue); margin-bottom: var(--s-2); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card--lift:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 38, 74, 0.12); }
  .card--lift:hover .card__media img { transform: scale(1.025); }
}

/* Leadership compact cards */
.person-card { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: start; }
.person-card img { width: 96px; height: 120px; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-media); }
.person-card h3 { margin-bottom: 2px; }
.person-card .role { font-size: var(--fs-caption); font-weight: 600; color: var(--brand-blue); margin-bottom: var(--s-3); }
.person-card--text { grid-template-columns: 1fr; }
.person-card--text .rule { width: 48px; height: 3px; background: var(--seal-gold); margin-bottom: var(--s-4); }

/* ---------- Evidence feature ---------- */
.evidence { display: grid; background: var(--deep-blue); border-radius: var(--r-card); overflow: hidden; }
.evidence__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.evidence__panel { padding: var(--s-6); color: #e3e9f5; }
.evidence__panel h2, .evidence__panel h3 { color: var(--white); }
.evidence__obs { border-top: 1px solid rgba(228, 181, 47, 0.6); padding-top: var(--s-4); margin-top: var(--s-4); }
.evidence__obs p { font-size: var(--fs-ui); }
@media (min-width: 1000px) {
  .evidence { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .evidence__media img { aspect-ratio: auto; min-height: 100%; }
  .evidence__panel { padding: var(--s-7); }
}

/* ---------- Giving widget ---------- */
.give { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1000px) { .give { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); } }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.check-list li { position: relative; padding-left: 32px; margin-bottom: var(--s-3); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 16px; height: 9px; border-left: 3px solid var(--seal-gold); border-bottom: 3px solid var(--seal-gold); transform: rotate(-45deg); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); box-shadow: var(--shadow-card); }
.demo-flag {
  display: flex; gap: var(--s-3); align-items: flex-start; background: var(--blue-tint); color: var(--deep-blue);
  border-radius: var(--r-media); padding: var(--s-3) var(--s-4); font-size: var(--fs-ui); line-height: 1.45; font-weight: 600; margin-bottom: var(--s-5); max-width: none;
}
.demo-flag svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--brand-blue); }
.demo-flag--strong { background: var(--deep-blue); color: var(--white); }
.demo-flag--strong svg { color: var(--seal-gold); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 var(--fs-h4)/1.3 var(--font-display); color: var(--deep-blue); margin-bottom: var(--s-2); padding: 0; }
.hint { font-size: var(--fs-ui); line-height: 1.45; margin-bottom: var(--s-4); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 768px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip label {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 8px 16px;
  border: 2px solid var(--control-border); border-radius: var(--r-pill); font: 700 1.125rem/1.2 var(--font-body);
  color: var(--deep-blue); background: var(--white); cursor: pointer; transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.chip label .tick { width: 0; overflow: hidden; display: inline-flex; transition: width 120ms ease; }
.chip label .tick svg { width: 18px; height: 18px; }
.chip input:checked + label { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.chip input:checked + label .tick { width: 18px; }
.chip input:hover + label { border-color: var(--brand-blue); }
.chip input:focus-visible + label { outline: 3px solid var(--brand-blue); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); }
.field { margin-top: var(--s-5); }
.field label { display: block; font-weight: 700; color: var(--deep-blue); margin-bottom: var(--s-2); font-size: var(--fs-ui); }
.currency-input { display: flex; align-items: stretch; max-width: 320px; border: 2px solid var(--control-border); border-radius: var(--r-media); background: var(--white); }
.currency-input:focus-within { border-color: var(--brand-blue); outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.currency-input span { display: grid; place-items: center; padding: 0 12px; font-weight: 700; color: var(--deep-blue); background: var(--paper); border-right: 1px solid var(--line); border-radius: 6px 0 0 6px; font-size: var(--fs-ui); }
.currency-input input { flex: 1; min-width: 0; border: 0; font: 400 1.125rem/1.4 var(--font-body); padding: 12px; min-height: 48px; color: var(--deep-blue); background: transparent; border-radius: 0 6px 6px 0; }
.currency-input input:focus { outline: none; }
.field-hint { font-size: var(--fs-caption); margin: var(--s-2) 0 0; }
.field-error { color: var(--error); font-weight: 700; font-size: var(--fs-ui); line-height: 1.45; display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-3) 0 0; }
.field-error::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--error); color: var(--white); font-size: 0.8125rem; display: grid; place-items: center; margin-top: 2px; }
.is-invalid .currency-input { border-color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.js-required { font-weight: 600; color: var(--deep-blue); }
.js .js-required { display: none; }
html:not(.js) [data-js-only] { display: none !important; }

/* Donate state panels */
.demo-panel { max-width: 760px; }
.demo-step { transition: opacity 160ms ease; }
.demo-step.is-entering { opacity: 0; }
.review-amount { font: 600 var(--fs-numeral)/1 var(--font-display); color: var(--deep-blue); letter-spacing: -0.03em; margin: var(--s-4) 0 var(--s-3); }
.review-meta { font-weight: 600; color: var(--brand-blue); }
.result-panel { background: var(--brand-blue); color: var(--white); border-radius: var(--r-card); padding: var(--s-6); }
.result-panel h2 { color: var(--white); font-size: var(--fs-h3); }
.result-panel p { color: #eef2fa; }

/* ---------- Numbered rows / programme details ---------- */
.rows { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.row { display: grid; gap: var(--s-3); padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__num { font: 600 var(--fs-h3)/1 var(--font-display); color: var(--brand-blue); }
.row h3 { margin-bottom: var(--s-2); }
.row p { margin-bottom: 0; }
@media (min-width: 768px) { .row { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-6); } }

.programme { padding-block: var(--section-y); scroll-margin-top: calc(var(--header-h) + 24px); }
.programme__grid { display: grid; gap: var(--s-6); align-items: center; }
.programme__num { font: 600 var(--fs-numeral)/1 var(--font-display); color: var(--blue-tint); -webkit-text-stroke: 1px var(--brand-blue); letter-spacing: -0.03em; margin-bottom: var(--s-3); }
.section--paper .programme__num { color: var(--white); }
.programme__media img { border-radius: var(--r-media); width: 100%; }
.programme__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (min-width: 900px) {
  .programme__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); }
  .programme--flip .programme__media { order: -1; }
}
.jump-links { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--control-border);
  border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-ui); font-weight: 600; color: var(--deep-blue); background: var(--white);
}
.jump-links a:hover { border-color: var(--brand-blue); background: var(--blue-tint); }
.section--blue .jump-links a, .section--brand .jump-links a { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.section--blue .jump-links a:hover, .section--brand .jump-links a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Steps / columns ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.step { border-top: 3px solid var(--seal-gold); padding-top: var(--s-5); }
.step__n { font: 600 0.875rem/1 var(--font-display); color: var(--brand-blue); letter-spacing: 0.06em; margin-bottom: var(--s-3); display: block; }
.cols { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .steps, .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--2 { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.panel-pair { display: grid; gap: 0; border-radius: var(--r-card); overflow: hidden; }
.panel-pair > div { padding: var(--s-6); }
.panel-pair > div:first-child { background: var(--brand-blue); color: #e9eef8; }
.panel-pair > div:first-child h3 { color: var(--white); }
.panel-pair > div:last-child { background: var(--paper); }
@media (min-width: 900px) { .panel-pair { grid-template-columns: 1fr 1fr; } .panel-pair > div { padding: var(--s-7); } }

/* Timeline (Impact) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--seal-gold); }
.timeline li { position: relative; padding: 0 0 var(--s-6) var(--s-6); }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 3px solid var(--brand-blue); }
.evidence-label { display: inline-block; font-size: var(--fs-caption); font-weight: 700; color: var(--deep-blue); background: var(--blue-tint); border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: var(--s-3); }

/* Wide panorama */
.panorama { margin: 0; }
.panorama img { width: 100%; border-radius: var(--r-media); }

/* Leadership profiles */
.profile { padding-block: var(--section-y); scroll-margin-top: calc(var(--header-h) + 24px); }
.profile__portrait img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-media); }
.profile__role { font-weight: 700; color: var(--brand-blue); font-size: var(--fs-ui); margin-bottom: var(--s-5); }
.profile__body p { max-width: 60ch; }
.profile__text-only { max-width: 820px; }
.profile__text-only .rule { width: 64px; height: 4px; background: var(--seal-gold); margin-bottom: var(--s-5); border-radius: 2px; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.filter-btn {
  min-height: 48px; padding: 8px 20px; border-radius: var(--r-pill); border: 2px solid var(--control-border); background: var(--white);
  color: var(--deep-blue); font: 600 var(--fs-ui)/1.2 var(--font-body); cursor: pointer; transition: background-color 120ms ease, color 120ms ease;
}
.filter-btn[aria-pressed="true"] { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.filter-btn:hover { border-color: var(--brand-blue); }
.filter-count { font-size: var(--fs-ui); font-weight: 600; margin-bottom: var(--s-5); }
html:not(.js) .filter-ui { display: none; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item figure { margin: 0; }
.gallery-item a { display: block; background: var(--paper); border-radius: var(--r-media); overflow: hidden; }
.gallery-frame { height: 320px; display: grid; place-items: center; overflow: hidden; }
.gallery-frame img { max-height: 100%; width: auto; max-width: 100%; transition: transform 240ms ease; }
.gallery-frame--bottom { position: relative; }
.gallery-frame--bottom img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center bottom; }
.gallery-item.is-entering { opacity: 0; }
.gallery-item { transition: opacity 120ms ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gallery-item a:hover img { transform: scale(1.025); }
}
.gallery-item figcaption { margin-top: var(--s-2); }
.gallery-item .cat { display: block; font-weight: 700; color: var(--brand-blue); font-size: 0.8125rem; letter-spacing: 0.04em; }

/* Lightbox dialog */
.lightbox { border: 0; padding: 0; background: transparent; width: min(100% - 24px, 1100px); max-height: calc(100vh - 24px); color: var(--white); }
.lightbox::backdrop { background: rgba(10, 22, 44, 0.92); }
.lightbox__inner { background: var(--deep-blue); border-radius: var(--r-card); padding: var(--s-4); display: grid; gap: var(--s-3); box-shadow: var(--shadow-overlay); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.lightbox h2 { color: var(--white); font-size: var(--fs-ui); font-family: var(--font-body); font-weight: 700; margin: 0; }
.lightbox__img { display: grid; place-items: center; background: #0b1b36; border-radius: var(--r-media); }
.lightbox__img img { max-height: calc(100vh - 260px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox__caption { color: #e3e9f5; margin: 0; font-size: var(--fs-ui); max-width: none; }
.lightbox__nav { display: flex; gap: var(--s-2); justify-content: space-between; flex-wrap: wrap; }
.icon-btn {
  min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--white); background: transparent;
  color: var(--white); font: 600 var(--fs-ui)/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox :focus-visible { outline-color: var(--seal-gold); box-shadow: 0 0 0 3px var(--deep-blue); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: fade-in 160ms ease; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
body.scroll-locked { overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) 0; font: 600 var(--fs-h4)/1.3 var(--font-display); color: var(--deep-blue);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand-blue); color: var(--brand-blue); display: grid; place-items: center; font: 600 1.25rem/1 var(--font-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--s-5); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { border-radius: var(--r-card); padding: var(--s-6); scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-card--foundation { background: var(--brand-blue); color: #e9eef8; }
.contact-card--foundation h2 { color: var(--white); }
.contact-card--school { background: var(--paper); }
.contact-card h2 { font-size: var(--fs-h3); }
.channel { margin: var(--s-5) 0 0; }
.channel dt { font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: var(--s-4); }
.channel dd { margin: 4px 0 0; }
.channel a { font-weight: 600; word-break: break-word; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
.contact-card--foundation a:not(.btn) { color: var(--white); }
.email-wrap { overflow-wrap: anywhere; }

/* ---------- Closing CTA + footer ---------- */
.cta-band { background: var(--deep-blue); color: #dfe6f3; padding-block: var(--section-y); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: var(--gutter); top: 0; width: 96px; height: 4px; background: var(--seal-gold); }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { font-size: var(--fs-lead); line-height: 1.5; color: #e3e9f5; }
.cta-band--brand { background: var(--brand-blue); }
.cta-band a:not(.btn) { color: var(--white); }
.cta-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.cta-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

.site-footer { background: #0b1d3a; color: #c9d4e8; padding-block: var(--s-8) var(--s-6); font-size: var(--fs-ui); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand { display: inline-flex; gap: var(--s-3); align-items: center; text-decoration: none; color: var(--white); min-height: 48px; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand span { font: 600 1.125rem/1.2 var(--font-display); }
.footer-about p { max-width: 44ch; color: #c9d4e8; }
.footer-col h2 { color: var(--white); font: 700 var(--fs-caption)/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: var(--s-7); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--fs-caption); }
.footer-legal p { margin: 0; max-width: none; }
.site-footer :focus-visible { outline-color: var(--seal-gold); box-shadow: 0 0 0 3px #0b1d3a; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Reveal (M2) — only applied after JS opts elements in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(16px); }
  .reveal-in { opacity: 1; transform: none; transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.max-760 { max-width: 760px; }

/* ---------- Fixes after visual QA ---------- */
.rail__frame picture, .gallery-frame picture, .lightbox__img picture { display: contents; }
.on-dark a:not(.btn), .evidence__panel a:not(.btn), .result-panel a:not(.btn) { color: var(--white); }
.card .text-link { display: block; min-height: 48px; padding-block: 12px 0; }
@media (max-width: 1119px) {
  .header-inner { gap: var(--s-3); }
  .brand { gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 0.9375rem; max-width: 12em; }
  .menu-toggle { padding: 0 14px; flex: none; }
}
@media (max-width: 420px) { .brand-name small { display: none; } .brand-name { max-width: 10.5em; } }
.cta-band .jump-links a { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.cta-band .jump-links a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- V4.1 additions ---------- */
/* Full foundation name beside the seal (matches gohief.org); wraps to two lines. */
@media (min-width: 421px) and (max-width: 1119px) { .brand-name { max-width: 13em; } }
@media (max-width: 420px) {
  .header-inner { flex-wrap: wrap; gap: var(--s-2); }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 0.875rem; max-width: 12.25em; }
  .menu-toggle { padding: 0 12px; }
}
@media (min-width: 1120px) {
  .brand-name { font-size: 1rem; max-width: 12.5em; }
  .brand img { width: 56px; height: 56px; }
  .nav-list > li > a, .nav-group-head > a { padding: 0 9px; }
  .sub-toggle { width: 26px; }
  .nav-list > li.nav-cta { padding-left: var(--s-2); }
}
@media (min-width: 1120px) and (max-width: 1279px) { .site-nav { font-size: 0.9375rem; } .nav-list > li > a, .nav-group-head > a { padding: 0 7px; } }
@media (min-width: 1360px) { .brand-name { font-size: 1.0625rem; max-width: 14em; } .nav-list > li > a, .nav-group-head > a { padding: 0 12px; } }
.link-stack { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
/* DEFECT-1: inline-block so a wrapped label shrink-wraps and the arrow stays on its last line. */
.link-stack .text-link { display: inline-block; min-height: 44px; padding-block: 10px; line-height: 1.5; }
.panel-pair .text-link { display: inline-block; min-height: 44px; padding-block: 10px; line-height: 1.5; }
.text-link .nowrap { white-space: nowrap; }
.text-link .nowrap .arrow { margin-left: 6px; }
.documented { max-width: 76ch; }
.source-note { font-size: var(--fs-caption); line-height: 1.5; color: var(--body); max-width: 70ch; }
.source-note .date-kind { display: block; margin-top: 2px; font-style: italic; }
.evidence-label--announced { background: #fbf0cf; }
.chron > li { padding-bottom: var(--s-7); }
.chron__date { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--deep-blue); margin: 0 0 var(--s-2); line-height: 1.2; }
.chron h3 { margin-top: 0; }
.pull-quote { margin: var(--s-5) 0 var(--s-6); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--seal-gold); background: var(--paper); border-radius: 0 var(--r-media) var(--r-media) 0; }
.pull-quote p { font-family: var(--font-display); font-size: var(--fs-lead); line-height: 1.45; color: var(--deep-blue); margin: 0; }
.pull-quote footer { margin-top: var(--s-3); font-size: var(--fs-caption); line-height: 1.5; color: var(--body); }
.pull-quote cite { display: block; font-style: normal; }
.channel-note { font-size: var(--fs-caption); }
/* Narrow phones: icon-only menu button (label stays available to assistive tech) so the full name fits on one row. */
@media (max-width: 379px) {
  .menu-toggle { padding: 0; width: 48px; justify-content: center; }
  .menu-toggle [data-menu-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Increment 1 (CM-08): Home six-priority overview — text-led, 3/2/1 at 1120/768 ---------- */
.priorities { display: grid; gap: var(--gap); list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .priorities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .priorities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.priority { display: flex; flex-direction: column; padding: var(--s-5) 0 0; border-top: 3px solid var(--seal-gold); }
.priority h3 { font-size: var(--fs-h4); line-height: 1.3; margin-bottom: var(--s-2); }
.priority p { font-size: var(--fs-ui); line-height: 1.55; margin-bottom: 0; }
.priority .text-link { margin-top: auto; display: inline-block; min-height: 48px; padding-block: 12px 0; }

/* ---------- Increment 2 ---------- */
/* CM-02a: section eyebrows keep the --fs-eyebrow token; `.section-head p` / `.cta-band p` were enlarging them to --fs-lead. */
.section-head .eyebrow, p.eyebrow { font-size: var(--fs-eyebrow); line-height: 1.4; }

/* CM-02: ordinary narrative/section H2s use the genuine Sora 400 face at the existing --fs-h2 (32–48px) range.
   H1, card titles, profile names, FAQ labels and control/result headings stay 600. */
main h2 { font-weight: 400; letter-spacing: -0.018em; line-height: 1.2; }
main h2[style*="--fs-h3"], .demo-panel h2, .result-panel h2, .contact-card h2, .profile h2 { font-weight: 600; }

/* CM-01 / CM-43 (A1): larger display step for the real headline, naturally wrapped over the hero photograph.
   46px @390 -> 80px @1024 (2 lines, per the 1024 gate), then 80px @1024 -> 112px @1440. */
.home-hero h1 { font-size: clamp(2.875rem, 1.5675rem + 5.363vw, 5rem); min-width: 0; }
@media (max-width: 359px) { .home-hero h1 { font-size: 2.375rem; } }
@media (min-width: 1024px) { .home-hero h1 { font-size: clamp(5rem, 0.077rem + 7.692vw, 7rem); } }

/* CM-44 / CM-15 (A2): exactly one full-bleed documentary band in normal flow, evidence text after it. */
.evidence-band { background: var(--deep-blue); color: #e3e9f5; }
.photo-band { margin: 0; }
.photo-band img { width: 100%; height: auto; aspect-ratio: 1016 / 762; }
.photo-band figcaption { margin: 0; max-width: none; padding-block: var(--s-3) 0; color: #cfd9ec; }
.evidence-band__text { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--section-y); }
.evidence-band h2, .evidence-band h3 { color: var(--white); }
.evidence-band__text .evidence__obs:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
@media (min-width: 1000px) {
  .evidence-band__text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
}

/* CM-16: rail position and buttons exist only while the track can scroll (set by site.js). */
.rail.is-static .rail__track { overflow-x: visible; padding-bottom: 0; }

/* CM-19: >=48px named rows and disclosure, same visual density. Inline links gain hit height from padding only. */
.subnav a, .jump-links a, .channel a, .footer-col a, .cta-links a { min-height: 48px; }
.link-stack .text-link { min-height: 48px; padding-block: 12px; }
.text-link, .breadcrumbs a, .proof__label a, .footer-about p a { padding-block: 13px; }
@media (min-width: 1120px) {
  .sub-toggle { width: 48px; min-height: 48px; }
  .nav-group-head > a { padding-right: 8px; }
}

/* CM-21: reduced motion removes the decorative arrow movement and its duration; indicators keep their end state. */
@media (prefers-reduced-motion: reduce) {
  .arrow, .sub-toggle svg { transition: none !important; }
  .text-link:hover .arrow, .btn:hover .arrow { transform: none; }
}

/* ---------- R1-C10 Gallery Phase 1 ---------- */
/* Seven filter buttons: below 768px the row stays at three rows (<= 140px at 390px); each button keeps a 44px target. */
@media (max-width: 767px) {
  .filters {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    padding-inline: 2px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex: 0 0 auto; min-height: 44px; }
  .filter-btn { min-height: 44px; padding: 6px 12px; font-size: 0.875rem; }
}

/* ---------- R1-C11 Phase 2: click-to-play facade ---------- */
/* Tile = native <button> (a link before media.js runs). Poster is lazy; the video exists only after a tap. */
.media-tile { --media-h: 320px; display: block; width: 100%; padding: 0; border: 0; margin: 0; background: var(--deep-blue); border-radius: var(--r-media); overflow: hidden; color: var(--white); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.media-tile__frame { position: relative; height: var(--media-h); display: grid; place-items: center; overflow: hidden; background: #0b1b36; }
.media-tile__frame img { max-height: 100%; width: auto; max-width: 100%; }
.media-tile__glyph { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: 0; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(16, 38, 74, 0.82); border: 2px solid var(--white); display: grid; place-items: center; transition: transform 160ms ease, background-color 160ms ease; }
.media-tile__glyph svg { width: 30px; height: 30px; margin-left: 4px; }
.media-tile__label { display: block; padding: 10px var(--s-4); min-height: 44px; font-size: var(--fs-ui); font-weight: 600; line-height: 1.5; color: var(--white); background: var(--deep-blue); }
.media-tile:hover .media-tile__glyph, .media-tile:focus-visible .media-tile__glyph { background: var(--brand-blue); }
.media-tile:focus-visible { outline: 3px solid var(--seal-gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .media-tile:hover .media-tile__glyph { transform: translate(-50%, -50%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .media-tile__glyph { transition: none; } }
.media-tile__video { display: block; width: 100%; height: auto; max-height: min(70vh, 640px); background: #0b1b36; border-radius: var(--r-media); object-fit: contain; }
.media-tile__video:focus-visible { outline: 3px solid var(--seal-gold); outline-offset: 3px; }
.gallery-item--video .media-tile__video { height: 364px; max-height: none; }
.media-meta { display: block; font-size: var(--fs-caption); color: var(--body); }
.media-embed { margin: var(--s-5) 0; max-width: 560px; }
.media-embed .media-tile { --media-h: min(70vh, 480px); }
.media-embed figcaption { max-width: none; }


/* R2: reserved interview slot on the homepage (no footage yet — deliberately not a playable tile) */
.interview-slot { display: grid; gap: var(--s-5); margin: 0 0 var(--s-6); align-items: center; }
@media (min-width: 900px) { .interview-slot { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--s-7); } }
.interview-slot__media { margin: 0; }
.interview-slot__media img { width: 100%; height: auto; border-radius: var(--r-media); display: block; }
.interview-slot__status { margin-top: var(--s-3); font-size: var(--fs-caption); color: var(--body); }
.interview-slot__copy h3 { margin: 0 0 var(--s-3); font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; }
.interview-slot__copy p { max-width: 60ch; }

.interview-slot__panel { position: relative; display: grid; place-content: center; gap: var(--s-2); min-height: 260px; border-radius: var(--r-media); background: var(--deep-blue); color: var(--white); text-align: center; border: 1px dashed rgba(255,255,255,0.35); }
.interview-slot__badge { font-size: var(--fs-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--seal-gold); font-weight: 700; }
.interview-slot__note { font-family: var(--font-display); font-size: var(--fs-h4); }

/* Media enrichment: scoped additions only — About pilot-school context block and Programs skills photo story */
.pilot-school-context { margin-top: var(--s-8); }

.skills-photo-story { max-width: 960px; margin-inline: auto; }
.skills-photo-story__main { margin: var(--s-6) 0 0; }
.skills-photo-story__main img { width: 100%; height: auto; border-radius: var(--r-media); }
.skills-photo-story__pair { display: grid; gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
.skills-photo-story__pair figure { margin: 0; }
.skills-photo-story__frame {
  width: min(100%, 315px); aspect-ratio: 3 / 4; margin-inline: auto;
  background: var(--paper); border-radius: var(--r-media); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.skills-photo-story__frame img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 600px) { .skills-photo-story__pair { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) {
  .skills-photo-story__frame { width: 100%; aspect-ratio: auto; }
  .skills-photo-story__frame img { height: 400px; }
}
