/* ---------- Self-hosted fonts (no request to Google Fonts) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/cormorantgaramond-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: "Cormorant Garamond"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/cormorantgaramond-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/inter-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: "Inter"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ============================================================
   Chinese American Aid Foundation — Design System v2
   Inspired by the Ease Health reference (styles.refero.design):
   a warm cream canvas layered with soft blush/rose washes, and one
   ink — #5C2418, a deep oxblood value-matched to the reference's
   forest ink at 12.2:1 — carrying headings and body alike. The brand
   red #9E3927 is too light (6.8:1) for running text, so it lives on
   fills and small accents. One cool slate panel counterbalances.
   Surfaces are flat and shadowless; depth comes from tinted
   layers, hairline dividers, and generous padding. Display serif
   (Cormorant Garamond, light) over a humanist sans (Inter).
   ============================================================ */

:root {
  /* Brand — the single saturated ink */
  --color-primary: #9e3927;        /* CAAF red: CTAs, headings, links, icon strokes */
  --color-primary-dark: #7a2a1c;   /* hover state, flat CTA band fill */
  --color-primary-tint: #f8e9e2;   /* blush wash — dominant tinted surface (keylime role) */

  /* Tinted surface ladder (cream → blush → rose → terracotta) */
  --color-blush: #f8e9e2;
  --color-rose: #f1d8cb;
  --color-terra: #e9c3b0;

  /* Cool counterpoint (slate role) — media/screenshot panels only */
  --color-slate: #b6ced5;

  /* Accent tokens kept for compatibility, remapped into the red family */
  --color-accent: #e9c3b0;         /* decorative only: divider marks, dots */
  --color-accent-dark: #9e3927;    /* small labels previously gold — now brand red */
  --color-accent-tint: #f8e9e2;

  /* The ink. Deep oxblood — a luminance match for the reference's forest ink
     (#0f3e17 sits at 12.2:1 on cream; #5c2418 sits at 12.2:1 too). The brand
     red #9e3927 is only 6.8:1, too light to carry body copy, so the single-ink
     rule is honored by value-matching our hue rather than reusing it literally.
     Headings and body share this one color; hierarchy comes from size, not tint. */
  --color-ink: #5c2418;            /* every text element unless stated otherwise */
  --color-ink-soft: #5c2418;       /* deliberately identical — see above */
  --color-ink-muted: #8a6055;      /* rare: tiny captions and disclaimers only */
  --color-paper: #fffefc;          /* cream paper — page canvas */
  --color-surface: #fffefc;        /* card surface in tinted contexts */
  --color-border: #efeeeb;         /* hairline dividers */
  --color-border-strong: #e3d5cc;  /* input borders, dashed placeholders */

  /* Footer / deep surface */
  --color-deep: #241511;
  --color-deep-soft: #4a2c22;
  --color-on-deep: #f3e6da;
  --color-on-deep-soft: #cbb4a4;
  --color-hairline-on-deep: rgba(243, 230, 218, 0.22);  /* on-dark 1px rules */
  --color-hairline-on-deep-faint: rgba(243, 230, 218, 0.14);

  /* Fixed roles: identical in the light and dark themes */
  --color-fill: #9e3927;           /* red fills: buttons, pills, icon hovers */
  --color-on-fill: #fffefc;        /* text on red fills, photos and dark bands */
  --color-on-fill-soft: #f8e9e2;   /* hover for cream buttons on red or photos */
  --color-announce: #5c2418;       /* announcement bar */
  --color-on-fill-accent: #e9c3b0; /* decorative marks on red and dark bands */

  /* Roles the dark theme re-points (see "Dark theme" below) */
  --color-link-hover: #7a2a1c;     /* red text links on hover */
  --color-header: rgba(255, 254, 252, 0.92);  /* sticky header glass */
  --color-slate-ink: #38464c;      /* text on the slate media panel */
  --color-logo-plate: transparent; /* partner logos sit straight on the page */
  --logo-plate-pad: 0px;
  color-scheme: light;

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container-w: 1200px;
  --radius-sm: 7px;      /* nav items, inputs */
  --radius-md: 14px;     /* cards, buttons — the system radius */
  --radius-lg: 14px;     /* large panels share the same radius: consistency is the point */
  --radius-pill: 999px;  /* badges and tags only */

  /* Shadows survive only for floating UI (dropdown menu, mobile drawer).
     Cards and panels are flat — depth comes from tinted fills. */
  --shadow-sm: 0 2px 10px rgba(34, 34, 34, 0.07);
  --shadow-md: 0 10px 28px rgba(34, 34, 34, 0.1);
  --shadow-lg: 0 24px 60px rgba(34, 34, 34, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 560ms;
}

/* ---------- Dark theme ----------
   For visitors whose device is set to dark mode, and for visitors running a
   dark-mode browser extension (the head script adds html.theme-dark when it
   spots Dark Reader, then asks Dark Reader to stand aside so the two never
   repaint each other). The same letterpress system printed in reverse: cream
   ink on a deep walnut ground, the tinted ladder stepping up in warmth, and the
   brand red lifted for text so it still reads. Red fills, photos, the footer
   and the dark bands keep their light-theme colors.
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-primary: #e8997f;        /* red text: headings, links, eyebrows (7:1 on paper) */
    --color-primary-tint: #2a1b16;
    --color-blush: #2a1b16;
    --color-rose: #38231b;
    --color-terra: #6e4434;
    --color-slate: #2c3638;
    --color-accent: #6e4434;
    --color-accent-dark: #e8997f;
    --color-accent-tint: #2a1b16;
    --color-ink: #f2e6dc;
    --color-ink-soft: #f2e6dc;
    --color-ink-muted: #c2a597;
    --color-paper: #1d1411;
    --color-surface: #1d1411;
    --color-border: #3a2a24;
    --color-border-strong: #523a30;
    --color-deep: #120b09;
    --color-deep-soft: #2e1d17;
    --color-link-hover: #f4bba8;
    --color-header: rgba(29, 20, 17, 0.9);
    --color-slate-ink: #cbb4a4;
    --color-logo-plate: #f6eee8;
    --logo-plate-pad: 10px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}
:root.theme-dark {
  color-scheme: dark;
  --color-primary: #e8997f;
  --color-primary-tint: #2a1b16;
  --color-blush: #2a1b16;
  --color-rose: #38231b;
  --color-terra: #6e4434;
  --color-slate: #2c3638;
  --color-accent: #6e4434;
  --color-accent-dark: #e8997f;
  --color-accent-tint: #2a1b16;
  --color-ink: #f2e6dc;
  --color-ink-soft: #f2e6dc;
  --color-ink-muted: #c2a597;
  --color-paper: #1d1411;
  --color-surface: #1d1411;
  --color-border: #3a2a24;
  --color-border-strong: #523a30;
  --color-deep: #120b09;
  --color-deep-soft: #2e1d17;
  --color-link-hover: #f4bba8;
  --color-header: rgba(29, 20, 17, 0.9);
  --color-slate-ink: #cbb4a4;
  --color-logo-plate: #f6eee8;
  --logo-plate-pad: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Headings and body share one ink, exactly as the reference does — there,
   93% of text elements carry a single color and hierarchy is built from size
   and weight alone. Small headings (h4) switch to the sans. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--color-ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 4.8vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 3.3vw, 3.1rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); letter-spacing: -0.01em; }
/* Sub-block headings (timeline entries, bare h4s) were rendering at 16.32px
   against 16px body — a 1.02x step, so they read as the paragraph's first line
   rather than as a heading. Raised to an existing scale value for a real step.
   Footer column heads and the values grid override this with their own sizes. */
h4, .h4 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-ink);
  text-wrap: balance;
}

p { max-width: 62ch; }
p.wide { max-width: none; }

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.125rem);
  color: var(--color-ink-soft);
  max-width: 56ch;
  font-weight: 300;
}

/* Statement — the reference's defining move: supporting copy set at display
   size in the display face, standing alone with no small sans paragraph beneath
   it. A section becomes one continuous voice instead of label + heading + body. */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--color-ink);
  max-width: 32ch;
  text-wrap: balance;
}

/* ---------- Focus & a11y ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On photos and dark bands a red ring around a red button disappears */
.hero a:focus-visible,
.cta-band:not(.cta-band--soft) a:focus-visible,
.apply-band a:focus-visible,
.announce-bar a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--color-on-fill); }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-fill);
  color: var(--color-on-fill);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 400;
}
.skip-link:focus {
  left: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-7); }
}

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--tint { background: var(--color-blush); }
.section--paper { background: var(--color-paper); }
.section--surface { background: var(--color-surface); }

/* Eyebrow: tiny uppercase typographic marker, no decorative bar */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* Brand divider — soft terracotta rule with the diamond mark */
.brand-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block: var(--space-6);
  color: var(--color-terra);
}
.brand-divider::before,
.brand-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-terra) 20%, var(--color-terra) 80%, transparent);
}
.brand-divider .mark {
  width: 10px; height: 10px;
  border: 2px solid var(--color-terra);
  transform: rotate(45deg);
  flex: none;
}
.brand-divider--start { justify-content: flex-start; }
.brand-divider--start::before { display: none; }

/* ---------- Buttons ----------
   14px radius, flat fills, color-only hover transitions. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  min-height: 44px;
}

.btn--primary {
  background: var(--color-fill);
  color: var(--color-on-fill);
}
.btn--primary:hover { background: var(--color-primary-dark); }

.btn--ghost-onlight {
  background: var(--color-blush);
  color: var(--color-primary);
}
.btn--ghost-onlight:hover { background: var(--color-rose); }

.btn--onphoto {
  background: var(--color-on-fill);
  color: var(--color-fill);
}
.btn--onphoto:hover { background: var(--color-on-fill-soft); }

/* On dark bands: cream fill, red text */
.btn--accent {
  background: var(--color-on-fill);
  color: var(--color-fill);
}
.btn--accent:hover { background: var(--color-on-fill-soft); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: gap var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.link-arrow:hover { gap: 0.65em; border-color: var(--color-primary); }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--color-announce);
  color: var(--color-on-deep);
}
.announce-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  flex-wrap: wrap;
}
.announce-bar a {
  color: var(--color-on-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.announce-bar a:hover { color: var(--color-on-fill); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.12;
}
.brand img { height: 46px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--color-primary);
}
.nav-toggle svg { width: 28px; height: 28px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-weight: 400;
  font-size: 0.9rem;
}
.primary-nav__list a {
  text-decoration: none;
  color: var(--color-ink);
  padding-block: var(--space-2);
  position: relative;
}
.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: right var(--dur-med) var(--ease);
}
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="page"]::after { right: 0; }
.primary-nav__list a[aria-current="page"] { color: var(--color-primary); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
  transition: opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; translate: 0 0;
}
.dropdown a {
  display: block;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 400;
  color: var(--color-ink);
}
.dropdown a:hover { background: var(--color-blush); color: var(--color-primary); }
.dropdown a::after { display: none; }

@media (max-width: 900px) {
  /* backdrop-filter establishes a new containing block for fixed-position
     descendants, which would break the full-height mobile nav drawer below */
  .site-header { backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--color-paper);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    /* Closed, the drawer is hidden outright, not just slid off-screen: its
       links leave the tab order and the accessibility tree, and its shadow
       stops painting down the screen edge. Visibility flips only once the
       slide-out has finished; opening shows it straight away. */
    visibility: hidden;
    transition: transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; transition: transform var(--dur-med) var(--ease), visibility 0s; }
  .primary-nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-4); width: 100%; }
  .dropdown { position: static; transform: none; box-shadow: none; border: none; padding-left: var(--space-4); opacity: 1; visibility: visible; translate: none; display: none; min-width: 0; }
  .has-dropdown.is-expanded .dropdown { display: block; }
  .nav-cta { margin-top: var(--space-5); }
}
/* With reduced motion the slide is instant, so hide the closed drawer
   instantly too rather than leaving its shadow on the edge for the delay. */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .primary-nav { transition-delay: 0s; }
}

.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(34, 34, 34, 0.4);
  z-index: 90;
}
.nav-scrim.is-open { display: block; }

/* ---------- Hero (photo) ---------- */
.hero {
  position: relative;
  color: var(--color-on-fill);
  overflow: hidden;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* headroom for the parallax translate so no gap is ever exposed */
  transform: scale(1.12) translateY(var(--parallax-y, 0px));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { transform: scale(1.12); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(36, 21, 17, 0.88) 0%, rgba(36, 21, 17, 0.45) 55%, rgba(36, 21, 17, 0.15) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-9) var(--space-8);
  width: 100%;
}
.hero h1 { color: var(--color-on-fill); max-width: 20ch; }
.hero .lede { color: var(--color-on-deep); max-width: 52ch; margin-top: var(--space-4); }
.hero__actions { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.hero__eyebrow { color: var(--color-on-fill-soft); }

/* Compact photo hero for interior pages (vs. the full-height homepage hero) */
.hero--compact { min-height: min(64vh, 560px); }
.hero--compact .hero__content { padding-block: var(--space-8) var(--space-7); }
.hero--compact .breadcrumb { color: var(--color-on-deep-soft); }
.hero--compact .breadcrumb a { color: var(--color-on-deep); }

/* Stat strip below the hero — a flat blush panel, no shadow */
.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: var(--space-8);
  background: var(--color-blush);
  border-radius: var(--radius-md);
  overflow: hidden; /* so the end cells clip to the panel's rounded corners on hover */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-strip.is-static { position: static; margin-top: 0; }
.stat {
  padding: var(--space-6) var(--space-5);
  text-align: left;
}
/* Homepage stat strip reads as one centered, balanced group */
.stat-strip .stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.6s cubic-bezier(0.5, 0, 0, 1);
}
/* These four cells share one continuous panel, so lifting a single cell would
   tear it out of the strip. The segment tints instead and only the figure
   rises — the same slow settle, without breaking the panel. */
.stat-strip .stat:hover { background: var(--color-rose); }
.stat-strip .stat__num { transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1); }
.stat-strip .stat:hover .stat__num { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .stat-strip .stat,
  .stat-strip .stat__num { transition: none; }
  .stat-strip .stat:hover .stat__num { transform: none; }
}
.stat__num {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  font-weight: 400;
  margin-top: var(--space-1);
}
@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards ----------
   Flat tinted panels: blush on cream sections, cream on tinted
   sections. No borders, no shadows — depth is fill contrast. */
.card-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  background: var(--color-blush);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.section--tint .card { background: var(--color-paper); }
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-rose); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media--placeholder img { width: 72px; height: 72px; object-fit: contain; opacity: 0.5; }
.card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__tag {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary);
}
.card__body h3 { margin-bottom: var(--space-1); }
.card__body p { font-size: 0.9rem; color: var(--color-ink-soft); }
.card__cta { margin-top: auto; padding-top: var(--space-3); font-weight: 400; color: var(--color-primary); font-size: 0.9rem; }

/* People grid (board / cohorts) */
.people-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.person {
  text-align: left;
}
.person__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-blush);
  margin-bottom: var(--space-3);
}
.section--tint .person__photo { background: var(--color-paper); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  background: var(--color-rose);
}
.person__name { font-weight: 400; font-size: 0.9rem; }
/* Presentation link beneath a participant. Underlined rather than colour-only,
   so it reads as a link without adding a second ink to the page. */
.person__link {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.person__link:hover { color: var(--color-link-hover); }
@media (prefers-reduced-motion: reduce) { .person__link { transition: none; } }
.person__role { font-size: 0.9rem; color: var(--color-ink-soft); margin-top: 2px; }
.person__meta { font-size: 0.9rem; color: var(--color-ink-soft); margin-top: 2px; line-height: 1.4; }

/* ---------- Values / feature list ----------
   Serif headings over sans copy. The reference builds its whole page from this
   pairing — a large display line answered by small sans prose — and it is what
   makes each block read as editorial rather than as a bulleted list. */
.feature-list { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Reverted from display serif. At this size Cormorant's thin strokes rendered
   *lighter* than the sans paragraph beneath it, inverting the hierarchy it was
   meant to create. Weight is capped at 400, so rank is established by the
   sturdier face plus a size step instead. */
.feature-list h4 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}
.feature-list p { font-size: 0.9rem; color: var(--color-ink-soft); }

/* ---------- Timeline (history) ---------- */
.timeline { display: grid; gap: var(--space-6); }
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.timeline__item:first-child { border-top: none; }
.timeline__year { font-family: var(--font-display); letter-spacing: -0.01em; font-variant-numeric: lining-nums; font-size: 1.5rem; font-weight: 400; color: var(--color-primary); }
@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ---------- Quote / message block ---------- */
.message-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-7);
  align-items: start;
  background: var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-7);
}
.section--tint .message-block { background: var(--color-paper); }
.message-block__photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; }
.message-block__photo img { width: 100%; height: 100%; object-fit: cover; }
.message-block blockquote { font-family: var(--font-display); letter-spacing: -0.01em; font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 400; line-height: 1.5; color: var(--color-ink); }
.message-block figcaption { margin-top: var(--space-4); font-weight: 400; color: var(--color-primary); }
.message-block figcaption span { display: block; font-weight: 400; color: var(--color-ink-soft); font-size: 0.9rem; }
@media (max-width: 700px) {
  .message-block { grid-template-columns: 1fr; }
  .message-block__photo { max-width: 140px; }
}

/* ---------- Page hero (interior pages) ----------
   A light blush wash panel with red serif display type —
   the reference system's hero treatment. */
.page-hero {
  background: var(--color-blush);
  color: var(--color-ink);
  padding-block: var(--space-9) var(--space-8);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8%; top: -30%;
  width: 480px; height: 480px;
  border: 60px solid rgba(158, 57, 39, 0.05);
  border-radius: 50%;
}
.page-hero .eyebrow { color: var(--color-primary); }
.page-hero h1 { color: var(--color-ink); max-width: 22ch; }
.page-hero .lede { color: var(--color-ink-soft); }
.breadcrumb {
  display: flex; gap: var(--space-2); align-items: center;
  font-size: 0.9rem; font-weight: 400; color: var(--color-ink-soft);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Event details card ---------- */
.event-card {
  background: var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.section--tint .event-card { background: var(--color-paper); }
.event-card dl { display: grid; gap: var(--space-3); }
.event-card dt { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.event-card dd { font-weight: 400; color: var(--color-ink); }

/* ---------- Schedule ---------- */
.schedule { display: grid; gap: 0; border-top: 1px solid var(--color-border); }
.schedule__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.schedule__time { font-weight: 400; color: var(--color-primary); }
@media (max-width: 600px) { .schedule__row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ---------- FAQ ----------
   Serif questions over sans answers, separated by hairlines. */
.faq { display: grid; gap: 0; max-width: 800px; border-top: 1px solid var(--color-border); }
.faq details {
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-2);
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-primary);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--dur-fast) var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: var(--space-3); color: var(--color-ink-soft); font-size: 0.9rem; }

/* ---------- Stat snapshot (small, inline) ---------- */
.snapshot { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-block: var(--space-7); }
.snapshot .stat {
  border-radius: var(--radius-md);
  background: var(--color-blush);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1), background 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.section--tint .snapshot .stat { background: var(--color-paper); }

/* Metrics respond to the pointer with the same slow settle used elsewhere:
   a small lift and one step deeper on the tint ladder. Depth stays a matter of
   fill contrast — no shadow is introduced. */
.snapshot .stat:hover { transform: translateY(-5px); background: var(--color-rose); }
.section--tint .snapshot .stat:hover { background: var(--color-blush); }
.snapshot .stat .stat__num { transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1); }
.snapshot .stat:hover .stat__num { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .snapshot .stat,
  .snapshot .stat .stat__num { transition: none; }
  .snapshot .stat:hover { transform: none; }
  .snapshot .stat:hover .stat__num { transform: none; }
}

/* ---------- Inline grids on phones ----------
   Several pages set their columns inline (style="grid-template-columns: …").
   An inline style beats the stylesheet at every width, so those grids never
   collapse, and a 1fr track can't shrink below its content: on a phone the
   columns run off the right edge and the page scrolls sideways. These rules
   take the columns back on narrow screens only; wider layouts are untouched.
   Match on the property name alone: once the motion layer writes to an
   element's style, the browser re-serialises the attribute ("display:grid"
   becomes "display: grid"), but "grid-template-columns" survives. */
@media (max-width: 760px) {
  /* Two-column splits (copy beside an event card, the contact form, a photo) stack. */
  [style*="grid-template-columns"]:not(.snapshot):not(.card-grid) { grid-template-columns: 1fr !important; }
  /* A pair of photos stays side by side, sharing the width evenly. */
  [style*="grid-template-columns"]:not(.snapshot):not(.card-grid):has(> figure + figure) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Stat rows fixed at 3–5 columns wrap: at most three per row, two on phones, one on the narrowest. */
  .snapshot[style*="grid-template-columns"] { grid-template-columns: repeat(auto-fit, minmax(max(140px, 26%), 1fr)) !important; }
}
/* Card grids whose minimum track is wider than a small phone's container. */
.card-grid[style*="minmax(320px"] { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)) !important; }

/* ---------- CTA band — the one flat dark panel ---------- */
.cta-band {
  background: var(--color-primary-dark);
  color: var(--color-on-deep);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-on-fill); }
.cta-band p { color: var(--color-on-deep); opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep);
  color: var(--color-on-deep-soft);
  padding-block: var(--space-8) var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-family: var(--font-display); color: var(--color-on-fill); font-size: 1.15rem; }
.site-footer h4, .site-footer .footer-heading { color: var(--color-on-fill); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 400; }
.footer-links { display: grid; gap: var(--space-3); }
.footer-links a { text-decoration: none; color: var(--color-on-deep-soft); font-size: 0.9rem; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--color-on-fill); }
.footer-contact { display: grid; gap: var(--space-3); font-size: 0.9rem; }
.footer-contact a { color: var(--color-on-deep-soft); text-decoration: none; }
.footer-contact a:hover { color: var(--color-on-fill); }
.social-row { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-hairline-on-deep);
  border-radius: 50%;
  color: var(--color-on-fill);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.social-row a:hover { background: var(--color-fill); border-color: var(--color-fill); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-hairline-on-deep-faint);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: 0.9rem;
}

/* ---------- Utilities ---------- */
/* A line break that only applies from tablet up. On narrow screens the text
   wraps naturally instead of being forced into an awkward break. */
.br-wide { display: none; }
@media (min-width: 768px) { .br-wide { display: inline; } }

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-w-prose { max-width: 62ch; }
.stack { display: grid; gap: var(--space-5); }
.stack--lg { gap: var(--space-7); }
.row-between {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* GSAP motion layer (assets/js/motion.js). html.motion is only set when
   reduced motion is off, and is dropped again if the script never runs,
   so these starting states can never strand content out of sight. */
html.motion .hero__content > *,
html.motion .page-hero .container > *,
html.motion [data-motion]:not([data-motion="stagger"]) { opacity: 0; }

/* Grid items fade up with a CSS transition when motion.js adds .is-in
   (cheaper than a script tween on 800-photo albums). The curve is GSAP's
   power2.out; --delay staggers a group; .is-done hands the item back to its
   own transitions so hover effects keep their timing. */
html.motion { --rise: 64px; }
@media (max-width: 699px) { html.motion { --rise: 40px; } }
html.motion [data-motion="stagger"] > :not(.is-in) { opacity: 0; transform: translateY(var(--rise)); }
html.motion [data-motion="stagger"] > :not(.is-done) {
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1) var(--delay, 0s),
              transform 1s cubic-bezier(0.215, 0.61, 0.355, 1) var(--delay, 0s);
}

/* Homepage partner logos. Without motion (no JS, reduced motion) this is a
   centred, static logo wall; motion.js turns it into a slow marquee. */
.logo-wall { margin-top: var(--space-7); }
.logo-wall__track {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-6) var(--space-8);
}
.logo-wall__item {
  flex: 0 0 auto;
  width: 176px; height: 80px;
  display: grid; grid-template: 100% / 100%; place-items: center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  /* dark theme: many marks are dark ink on a transparent ground, so each sits
     on a small cream card; in the light theme the plate is invisible */
  background: var(--color-logo-plate);
  padding: var(--logo-plate-pad);
  border-radius: var(--radius-sm);
}
/* the image takes the whole cell and fits inside it; the cell's single grid
   track is pinned to its size, or tall logos spill out of it */
.logo-wall__item img { width: 100%; height: 100%; object-fit: contain; scale: var(--logo-scale, 1); }
/* optical balance: thin wordmarks read small, solid blocks read heavy */
@media (max-width: 700px) { .logo-wall__item { width: 140px; height: 68px; } }
/* the moving band runs edge to edge; its section clips the overhang so the
   page never scrolls sideways */
.section:has(.logo-wall.is-marquee) { overflow-x: clip; }
/* a long sponsor list stays a still wall so every name can be found */
.logo-wall--static .logo-wall__track { gap: var(--space-5) var(--space-6); }
.logo-wall.is-marquee .logo-wall__viewport {
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-wall.is-marquee .logo-wall__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-block: var(--space-3); }
@media (hover: hover) {
  .logo-wall.is-marquee .logo-wall__track:hover .logo-wall__item { opacity: 0.4; }
  .logo-wall.is-marquee .logo-wall__track .logo-wall__item:hover { opacity: 1; transform: scale(1.06); }
}
.logo-wall__toggle {
  display: flex; align-items: center; gap: var(--space-2);
  margin: var(--space-4) 0 0 auto;
  padding: 0.4rem 0.2rem; min-height: 32px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}
.logo-wall__toggle:hover { color: var(--color-primary); }
.logo-wall__toggle svg { width: 12px; height: 12px; fill: currentColor; }

/* Photos inside cards and frames drift slightly as the page scrolls (motion.js
   marks them img.drift and moves --drift). The extra scale gives the drift room so no edge ever shows;
   it combines with the hover zoom rather than replacing it. --zoom is the
   reveal's settle-in, kept off `transform` so GSAP never overrides the drift. */
html.motion img.drift { scale: calc(1.2 * var(--zoom, 1)); translate: 0 var(--drift, 0%); }

/* Lenis smooth scrolling (from lenis 1.3.27's lenis.css; only applies while it runs) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }   /* Lenis does the smoothing; both at once can stop a jump partway */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (hover: hover) {
  html.motion .btn {
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.motion .btn--primary:hover,
  html.motion .btn--accent:hover { transform: translateY(-2px); }
  html.motion .btn--primary:active,
  html.motion .btn--accent:active { transform: translateY(0); transition-duration: 0.1s; }
}

/* ---------- Pathway grid (homepage: Programs / Events / Galleries / Donate) ---------- */
.pathway-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pathway-grid { grid-template-columns: 1fr; }
}
.pathway-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-blush);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.section--tint .pathway-card { background: var(--color-paper); }
.pathway-card:hover { transform: translateY(-4px); }
.pathway-card__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-rose); }
.pathway-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.pathway-card:hover .pathway-card__media img { transform: scale(1.05); }
.pathway-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.pathway-card__body h3 { font-size: 1.5rem; }
.pathway-card__body p { font-size: 0.9rem; color: var(--color-ink-soft); }
/* All four pathway CTAs render as the same filled button, and all four cards
   share one surface — the Donate card is no longer set apart by a deeper tint. */
.pathway-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-fill);
  color: var(--color-on-fill);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  margin-top: auto;
  white-space: nowrap;
  width: fit-content;
  font-weight: 400;
  font-size: 0.9rem;
  transition: background 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.pathway-card:hover .pathway-card__cta { background: var(--color-primary-dark); }
@media (prefers-reduced-motion: reduce) {
  .pathway-card__cta { transition: none; }
}

/* ---------- Featured / current opportunity band (used only when there is a live, time-sensitive opportunity to surface) ---------- */
.featured-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-7);
}
.featured-band .eyebrow { color: var(--color-primary); }

/* ---------- Partner / organizations logo strip ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-5);
}
.partner-tile {
  background: var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
}
.section--tint .partner-tile { background: var(--color-paper); }
.partner-tile img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.6s cubic-bezier(0.5, 0, 0, 1), opacity 0.6s cubic-bezier(0.5, 0, 0, 1);
}
/* The whole tile lifts and steps one shade deeper as its logo regains colour.
   Same slow settle used across the site; depth stays fill-based, no shadow. */
.partner-tile {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1), background 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.partner-tile:hover { transform: translateY(-6px); background: var(--color-rose); }
.section--tint .partner-tile:hover { background: var(--color-blush); }
.partner-tile:hover img { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .partner-tile { transition: none; }
  .partner-tile:hover { transform: none; }
}

/* ---------- Volunteer callout (e.g. College Admission Workshop page) ---------- */
.volunteer-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: center;
  background: var(--color-blush);
  border-radius: var(--radius-md);
  padding: var(--space-7);
}
.section--tint .volunteer-band { background: var(--color-paper); }
@media (max-width: 760px) {
  .volunteer-band { grid-template-columns: 1fr; }
}
.volunteer-band ul { display: grid; gap: var(--space-3); }
.volunteer-band li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-ink-soft); }
.volunteer-band li::before {
  content: "";
  width: 8px; height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--color-primary);
  flex: none;
}

/* ---------- Photo interstitials (About page rhythm) ---------- */
.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.photo-duo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (max-width: 560px) {
  .photo-duo { grid-template-columns: 1fr; }
}

/* Captioned photo — lifts, darkens, and reveals its caption on hover.
   Timing follows the reference's motion character: a slow settle on a hard
   ease-out, rather than the snappy UI feedback we had before. */
.photo-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* Hug the image. As a grid or flex child this would otherwise stretch to the
     row height, and the overlay and caption — positioned against the figure —
     would land in the empty space below the photo instead of on it. */
  align-self: start;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.photo-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.photo-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 21, 17, 0.85) 0%, rgba(36, 21, 17, 0.45) 45%, rgba(36, 21, 17, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1);
  pointer-events: none;
}
.photo-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: var(--space-5);
  color: var(--color-on-fill);
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1), transform 0.6s cubic-bezier(0.5, 0, 0, 1);
  pointer-events: none;
}
/* Wide variant. Declared after `.photo-figure img` so it wins on source order —
   both selectors carry the same specificity. */
.photo-figure--band img { aspect-ratio: 21 / 9; }
@media (max-width: 640px) {
  .photo-figure--band img { aspect-ratio: 4 / 3; }
}

/* Square variant — for the portrait beside the president's message, which sits
   in a fixed-width column rather than a photo grid. */
.photo-figure--square img { aspect-ratio: 1 / 1; }
.photo-figure--square figcaption { padding: var(--space-4); font-size: 0.85rem; }

/* Landscape variant — matches the 4:3 used by card media. */
.photo-figure--landscape img { aspect-ratio: 4 / 3; }

.photo-figure:hover,
.photo-figure:focus-within { transform: translateY(-6px); }
.photo-figure:hover::after,
.photo-figure:focus-within::after { opacity: 1; }
.photo-figure:hover figcaption,
.photo-figure:focus-within figcaption { opacity: 1; transform: translateY(0); }

/* Touch and reduced-motion users never trigger hover, so the caption must not
   be the only way to reach the information — it stays visible for them. */
@media (hover: none) {
  .photo-figure::after { opacity: 1; }
  .photo-figure figcaption { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-figure,
  .photo-figure::after,
  .photo-figure figcaption { transition: none; }
  .photo-figure:hover { transform: none; }
}
.photo-band {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .photo-band { aspect-ratio: 4 / 3; }
}

/* ---------- E-Journal flipbook ----------
   The slate panel is the designated home for document previews —
   the system's single cool counterpoint. */
.flipbook-wrap {
  max-width: 900px;
  margin-inline: auto;
}
.flipbook-stage {
  display: flex;
  justify-content: center;
  background: var(--color-slate);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
#ejournal-flipbook {
  margin-inline: auto;
}
#ejournal-flipbook canvas {
  border-radius: var(--radius-sm);
}
.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.flipbook-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-paper);
  color: var(--color-primary);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.flipbook-controls button:hover:not(:disabled) { background: var(--color-fill); color: var(--color-on-fill); }
.flipbook-controls button:disabled { opacity: 0.4; cursor: default; }
.flipbook-controls button svg { width: 20px; height: 20px; }
.flipbook-page-count {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-soft);
  min-width: 9ch;
  text-align: center;
}
.flipbook-loading {
  color: var(--color-slate-ink);
  text-align: center;
  padding: var(--space-9) 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.gallery-tile {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-blush);
  position: relative;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: linear-gradient(0deg, rgba(24,10,7,0.78) 0%, rgba(24,10,7,0) 100%);
  color: var(--color-on-fill);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}
.gallery-tile:hover .gallery-tile__caption { opacity: 1; }
.gallery-album + .gallery-album { margin-top: var(--space-9); }
.gallery-album h3 { margin-bottom: var(--space-2); }

/* Simple placeholder page (2024 SCP, etc.) */
.placeholder-block {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  color: var(--color-ink-soft);
}

/* ---------------------------------------------------------------------------
   PDF lightbox — opens presentations in an overlay instead of downloading.
   The trigger stays a real <a href="...pdf">, so with JS off (or if the
   browser cannot render PDFs inline) the link still works on its own.
--------------------------------------------------------------------------- */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: clamp(0.75rem, 3vw, var(--space-6));
  background: rgba(36, 21, 17, 0.82);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.pdf-modal.is-open { display: flex; }
.pdf-modal.is-visible { opacity: 1; }

.pdf-modal__dialog {
  position: relative;
  margin: auto;
  width: min(1100px, 100%);
  height: min(88vh, 100%);
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(36, 21, 17, 0.45);
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.pdf-modal.is-visible .pdf-modal__dialog { transform: translateY(0); }

.pdf-modal__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  flex: none;
}
.pdf-modal__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal__open {
  flex: none;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pdf-modal__close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.3s cubic-bezier(0.5, 0, 0, 1);
}
.pdf-modal__close:hover { background: var(--color-blush); }

.pdf-modal__frame { flex: 1 1 auto; width: 100%; border: 0; background: var(--color-blush); }

/* Shown only when the browser will not display a PDF inline (mostly iOS). */
.pdf-modal__fallback {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6);
  text-align: center;
}
.pdf-modal.is-fallback .pdf-modal__frame { display: none; }
.pdf-modal.is-fallback .pdf-modal__fallback { display: flex; }

body.has-modal { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pdf-modal, .pdf-modal__dialog { transition: none; }
}

/* ---------- Gala sponsor wall ----------
   Same lift-and-colourise as the home page partner grid, but the tile keeps
   its own background on hover. Several sponsor logos are supplied on a solid
   white plate, so shifting the tile colour underneath made that plate read as
   a hard edge rather than part of the mark. */
.partner-grid--steady .partner-tile:hover,
.section--tint .partner-grid--steady .partner-tile:hover {
  background: var(--color-paper);
}
.partner-grid--four { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.people-grid--four { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 900px; }

/* ---------- Wide photo figures (Lunar New Year 2024) ---------- */
.photo-figure--wide img { aspect-ratio: 16 / 9; }


.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--space-5);
}
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* Invitation flyer: portrait art shown beside its own explanation. */
.flyer-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) 1fr;
  gap: var(--space-8);
  align-items: center;
}
.flyer-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
@media (max-width: 860px) {
  .flyer-block { grid-template-columns: 1fr; }
  .flyer-block figure { max-width: 420px; margin-inline: auto; }
}

/* Anchor targets sit below the sticky header rather than under it. */
[id="upcoming-events"],
[id="past-events"],
[id="our-history"],
[id="volunteer"],
[id="rsvp"] {
  scroll-margin-top: 96px;
}

/* ---------- Scholarship award cards (FAALS recipients) ---------- */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.award-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1),
              border-color 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.award-card:hover { transform: translateY(-6px); border-color: var(--color-terra); }
.award-card h4 { margin: 0; text-wrap: balance; }

/* ---------- Value icons (About → What guides our work) ----------
   Line icons sized to sit above each value without competing with the
   heading. Scoped to --icons so other feature lists are untouched. */
.value-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.feature-list--icons { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.feature-list--icons .value-icon {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.feature-list--icons > div:hover .value-icon { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .feature-list--icons .value-icon { transition: none; }
  .feature-list--icons > div:hover .value-icon { transform: none; }
}

/* ---------- Leadership portraits (About) ----------
   Card lifts and the portrait scales up slightly inside its rounded frame.
   No scrim or caption here — the names sit below the photo already.
   Scoped to --lift so the cohort rosters on other pages keep their
   plain, non-interactive treatment. */
.people-grid--lift .person {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.people-grid--lift .person:hover,
.people-grid--lift .person:focus-within {
  transform: translateY(-6px);
}
.people-grid--lift .person__photo img,
.people-grid--lift .person__initial {
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.people-grid--lift .person:hover .person__photo img,
.people-grid--lift .person:focus-within .person__photo img,
.people-grid--lift .person:hover .person__initial,
.people-grid--lift .person:focus-within .person__initial {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .people-grid--lift .person,
  .people-grid--lift .person__photo img,
  .people-grid--lift .person__initial { transition: none; }
  .people-grid--lift .person:hover,
  .people-grid--lift .person:hover .person__photo img,
  .people-grid--lift .person:hover .person__initial { transform: none; }
}

/* Donate hero: the photo is already blurred in the asset, so the scrim only
   needs to carry the extra darkening that keeps the headline readable. */
.hero--soft .hero__scrim {
  background: linear-gradient(0deg, rgba(36, 21, 17, 0.86) 0%, rgba(36, 21, 17, 0.55) 55%, rgba(36, 21, 17, 0.4) 100%);
}
.hero--soft .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 21, 17, 0.25);   /* the requested 25% darken */
}

/* Four-up feature list where every heading holds one line, so the body copy
   below them all starts on the same baseline with no added gap. */
.feature-list--aligned {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-5);
}
.feature-list--aligned h4 {
  font-size: 1.2rem;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .feature-list--aligned h4 { white-space: normal; }
}

/* Inline address link — underlined so it reads as a link inside a
   definition list without introducing a second ink colour. */
.link-address {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-terra);
  transition: text-decoration-color 0.4s cubic-bezier(0.5, 0, 0, 1),
              color 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.link-address:hover { color: var(--color-primary); text-decoration-color: var(--color-primary); }

/* ---------- Icon cards (FAALS criteria) ----------
   Bordered card carrying an icon, heading and short body, lifting on hover
   like the other interactive tiles on the site. */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: var(--space-5);
}
.icon-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1),
              border-color 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.icon-card:hover { transform: translateY(-6px); border-color: var(--color-terra); }
.icon-card h4 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}
.icon-card p { font-size: 0.9rem; color: var(--color-ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .icon-card { transition: none; }
  .icon-card:hover { transform: none; }
}

/* Ivan Chiang's separate award — photo beside the citation once supplied. */
.ivan-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 1fr;
  gap: var(--space-8);
  align-items: center;
}
.ivan-block:not(:has(figure)) { grid-template-columns: 1fr; max-width: 62ch; }
.ivan-block h3 { font-family: var(--font-display); font-weight: 400; }
@media (max-width: 860px) {
  .ivan-block { grid-template-columns: 1fr; }
  .ivan-block figure { max-width: 480px; }
}

/* ---------- Video embeds (archive galas) ----------
   youtube-nocookie keeps tracking cookies out until a viewer presses play. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}
.video-embed { margin: 0; }
.video-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-deep);
}
.video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed figcaption {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* ---------- Secondary CTA band (newsletter) ----------
   Sits below the primary ask on every page. Deliberately quieter than
   .cta-band so two stacked bands read as a hierarchy rather than a repeat:
   tinted ground, ink text, and the solid button carrying the brand instead
   of the whole panel. */
.cta-band--soft {
  background: var(--color-blush);
  color: var(--color-ink);
  border: 1px solid var(--color-rose);
}
.cta-band--soft h2 { color: var(--color-ink); }
.cta-band--soft p { color: var(--color-ink-soft); opacity: 1; }
.section--tint .cta-band--soft { background: var(--color-paper); }

/* ---------- AAYP winners ---------- */
.year-block { margin-top: var(--space-9); }
.year-block:first-of-type { margin-top: var(--space-7); }
.year-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.year-head h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin: 0;
}
.year-head span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}
/* The prompt each cohort answered — set as a quotation, since it is one. */
.prompt {
  margin-top: var(--space-5);
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-terra);
  max-width: 68ch;
}
.prompt span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-2);
}
.prompt p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0;
}

.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
}
.winner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1),
              border-color 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.winner:hover { transform: translateY(-6px); border-color: var(--color-terra); }
.winner__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-blush);
  margin-bottom: var(--space-4);
}
.winner__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.winner__name { font-size: 1.1rem; color: var(--color-ink); margin-bottom: var(--space-2); }
.winner__excerpt {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-4);
  flex: 1 1 auto;
}
.winner__more {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.winner__more:hover { color: var(--color-link-hover); }

/* ---------- Essay reader ----------
   Same overlay pattern as the presentation viewer, holding text instead of
   a PDF: the headshot and name stay with the essay so the reader keeps the
   person in view while they read. */
.essay-modal__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex: none;
}
.essay-modal__head img {
  width: 60px; height: 60px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex: none;
}
.essay-modal__who { flex: 1 1 auto; min-width: 0; }
.essay-modal__who h3 { font-size: 1.35rem; margin: 0; color: var(--color-ink); }
.essay-modal__who p {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  margin-top: 2px;
  font-variant-numeric: lining-nums;
}
.essay-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-6);
}
.essay-modal__body p {
  max-width: 68ch;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-5);
}
.essay-modal__body p:last-child { margin-bottom: 0; }
.essay-modal__prompt {
  max-width: 68ch;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.essay-modal__prompt span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-2);
}
.essay-modal__prompt em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.15rem;
  color: var(--color-ink);
}
@media (max-width: 620px) {
  .essay-modal__head { padding: var(--space-4); }
  .essay-modal__body { padding: var(--space-4); }
}

/* Hero photos where the subjects sit high in the frame: shift the crop
   window up the image so heads are not clipped by the banner's shorter
   aspect ratio. */
.hero--lower .hero__media img { object-position: 50% var(--hero-y, 20%); }

/* Denser photo grid for legacy project galleries (16 images). */
.photo-grid--tight { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
@media (max-width: 720px) { .photo-grid--tight { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }

/* Year jump buttons (AAYP winners) */
.year-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.year-jump a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--color-fill);
  border-radius: var(--radius-pill);
  background: var(--color-fill);
  color: var(--color-on-fill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-variant-numeric: lining-nums tabular-nums;
  text-decoration: none;
  transform: translateY(0);
  transition: background 0.5s cubic-bezier(0.5, 0, 0, 1),
              color 0.5s cubic-bezier(0.5, 0, 0, 1),
              border-color 0.5s cubic-bezier(0.5, 0, 0, 1),
              transform 0.5s cubic-bezier(0.5, 0, 0, 1);
}
.year-jump a:hover,
.year-jump a:focus-visible {
  background: var(--color-blush);
  border-color: var(--color-terra);
  color: var(--color-primary);
  transform: translateY(-3px);
}
/* On a tinted section the blush ground matches the panel, so hover goes to paper. */
.section--tint .year-jump a:hover,
.section--tint .year-jump a:focus-visible { background: var(--color-paper); }
/* Land the year clear of the sticky header */
.year-block[id] { scroll-margin-top: 104px; }

@media (prefers-reduced-motion: reduce) {
  .year-jump a { transition: none; }
  .year-jump a:hover { transform: none; }
}

/* Library locations */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.library-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1),
              border-color 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.library-item:hover { transform: translateY(-6px); border-color: var(--color-terra); }
.library-item__place {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-ink);
}
.library-item__province {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
@media (prefers-reduced-motion: reduce) {
  .library-item { transition: none; }
  .library-item:hover { transform: none; }
}

/* ---------- Application template (AAYS 2027) ---------- */
/* Placeholder marker: obviously a gap awaiting real information, without
   looking like a rendering fault. */
.tbc {
  display: inline-block;
  padding: 0.08em 0.55em;
  border: 1px dashed var(--color-terra);
  border-radius: var(--radius-sm);
  background: var(--color-blush);
  color: var(--color-ink-muted);
  font-family: var(--font-body);
  font-size: 0.85em;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.section--tint .tbc { background: var(--color-paper); }

.apply-block {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.apply-block h3 { font-family: var(--font-display); font-weight: 400; }
.prompt-list {
  margin: var(--space-5) 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: var(--space-3);
  color: var(--color-ink-soft);
}
.prompt-list li { padding-left: 0.3rem; }
/* the global ol[class] reset hides numbers; prompts must stay numbered */
ol.prompt-list { list-style: decimal; padding-left: 1.4rem; }
.prompt-list li::marker { color: var(--color-primary); font-variant-numeric: lining-nums; }
.prompt-note {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* FAQ — native <details>, so it works without JavaScript */
.faq-list { display: grid; gap: var(--space-3); }
.faq {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  transition: color 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-primary); }
/* the card clips its overflow, so the focus ring sits just inside the edge */
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--radius-md); }
.faq__body { padding: 0 var(--space-5) var(--space-5); }
.faq__body p { font-size: 0.92rem; color: var(--color-ink-soft); max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  .faq summary, .faq summary::after { transition: none; }
}

/* Gallery tile whose subjects sit high in the frame — show more of the top. */
.gallery-tile img.tile--lower { object-position: 50% 15%; }

/* ---------- Event album cards (gallery hub) ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.album-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1),
              border-color 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.album-card:hover { transform: translateY(-6px); border-color: var(--color-terra); }
.album-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-blush); }
.album-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}
.album-card:hover .album-card__media img { transform: scale(1.05); }
.album-card__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.album-card__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-ink); line-height: 1.3; }
.album-card__count {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  font-variant-numeric: lining-nums;
}

/* ---------- Photo grid inside an album ---------- */
.album-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
@media (max-width: 640px) { .album-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.album-photo {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-blush);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.5, 0, 0, 1);
}
.album-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.5, 0, 0, 1);
}
.album-photo:hover { transform: translateY(-4px); }
.album-photo:hover img { transform: scale(1.06); }
.album-photo:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  background: rgb(20, 11, 8);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.5, 0, 0, 1);
}
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox.is-visible { opacity: 1; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  color: var(--color-on-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 var(--space-4);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__nav {
  display: flex; justify-content: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.lightbox__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--color-hairline-on-deep);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-on-deep);
  cursor: pointer;
  transition: background 0.4s cubic-bezier(0.5, 0, 0, 1), border-color 0.4s cubic-bezier(0.5, 0, 0, 1);
}
.lightbox__btn:hover:not(:disabled) { background: rgba(243,230,218,0.14); border-color: var(--color-on-deep-soft); }
.lightbox__btn:disabled { opacity: 0.3; cursor: default; }
.lightbox__btn svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .album-photo, .album-photo img, .album-card, .album-card__media img { transition: none; }
  .album-photo:hover, .album-card:hover { transform: none; }
  .album-photo:hover img, .album-card:hover .album-card__media img { transform: none; }
}

/* Caption inside the lightbox — carries the same text the tile shows on
   hover. Hidden entirely for photos that have no caption. */
.lightbox.is-open { grid-template-rows: auto 1fr auto auto; }
.lightbox__caption {
  margin: 0;
  padding: var(--space-4) var(--space-6) 0;
  text-align: center;
  color: var(--color-on-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 70ch;
  justify-self: center;
}
.lightbox__caption[hidden] { display: none; }

/* ---------- Site map ----------
   A plain, dense list. Built to be scanned and crawled, not admired. */
.sitemap-group + .sitemap-group { margin-top: var(--space-8); }
.sitemap-group h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: 1.35rem;
}
.sitemap-group h2 span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-variant-numeric: lining-nums;
  color: var(--color-ink-muted);
}
.sitemap-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-2) var(--space-6);
}
.sitemap-list li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.sitemap-list a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s cubic-bezier(0.5, 0, 0, 1);
}
.sitemap-list a:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.sitemap-list code {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  word-break: break-all;
}

/* ---------- Featured speaker (college workshop) ---------- */
.speaker-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.speaker-links .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.speaker-links svg { width: 16px; height: 16px; flex: none; }
.speaker-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-8);
}
.speaker-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  border-left: 3px solid var(--color-terra);
  padding-left: var(--space-4);
}
.book-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-blush);
  border-radius: var(--radius-md);
  color: var(--color-ink-soft);
}
@media (max-width: 800px) { .speaker-more { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- Album section divider (sectioned albums) ---------- */
.album-divider {
  border: 0;
  height: 1px;
  background: var(--color-terra);
  margin: var(--space-8) auto 0;
  max-width: 220px;
}

/* ---------- Intern testimonials (SCP cohort pages) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.testimonial {
  margin: 0;
  padding: var(--space-6);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  flex: 1;
}
.testimonial blockquote::before { content: "\201C"; color: var(--color-primary); margin-right: 0.15em; }
.testimonial blockquote::after { content: "\201D"; color: var(--color-primary); margin-left: 0.1em; }
.testimonial figcaption { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.testimonial figcaption strong { display: block; color: var(--color-ink); font-weight: 600; }
.testimonial figcaption span { display: block; color: var(--color-ink-soft); font-size: 0.9rem; }
.advice-band {
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-7);
  background: var(--color-blush);
  border-radius: var(--radius-md);
}
.advice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-7); }
.advice-list li { display: flex; flex-direction: column; gap: var(--space-2); }
.advice-list q { quotes: "\201C" "\201D"; color: var(--color-ink); line-height: 1.55; }
.advice-list span { color: var(--color-ink-soft); font-size: 0.85rem; }
@media (max-width: 800px) {
  .testimonial-grid, .advice-list { grid-template-columns: 1fr; }
  .advice-band { padding: var(--space-5); }
}

/* ---------- Spotlight banner (photo + call to action, homepage) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.spotlight:hover { transform: translateY(-4px); border-color: var(--color-terra); box-shadow: 0 18px 40px rgba(92, 36, 24, 0.10); }
.spotlight__media { min-height: 320px; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow, 0.6s); }
.spotlight:hover .spotlight__media img { transform: scale(1.03); }
.spotlight__body { padding: var(--space-7); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.spotlight__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--color-ink); text-wrap: balance; }
.spotlight__body p:not(.eyebrow) { color: var(--color-ink-soft); max-width: 46ch; }
.spotlight__body .btn { align-self: flex-start; margin-top: var(--space-2); }
@media (max-width: 800px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { min-height: 220px; aspect-ratio: 3 / 2; }
  .spotlight__body { padding: var(--space-5); }
}

/* ---------- Photo preview strip (program pages linking to an album) ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}
.photo-strip a {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-blush);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow); }
.photo-strip a:hover img { transform: scale(1.05); }
@media (max-width: 800px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Legal pages ---------- */
.legal-prose { max-width: 72ch; }
.legal-prose h2 { margin-top: var(--space-8); font-size: clamp(1.4rem, 2vw, 1.8rem); }
.legal-prose h3 { margin-top: var(--space-6); font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
.legal-prose p, .legal-prose li { color: var(--color-ink-soft); line-height: 1.65; }
.legal-prose p { margin-top: var(--space-4); }
.legal-prose ul { margin-top: var(--space-4); padding-left: 1.25rem; }
.legal-prose li { margin-top: var(--space-2); }
.legal-prose table { width: 100%; border-collapse: collapse; margin-top: var(--space-5); font-size: 0.95rem; }
.legal-prose th, .legal-prose td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--color-border); color: var(--color-ink-soft); }
.legal-prose th { color: var(--color-ink); font-weight: 600; }
.legal-prose .placeholder { background: var(--color-blush); border: 1px dashed var(--color-terra); border-radius: var(--radius-sm); padding: 0 0.35em; color: var(--color-ink-muted); font-size: 0.9em; white-space: nowrap; }
.legal-prose .updated { color: var(--color-ink-muted); font-size: 0.9rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); width: 100%; margin-top: var(--space-3); }
.footer-legal a { color: var(--color-on-deep-soft); text-decoration: none; font-size: 0.85rem; }
.footer-legal a:hover { color: var(--color-on-fill); text-decoration: underline; }
.form-consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.9rem; color: var(--color-ink-soft); }
.form-consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--color-primary); }
.form-note { font-size: 0.85rem; color: var(--color-ink-muted); margin-top: var(--space-3); max-width: 60ch; }
.form-note a { color: var(--color-primary); }

/* ---------- YouTube click-to-load facade ---------- */
.video-facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); color: var(--color-on-deep); }
.video-facade__btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 0.9rem 1.5rem; border-radius: 999px; border: 1px solid var(--color-hairline-on-deep);
  background: rgba(255, 254, 252, 0.08); color: var(--color-on-deep); font: inherit; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.video-facade__btn:hover { background: var(--color-fill); border-color: var(--color-fill); }
.video-facade__icon { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-facade__note { font-size: 0.8rem; color: var(--color-on-deep-soft); margin: 0; }

/* h3.h4: promoted for heading order, styled as the h4 it replaced */
.h4 { letter-spacing: 0; }

/* ---------- AAYS 2027: photos beside text ---------- */
.aays-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--space-8); align-items: center; justify-content: space-between; }
.aays-side { display: grid; gap: var(--space-6); }
.aays-side .aays-photo { max-width: 340px; justify-self: end; }
.aays-photo { margin: 0; }
.aays-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
.aays-photo--tall img { aspect-ratio: 4 / 5; max-height: 420px; object-position: 50% 25%; }
.aays-photo figcaption { margin-top: var(--space-2); font-size: 0.85rem; color: var(--color-ink-muted); }
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: var(--space-8); align-items: start; }
.faq-aside { position: sticky; top: 110px; display: grid; gap: var(--space-6); }
@media (max-width: 900px) {
  .aays-split, .faq-split { grid-template-columns: 1fr; gap: var(--space-6); }
  .aays-photo, .aays-side .aays-photo { max-width: 420px; justify-self: start; }
  .faq-aside { position: static; }
}

/* ---------- AAYS 2027: the path to Apply ----------
   Who can apply → how it works → what to submit → Apply. Instructions are set
   in Inter (the serif speaks, the sans instructs); Apply is the page's peak. */
.aays-split--top { align-items: start; }
.aays-note { margin-top: var(--space-4); max-width: 60ch; color: var(--color-ink-soft); }
.aays-subhead {
  margin-top: var(--space-7);
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: 0;
}
.aays-award { margin-top: var(--space-7); font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.aays-award + .aays-note { margin-top: var(--space-2); }

/* Hero: a darker, left-weighted scrim keeps the breadcrumb and the deadline
   readable over a bright photo (the base scrim fades out toward the top). */
.hero--legible .hero__scrim {
  background:
    linear-gradient(90deg, rgba(36, 21, 17, 0.6) 0%, rgba(36, 21, 17, 0.28) 50%, rgba(36, 21, 17, 0) 80%),
    linear-gradient(0deg, rgba(36, 21, 17, 0.88) 0%, rgba(36, 21, 17, 0.5) 55%, rgba(36, 21, 17, 0.42) 100%);
}
@media (max-width: 700px) {
  /* on a phone the text spans the whole photo, so shade it evenly */
  .hero--legible .hero__scrim { background: linear-gradient(0deg, rgba(36, 21, 17, 0.88) 0%, rgba(36, 21, 17, 0.66) 50%, rgba(36, 21, 17, 0.74) 100%); }
}
.hero--legible .breadcrumb { color: var(--color-on-deep); }
.hero__deadline {
  margin-top: var(--space-5);
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--color-on-fill);
}

/* Checklist with drawn check marks (eligibility; "you're ready when") */
.check-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.check-list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  font-size: 1.125rem;
  color: var(--color-ink);
}
.check-list__icon { width: 1.25rem; height: 1.25rem; margin-top: 0.2em; color: var(--color-primary); }
.check-list__icon path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.check-list--on-dark li { color: var(--color-on-fill); }
.check-list--on-dark .check-list__icon { color: var(--color-on-fill-accent); }

/* How it works: three dated steps; the order is the information */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.steps li { counter-increment: step; padding-top: var(--space-4); border-top: 1px solid var(--color-border-strong); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: lining-nums;
}
.steps__when { margin-top: var(--space-3); font-size: 0.85rem; color: var(--color-primary); }
.steps__title { margin-top: var(--space-1); font-size: 1.125rem; line-height: 1.35; }
.steps li > p:last-child { margin-top: var(--space-2); font-size: 0.9rem; color: var(--color-ink-soft); }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

/* What to submit: five numbered rows, name then a one-line spec */
.submit-list { counter-reset: item; margin-top: var(--space-6); border-top: 1px solid var(--color-border); max-width: 60ch; }
.submit-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 2rem 9.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: baseline;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.submit-list li::before {
  content: counter(item);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: lining-nums;
}
.submit-list__name { font-size: 1.125rem; color: var(--color-ink); }
.submit-list__spec { font-size: 1rem; color: var(--color-ink-soft); }
@media (max-width: 560px) {
  .submit-list li { grid-template-columns: 2rem minmax(0, 1fr); row-gap: var(--space-1); }
  .submit-list__spec { grid-column: 2; }
}

/* Apply: the page's peak, in the solid CTA red */
.apply-band {
  margin-top: var(--space-9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
  padding: var(--space-8);
  border-radius: var(--radius-md);
  background: var(--color-primary-dark);
  color: var(--color-on-deep);
  scroll-margin-top: 96px;
}
.apply-band h2 { color: var(--color-on-fill); }
.apply-band__deadline {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--color-on-deep);
}
.apply-band__deadline span { display: block; }
.apply-band__lead { color: var(--color-on-deep); }
.apply-band .check-list { margin-top: var(--space-4); }
.apply-band .btn { margin-top: var(--space-6); }
@media (max-width: 860px) {
  .apply-band { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-6); }
}

/* Fine print after the ask, never before it */
.apply-notes { margin-top: var(--space-6); max-width: 70ch; }
.apply-notes .aays-subhead { margin-top: 0; font-size: 1.125rem; }
.apply-notes__list { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.apply-notes li {
  position: relative;
  padding-left: var(--space-5);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}
.apply-notes li::before {
  content: "";
  position: absolute;
  left: 0.35rem; top: 0.7em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-terra);
}
.apply-notes__lead { color: var(--color-ink); }

/* ---------- Event recap photo highlights ----------
   Captions name the people, so they stay visible instead of appearing on hover. */
.recap-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6) var(--space-5);
  margin-top: var(--space-7);
}
.recap-figure { margin: 0; }
.recap-figure__frame { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 3 / 2; background: var(--color-rose); }
.recap-figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.recap-figure figcaption { margin-top: var(--space-3); font-size: 0.9rem; color: var(--color-ink-soft); max-width: 46ch; }

/* ---------- Newsletter sign-up page ----------
   Topics read as a typographic list (serif name, plain line), not as cards. */
.newsletter-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--space-8); align-items: start; }
.topic-list { margin-top: var(--space-6); border-top: 1px solid var(--color-border-strong); }
.topic-list li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  align-items: baseline;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border-strong);
}
.topic-list p { color: var(--color-ink-soft); }
.newsletter-photo { margin: 0; }
.newsletter-photo__frame { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 5; }
.newsletter-photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-photo figcaption { margin-top: var(--space-2); font-size: 0.85rem; color: var(--color-ink-muted); }
@media (max-width: 900px) {
  .newsletter-split { grid-template-columns: 1fr; gap: var(--space-6); }
  .newsletter-photo { max-width: 420px; }
}
@media (max-width: 560px) {
  .topic-list li { grid-template-columns: 1fr; gap: var(--space-1); padding-block: var(--space-4); }
}

/* ---------- Champions for Charity 2026 ----------
   Americana Manhasset's approved copy and flyer, set in our system. */
/* a registered mark in a serif headline would otherwise be full height */
sup.reg { font-size: 0.42em; vertical-align: super; line-height: 0; margin-left: 0.05em; }
.c4c-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--space-8); align-items: center; }
.c4c-split--top { align-items: start; }
.steps--stacked { grid-template-columns: 1fr; gap: var(--space-4); max-width: 46ch; }
.c4c-must {
  margin-top: var(--space-6);
  font-size: 1.125rem;
  color: var(--color-primary);
}
.c4c-flyer { margin: 0; }
.c4c-flyer img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.c4c-flyer figcaption { margin-top: var(--space-2); font-size: 0.85rem; color: var(--color-ink-muted); }
.c4c-note { margin-top: var(--space-4); max-width: 60ch; color: var(--color-ink-soft); }
.c4c-list { display: grid; gap: var(--space-4); margin-top: var(--space-6); max-width: 60ch; }
.c4c-list li { position: relative; padding-left: var(--space-5); color: var(--color-ink-soft); }
.c4c-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem; top: 0.7em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-terra);
}
.c4c-list__lead { color: var(--color-ink); }
@media (max-width: 900px) {
  .c4c-split { grid-template-columns: 1fr; gap: var(--space-6); }
  .c4c-flyer { max-width: 420px; }
}
.apply-notes a { color: var(--color-primary); }
