/* MCYRF site styles.
   Type and shapes follow the original mcyrf.org: Anton for uppercase headlines,
   Public Sans for text, small square-ish corners and hard offset shadows on buttons.
   Colors are flag navy and Old Glory red. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-var-latin.woff2") format("woff2-variations"), url("../fonts/public-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --navy: #0a1f44;
  --navy-2: #13306b;
  --navy-deep: #06152f;
  --red: #b22234;          /* Old Glory red */
  --red-hover: #9a1c2c;

  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-card: #ffffff;
  --ink: #0a1f44;          /* headings */
  --text: #1c2638;         /* body */
  --muted: #5a6479;
  --line: rgba(10, 31, 68, 0.12);
  --line-strong: rgba(10, 31, 68, 0.22);
  --accent: var(--red);
  --accent-ink: #b22234;   /* red used as text: 6.1:1 on white */
  --band: var(--navy);
  --band-text: #e8edf7;
  --btn-shadow: var(--navy-deep);
  --pill-bg: var(--navy);
  --panel-bg: var(--navy);
  --flag-blue: #3c6fd1;    /* dark mode trim only */
  --headline-red: var(--accent-ink);
  --stars-opacity: 0.07;
  --stripe-3: var(--red);
  --stripe-blue: var(--navy-2);
  --band-trim: none;
  --panel-trim: none;
  --hero-trim: none;

  --glass: rgba(255, 255, 255, 0.86);
  --shadow-md: 0 2px 6px rgba(10, 31, 68, 0.06), 0 12px 32px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 6px 16px rgba(10, 31, 68, 0.08), 0 28px 64px rgba(10, 31, 68, 0.16);

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;

  --gutter: clamp(16px, 4.5vw, 40px);
  --maxw: 1200px;
  --nav-h: 68px;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark mode: charcoal, with red and blue flag trim on the bands and panels.
   The <head> script sets data-theme from the saved choice or the system
   setting; the media query covers visitors whose browser blocks that script. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121212;
    --bg-soft: #1a1a1a;
    --bg-card: #202020;
    --ink: #f5f5f5;
    --text: #dddddd;
    --muted: #a6a6a6;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.20);
    --accent: #e0364a;
    --accent-ink: #ff5c5c;
    --headline-red: #e0364a;
    --band: #1e1e1e;
    --navy-deep: #0b0b0b;
    --btn-shadow: #000;
    --glass: rgba(18, 18, 18, 0.88);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.35), 0 28px 64px rgba(0, 0, 0, 0.5);
    --pill-bg: var(--red);
    --panel-bg: var(--band);
    --stars-opacity: 0.13;
    --stripe-3: var(--flag-blue);
    --stripe-blue: var(--flag-blue);
    --band-trim: inset 0 6px 0 var(--red), inset 0 -6px 0 var(--flag-blue);
    --panel-trim: inset 0 -4px 0 var(--flag-blue);
    --hero-trim: 0 4px 0 var(--flag-blue);
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --bg-soft: #1a1a1a;
  --bg-card: #202020;
  --ink: #f5f5f5;
  --text: #dddddd;
  --muted: #a6a6a6;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --accent: #e0364a;
  --accent-ink: #ff5c5c;
  --headline-red: #e0364a;
  --band: #1e1e1e;
  --navy-deep: #0b0b0b;
  --btn-shadow: #000;
  --glass: rgba(18, 18, 18, 0.88);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.35), 0 28px 64px rgba(0, 0, 0, 0.5);
  --pill-bg: var(--red);
  --panel-bg: var(--band);
  --stars-opacity: 0.13;
  --stripe-3: var(--flag-blue);
  --stripe-blue: var(--flag-blue);
  --band-trim: inset 0 6px 0 var(--red), inset 0 -6px 0 var(--flag-blue);
  --panel-trim: inset 0 -4px 0 var(--flag-blue);
  --hero-trim: 0 4px 0 var(--flag-blue);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 72px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: rgba(178, 34, 52, 0.18); }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display, .h1, .h2, .credo__line {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.005em;
  text-wrap: balance;
}
.display { font-size: clamp(3rem, 1.6rem + 6vw, 6.4rem); line-height: 0.92; }
.h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); line-height: 0.92; }
.h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.8rem); line-height: 0.95; }
.h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; }
.lede {
  font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 42ch;
}
.small { font-size: 0.9rem; line-height: 1.5; }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.red { color: var(--headline-red); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; line-height: 1; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0 1.4em;
  border-radius: var(--radius-sm); border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 4px 4px 0 var(--btn-shadow);
  font: 700 1rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, transform 80ms ease-out, box-shadow 80ms ease-out;
  touch-action: manipulation;
}
.btn:hover { --btn-bg: var(--red-hover); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--ghost:active { box-shadow: none; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; --btn-shadow: var(--red); }
.btn--white:hover { --btn-bg: #eef2fa; --btn-bd: #eef2fa; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.6); box-shadow: none; }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--ghost-light:active { box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 1em; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn--sm.btn--ghost { box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--accent-ink); text-decoration: none;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.prose a, .inline-link { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose a:hover, .inline-link:hover { text-decoration-thickness: 2px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
/* The divider only appears once content has scrolled underneath. */
.nav[data-scrolled="true"] { border-bottom-color: var(--line-strong); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.03em; }
.brand__sub { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__links { display: none; align-items: center; gap: 2px; }
.nav__links a {
  position: relative; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--red);
}
.nav__donate { display: none; }
.nav__toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:active { background: var(--bg-soft); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease;
}
.theme-toggle:hover, .theme-toggle:active { background: var(--bg-soft); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html:not([data-theme]) .theme-toggle { display: none; }
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .l1, .nav__toggle .l2 { transition: transform 240ms var(--ease-out); transform-origin: 12px 12px; }
.nav[data-menu="open"] .nav__toggle .l1 { transform: translateY(3.5px) rotate(45deg); }
.nav[data-menu="open"] .nav__toggle .l2 { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 560px) { .nav__donate { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}
@media (max-width: 559px) {
  .nav__inner { gap: 10px; }
  .brand { gap: 9px; }
  .theme-toggle { width: 36px; height: 36px; }
}
@media (max-width: 380px) { .brand__sub { display: none; } }

/* Mobile menu: a panel under the button that dims the page behind it */
.menu-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 21, 47, 0.32);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
.menu {
  position: fixed; z-index: 95;
  top: calc(var(--nav-h) + 8px); right: var(--gutter); left: var(--gutter);
  max-width: 420px; margin-left: auto;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  opacity: 0; visibility: hidden;
  transition: transform 220ms var(--ease-out), opacity 160ms ease, visibility 0s linear 220ms;
}
.nav[data-menu="open"] ~ .menu-scrim { opacity: 1; pointer-events: auto; }
.nav[data-menu="open"] ~ .menu { transform: none; opacity: 1; visibility: visible; transition: transform 220ms var(--ease-out), opacity 160ms ease, visibility 0s; }
.menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px; border-radius: var(--radius-sm);
  font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.menu a:active { background: var(--bg-soft); }
.menu a[aria-current="page"] { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--red); }
.menu a .chev { color: var(--muted); font-weight: 400; }
.menu .menu__cta { margin: 10px 4px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu .menu__cta .btn { width: 100%; justify-content: center; }
@media (min-width: 1100px) { .menu, .menu-scrim { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { margin-top: 16px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(44px, 6vw, 88px) clamp(32px, 4vw, 52px); border-bottom: 4px solid var(--red); box-shadow: var(--hero-trim); margin-bottom: clamp(32px, 4vw, 56px); }
.page-hero .lede { margin-top: 22px; max-width: 46ch; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero .display { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; max-width: 36ch; }
/* Home photo carousel. The current photo sits in the middle with the edges of the
   previous and next ones showing; site.js sets each slide's --off (-1, 0, 1, ...). */
.slides { position: relative; min-width: 0; touch-action: pan-y; }
.slides__stage {
  position: relative; overflow: hidden;
  height: 0; padding-bottom: calc(57% + 10px); /* 76% wide slide at 4:3, plus room for the shadow */
  touch-action: pan-y;
}
.slide {
  --off: 0;
  position: absolute; top: 0; left: 12%; width: 76%; margin: 0;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  transform: translateX(calc(var(--off) * (100% + 14px)));
  transition: transform 450ms var(--ease-out), opacity 450ms ease;
  opacity: 0.45; cursor: pointer;
}
.slide[data-far] { opacity: 0; visibility: hidden; }
.slide:not([aria-hidden]) { opacity: 1; cursor: default; box-shadow: 8px 8px 0 var(--red); overflow: visible; }
.slide:not([aria-hidden]) img { border-radius: var(--radius); }
.slide.no-anim { transition: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Controls sit over the current photo without covering it: story-style progress
   bars along the top, invisible left/right halves to tap back or forward, and a
   small pause button in the corner. The layer matches the current slide's box. */
.slides__controls { position: absolute; z-index: 2; top: 0; left: 12%; width: 76%; aspect-ratio: 4 / 3; }
.slides__bars { position: absolute; z-index: 1; left: 8px; right: 8px; top: 8px; display: flex; gap: 3px; pointer-events: none; }
.slides__bars i {
  position: relative; flex: 1; height: 3px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, 0.42); box-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
}
.slides__bars i.done { background: #fff; }
.slides__bars i.now::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
  animation: slide-progress 5000ms linear forwards;  /* site.js advances when this ends */
}
[data-paused] .slides__bars i.now::after, [data-tab-hidden] .slides__bars i.now::after { animation-play-state: paused; }
@keyframes slide-progress { to { transform: scaleX(1); } }
.slides__zone {
  position: absolute; top: 0; bottom: 0; width: 50%; padding: 0; border: 0; background: none;
  cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.slides__zone--prev { left: 0; }
.slides__zone--next { right: 0; }
.slides__zone:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
/* Arrows sit centered on the side previews and stay visible. They don't take taps
   themselves: a tap there lands on the preview, which moves to that photo.
   The preview strip is 12% of the stage minus the 14px gap; from this layer
   (76% of the stage) its center is 7px + 7.9% out from each edge. */
.slides__arrow {
  position: absolute; top: 50%; display: grid; place-items: center; pointer-events: none;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}
.slides__arrow--prev { left: calc(-7px - 7.9%); transform: translate(-50%, -50%); }
.slides__arrow--next { right: calc(-7px - 7.9%); transform: translate(50%, -50%); }
.slides__arrow svg { width: 26px; height: 26px; }
@media (max-width: 599px) { .slides__arrow svg { width: 20px; height: 20px; } }
.slides__btn {
  position: absolute; z-index: 1; right: 8px; bottom: 8px; width: 30px; height: 30px;
  display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(12, 16, 30, 0.38); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 150ms ease;
}
.slides__btn::before { content: ""; position: absolute; inset: -7px; }  /* 44px tap target */
.slides__btn:hover { background: rgba(12, 16, 30, 0.55); }
.slides__btn svg { width: 12px; height: 12px; }
.slides__btn .i-play, [data-paused] .slides__btn .i-pause { display: none; }
[data-paused] .slides__btn .i-play { display: block; }
html:not(.js) .slides__controls { display: none; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Navy credo band ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: var(--band-text);
  box-shadow: var(--band-trim);
}
.band::before { /* faint star field */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: var(--stars-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath fill='white' d='M16 9.5l1.53 3.31 3.62.38-2.7 2.44.76 3.57L16 17.4l-3.2 1.8.76-3.57-2.7-2.44 3.62-.38zM48 41.5l1.53 3.31 3.62.38-2.7 2.44.76 3.57L48 49.4l-3.2 1.8.76-3.57-2.7-2.44 3.62-.38z'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(100deg, transparent 20%, #000 75%); mask: linear-gradient(100deg, transparent 20%, #000 75%);
}
.band h2, .band h3 { color: #fff; }
.band .muted, .band .lede { color: rgba(232, 237, 247, 0.78); }
.band .eyebrow { color: #ff8090; }
.credo { padding-block: clamp(64px, 8vw, 112px); }
.credo__line { font-size: clamp(3rem, 1.4rem + 6.4vw, 6.8rem); line-height: 0.9; color: #fff; margin: 0; }
.credo__line > span { display: block; }
.credo__line .dot { color: var(--red); }
.credo__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .credo__grid { grid-template-columns: 1.3fr 1fr; } }
.credo__grid--center { align-items: center; }
.stripes { display: grid; gap: 7px; width: 72px; margin-bottom: 28px; }
.stripes i { display: block; height: 4px; background: var(--red); }
.stripes i:nth-child(2) { background: #fff; width: 70%; }
.stripes i:nth-child(3) { background: var(--stripe-3); }

/* ---------- Cards and text blocks ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--line-strong);
}
.section--soft .card { border-color: var(--line); }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }


/* Linked rows: the whole block is the link */
.ways { display: grid; gap: 0 clamp(24px, 4vw, 56px); }
@media (min-width: 720px) { .ways { grid-template-columns: repeat(2, 1fr); } .ways--3 { grid-template-columns: repeat(3, 1fr); } }
.way {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 0 26px; border-top: 2px solid var(--ink);
  text-decoration: none; color: inherit;
}
.way p { color: var(--muted); margin: 0; }
.way .h3::after { content: " →"; color: var(--accent-ink); }
.way:hover .h3 { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.way .link-arrow { margin-top: 6px; }
.way .link-arrow::after { content: none; }
.ways--3 .way .h3::after { content: none; }
.ways--3.ways--arrows .way .h3::after { content: " →"; }

/* ---------- About page intro ---------- */
.about-lead {
  margin: 0 0 26px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.4;
  font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty;
}
.about-does__title {
  margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink);
}
.about-does { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line-strong); }
.about-does li { padding: 11px 0; border-bottom: 1px solid var(--line-strong); font-size: 1.02rem; }
.about-note { margin: 0; color: var(--muted); }

/* ---------- Team ---------- */
.people { display: grid; gap: 20px 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .people { grid-template-columns: repeat(5, 1fr); } }
.person { text-decoration: none; color: inherit; display: block; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 12px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-weight: 700; color: var(--ink); line-height: 1.25; }
.person:hover .person__name { text-decoration: underline; text-underline-offset: 0.18em; }
.person__role { font-size: 0.875rem; color: var(--accent-ink); font-weight: 600; margin-top: 2px; }

.leader { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 880px) { .leader { grid-template-columns: 0.85fr 1.15fr; } }
.leader__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 520px; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.role-tag {
  display: inline-block; padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--red); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.bio-list { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .bio-list { grid-template-columns: repeat(2, 1fr); } }
.bio { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; }
@media (min-width: 560px) { .bio { grid-template-columns: 150px 1fr; } }
.bio__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio .h3 { margin-bottom: 2px; }
.bio p { font-size: 0.97rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 559px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo { width: 132px; }
}

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery__item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft);
  aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.gallery__item.is-hidden img { opacity: 0; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1.1; }
@media (min-width: 820px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: auto; }
  .gallery__item--big { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) { .gallery { grid-auto-rows: 260px; } }

.lb {
  position: fixed; inset: 0; z-index: 300; display: none;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.lb.is-open { display: block; }
.lb__scrim { position: absolute; inset: 0; background: #03091a; opacity: 0; }
.lb__track { position: absolute; inset: 0; will-change: transform; }
.lb__slide { position: absolute; top: 0; height: 100%; width: 100vw; }
.lb__img {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, clip-path;
  max-width: none; -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.lb__chrome { position: absolute; inset: 0; pointer-events: none; opacity: 0; color: #fff; }
.lb__bar {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 14px 14px; pointer-events: none;
}
.lb__count { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; padding-left: 8px; opacity: 0.86; font-variant-numeric: tabular-nums; }
.lb__btn {
  pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(20, 28, 48, 0.7); color: #fff; cursor: pointer;
  transition: background-color 150ms ease;
}
.lb__btn:hover { background: rgba(40, 52, 84, 0.9); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__nav { position: absolute; top: 50%; margin-top: -22px; }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
@media (hover: none) { .lb__nav { display: none; } }
.lb__caption {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  padding: 18px 20px max(22px, env(safe-area-inset-bottom)); font-size: 0.95rem; opacity: 0.86;
}

/* ---------- Dates ---------- */
.dates { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dates li { display: grid; grid-template-columns: 1fr; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
@media (min-width: 700px) { .dates li { grid-template-columns: 200px 1fr auto; } }
.dates__when { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.dates__what { color: var(--text); }
.dates__tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dates li.is-key .dates__when, .dates li.is-key .dates__tag { color: var(--accent-ink); }
@media (min-width: 700px) { .dates--compact li { grid-template-columns: 110px 1fr; } }
/* Big year above the home page's key dates */
.year-mark {
  /* Between the section heading and the hero headline, so it never outranks the hero */
  margin: 0 0 18px; font: 400 clamp(2.6rem, 1.8rem + 3.6vw, 5rem)/0.85 var(--display);
  color: var(--headline-red); text-shadow: 4px 4px 0 var(--btn-shadow);
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; }
.checks--row { margin: 28px 0 32px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
@media (min-width: 720px) { .checks--row { display: flex; flex-wrap: wrap; gap: 14px 44px; } }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.06 6.62 7.24.76-5.41 4.88 1.52 7.13L12 17.53l-6.41 3.66 1.52-7.13L1.7 9.18l7.24-.76z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.06 6.62 7.24.76-5.41 4.88 1.52 7.13L12 17.53l-6.41 3.66 1.52-7.13L1.7 9.18l7.24-.76z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Section switcher (Get Involved) ---------- */
.segnav {
  position: sticky; top: calc(var(--nav-h) + 10px); z-index: 50;
  display: flex; justify-content: center; margin: 0 auto; padding-inline: var(--gutter);
  pointer-events: none;
}
.segnav__inner {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-md);
  pointer-events: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segnav__inner::-webkit-scrollbar { display: none; }
.segnav__pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--radius-sm); background: var(--pill-bg); }
.segnav.is-ready .segnav__pill { transition: transform 260ms var(--ease-out), width 260ms var(--ease-out); }
.segnav a {
  position: relative; z-index: 1; padding: 10px 16px; border-radius: var(--radius-sm); white-space: nowrap;
  font-size: 0.9rem; font-weight: 600; color: var(--text); text-decoration: none;
  transition: color 200ms ease; -webkit-tap-highlight-color: transparent;
}
.segnav a[aria-current="true"] { color: #fff; }
html:not(.js) .segnav a[aria-current="true"] { background: var(--pill-bg); }

.feature { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1fr; align-items: start; } .feature--center { align-items: center; } }
.note {
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-card);
  font-size: 0.95rem; color: var(--muted);
}
.note strong { color: var(--ink); }
.callout {
  padding: clamp(26px, 3vw, 36px); border-radius: var(--radius); background: var(--panel-bg); color: var(--band-text);
  box-shadow: var(--panel-trim);
  border-top: 6px solid var(--red);
}
.callout h3 { color: #fff; margin-bottom: 8px; }
.callout p { color: rgba(232, 237, 247, 0.8); }
.callout .btn { margin-top: 18px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- CTA panel ---------- */
.cta {
  border-radius: var(--radius); background: var(--panel-bg); color: var(--band-text);
  border-top: 6px solid var(--red); box-shadow: var(--panel-trim);
  padding: clamp(36px, 5vw, 64px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta h2 { color: #fff; }
.cta p { color: rgba(232, 237, 247, 0.8); margin-top: 14px; max-width: 48ch; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(232, 237, 247, 0.72); padding-block: 72px 32px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.footer__brand img { width: 64px; height: 64px; }
.footer__brand strong { font-family: var(--display); font-weight: 400; color: #fff; font-size: 1.3rem; letter-spacing: 0.02em; line-height: 1.1; text-transform: uppercase; display: block; }
.footer__creed { margin: 6px 0 0; font-size: 0.875rem; color: rgba(232, 237, 247, 0.72); }
.footer h4 { color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); color: #fff; transition: background-color 150ms ease;
}
.socials a:hover { background: var(--red); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8125rem; }
.footer__stripe { display: flex; height: 4px; }
.footer__stripe i { flex: 1; background: var(--red); }
.footer__stripe i:nth-child(2) { background: #fff; }
.footer__stripe i:nth-child(3) { background: var(--stripe-blue); }

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
  .segnav a { padding: 9px 13px; font-size: 0.875rem; }
  .hide-sm { display: none; }
  .slide:not([aria-hidden]) { box-shadow: 5px 5px 0 var(--red); }
  .year-mark { text-shadow: 3px 3px 0 var(--btn-shadow); }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .menu, .nav[data-menu="open"] ~ .menu { transform: none !important; }
  .slides__bars i.now::after { animation-duration: 5000ms !important; } /* the progress bar is the slideshow timer, not decoration */
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .slides__btn { background: rgba(6, 21, 47, 0.82); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(10, 31, 68, 0.5); --line-strong: rgba(10, 31, 68, 0.8); --muted: #3a4458; --glass: #fff; }
  .nav { border-bottom-color: var(--line-strong); }
}
@media print {
  .nav, .menu, .menu-scrim, .segnav, .footer, .lb { display: none !important; }
}
