/* ==========================================================================
   Celeste Beauty Academy — Design System
   Institutional / civic public-charter-school aesthetic.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Color: near-black ink (matches the CBA crest) + brass/gold (achievement) + slate neutrals */
  --ink-950: #131417;
  --ink-900: #1d1f24;
  --ink-800: #2b2e35;
  --ink-700: #40444d;
  --ink-100: #eceef1;

  --gold-700: #8a6416;
  --gold-600: #a97c1f;
  --gold-500: #c4952f;
  --gold-100: #f6ecd7;

  --teal-700: #145048;
  --teal-600: #1c6f63;
  --teal-100: #e2f0ec;

  --white: #ffffff;
  --cream: #faf8f4;
  --slate-900: #1a2130;
  --slate-700: #444d61;
  --slate-500: #6b7385;
  --slate-300: #c7cdd9;
  --slate-200: #dde1e9;
  --slate-100: #eef1f6;

  --success-700: #1f6d40;
  --success-100: #e5f4ea;
  --error-700: #a3271f;
  --error-100: #fbeae8;

  /* Semantic tokens */
  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-text: var(--slate-900);
  --color-text-muted: var(--slate-700);
  --color-border: var(--slate-200);
  --color-primary: var(--ink-900);
  --color-primary-hover: var(--ink-800);
  --color-accent: var(--gold-600);
  --color-accent-hover: var(--gold-700);
  --color-focus: #2f6fed;

  /* Typography */
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.75rem;
  --text-6xl: 3.5rem;

  /* Spacing (4/8 rhythm) */
  --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;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(19, 20, 23, 0.06), 0 1px 1px rgba(19, 20, 23, 0.04);
  --shadow-md: 0 6px 16px rgba(19, 20, 23, 0.1), 0 2px 6px rgba(19, 20, 23, 0.06);
  --shadow-lg: 0 16px 40px rgba(19, 20, 23, 0.16), 0 4px 12px rgba(19, 20, 23, 0.08);

  --container-max: 1200px;
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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; }
button { cursor: pointer; }
a { color: inherit; }

@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .timeline-item, .timeline::before { opacity: 1 !important; transform: none !important; }
  .bio-dialog::backdrop { transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
}
html, body { max-width: 100%; overflow-x: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}
/* Fluid display sizes — scale smoothly with the viewport instead of jumping at
   a breakpoint. Endpoints match the previous fixed mobile/desktop sizes. */
h1 { font-size: clamp(2.75rem, 2rem + 3.2vw, 3.5rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.25rem); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-lg); }

p { color: var(--color-text-muted); }
p.lede { font-size: var(--text-xl); color: var(--slate-900); line-height: 1.55; }

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

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

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }
.section--dark { background: var(--ink-950); color: var(--slate-100); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--slate-300); }
.section--cream { background: var(--gold-100); }
.section--surface { background: var(--color-surface); }
.section--mission {
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("../img/mission-classroom.jpg");
  background-size: cover;
  background-position: center;
}
.section--about-overview {}
.section--bordered { border-top: 1px solid var(--color-border); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #board-list .card:last-child { grid-column: 2; }
}
#difference-cards, #trust-cards, #graduate-outcomes-cards {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6);
}
#difference-cards .card, #trust-cards .card, #graduate-outcomes-cards .card { flex: 1 1 280px; max-width: 340px; }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.section--dark .eyebrow { color: var(--gold-500); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}
.section--dark .eyebrow::before, .section--dark .eyebrow::after { background: var(--gold-500); }

/* Flanked eyebrow: rule on both sides, like an inscription on a seal or charter heading. */
.eyebrow--flanked { justify-content: center; }
.eyebrow--flanked::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--space-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold-600); color: var(--ink-950); }
.btn-primary:hover { background: var(--gold-700); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn-outline:hover { background: var(--ink-900); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- Donation form ---- */
.donate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.donate-card h3 { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.donate-field { margin-bottom: var(--space-5); }
.donate-field > label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold-700);
  margin-bottom: var(--space-3);
}
.donate-options { display: grid; gap: var(--space-3); grid-template-columns: repeat(4, 1fr); }
.donate-options.donate-options--amounts { grid-template-columns: repeat(3, 1fr); }
.donate-chip {
  appearance: none;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.75rem;
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.2;
}
.donate-chip-amount { font-size: var(--text-lg); font-weight: 700; }
.donate-chip-label { font-size: var(--text-xs); font-weight: 400; color: var(--slate-500); }
.donate-chip:hover { border-color: var(--gold-500); }
.donate-chip[aria-pressed="true"] {
  border-color: var(--gold-600);
  background: var(--gold-100);
  font-weight: 700;
}
.donate-amount-other,
.donate-comment {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem var(--space-3);
  font: inherit;
  color: var(--ink-900);
}
.donate-amount-other { margin-top: var(--space-3); }
.donate-comment { min-height: 96px; resize: vertical; }
.donate-amount-other:focus,
.donate-comment:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
.donate-note { font-size: var(--text-sm); color: var(--slate-500); margin-top: var(--space-4); text-align: center; }
@media (max-width: 560px) {
  .donate-options { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Header / Nav ---- */
.topbar {
  background: var(--ink-950);
  color: var(--slate-300);
  font-size: var(--text-xs);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-2); gap: var(--space-4); flex-wrap: wrap; }
.topbar a { color: var(--slate-300); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; gap: var(--space-5); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
/* On scroll: frosted, slightly condensed, lifted off the page. */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  transition: padding-block 0.25s var(--ease-out);
}
.site-header.is-scrolled .container { padding-block: var(--space-2); }

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-mark { width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; }
.brand-mark-plate {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: var(--radius-full);
  background: var(--white); flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.brand-mark-plate .brand-mark { width: 38px; height: 38px; }
.brand-text { font-family: var(--font-heading); line-height: 1.15; }
.brand-text .name { display: block; font-weight: 700; font-size: var(--text-xl); color: var(--ink-950); white-space: nowrap; }
.brand-text .tag { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }

.nav-primary { display: none; }
.nav-primary ul { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.nav-primary a {
  display: block;
  padding: 0.6rem 0.3rem;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-primary a:hover { color: var(--ink-950); background: var(--slate-100); }
.nav-primary a[aria-current="page"] { color: var(--ink-950); font-weight: 700; }
.nav-primary a[aria-current="page"]::after { content: ""; }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 3px; }
.nav-dropdown-caret { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--duration-fast); }
.nav-dropdown:hover .nav-dropdown-caret, .nav-dropdown:focus-within .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown .nav-dropdown-menu {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; margin-top: var(--space-2);
  background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); min-width: 230px; padding: var(--space-2);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--duration-fast), transform var(--duration-fast), visibility var(--duration-fast);
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--slate-700); text-decoration: none; font-weight: 600; font-size: var(--text-sm); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--slate-100); color: var(--ink-950); }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu, .nav-dropdown-caret { transition: none; }
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid var(--color-border); color: var(--ink-950);
}
.icon-btn:hover { background: var(--slate-100); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--ink-950); color: var(--white); border: none;
}

@media (min-width: 1220px) {
  .nav-primary { display: block; }
  .nav-toggle { display: none; }
}

/* ---- Mobile header ---- */
@media (max-width: 1219px) {
  .header-actions { gap: var(--space-2); }
}
@media (max-width: 640px) {
  .site-header .container { gap: var(--space-2); }
  .brand { gap: var(--space-2); }
  .brand-mark { width: 46px; height: 46px; }
  .brand-text .name { font-size: var(--text-base); white-space: normal; }
  .brand-text .tag { font-size: 0.55rem; }
  /* Submit Interest Form stays available in the menu drawer on phones */
  .header-actions .btn { display: none; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink-950);
  color: var(--white);
  display: none;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav .container { padding-block: var(--space-5); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.mobile-nav ul { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.mobile-nav a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-3); margin-inline: calc(var(--space-3) * -1);
  font-size: var(--text-xl); font-weight: 600; font-family: var(--font-heading); letter-spacing: 0.01em;
  text-decoration: none; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid transparent; border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast), padding-left var(--duration-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  color: var(--white); background: rgba(255,255,255,0.06); border-left-color: var(--gold-500); padding-left: calc(var(--space-3) + var(--space-2));
}
.mobile-nav a[aria-current="page"] { color: var(--gold-500); font-weight: 700; border-left-color: var(--gold-500); }
.mobile-nav a:focus-visible, .nav-toggle:focus-visible, .mobile-nav-close:focus-visible {
  outline: none;
}
.mobile-nav .btn { display: inline-flex; margin-top: var(--space-6); text-align: center; }

/* ---- Search overlay ---- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 28, 51, 0.72);
  display: none;
  padding-top: min(14vh, var(--space-9));
}
.search-overlay.is-open { display: block; }
.search-panel {
  width: min(640px, 92vw);
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-panel form { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5); border-bottom: 1px solid var(--color-border); }
.search-panel input[type="search"] { flex: 1; border: none; font-size: var(--text-lg); outline: none; }
.search-results { max-height: 50vh; overflow-y: auto; padding: var(--space-3); }
.search-result { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); text-decoration: none; }
.search-result:hover, .search-result:focus-visible { background: var(--slate-100); }
.search-result .title { color: var(--ink-950); font-weight: 600; }
.search-empty { padding: var(--space-5); color: var(--slate-500); text-align: center; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background-color: var(--ink-950);
  background-image:
    linear-gradient(115deg, rgba(19, 20, 23, 0.95) 0%, rgba(19, 20, 23, 0.88) 50%, rgba(19, 20, 23, 0.74) 100%),
    url("../img/hero-home.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(19,20,23,0.92) 0%, rgba(19,20,23,0.80) 55%, rgba(19,20,23,0.65) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
  .hero { background-image: linear-gradient(115deg, rgba(19,20,23,0.95) 0%, rgba(19,20,23,0.88) 50%, rgba(19,20,23,0.74) 100%), url("../img/hero-home.jpg"); background-size: cover; background-position: center right; }
}
.page-hero--video {
  position: relative;
  overflow: hidden;
}
.page-hero--video .hero-video-bg,
.page-hero--video .hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero--video .hero-video-bg { object-fit: cover; object-position: center; z-index: 0; }
.page-hero--video .hero-video-overlay { background: rgba(19,20,23,0.62); z-index: 1; }
.page-hero--video .container { position: relative; z-index: 2; }
.page-hero--video .breadcrumb,
.page-hero--video .hero-eyebrow,
.page-hero--video h1,
.page-hero--video .lede { color: var(--white); }
.page-hero--video .eyebrow { color: var(--gold-400); }
@media (prefers-reduced-motion: reduce) {
  .page-hero--video .hero-video-bg { display: none; }
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.9;
}
.hero .container {
  position: relative;
  padding-block: var(--space-9) var(--space-8);
  display: grid;
  gap: var(--space-7);
}
.hero-eyebrow { color: var(--gold-500); }
.hero h1 { color: var(--white); margin-top: var(--space-3); max-width: 16ch; }
.hero .lede { color: var(--slate-300); max-width: 52ch; margin-top: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
/* Charter-at-a-glance ledger: hairline-divided fields, not stat-card boxes. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-5);
  row-gap: var(--space-6);
  margin-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--space-6);
}
.hero-stat { border-left: 1px solid rgba(255,255,255,0.18); padding-left: var(--space-5); }
.hero-stat:nth-child(odd) { border-left: none; padding-left: 0; }
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stat { border-left: 1px solid rgba(255,255,255,0.18); padding-left: var(--space-5); }
  .hero-stat:first-child { border-left: none; padding-left: 0; }
  .hero-stat:nth-child(odd) { border-left: 1px solid rgba(255,255,255,0.18); padding-left: var(--space-5); }
  .hero-stat:first-child { border-left: none; padding-left: 0; }
}
.hero-stat .num { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 500; color: var(--gold-500); display: block; line-height: 1; }
.hero-stat .label {
  display: block; margin-top: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate-300);
}

.page-hero {
  background: var(--ink-950);
  color: var(--white);
  padding-block: var(--space-8) var(--space-7);
}
.page-hero--home-img {
  background-color: var(--ink-950);
  background-image:
    linear-gradient(115deg, rgba(19, 20, 23, 0.92) 0%, rgba(19, 20, 23, 0.82) 45%, rgba(19, 20, 23, 0.55) 100%),
    url("../img/hero-home.jpg");
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
}
@media (max-width: 640px) {
  .page-hero--home-img {
    background-size: cover;
    background-position: 65% 40%;
    padding-block: var(--space-6);
  }
  .page-hero--home-img h1 { font-size: var(--text-3xl); }
  .page-hero--home-img .lede { font-size: var(--text-base); }
}
.page-hero--about {
  background-color: var(--ink-950);
  background-image:
    linear-gradient(115deg, rgba(19, 20, 23, 0.92) 0%, rgba(19, 20, 23, 0.85) 50%, rgba(19, 20, 23, 0.7) 100%),
    url("../img/about-hero.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.page-hero--board {
  background-color: var(--ink-950);
  background-image:
    linear-gradient(115deg, rgba(19, 20, 23, 0.78) 0%, rgba(19, 20, 23, 0.68) 50%, rgba(19, 20, 23, 0.5) 100%),
    url("../img/board-hero.jpg");
  background-size: cover;
  background-position: right 38%;
  background-repeat: no-repeat;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-top: var(--space-3); max-width: 22ch; }
.page-hero .lede { color: var(--slate-300); max-width: 60ch; margin-top: var(--space-4); }
.breadcrumb { font-size: var(--text-sm); color: var(--slate-300); }
.breadcrumb a { color: var(--slate-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gold-500); }
a.card:hover, .card.is-interactive:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card h3 { margin-top: var(--space-3); }
.community-photo { display: block; width: 100%; max-width: 360px; margin-inline: auto; height: 360px; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .community-photo { height: 280px; } }
.model-photo { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--ink-100); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
}
.card-eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-700); }

/* Person photo avatar — used in place of .card-icon once a real headshot exists. */
.card-avatar {
  width: 128px; height: 128px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold-100);
}
.avatar-zoom {
  display: inline-block; padding: 0; border: none; background: none; cursor: zoom-in;
  border-radius: 50%; position: relative;
}
.avatar-zoom:hover .card-avatar, .avatar-zoom:focus-visible .card-avatar { border-color: var(--gold-500); }
.avatar-zoom::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(19, 20, 23, 0);
  transition: background var(--duration-fast);
}
.avatar-zoom:hover::after, .avatar-zoom:focus-visible::after { background: rgba(19, 20, 23, 0.15); }

.card-bio-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3); font-size: var(--text-sm); font-weight: 700;
  color: var(--gold-700); background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.card-bio-link:hover { color: var(--ink-900); text-decoration: underline; }

/* ---- Bio dialog ---- */
.bio-dialog {
  border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 0; width: min(520px, 92vw); max-height: 85vh;
  background: var(--white); color: var(--ink-900);
  opacity: 0; transform: scale(0.96);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.bio-dialog.is-visible { opacity: 1; transform: scale(1); }
.bio-dialog::backdrop {
  background: rgba(10, 28, 51, 0);
  transition: background 180ms var(--ease-out);
}
.bio-dialog.is-visible::backdrop { background: rgba(10, 28, 51, 0.72); }
.bio-dialog-inner { position: relative; padding: var(--space-7); overflow-y: auto; max-height: 85vh; }
.bio-dialog-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--ink-100); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.bio-dialog-close:hover { background: var(--gold-100); }
.bio-dialog-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-100); margin-bottom: var(--space-4);
}
.bio-dialog-text { margin-top: var(--space-4); }

/* ---- Photo lightbox dialog ---- */
.photo-dialog {
  border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 0; width: min(480px, 90vw); background: transparent;
  opacity: 0; transform: scale(0.96);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.photo-dialog.is-visible { opacity: 1; transform: scale(1); }
.photo-dialog::backdrop {
  background: rgba(10, 28, 51, 0);
  transition: background 180ms var(--ease-out);
}
.photo-dialog.is-visible::backdrop { background: rgba(10, 28, 51, 0.85); }
.photo-dialog-inner { position: relative; }
.photo-dialog-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.photo-dialog-close {
  position: absolute; top: calc(-1 * var(--space-6)); right: 0;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--white); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.photo-dialog-close:hover { background: var(--gold-100); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.3rem 0.75rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-teal { background: var(--teal-100); color: var(--teal-700); }
.badge-ink { background: var(--ink-100); color: var(--ink-900); }
.badge-slate { background: var(--slate-100); color: var(--slate-700); }

/* ---- Stat band ---- */
.stat-band { background: var(--gold-100); border-radius: var(--radius-lg); padding: var(--space-7); }
.stat { text-align: center; }
.stat .num { font-family: var(--font-heading); font-size: var(--text-4xl); color: var(--ink-950); display: block; }
.stat .label { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--ink-950), var(--ink-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--slate-300); }
.cta-band .cluster { justify-content: center; margin-top: var(--space-6); }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: var(--space-6); }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--slate-200); transform-origin: top; transform: scaleY(1);
}
.timeline-item { position: relative; padding-bottom: var(--space-7); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-6) - 6px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-600); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--gold-600);
}
.timeline-item .when { font-weight: 700; color: var(--ink-900); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; }

/* Scroll reveal is JS-enhanced only: without the `.js` flag (set inline before paint),
   or if a user has JS disabled, the timeline is fully visible by default — content
   must never depend on JS/an observer firing to become visible. */
.js .timeline::before {
  transform: scaleY(0);
  transition: transform 900ms var(--ease-out);
}
.js .timeline.is-visible::before { transform: scaleY(1); }
.js .timeline-item {
  opacity: 0; transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.js .timeline-item.is-visible { opacity: 1; transform: none; }

/* Seal: the crest stamped at the one moment legitimacy is literally being asserted. */
.timeline-seal { display: inline-flex; align-items: center; gap: var(--space-2); }
.timeline-seal img { width: 22px; height: 22px; }

/* ---- Scroll reveal (generic) ----
   JS adds `.reveal` only to below-the-fold targets, so content is always visible
   without JS and above-the-fold content never flashes. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Cross-document page transitions ----
   Progressive enhancement: unsupported browsers ignore this at-rule entirely. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---- Accordion (FAQ) ---- */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5) 0; background: none; border: none; text-align: left;
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 600; color: var(--ink-950);
}
.accordion-icon { flex-shrink: 0; transition: transform var(--duration-base) var(--ease-out); color: var(--gold-600); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--duration-base) var(--ease-out); }
.accordion-panel[hidden] { display: block; }
.accordion-panel-inner { padding-bottom: var(--space-5); }
.section--dark .accordion-item { border-bottom-color: rgba(255, 255, 255, 0.18); }
.section--dark .accordion-trigger { color: var(--white); }
.section--dark .accordion-panel-inner p { color: var(--slate-300); }

/* ---- Tables & filters ---- */
.filter-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-pill {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0.4rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--color-border);
  background: var(--white); font-size: var(--text-sm); font-weight: 600; color: var(--slate-700);
  touch-action: manipulation; cursor: pointer;
}
.filter-pill[aria-pressed="true"] { background: var(--ink-950); color: var(--white); border-color: var(--ink-950); }

.doc-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.doc-table th, .doc-table td { text-align: left; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.doc-table th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); background: var(--slate-100); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-900); font-weight: 700; text-decoration: none; }
.doc-link:hover { color: var(--gold-700); }
.doc-empty { padding: var(--space-7); text-align: center; color: var(--slate-500); }

@media (max-width: 767px) {
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
  .doc-table td { border: none; padding: var(--space-1) 0; }
  .doc-table td::before { content: attr(data-label); display: block; font-size: var(--text-xs); text-transform: uppercase; color: var(--slate-500); font-weight: 700; }
}

/* ---- Forms ---- */
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 700; font-size: var(--text-sm); color: var(--ink-950); }
.field .required { color: var(--error-700); }
.field .hint { font-size: var(--text-xs); color: var(--slate-500); }
.field input, .field select, .field textarea {
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; font-size: var(--text-base); background: var(--white); min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-focus); }
.field-error { font-size: var(--text-sm); color: var(--error-700); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error-700); }
.field.has-error .field-error { display: block; }
.form-note { font-size: var(--text-sm); color: var(--slate-500); }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); font-weight: 600; display: none; margin-top: var(--space-4); }
.form-status.is-success { display: block; background: var(--success-100); color: var(--success-700); }
.form-status.is-error { display: block; background: var(--error-100); color: var(--error-700); }
.checkbox-field { display: flex; align-items: flex-start; gap: var(--space-3); }
.checkbox-field input { min-height: auto; width: 20px; height: 20px; margin-top: 2px; }

fieldset { border: none; padding: 0; }
legend { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--ink-950); margin-bottom: var(--space-4); padding: 0; }

/* ---- Notice banner (build status) ---- */
.build-banner {
  background: var(--gold-100);
  color: var(--gold-700);
  border-bottom: 1px solid var(--gold-500);
  font-size: var(--text-sm);
}
.build-banner .container { padding-block: var(--space-2); display: flex; gap: var(--space-2); align-items: center; }

/* ---- Footer ---- */
.site-footer { background: var(--ink-950); color: var(--slate-300); }
.footer-top { padding-block: var(--space-8); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-brand .brand-text .name { color: var(--white); }
.footer-brand p { margin-top: var(--space-4); max-width: 34ch; }
.footer-heading { color: var(--white); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); }
.footer-links li { margin-bottom: var(--space-3); }
.footer-links a { color: var(--slate-300); text-decoration: none; font-size: var(--text-sm); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-bottom { padding-block: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); align-items: center; font-size: var(--text-base); color: var(--slate-300); text-align: center; }
.footer-bottom-row { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; align-items: center; }
.footer-bottom a { color: var(--slate-300); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom .btn { font-size: var(--text-sm); }
.footer-notice { font-size: var(--text-xs); width: 100%; color: var(--slate-300); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--gold-600); color: var(--ink-950); padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--color-border); border: none; margin-block: var(--space-7); }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
