/* Sunspi — design system. Static, no build step.
   One primary (ocean navy), one accent (sun orange), a short set of neutrals.
   Type: Barlow (SIL OFL 1.1, Google Fonts). See assets/LICENSES.md. */

:root {
  /* Primary: ocean navy, with shades and tints */
  --navy-950: #061727;   /* deepest: footer, photo overlays */
  --navy-900: #0a2239;   /* primary: nav, dark sections */
  --navy-800: #12344f;   /* raised surface on dark */
  --navy-700: #1d4a6d;   /* hairlines on dark */
  --navy-600: #1b5c85;   /* primary on light: links, numerals, icons */
  --navy-300: #7f9db6;   /* UI borders on dark (3:1+) */
  --navy-200: #b9c8d6;   /* secondary text on dark */
  --navy-100: #dce6ee;   /* hover tint on light */
  --navy-50:  #eef3f7;   /* tinted surface on light */

  /* Accent: sun orange. CTAs and small highlights only. */
  --sun:     #ff8a1f;
  --sun-400: #ffa24a;    /* CTA hover */
  --sun-700: #a84a00;    /* accent ink on light surfaces (AA) */
  --sun-100: #ffe8d1;    /* accent tint */

  /* Neutrals */
  --ink:   #0d1b28;
  --muted: #4a5a6a;
  --paper: #ffffff;
  --sand:  #f4f1ea;
  --line:  #d3dce4;      /* decorative hairline on light */
  --line-strong: #6b7c8c;/* meaningful borders on light (3:1+) */

  /* Scoped to the team cards only: respectful school color themes, not brand lockups. */
  --erau-navy: #003366;
  --erau-gold: #ffc72c;
  --uga-red:   #ba0c2f;
  --uga-black: #000000;

  /* Contextual roles (light surface defaults; dark surfaces override below) */
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --accent-ink: var(--sun-700);
  --link: var(--navy-600);
  --rule: var(--line);
  --focus: var(--navy-600);
  --num: var(--navy-600);

  --font: "Barlow", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);

  /* Tracking */
  --track-display: .1em;   /* hero + largest display */
  --track-head: .08em;     /* section and card headings */
  --track-label: .14em;    /* UI labels: nav, kickers, buttons */

  --nav-h: 60px;
  --radius: 16px;
  --radius-sm: 6px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Photo overlays (navy-950). Every photo card gets a light all-over shade, and
     the text block carries its own scrim (alpha >= .8 behind every line), which
     keeps white text above 4.5:1 even over a pure white pixel. */
  --shade-card: linear-gradient(180deg, rgba(6,23,39,.2) 0%, rgba(6,23,39,.3) 100%);
  --shade-text: linear-gradient(180deg, rgba(6,23,39,0) 0, rgba(6,23,39,.8) 64px, rgba(6,23,39,.93) 100%);
  --shade-section: linear-gradient(180deg, rgba(6,23,39,.88) 0%, rgba(6,23,39,.8) 50%, rgba(6,23,39,.92) 100%);
  --shade-reef: linear-gradient(180deg, rgba(6,23,39,.93) 0%, rgba(6,23,39,.88) 50%, rgba(6,23,39,.94) 100%);
}

/* Dark surfaces share one set of role overrides. */
.section--dark, .section--ocean, .hero, .blog-hero, .footer, .localnav,
.hl-card, .tile, .team-card, .bodymap, .post-card__media {
  --fg: var(--paper);
  --fg-muted: var(--navy-200);
  --accent-ink: var(--sun);
  --link: var(--paper);
  --rule: var(--navy-700);
  --focus: var(--sun);
  --num: var(--paper);
}
/* Light cards nested inside dark sections switch back. */
.section--light, .post-card__body {
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --accent-ink: var(--sun-700);
  --link: var(--navy-600);
  --rule: var(--line);
  --focus: var(--navy-600);
  --num: var(--navy-600);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.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: 12px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 48px, 820px); }

/* ---------- Type ---------- */
/* Headings: Barlow, uppercase, wide tracking. */
.h-xxl, .h-xl, .h-md, .hero__title, .blog-hero__title, .article-hero__title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-head);
  line-height: 1.12;
  overflow-wrap: break-word;
}
.h-xxl { font-size: clamp(1.75rem, 4.4vw, 3.6rem); }
.h-xl  { font-size: clamp(1.55rem, 3.4vw, 2.6rem); letter-spacing: .09em; }
.h-md  { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.25; }
.lead  { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; font-weight: 400; max-width: 50ch; margin-top: 22px; color: var(--fg); }

/* UI labels: small, uppercase, letter-spaced. */
.eyebrow, .hl-card__kicker, .tile__kicker, .post-card__kicker, .post-row__kicker,
.solve__problem, .fix__fault, .pager__dir, .article-refs__title, .team-card__chip,
.refs-group__label {
  font-size: .76rem; font-weight: 600; line-height: 1.3;
  text-transform: uppercase; letter-spacing: var(--track-label);
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--fg-muted); }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--sun); }
.section-head--center .eyebrow { justify-content: center; }
.eyebrow--pill {
  display: inline-flex; gap: 10px; padding: 8px 14px; border-radius: var(--radius-sm);
  background: rgba(6,23,39,.72); border: 1px solid var(--navy-300);
  color: var(--paper);
}
.eyebrow--pill::before { content: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255,138,31,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,138,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,31,0); } }

.text-sun { color: var(--accent-ink); }
.text-ocean { color: var(--num); }
.fine { font-size: .82rem; line-height: 1.5; color: var(--fg-muted); margin-top: 14px; }
.fine--center { text-align: center; }

sup { font-size: clamp(11px, .6em, 14px); line-height: 0; vertical-align: super; margin-left: 2px; font-weight: 600; letter-spacing: 0; }
h2 sup, h3 sup { vertical-align: top; position: relative; top: .9em; }
.fn { color: var(--fg-muted); text-decoration: none; padding: 0 1px; }
.fn:hover, .fn:focus-visible { color: var(--fg); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: var(--track-label);
  text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sun { background: var(--sun); color: var(--navy-950); }
.btn--sun:hover { background: var(--sun-400); }
.btn--ghost { color: var(--paper); background: rgba(6,23,39,.35); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--navy-950); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .72rem; }

/* ---------- Local nav ---------- */
.localnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 34, 57, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-700);
  color: var(--paper);
}
.localnav__inner {
  height: 100%; display: flex; align-items: center; gap: 20px;
  width: min(100% - 40px, var(--container)); margin-inline: auto;
}
.wordmark {
  position: relative; font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .24em; text-decoration: none; color: var(--paper);
  margin-right: auto; line-height: 1; white-space: nowrap; padding-right: 8px;
}
.wordmark__sun {
  position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sun);
}
.localnav__menu ul { display: flex; gap: 22px; list-style: none; }
.localnav__menu a {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; color: var(--navy-200); white-space: nowrap;
  padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.localnav__menu a:hover { color: var(--paper); }
.localnav__menu a[aria-current="true"] { color: var(--paper); border-color: var(--sun); }
.localnav__toggle {
  display: none; background: none; border: 0; color: inherit; padding: 10px; cursor: pointer; border-radius: var(--radius-sm);
}
.localnav__toggle svg { transition: transform .25s var(--ease); }
.localnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 1240px) {
  .localnav__toggle { display: inline-flex; order: 2; }
  .localnav__cta { order: 3; }
  .localnav__menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--navy-900); border-bottom: 1px solid var(--navy-700);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s;
  }
  .localnav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .22s var(--ease); }
  .localnav__menu ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .localnav__menu a { display: block; font-size: .85rem; padding: 14px 0; border-bottom: 1px solid var(--navy-700); }
  .localnav__menu a[aria-current="true"] { color: var(--sun); border-color: var(--navy-700); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: end start;
  color: var(--paper); overflow: hidden;
  margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + 40px);
  background: var(--navy-900);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
/* Video sits over the still fallback; if the media 404s the still shows through. */
.hero__video { object-fit: cover; object-position: 50% 50%; background: transparent; }
.hero--no-video .hero__video { display: none; }
@keyframes heroZoom { to { transform: scale(1); } }
/* Even, dark overlay: the footage is bright turquoise water and white foam,
   so the shade never drops below ~.6 where text can sit. */
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,23,39,.84) 0%, rgba(6,23,39,.66) 24%, rgba(6,23,39,.7) 55%, rgba(6,23,39,.94) 100%);
}
/* Wide screens: the copy sits in the left half, so the shade is heavy there
   (combined alpha >= .7 behind text) and lets the water show on the right. */
@media (min-width: 1241px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6,23,39,.8) 0%, rgba(6,23,39,.3) 22%, rgba(6,23,39,.34) 60%, rgba(6,23,39,.9) 100%),
      linear-gradient(90deg, rgba(6,23,39,.66) 0%, rgba(6,23,39,.66) 46%, rgba(6,23,39,0) 82%);
  }
}
.hero__content {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  padding-bottom: clamp(64px, 11vh, 128px);
}
.hero__title { font-size: clamp(2.2rem, 9.2vw, 6.25rem); letter-spacing: var(--track-display); line-height: 1.02; margin-top: 10px; }
.hero__sub { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.35; max-width: 34ch; margin-top: 26px; }
.hero__meta { font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--paper); margin-top: 12px; max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__title, .hero__sub, .hero__meta, .hero__note { text-shadow: 0 1px 18px rgba(6,23,39,.6); }
.hero__content > * { animation: rise .9s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .18s; }
.hero__content > *:nth-child(4) { animation-delay: .26s; }
.hero__content > *:nth-child(5) { animation-delay: .34s; }
.hero__content > *:nth-child(n+6) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__scroll {
  position: absolute; bottom: 20px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--paper);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--paper); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero ambient controls: small circular icon buttons in the hero's corner. */
.hero__ambient {
  position: absolute; z-index: 2; right: max(20px, env(safe-area-inset-right)); bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.sound-toggle, .video-toggle {
  display: inline-grid; place-items: center; cursor: pointer;
  width: 44px; height: 44px; padding: 0; border-radius: 50%; color: var(--paper);
  background: rgba(6,23,39,.6); border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s, border-color .25s, transform .2s var(--ease);
}
.sound-toggle:hover, .video-toggle:hover { background: var(--navy-950); border-color: var(--paper); }
.sound-toggle:active, .video-toggle:active { transform: scale(.94); }
.sound-toggle__icon { flex: none; }
.sound-toggle__icon--on, .sound-toggle[data-state="on"] .sound-toggle__icon--off { display: none; }
.sound-toggle[data-state="on"] .sound-toggle__icon--on { display: block; }
.sound-toggle[data-state="on"] { background: var(--navy-950); border-color: var(--sun); }
.sound-toggle .wave { animation: wavePulse 1.8s ease-in-out infinite; }
.sound-toggle .wave--2 { animation-delay: .3s; }
@keyframes wavePulse { 50% { opacity: .35; } }
.video-toggle__icon--play, .video-toggle[data-state="paused"] .video-toggle__icon--pause { display: none; }
.video-toggle[data-state="paused"] .video-toggle__icon--play { display: block; }
.hero__note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 18px;
  font-size: .88rem; line-height: 1.45; color: var(--paper); max-width: 52ch;
}
.hero__note svg { flex: none; margin-top: 4px; }
@media (max-height: 940px) and (min-width: 561px) {
  .hero__title { font-size: clamp(2.4rem, 7vw, 5rem); }
  .hero__sub { margin-top: 18px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
  .hero__ctas { margin-top: 24px; }
  .hero__content { padding-bottom: clamp(56px, 9vh, 96px); }
}

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 152px) 0; overflow: hidden; color: var(--fg); }
.section--light { background: var(--paper); }
.section--light + .section--light { background: var(--navy-50); }
.section--dark, .section--ocean { background: var(--navy-900); }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.section__bg, .section__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.section__bg { z-index: -2; }
.section__bg img { object-fit: cover; }
.section--photo::before, .section--reef::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--shade-section); }
.section--reef::before { background: var(--shade-reef); }

/* ---------- Photo cards (highlights, tiles, team) ---------- */
.hl-card, .tile, .team-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); color: var(--paper); background: var(--navy-900);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hl-card picture, .tile picture, .team-card picture { position: absolute; inset: 0; z-index: -2; }
.hl-card img, .tile img, .team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hl-card:hover img, .tile:hover img, .team-card:hover img { transform: scale(1.03); }
.hl-card::after, .tile::after, .team-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--shade-card); }
.hl-card h3, .tile h3, .team-card h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--track-head); line-height: 1.15;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.hl-card__kicker, .tile__kicker { color: var(--paper); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hl-card__kicker::before, .tile__kicker::before { content: ""; width: 20px; height: 2px; background: var(--sun); flex: none; }
.hl-card__body p:last-child, .tile__body p:last-child:not(.tile__kicker) { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: var(--paper); }

/* Highlights gallery */
.highlights { padding-bottom: clamp(56px, 8vw, 96px); }
.highlights .section-head { margin-bottom: 36px; }
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -3px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__track {
  list-style: none; display: flex; gap: 20px;
  padding-inline: max(24px, calc((100vw - var(--container)) / 2));
  padding-bottom: 8px;
}
.hl-card {
  flex: 0 0 auto; scroll-snap-align: center;
  width: min(84vw, 380px); height: min(118vw, 600px);
}
.hl-card__body, .tile__body, .team-card__body { padding: 84px 28px 32px; background: var(--shade-text); }
.hl-card__big, .tile__big { font-size: clamp(2rem, 3.4vw, 2.75rem) !important; letter-spacing: var(--track-display) !important; }
/* Two campus photos stacked in one card */
.hl-card--duo picture { inset: 0 0 50% 0; }
.hl-card--duo picture + picture { inset: 50% 0 0 0; }
.gallery__controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.gallery__btn {
  width: 46px; height: 46px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--paper); color: var(--navy-900); border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.gallery__btn:hover:not(:disabled) { background: var(--navy-900); color: var(--paper); border-color: var(--navy-900); }
.gallery__btn:disabled { opacity: .45; cursor: default; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { min-height: 380px; }
.tile--wide { grid-column: span 2; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { border-top: 1px solid var(--rule); padding-top: 22px; }
.stat__num, .gut__num, .survival__num, .post-row__num, .timeline__year, .fault__num, .step__num {
  font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1;
  font-variant-numeric: lining-nums;
}
.stat__num { font-size: clamp(2.8rem, 5.6vw, 4.75rem); color: var(--num); }
.stat__num--sm { font-size: clamp(2.6rem, 5vw, 4rem); }
.stat__label { margin-top: 14px; font-size: 1.02rem; line-height: 1.5; max-width: 32ch; color: var(--fg); }

/* Problem */
.gut { margin-top: clamp(40px, 6vw, 72px); max-width: 920px; }
.gut--right { margin-left: auto; text-align: right; }
.gut--right .gut__line, .gut--right .gut__aside { margin-left: auto; }
.gut__num { font-size: clamp(4.2rem, 15vw, 11rem); line-height: .9; color: var(--paper); }
.gut__line { margin-top: 20px; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.25; max-width: 28ch; }
.gut__line strong { color: var(--sun); font-weight: 700; }
.gut__aside { margin-top: 14px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 46ch; color: var(--fg-muted); }

.story { margin: clamp(64px, 9vw, 120px) 0; max-width: 760px; padding-left: clamp(18px, 3vw, 32px); border-left: 2px solid var(--sun); }
.story p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; font-weight: 400; }
.story p + p { margin-top: 1.1em; }
.story strong { font-weight: 700; }

.survival { margin-top: clamp(64px, 9vw, 112px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.survival__intro { font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; }
.survival__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); margin-top: 32px; }
.survival__num { font-size: clamp(3.4rem, 8vw, 6rem); color: var(--paper); }
.survival__num span { font-size: .5em; vertical-align: top; color: var(--sun); }
.survival__cell--dark .survival__num { color: var(--sun); }
.survival__label { margin-top: 12px; font-size: 1.02rem; max-width: 28ch; }
.survival__arrow { width: clamp(40px, 8vw, 110px); height: 2px; background: var(--navy-300); position: relative; }
.survival__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--navy-300); border-right: 0; }
.survival__outro { margin-top: 28px; font-size: 1.1rem; font-weight: 500; }

.split {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(56px, 8vw, 104px);
}
.split__col p:not(.stat__num):not(.fine) { margin-top: 16px; font-size: 1.08rem; }
.split__col p + p:not(.fine) { margin-top: 12px; }
.split .h-md { margin-bottom: 4px; }

/* ---------- Faults ---------- */
.faults__index { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 clamp(56px, 8vw, 96px); }
.faults__index a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--navy-50); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em;
  transition: background-color .2s;
}
.faults__index a:hover { background: var(--navy-100); }
.faults__index span, .fix__fault span { font-weight: 700; color: var(--accent-ink); }
.fault__tag { color: var(--sun); margin-right: 2px; }
.fault {
  display: grid; grid-template-columns: auto 1fr minmax(240px, .8fr); gap: clamp(20px, 4vw, 56px); align-items: start;
  padding-top: 32px; border-top: 1px solid var(--rule); margin-bottom: clamp(56px, 8vw, 96px);
}
.fault--head { grid-template-columns: auto 1fr; margin-bottom: 40px; }
.fault__num { font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--accent-ink); letter-spacing: .06em; line-height: 1.35; }
.fault__body p { margin-top: 14px; font-size: 1.08rem; color: var(--fg-muted); max-width: 56ch; }
.fault__stat .stat__num { font-size: clamp(2.8rem, 5.4vw, 4.25rem); }
.fault, .fault-card, .fault-missed { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Missed spots */
.missed__grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.missed__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 36px; }
.missed__stats .stat__num { font-size: clamp(2.6rem, 4.6vw, 3.75rem); }
.bodymap {
  margin: 0; position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--navy-900);
  border-radius: var(--radius); padding: 24px 24px 22px; color: var(--paper);
}
.bodymap__toggle { display: inline-flex; padding: 4px; border-radius: var(--radius-sm); background: var(--navy-950); border: 1px solid var(--navy-300); margin-bottom: 8px; }
.bodymap__toggle button {
  border: 0; background: transparent; color: var(--paper); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 9px 16px; border-radius: 4px; cursor: pointer; transition: background-color .25s, color .25s;
}
.bodymap__toggle button.is-active { background: var(--paper); color: var(--navy-950); }
.bodymap__svg { display: block; width: 100%; max-height: 460px; margin: 6px auto 0; }
.bodymap__skin { fill: #e3c3a4; }
.bodymap__coat { fill: var(--paper); opacity: .5; transition: opacity .6s var(--ease); }
.bodymap__misses ellipse { fill: var(--sun); transition: opacity .6s var(--ease), transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.bodymap__svg[data-mode="hand"] .bodymap__misses ellipse { animation: missBlink 2.4s ease-in-out infinite; }
.bodymap__svg[data-mode="sunspi"] .bodymap__misses ellipse { opacity: 0; transform: scale(.4); animation: none; }
.bodymap__svg[data-mode="sunspi"] .bodymap__coat { opacity: .72; }
@keyframes missBlink { 50% { opacity: .6; } }
.bodymap__neckline { stroke: var(--paper); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bodymap__cap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .85rem; margin-top: 12px; }
.bodymap__cap .fine { flex-basis: 100%; margin-top: 4px; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.legend::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.legend--miss::before { background: var(--sun); }
.legend--coat::before { background: #f1e1d2; }
.legend--self::before { background: #e3c3a4; box-shadow: inset 0 0 0 1.5px var(--navy-900), 0 0 0 1.5px var(--paper); }

/* Fault cards: photo on top, text on paper */
.fault-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fault-card { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.fault-card__media { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--navy-900); }
.fault-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fault-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,23,39,.1), rgba(6,23,39,.4)); }
.fault-card__body { padding: clamp(24px, 3vw, 36px); }
.fault-card h3 { margin-top: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.2; }
.fault-card p:not(.fault__num) { margin-top: 14px; color: var(--fg-muted); font-size: 1.02rem; }

/* ---------- Habits ---------- */
.callout { margin-top: clamp(56px, 7vw, 88px); font-weight: 500; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.35; max-width: 38ch; }
.callout strong { color: var(--sun); font-weight: 700; }

/* ---------- Fixes ---------- */
.fixes__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.fix { padding: 24px 0 30px; border-top: 1px solid var(--rule); }
.fix__fault { color: var(--fg-muted); }
.fix__fault span { margin-right: 6px; }
.fix__answer { margin-top: 10px; font-weight: 500; font-size: 1.2rem; line-height: 1.35; color: var(--paper); }
.selfnote {
  margin: clamp(40px, 6vw, 64px) auto 0; max-width: 62ch; text-align: center; font-size: 1.02rem;
  padding: 18px 24px; border-radius: var(--radius-sm); border: 1px solid var(--navy-300);
}
.selfnote strong { font-weight: 700; }

/* ---------- How it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-bottom: clamp(56px, 8vw, 96px); }
.step { padding-top: 24px; border-top: 2px solid var(--navy-900); }
.step__num { display: block; font-size: clamp(2.6rem, 4.6vw, 3.75rem); color: var(--navy-600); margin-bottom: 18px; }
.step h3 { font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.2; }
.step p { margin-top: 12px; color: var(--fg-muted); font-size: 1.04rem; }

.facenote {
  display: flex; gap: 22px; align-items: center; margin: 0 auto clamp(56px, 8vw, 96px); max-width: 860px;
  padding: 24px 28px; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line);
}
.facenote__icon { width: 52px; height: 52px; flex: none; color: var(--navy-600); }
.facenote__title { font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: 1.02rem; line-height: 1.3; }
.facenote p:not(.facenote__title) { margin-top: 6px; color: var(--fg-muted); }

/* ---------- Reef ---------- */
.story--reef { margin: 0 0 clamp(56px, 8vw, 96px); }
.harm { margin-bottom: clamp(56px, 8vw, 96px); }
.harm__intro { font-size: 1.08rem; font-weight: 500; color: var(--paper); }
.harm__list { list-style: none; margin-top: 18px; }
.harm__list li {
  font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); line-height: 1.15;
  font-size: clamp(1.7rem, 5.2vw, 4rem); color: var(--paper);
}
.harm__list li:nth-child(2) { color: rgba(255,255,255,.84); }
.harm__list li:nth-child(3) { color: rgba(255,255,255,.7); }
.harm__list li:nth-child(4) { color: rgba(255,255,255,.58); }
.harm__list .harm__last { color: var(--sun); }
.harm .fine { max-width: 70ch; }
.reef__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.reef__card { padding-top: 28px; border-top: 1px solid var(--navy-300); }
.reef__card > p { margin-top: 18px; font-size: 1.05rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li { padding: 8px 12px; border-radius: var(--radius-sm); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--navy-300); color: var(--paper); background: rgba(6,23,39,.6); }
.timeline { list-style: none; margin-top: 24px; display: grid; gap: 20px; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--navy-700); }
.timeline__year { font-size: 1.4rem; letter-spacing: .04em; color: var(--paper); line-height: 1.2; }
.reef__hope { margin-top: clamp(64px, 9vw, 112px); text-align: center; }
.reef__pledge {
  font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); line-height: 1.12;
  font-size: clamp(1.7rem, 4.6vw, 3.6rem); color: var(--paper);
}
.reef__hope-line { margin: 24px auto 0; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

/* ---------- One step (closer) ---------- */
.section--sun { background: var(--sand); }
.section--sun .h-xxl { font-size: clamp(2rem, 6.4vw, 5rem); }
.solves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(24px, 3vw, 40px); }
.solve { padding: 24px 0 28px; border-top: 2px solid var(--navy-900); }
.solve__problem { color: var(--accent-ink); }
.solve__answer { margin-top: 10px; font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.section--sun .fine { margin-top: 36px; }

/* ---------- Team: campus photo + school-color overlay ---------- */
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.team-card { min-height: 480px; justify-content: space-between; border-top: 6px solid var(--school-accent); }
.team-card__chip {
  align-self: flex-start; margin: 24px 0 0 28px; padding: 8px 12px; border-radius: 4px;
  background: var(--chip-bg); color: var(--chip-fg);
}
.team-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.team-card__body p { margin-top: 14px; font-size: 1.04rem; line-height: 1.5; color: var(--paper); max-width: 42ch; }
/* Embry-Riddle: navy #003366 with gold accent */
.team-card--eng { --school-accent: var(--erau-gold); --chip-bg: var(--erau-gold); --chip-fg: var(--erau-navy); background: var(--erau-navy); }
.team-card--eng::after { background: linear-gradient(180deg, rgba(0,51,102,.5) 0%, rgba(0,51,102,.62) 100%); }
.team-card--eng .team-card__body { background: linear-gradient(180deg, rgba(0,38,77,0) 0, rgba(0,38,77,.86) 64px, rgba(0,30,62,.96) 100%); }
/* UGA: red #BA0C2F and black, white text */
.team-card--med { --school-accent: var(--uga-red); --chip-bg: var(--uga-red); --chip-fg: var(--paper); background: var(--uga-black); }
.team-card--med::after { background: linear-gradient(180deg, rgba(186,12,47,.55) 0%, rgba(110,7,28,.6) 100%); }
.team-card--med .team-card__body { background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.84) 64px, rgba(0,0,0,.94) 100%); }

/* ---------- Post cards (blog teasers): photo on top, text below ---------- */
.post-cards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post-card a {
  height: 100%; display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--radius); overflow: hidden; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post-card a:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(6,23,39,.7); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--navy-900); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card a:hover .post-card__media img { transform: scale(1.04); }
.post-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,23,39,.1), rgba(6,23,39,.45)); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.post-card__kicker { color: var(--accent-ink); }
.post-card h3 { margin-top: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: .98rem; line-height: 1.35; color: var(--ink); }
.post-card__body p:not(.post-card__kicker) { margin-top: 12px; font-size: .96rem; line-height: 1.5; color: var(--muted); }
.post-card__more { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--navy-600); }
.post-card__more::after { content: " \2192"; }
.learn__all { margin-top: 36px; }

/* ---------- Mission ---------- */
.mission { background: var(--sand) !important; }
.mission .section-head { margin-bottom: 40px; }
.mission__places { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mission__places li { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.mission__places li:last-child { background: var(--navy-900); border-color: var(--navy-900); color: var(--paper); }
.mission__line { margin-top: clamp(40px, 6vw, 64px); text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: clamp(1.2rem, 2.4vw, 1.9rem); line-height: 1.3; }
.mission__line span { color: var(--navy-600); }

/* ---------- Waitlist ---------- */
.waitlist__form { max-width: 580px; margin-inline: auto; }
.field {
  display: flex; gap: 8px; padding: 6px; border-radius: 10px;
  background: rgba(6,23,39,.82); border: 1.5px solid var(--navy-200);
}
.field:focus-within { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255,138,31,.35); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--paper);
  font: inherit; font-size: 1.05rem; padding: 0 16px; outline: none;
}
.field input::placeholder { color: var(--navy-200); opacity: 1; }
.field__error { margin-top: 12px; text-align: center; color: var(--sun) !important; font-weight: 600; }
.waitlist__thanks { text-align: center; padding: 32px; border-radius: var(--radius); background: rgba(6,23,39,.82); border: 1px solid var(--navy-300); max-width: 580px; margin-inline: auto; }
.waitlist__thanks p + p { margin-top: 10px; }
.waitlist__thanks:focus { outline: none; }

/* ---------- FAQ ---------- */
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.35;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--navy-600); border-bottom: 2.5px solid var(--navy-600);
  transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s;
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__list details p { padding: 0 48px 28px 0; color: var(--muted); font-size: 1.04rem; max-width: 65ch; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--navy-200); padding: 56px 0 40px; font-size: .84rem; line-height: 1.6; }
.footer a { color: var(--paper); text-underline-offset: 3px; }
.footer__note { max-width: 86ch; }
.footer__note + .footer__note { margin-top: 10px; }
.footer__bottom {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--navy-700);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
}
.wordmark--footer { margin-right: 0; font-size: 1.05rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.footer__links a { text-decoration: none; color: var(--navy-200); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.footer__links a:hover { color: var(--paper); text-decoration: underline; }
.footer__legal, .footer__credits, .footer__disclaimer { flex-basis: 100%; max-width: 100ch; }
.footer__credits, .footer__disclaimer { font-size: .78rem; }
.footer__legal { margin-top: -6px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   Blog: index + article pages, and the Sources page
   ===================================================================== */
.blog-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--paper);
  margin-top: calc(var(--nav-h) * -1); padding: calc(var(--nav-h) + clamp(64px, 10vw, 128px)) 0 clamp(56px, 8vw, 96px);
  background: var(--navy-900);
  border-bottom: 4px solid var(--sun);
}
.blog-hero__title { font-size: clamp(2rem, 6.4vw, 4.5rem); letter-spacing: var(--track-display); line-height: 1.05; }
.blog-hero__note { margin-top: 20px; font-size: .92rem; color: var(--navy-200); max-width: 60ch; }

.post-list { list-style: none; display: grid; gap: 20px; }
.post-row a {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr auto; gap: clamp(20px, 3.5vw, 44px); align-items: center;
  padding: 16px clamp(16px, 2.5vw, 28px) 16px 16px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.post-row a:hover { border-color: var(--navy-600); transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(6,23,39,.6); }
.post-row__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--navy-900); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,23,39,.1), rgba(6,23,39,.4)); }
.post-row__kicker { color: var(--sun-700); }
.post-row h2 { margin-top: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: clamp(1.02rem, 1.7vw, 1.3rem); line-height: 1.3; }
.post-row p:not(.post-row__kicker) { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.post-row__go { width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: var(--navy-900); }

/* Article header */
.article-hero { padding-bottom: clamp(48px, 7vw, 88px); }
.article-hero .container { max-width: 820px; }
.article-hero__kicker { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--sun); margin-bottom: 20px; }
.article-hero__kicker a { color: var(--navy-200); text-decoration: none; }
.article-hero__kicker a:hover { color: var(--paper); text-decoration: underline; }
.article-hero__title { font-size: clamp(1.6rem, 3.8vw, 2.75rem); line-height: 1.18; }
.article-hero__dek { margin-top: 22px; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--paper); max-width: 40em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--navy-200); }
.article-meta > *:not(:empty) + *:not(:empty)::before { content: "\00b7"; margin-right: 18px; }
.article-meta:empty, .article-meta > :empty { display: none; }

/* Long-form body */
.article-wrap { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.prose { width: min(100% - 48px, 720px); margin-inline: auto; font-size: clamp(1.08rem, 1.25vw, 1.17rem); line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.25em; }
.prose h1, .prose > .dek { display: none; } /* drafts include their own h1/dek; the header shows them */
.prose h2 { margin-top: 2.4em; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-head); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3; color: var(--ink); }
.prose h3 { margin-top: 1.9em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin-bottom: 0; }
.prose a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy-900); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--navy-600); font-weight: 700; }
.prose sup a { text-decoration: none; font-weight: 700; color: var(--navy-600); padding: 0 1px; }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sun);
  font-weight: 500; font-size: 1.25em; line-height: 1.4; color: var(--ink);
}
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; color: var(--ink); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.prose .callout-stat { padding: 24px 0; border-top: 2px solid var(--navy-900); border-bottom: 1px solid var(--line); }
.prose .callout-stat strong { display: block; font-weight: 700; font-size: 3rem; line-height: 1; color: var(--navy-600); }
/* Article reference lists: compact, small text. Drafts end with <h2>References</h2><ol>…</ol>. */
.prose h2#references, .prose h2#sources, .prose h2:has(+ ol > li[id^="ref-"]) { font-size: .76rem; letter-spacing: var(--track-label); color: var(--muted); padding-top: 2em; border-top: 1px solid var(--line); }
.prose li[id^="ref-"], .article-refs li { font-size: .82rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose li[id^="ref-"] + li { margin-top: .35em; }
.prose li[id^="ref-"]:target, .article-refs li:target, .refs-list li:target { background: var(--sun-100); color: var(--ink); border-radius: 4px; box-shadow: 0 0 0 6px var(--sun-100); }

.article-refs { width: min(100% - 48px, 720px); margin: clamp(48px, 7vw, 80px) auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.article-refs__title { color: var(--muted); }
.article-refs ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 6px; }
.article-refs a { color: var(--navy-600); }
.article-note { margin-top: 24px; font-size: .82rem; color: var(--muted); }
.article-refs--note { border-top: 0; padding-top: 0; margin-top: 32px; }

.placeholder-note { padding: 28px; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line); text-align: center; }
.placeholder-note p + p { margin-top: 8px; }
.placeholder-note .h-md { color: var(--ink); }

.more-articles .post-cards { grid-template-columns: repeat(3, 1fr); }
.more-articles .section-head { margin-bottom: 36px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pager__link { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: border-color .2s, background-color .2s; }
.pager__link:hover { border-color: var(--navy-600); background: var(--navy-50); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { color: var(--sun-700); }
.pager__link--prev .pager__dir::before { content: "\2190  "; }
.pager__link--next .pager__dir::after { content: "  \2192"; }
.pager__title { font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--ink); }

/* Sources page */
.refs-wrap { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.refs-wrap .container { max-width: 880px; }
.refs-toc { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 6vw, 64px); }
.refs-toc a { display: inline-flex; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--navy-50); color: var(--ink); text-decoration: none; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; transition: background-color .2s; }
.refs-toc a:hover { background: var(--navy-100); }
.refs-group { padding-top: 28px; border-top: 2px solid var(--navy-900); scroll-margin-top: calc(var(--nav-h) + 16px); }
.refs-group + .refs-group { margin-top: clamp(40px, 6vw, 64px); }
.refs-group__label { color: var(--sun-700); }
.refs-group h2 { margin-top: 8px; }
.refs-group__intro { margin-top: 10px; color: var(--muted); font-size: 1rem; max-width: 66ch; }
.refs-list { margin-top: 22px; padding-left: 2.2em; display: grid; gap: 14px; }
.refs-list li { font-size: .95rem; line-height: 1.6; color: var(--ink); padding-left: 6px; overflow-wrap: anywhere; scroll-margin-top: calc(var(--nav-h) + 24px); }
.refs-list li::marker { font-weight: 700; color: var(--navy-600); }
.refs-list a { color: var(--navy-600); text-underline-offset: 3px; }
.refs-list a:hover { color: var(--navy-900); }
.refs-note { margin-top: clamp(40px, 6vw, 64px); padding: 24px 28px; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.refs-note p + p { margin-top: 10px; }
.refs-note a { color: var(--navy-600); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats--4 { grid-template-columns: repeat(2, 1fr); }
  .solves { grid-template-columns: repeat(2, 1fr); }
  .missed__grid { grid-template-columns: 1fr; }
  .bodymap { position: relative; top: 0; max-width: 460px; margin-inline: auto; width: 100%; }
  .post-cards { grid-template-columns: 1fr 1fr; }
  .fault { grid-template-columns: auto 1fr; }
  .fault__stat { grid-column: 2; }
}
@media (max-width: 860px) {
  .stats--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
  .reef__grid, .team__grid { grid-template-columns: 1fr; }
  .fault-cards { grid-template-columns: 1fr; }
  .gut--right { text-align: left; margin-left: 0; }
  .gut--right .gut__line, .gut--right .gut__aside { margin-left: 0; }
  .post-row a { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 22px; }
  .post-row__go { display: none; }
  .more-articles .post-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .container, .container--narrow { width: min(100% - 40px, var(--container)); }
  .h-xxl br { display: none; }
  .localnav__inner { gap: 10px; }
  .wordmark { font-size: 1rem; letter-spacing: .2em; }
  .localnav__cta { padding: 0 12px; font-size: .66rem; letter-spacing: .1em; }
  .stats--3, .stats--4, .missed__stats { grid-template-columns: 1fr; gap: 36px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 340px; }
  .team-card { min-height: 440px; }
  .solves { grid-template-columns: 1fr; }
  .field { flex-direction: column; padding: 8px; }
  .field input { min-height: 48px; text-align: center; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  /* Phone: flatter, darker hero shade so every line clears AA over foam. */
  .hero__shade { background: linear-gradient(180deg, rgba(6,23,39,.86) 0%, rgba(6,23,39,.7) 22%, rgba(6,23,39,.74) 55%, rgba(6,23,39,.95) 100%); }
  .gallery__controls { justify-content: center; }
  .post-cards { grid-template-columns: 1fr; }
  .survival__row { grid-template-columns: 1fr; }
  .survival__arrow { width: 2px; height: 36px; margin-left: 24px; }
  .survival__arrow::after { right: auto; top: auto; left: -5px; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--navy-300); border-bottom: 0; }
  .fault, .fault--head { grid-template-columns: 1fr; gap: 8px; }
  .fault__stat { grid-column: auto; margin-top: 12px; }
  .facenote { flex-direction: column; align-items: flex-start; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
  .sound-toggle .wave { animation: none !important; }
}

/* Sources page: credits list and plain footer */
.refs-list--plain { list-style: none; padding-left: 0; }
.refs-list--plain li { padding-left: 0; font-size: .88rem; color: var(--muted); }
.refs-group + .refs-note, .refs-note + .refs-group { margin-top: clamp(40px, 6vw, 64px); }
.refs-group__intro a { color: var(--navy-600); }
.footer__bottom--plain { margin-top: 0; padding-top: 0; border-top: 0; }
