/* =========================================================================
   Illinois USSSA Hall of Fame — "The Register"
   Heritage gravitas with a pulse of the sport.
   ========================================================================= */

:root {
  /* Dark Sunset palette — teal · custard · bronze · red · bordeaux */
  --page-bg: #F8F2E1;
  --surface: #FFFFFF;
  --surface-alt: #F5ECD4;
  --ink: #241C17;
  --ink-muted: #6E6357;
  --line: #E8DEC5;
  --brand: #335C67;        /* Dark Slate Grey (teal) */
  --brand-deep: #540B0E;   /* Night Bordeaux */
  --gold: #E09F3E;         /* Honey Bronze */
  --gold-text: #8A6420;    /* darker bronze — AA-readable as text on the paper */
  --gold-soft: #F1C574;
  --accent: #9E2A2B;       /* Brown Red */
  --on-brand: #FCF4D6;
  --custard: #FFF3B0;      /* Vanilla Custard */

  --wrap: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(26, 28, 24, .05);
  --shadow-md: 0 14px 34px -18px rgba(26, 28, 24, .35);
  --shadow-lg: 0 26px 60px -28px rgba(48, 16, 16, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .18s var(--ease);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

[data-theme="dark"] {
  --page-bg: #17110E;
  --surface: #241A16;
  --surface-alt: #1E140F;
  --ink: #F4ECD6;
  --ink-muted: #B2A388;
  --line: #3A2B23;
  --brand: #3E6B77;        /* lifted teal */
  --brand-deep: #6E1618;   /* lifted bordeaux */
  --gold: #E6A94E;
  --gold-text: #E6A94E;    /* on dark, the bright gold is the readable one */
  --gold-soft: #F2C877;
  --accent: #C7433F;
  --on-brand: #FFF3B0;
  --custard: #FFF3B0;
  --shadow-md: 0 14px 34px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 26px 60px -28px rgba(0, 0, 0, .7);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; }

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

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-text); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .6; flex: none; }
.section-num { font-family: var(--font-mono); font-weight: 700; color: var(--gold-text); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--ink); }
.muted { color: var(--ink-muted); }
.muted-gold { color: var(--gold-text); font-variant-numeric: tabular-nums; }

/* ---------- seam motif ---------- */
.seam { color: var(--gold); width: 132px; height: 16px; opacity: .9; }
.seam-rule { margin: 1.1rem 0; display: flex; justify-content: center; }
.seam-rule--left { justify-content: flex-start; }
.seam-rule--left .seam { margin-left: -6px; }
.seam-rule--gold .seam { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; transition: transform var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #221a08; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--brand); }
[data-theme="dark"] .btn-outline:hover { color: var(--gold); }
.link-arrow { color: var(--brand); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color var(--t); }
.link-arrow:hover { border-color: var(--gold); }
[data-theme="dark"] .link-arrow { color: var(--gold); }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t), background var(--t);
}
.site-header[data-scrolled] { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; line-height: 1.05; letter-spacing: -.01em; display: flex; flex-direction: column; }
.brand-name-sub { color: var(--gold-text); font-size: .82rem; font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; padding: .35rem 0; border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t); }
.site-nav a:hover { color: var(--brand); }
[data-theme="dark"] .site-nav a:hover { color: var(--gold); }
.site-nav a.is-active { border-color: var(--accent); color: var(--brand); }
[data-theme="dark"] .site-nav a.is-active { color: var(--on-brand); }

.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color var(--t), color var(--t); }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bar { width: 20px; height: 2px; background: var(--ink); transition: transform var(--t), opacity var(--t); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: flex-start; gap: .2rem;
    background: var(--page-bg); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
    box-shadow: var(--shadow-md);
  }
  .site-nav a { width: 100%; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .theme-toggle { margin-top: .6rem; }
}

/* ---------- hero ---------- */
.hero-band {
  background: var(--brand);
  color: var(--on-brand);
  position: relative; overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.hero-band::after {
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(224, 159, 62, .10), transparent 70%); pointer-events: none;
}
/* faint infield-diamond motifs for depth */
.hero-diamond { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(224, 159, 62,.16);
  transform: rotate(45deg); top: -120px; right: -70px; pointer-events: none; border-radius: 22px; }
.hero-diamond--2 { width: 220px; height: 220px; top: auto; bottom: -110px; left: -60px; right: auto; border-color: rgba(224, 159, 62,.12); }
@media (max-width: 700px) { .hero-diamond { width: 220px; height: 220px; top: -80px; right: -80px; } .hero-diamond--2 { display: none; } }
.hero-inner { padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(1.7rem, 3vw, 2.6rem); text-align: center; position: relative; z-index: 1; }
.hero-logo { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 1.4rem; padding: 10px; border-radius: 999px; border: 1px solid rgba(224, 159, 62, .55); background: rgba(255,255,255,.04); }
.hero-band .eyebrow { color: var(--gold-soft); }
.hero-title { font-size: clamp(2.1rem, 5.4vw, 4.1rem); color: var(--on-brand); max-width: 18ch; margin-inline: auto; font-weight: 600; }
.hero-search {
  display: flex; align-items: center; gap: .4rem; background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; max-width: 620px; margin: 1.4rem auto 0;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.2);
}
.hero-search-ic { color: var(--ink-muted); flex: none; }
.hero-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); padding: .55rem .2rem; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--ink-muted); }
.hero-stats { display: flex; justify-content: center; gap: clamp(1.2rem, 5vw, 3.4rem); margin: 2.2rem 0 0; }
.hero-stats > div { position: relative; padding: 0 clamp(.6rem, 3vw, 1.6rem); }
.hero-stats > div + div::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: linear-gradient(var(--gold), transparent); opacity: .6; }
.hero-stats dt { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 600; color: var(--gold-soft); }
.hero-stats dd { margin: .1rem 0 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(252, 244, 214,.92); }

/* ---------- bands / sections ---------- */
.band { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.band--paper { background: var(--page-bg); }
.band--alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.band--grid { padding-top: 2rem; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

/* ---------- scroll reveal + count-up ---------- */
.has-js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .06s); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .has-js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- featured spotlight ---------- */
.spotlight { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; border-block: 1px solid var(--gold); }
.spotlight::before { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(224, 159, 62,.14); transform: rotate(45deg); top: -140px; left: -80px; border-radius: 24px; pointer-events: none; }
.spotlight-inner { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 3.6rem); align-items: center; padding: clamp(2.4rem, 5.5vw, 4rem) 0; position: relative; z-index: 1; }
.spotlight-figure { margin: 0; }
.frame--spot { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid rgba(224, 159, 62,.4); box-shadow: var(--shadow-lg); max-width: 320px; }
.spotlight-body .eyebrow { color: var(--gold-soft); }
.spotlight-name { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 600; color: var(--on-brand); letter-spacing: -.015em; }
.spotlight-teaser { font-size: 1.1rem; line-height: 1.75; color: rgba(252, 244, 214,.86); max-width: 56ch; margin: 0 0 1.6rem; }
.spotlight .seam { color: var(--gold-soft); }
@media (max-width: 780px) { .spotlight-inner { grid-template-columns: 1fr; text-align: left; } .spotlight-figure { max-width: 240px; } }

.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start; }
.lede { font-size: 1.08rem; }
.lede p { margin: 0 0 1rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; margin-top: 1.6rem; }
.cat-tile {
  display: flex; align-items: center; gap: .95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1.05rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
}
.cat-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.cat-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--shadow-md); }
.cat-tile:hover::before { transform: scaleX(1); }
.cat-tile-ic {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid var(--line);
  color: var(--brand); transition: background var(--t), color var(--t), border-color var(--t);
}
[data-theme="dark"] .cat-tile-ic { color: var(--gold-soft); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.cat-tile:hover .cat-tile-ic { background: var(--brand); color: var(--gold-soft); border-color: var(--brand); }
.cat-tile-text { display: flex; flex-direction: column; gap: .05rem; flex: 1; min-width: 0; }
.cat-tile-name { font-weight: 600; font-family: var(--font-display); font-size: 1.06rem; line-height: 1.15; }
.cat-tile-sub { font-size: .78rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.cat-tile-go { color: var(--gold); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t); }
.cat-tile:hover .cat-tile-go { opacity: 1; transform: translateX(0); }

/* ---------- inductee grid + card ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--directory { grid-template-columns: repeat(4, 1fr); }
.grid--home, .grid--related { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--directory, .grid--home, .grid--related { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid--directory, .grid--home, .grid--related { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 430px) { .grid--directory, .grid--home, .grid--related { grid-template-columns: 1fr 1fr; gap: .8rem; } }

.card { position: relative; }
.card.is-hidden { display: none; }
.card-link {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.card-link::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold); z-index: 3; opacity: .85; transition: opacity var(--t); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.card-link:hover::before { opacity: 1; }

.frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-alt); }
.frame .portrait {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: sepia(.12) saturate(.92) contrast(1.04) brightness(.99);
  transition: transform .4s var(--ease);
}
.card-link:hover .frame .portrait { transform: scale(1.035); }
.frame::before { /* warm inner gradient + green-shadow tint to unify scans */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246,243,235,.06) 0%, transparent 30%, rgba(48, 16, 16,.16) 100%);
  mix-blend-mode: multiply;
}
/* museum plaque corner ticks */
.plaque { position: absolute; inset: 9px; z-index: 3; pointer-events: none; --t: 12px; --w: 1.5px;
  background-image:
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
  background-size:
    var(--t) var(--w), var(--w) var(--t), var(--t) var(--w), var(--w) var(--t),
    var(--t) var(--w), var(--w) var(--t), var(--t) var(--w), var(--w) var(--t);
  background-position:
    left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
  background-repeat: no-repeat; opacity: .9;
}
.portrait--none { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brand); color: var(--gold-soft); }
.portrait--none span { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; }
.year-badge {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  background: color-mix(in srgb, var(--yc, #7c1d22) 74%, #12080a); color: #fff2cf; font-size: .78rem; font-weight: 600;
  padding: .18rem .5rem; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--yc, #E09F3E) 62%, transparent); letter-spacing: .02em;
}
.card-scrim { position: absolute; inset: auto 0 0 0; height: 42%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(48, 16, 16,.42)); opacity: 0; transition: opacity var(--t); }
.card-link:hover .card-scrim { opacity: 1; }
.card-body { display: block; padding: .85rem .95rem 1.05rem; }
.card-cat { display: inline-flex; align-items: center; gap: .38rem; color: var(--gold-text); margin-bottom: .35rem; }
.card-cat-ic { width: 15px; height: 15px; flex: none; }
.card-cat-label { font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
[data-theme="dark"] .card-cat-label { color: var(--gold-soft); }
.card-name { display: block; font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; line-height: 1.18; color: var(--ink); transition: color var(--t); }
.card-link:hover .card-name { color: var(--brand); }
[data-theme="dark"] .card-link:hover .card-name { color: var(--gold-soft); }
.chip {
  display: inline-block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-muted); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem;
}

/* ---------- filter bar ---------- */
.filterbar { position: sticky; top: 70px; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.filterbar .wrap { padding-block: .85rem; }
.filter-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 220px; background: var(--page-bg); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; color: var(--ink-muted); transition: border-color var(--t); }
.search-field:focus-within { border-color: var(--gold); }
.search-field input { flex: 1; border: 0; background: none; font: inherit; font-size: .98rem; color: var(--ink); min-width: 0; }
.search-field input:focus { outline: none; }
.sort-field { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-muted); }
.sort-field select { font: inherit; font-size: .9rem; padding: .45rem 2rem .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--page-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236B675B' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right .7rem center; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.btn-clear { font: inherit; font-size: .85rem; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; padding: .45rem .4rem; }
.btn-clear:hover { text-decoration: underline; }

.chip-row { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.chip-row::-webkit-scrollbar { height: 5px; }
.chip-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
.fchip, .dchip {
  scroll-snap-align: start; flex: none; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 500;
  white-space: nowrap; padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--page-bg); color: var(--ink); transition: background var(--t), color var(--t), border-color var(--t);
}
.fchip:hover, .dchip:hover { border-color: var(--gold); }
.fchip.is-active, .dchip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip-n { font-size: .76rem; opacity: .7; margin-left: .25rem; }
.fchip.is-active .fchip-n { opacity: .85; }
.chip-row--decades .dchip { font-size: .82rem; }

.page-sub [data-count] { font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .page-sub [data-count] { color: var(--gold); }
.empty-state { text-align: center; padding: 3rem 0; color: var(--ink-muted); font-size: 1.05rem; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.4rem; }
.page-head--compact { padding-bottom: .6rem; }
.page-head--brand { background: var(--brand); color: var(--on-brand); border-bottom: 2px solid var(--gold); }
.page-head--brand .eyebrow { color: var(--gold-soft); }
.page-head--brand .page-lede { color: rgba(252, 244, 214,.85); }
.page-title { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page-lede { font-size: 1.12rem; max-width: 60ch; margin: 1rem 0 0; color: var(--ink-muted); }
.page-sub { color: var(--ink-muted); margin: .8rem 0 0; }

/* ---------- prose / static ---------- */
.prose-wrap { max-width: 820px; }
.prose-wrap.center { text-align: center; margin-inline: auto; }
.def-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin: 1.6rem 0 0; }
.def dt { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--brand); }
[data-theme="dark"] .def dt { color: var(--gold); }
.def dd { margin: .25rem 0 0; color: var(--ink-muted); }
@media (max-width: 620px) { .def-list { grid-template-columns: 1fr; } }
.req-list { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.req-list li { position: relative; padding-left: 1.8rem; }
.req-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 999px; border: 2px solid var(--gold); }
.two-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 720px) { .two-card { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.info-card-h { font-size: 1.3rem; color: var(--brand); margin-bottom: .6rem; }
[data-theme="dark"] .info-card-h { color: var(--gold); }
.fact-list { margin: 0; display: grid; gap: 1rem; }
.fact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }
.fact-list dt { font-weight: 600; color: var(--gold-text); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; padding-top: .2rem; }
.fact-list dd { margin: 0; }
@media (max-width: 560px) { .fact-list > div { grid-template-columns: 1fr; gap: .15rem; } }
.agenda-list { margin: 1.4rem 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.agenda-list li { padding: .85rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.note { color: var(--ink-muted); font-size: .96rem; margin-top: 1.2rem; }
.rate-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .96rem; }
.rate-table th, .rate-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.rate-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.rate-table td.num { color: var(--gold-text); font-weight: 600; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 500; background: var(--surface); }
.memoriam-text { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.6; max-width: 36ch; margin: 1.4rem auto 2rem; color: var(--ink); }

/* form selector cards (Nominate page) + head CTA */
.head-cta { margin: 1.4rem 0 0; }
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; margin: 1.6rem 0 1.2rem; }
.form-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.form-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--shadow-md); }
.form-card-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid var(--line); color: var(--brand); }
[data-theme="dark"] .form-card-ic { color: var(--gold-soft); }
.form-card:hover .form-card-ic { background: var(--brand); color: var(--gold-soft); border-color: var(--brand); }
.form-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.form-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.form-card-blurb { font-size: .86rem; color: var(--ink-muted); }
.form-card-go { color: var(--gold); font-weight: 600; font-size: 1.2rem; flex: none; opacity: .5; transition: opacity var(--t), transform var(--t); }
.form-card:hover .form-card-go { opacity: 1; transform: translateX(2px); }
.form-pdf-note { margin-top: 0; margin-bottom: 1.4rem; }

/* cta band */
.band--cta { background: var(--brand-deep); color: var(--on-brand); text-align: center; }
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta-inner--left { max-width: 680px; margin-inline: 0; text-align: left; }
.band--cta .eyebrow { color: var(--gold-soft); }
.cta-title { color: var(--on-brand); }
.cta-text { color: rgba(252, 244, 214,.82); font-size: 1.08rem; margin: 1rem 0 1.8rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: start; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.contact-role { color: var(--gold-text); font-weight: 600; margin: .2rem 0 1rem; }
.contact-card address, .footer-col address { font-style: normal; line-height: 1.8; }
.contact-card a { color: var(--brand); }
[data-theme="dark"] .contact-card a { color: var(--gold); }
.contact-actions { display: grid; gap: .8rem; }
.contact-actions .btn { justify-content: space-between; }

/* ---------- profile ---------- */
.profile { padding: clamp(1.6rem, 4vw, 2.8rem) 0 0; }
.back-link { display: inline-block; color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: .92rem; margin-bottom: 1.4rem; transition: color var(--t); }
.back-link:hover { color: var(--accent); }
.profile-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 3.6rem); align-items: start; }
@media (max-width: 820px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-figure { margin: 0; position: sticky; top: 92px; }
@media (max-width: 820px) { .profile-figure { position: static; max-width: 360px; } }
.frame--lg { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.frame--lg .portrait { object-position: center top; }
.profile-plate { margin-top: .9rem; display: grid; gap: .35rem; background: var(--surface-alt); border: 1px solid var(--line); border-left: 3px solid var(--yc, var(--gold)); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.plate-line { display: flex; align-items: baseline; gap: .6rem; font-size: 1rem; }
.plate-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); min-width: 74px; font-weight: 600; }
.plate-line .num { font-family: var(--font-display); font-size: 1.25rem; color: var(--yc, var(--gold)); font-weight: 600; }
.profile-name { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--ink); margin-top: .2rem; }
.bio { font-size: 1.12rem; line-height: 1.78; max-width: 64ch; color: var(--ink); }
.bio p { margin: 0 0 1.15rem; }
.bio p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.3rem; line-height: .82; font-weight: 600; float: left; padding: .1rem .55rem .1rem 0; color: var(--gold-text); }

.related { margin-top: clamp(2.4rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.related-h { margin-bottom: 1.3rem; }
.related-h .eyebrow { margin: 0; }
.grid--related { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .grid--related { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .grid--related { grid-template-columns: repeat(2, 1fr); } }

.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin: 2.6rem 0 clamp(2.4rem, 6vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pn { text-decoration: none; color: var(--ink); display: grid; gap: .15rem; max-width: 46%; transition: color var(--t); }
.pn--next { text-align: right; }
.pn-dir { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.pn-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.pn:hover .pn-name { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: var(--on-brand); border-top: 2px solid var(--gold); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: clamp(2.4rem, 5vw, 3.4rem) 0 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 60px; height: 60px; object-fit: contain; padding: 8px; border-radius: 999px; border: 1px solid rgba(224, 159, 62,.5); margin-bottom: 1rem; }
.footer-mission { color: rgba(252, 244, 214,.72); font-size: .95rem; max-width: 30ch; }
.footer-h { font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 .9rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: rgba(252, 244, 214,.85); text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col address a { color: rgba(252, 244, 214,.85); }
.footer-base { border-top: 1px solid rgba(252, 244, 214,.12); padding: 1.2rem 0; font-size: .85rem; color: rgba(252, 244, 214,.6); }

/* ============================================================
   UNIQUE UI LAYER — editorial monospace + Hall-of-Fame seal
   ============================================================ */
.hero-stats dd, .chip, .card-cat-label, .fchip, .dchip, .plate-label,
.footer-h, .fact-list dt, .pn-dir, .year-badge, .cat-tile-sub,
.rate-table th, .page-sub, .contact-role { font-family: var(--font-mono); }

.year-badge { letter-spacing: 0; font-weight: 700; }
.footer-h { letter-spacing: .16em; }
.chip, .card-cat-label { letter-spacing: .1em; font-weight: 700; font-size: .64rem; }
.fchip, .dchip { font-size: .78rem; letter-spacing: .03em; }
.fchip-n { font-weight: 400; }
.hero-stats dd { letter-spacing: .18em; }
.cat-tile-sub { letter-spacing: .04em; font-size: .72rem; }

/* bolder, more expressive scale */
.hero-title { font-size: clamp(2.3rem, 6.3vw, 4.9rem); letter-spacing: -.022em; line-height: 1.04; }
.section-title { font-size: clamp(1.7rem, 3.7vw, 2.65rem); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* numbered section eyebrow */
.eyebrow--n::before { display: none; }
.section-num { font-family: var(--font-mono); font-weight: 700; color: var(--gold-text); }

/* ---- rotating Hall-of-Fame seal (hero centerpiece) ---- */
.seal { position: relative; width: clamp(148px, 17vw, 182px); aspect-ratio: 1; margin: 0 auto 1.4rem; }
.seal-rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold-soft); animation: sealspin 68s linear infinite; }
.seal-o { fill: none; stroke: currentColor; stroke-width: 1; opacity: .38; }
.seal-i { fill: none; stroke: currentColor; stroke-width: 1.5; }
.seal-text { fill: currentColor; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; }
.seal-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44%; height: 44%; object-fit: contain; }
@keyframes sealspin { to { transform: rotate(360deg); } }

/* ---- vertical hero edge labels ---- */
.hero-vlabel { position: absolute; top: 50%; z-index: 2; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(224, 159, 62, .72); writing-mode: vertical-rl; pointer-events: none; }
.hero-vlabel--l { left: clamp(.6rem, 3.2vw, 2.2rem); transform: translateY(-50%) rotate(180deg); }
.hero-vlabel--r { right: clamp(.6rem, 3.2vw, 2.2rem); }
@media (max-width: 960px) { .hero-vlabel { display: none; } }

/* ============================================================
   VALUE-ADD — intro, by-the-numbers, classes, timeline
   ============================================================ */

/* branded intro overlay (home, once per session) */
.intro { display: none; }
.has-js .intro {
  display: flex; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; text-align: center;
  background: var(--brand);
  color: var(--on-brand); animation: introAuto .8s ease 2.7s forwards;
}
.intro.is-out { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.intro-inner { display: grid; justify-items: center; animation: introRise .9s var(--ease) both; }
.intro .seal { margin: 0 0 1.3rem; width: clamp(122px, 26vw, 168px); }
.intro-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.06; color: var(--on-brand); margin: 0; }
.intro-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin: .7rem 0 0; }
@keyframes introAuto { to { opacity: 0; visibility: hidden; } }
@keyframes introRise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .has-js .intro { display: none; } }

/* by-the-numbers */
.stats-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 5vw, 3.4rem); margin-top: 1.8rem; align-items: end; }
@media (max-width: 780px) { .stats-grid { grid-template-columns: 1fr; gap: 2.4rem; } }
.stats-h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 1.1rem; font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: clamp(.4rem, 2vw, 1rem); height: 210px; padding-top: 1.5rem; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .55rem; height: 100%; text-decoration: none; color: var(--ink); }
.bar-track { flex: 1; width: 100%; max-width: 66px; margin-inline: auto; display: flex; align-items: flex-end; }
.bar-num { position: absolute; top: -1.55em; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--gold-text); }
.bar-fill { position: relative; width: 100%; height: 0; border-radius: 8px 8px 0 0; background: var(--dc, var(--brand)); transition: height 1.05s var(--ease), filter var(--t); }
.bar:hover .bar-fill { filter: brightness(1.12) saturate(1.08); }
[data-reveal].is-in .bar-fill { height: var(--h); }
.bar-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-muted); }

.statbars { display: grid; gap: .75rem; }
.statbar { display: grid; grid-template-columns: minmax(90px, 1.1fr) 2fr auto; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.statbar-label { font-size: .88rem; font-weight: 500; }
.statbar-track { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.statbar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--brand); transition: width 1.05s var(--ease); }
[data-reveal].is-in .statbar-fill { width: var(--w); }
.statbar-num { font-family: var(--font-mono); font-weight: 700; color: var(--gold-text); }
.statbar:hover .statbar-label { color: var(--brand); }
[data-theme="dark"] .statbar:hover .statbar-label { color: var(--gold); }
.statbars-more { display: inline-block; margin-top: 1.1rem; }

.factoids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.4rem 0 0; padding-top: 1.7rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .factoids { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.factoids dt { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; color: var(--gold-text); line-height: 1; }
.factoids dd { margin: .35rem 0 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }

/* induction classes page */
.decade-nav { position: sticky; top: 69px; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.decade-nav .wrap { display: flex; gap: .5rem; padding-block: .7rem; flex-wrap: wrap; }
.decade-jump { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; transition: border-color var(--t), color var(--t); }
.decade-jump:hover { border-color: var(--dc, var(--gold)); color: var(--dc, var(--brand)); }
[data-theme="dark"] .decade-jump:hover { color: var(--dc, var(--gold)); filter: brightness(1.25); }
.anchor { display: block; position: relative; top: -120px; visibility: hidden; }
.class-row { display: grid; grid-template-columns: 148px 1fr; gap: clamp(1rem, 3vw, 2.4rem); padding: 1.7rem 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.class-row:first-of-type { border-top: 0; }
@media (max-width: 620px) { .class-row { grid-template-columns: 1fr; gap: .8rem; } }
.class-year { position: sticky; top: 128px; align-self: start; padding-left: .9rem; }
.class-year::before { content: ""; position: absolute; left: 0; top: .12rem; width: 4px; height: 2rem; border-radius: 3px; background: var(--yc, var(--brand)); }
@media (max-width: 620px) { .class-year { position: relative; } }
.class-year-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--yc, var(--brand)); display: block; line-height: 1; }
[data-theme="dark"] .class-year-num { color: var(--yc, var(--gold)); }
.class-year-count { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-muted); display: block; margin-top: .3rem; }
.class-people { display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start; }
.class-chip { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-sm); transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.class-chip:hover { border-color: var(--yc, var(--gold)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.class-chip-ic { color: var(--yc, var(--gold)); display: inline-flex; }
.class-chip-ic .ci { width: 14px; height: 14px; }

/* history timeline (animated) */
.timeline { list-style: none; margin: 1.8rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 20%, transparent)); }
/* the gold rail "draws" downward when the timeline scrolls into view */
.has-js .timeline[data-reveal] { opacity: 1; transform: none; }
.has-js .timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 1.15s var(--ease); }
.has-js .timeline[data-reveal].is-in::before { transform: scaleY(1); }
.tl-item { position: relative; padding: 0 0 1.9rem 2.5rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 999px; background: var(--surface); border: 3px solid var(--gold); z-index: 1; }
.tl-item:last-child { padding-bottom: 0; }
/* each era slides in from the left, staggered; its dot pops just after */
.has-js .tl-item[data-reveal] { opacity: 0; transform: translateX(-18px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * .13s); }
.has-js .tl-item[data-reveal].is-in { opacity: 1; transform: none; }
.has-js .tl-item[data-reveal]::before { transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * .13s + .12s); }
.has-js .tl-item[data-reveal].is-in::before { transform: scale(1); }
.tl-year { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--gold-text); display: block; margin-bottom: .25rem; }
.tl-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; margin: 0 0 .35rem; }
.tl-body p { margin: 0; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) {
  .has-js .timeline::before, .has-js .tl-item[data-reveal]::before { transform: none !important; }
}

/* ---------- motion extras: nav underline + hero entrance ---------- */
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center;
  transition: transform .28s var(--ease); pointer-events: none;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-active::after { display: none; }
@media (max-width: 820px) { .site-nav a::after { display: none; } }

@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.has-js .hero-inner > * { opacity: 0; animation: heroIn .7s var(--ease) forwards; }
.has-js .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.has-js .hero-inner > *:nth-child(2) { animation-delay: .14s; }
.has-js .hero-inner > *:nth-child(3) { animation-delay: .23s; }
.has-js .hero-inner > *:nth-child(4) { animation-delay: .32s; }
.has-js .hero-inner > *:nth-child(5) { animation-delay: .41s; }
.has-js .hero-inner > *:nth-child(6) { animation-delay: .50s; }
.has-js .hero-inner > *:nth-child(7) { animation-delay: .59s; }
@media (prefers-reduced-motion: reduce) { .has-js .hero-inner > * { opacity: 1; animation: none; } }

/* ============================================================
   LANDING EXTRAS — wall marquee, decade tiles, manifesto, CTA
   ============================================================ */
.wall-band { padding-bottom: clamp(2rem, 5vw, 3.4rem); overflow: hidden; }
.wall-band .page-sub { max-width: 62ch; }
.marquee { margin-top: 1.6rem; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: .8rem; }
.marquee-track { display: flex; gap: .8rem; width: max-content; animation: marquee 72s linear infinite; }
.marquee--rev .marquee-track { animation-duration: 90s; animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wall-face { flex: none; width: clamp(78px, 9vw, 104px); aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.wall-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 -28px 26px -20px rgba(48, 16, 16, .55); }
.wall-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: sepia(.12) saturate(.92) contrast(1.04); }
.wall-face:hover { transform: translateY(-5px) scale(1.04); border-color: var(--gold); box-shadow: var(--shadow-md); z-index: 2; }
.wall-cta { margin-top: 1.9rem; text-align: center; }

.decade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 620px) { .decade-grid { grid-template-columns: 1fr 1fr; } }
.decade-tile { display: flex; flex-direction: column; align-items: flex-start; min-height: 152px; padding: 1.2rem 1.3rem; border-radius: var(--radius); text-decoration: none; color: var(--on-brand); position: relative; overflow: hidden; background: var(--dc, var(--brand)); border: 1px solid rgba(224, 159, 62, .35); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.decade-tile::before { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(224, 159, 62, .16); transform: rotate(45deg); top: -72px; right: -52px; border-radius: 18px; }
.decade-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.decade-tile-yr { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.decade-tile-n { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; color: var(--on-brand); line-height: 1; margin-top: auto; }
.decade-tile-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(252, 244, 214, .92); margin-top: .25rem; }

.manifesto { background: var(--brand-deep); color: var(--on-brand); text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; border-block: 1px solid var(--gold); }
.manifesto .seam { color: var(--gold-soft); margin: 0 auto 1.4rem; }
.manifesto-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1.26; letter-spacing: -.015em; max-width: 20ch; margin: 0 auto; color: var(--on-brand); }

.nominate-cta { background: color-mix(in srgb, var(--gold) 9%, var(--page-bg)); border-block: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); }

/* ---------- motion guards ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .card-link:hover { transform: none; }
  .card-link:hover .frame .portrait { transform: none; }
  .seal-rings { animation: none; }
  [data-reveal].is-in .bar-fill { height: var(--h); }
  [data-reveal].is-in .statbar-fill { width: var(--w); }
  .marquee-track { animation: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .seam { clip-path: none !important; }
  .empty-ball, .empty-seam { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   SPICE LAYER — palette, draw-a-name, connections, stitch-in
   seams, empty state, keepsake print, theme wipe
   ============================================================ */

/* stitch-in: the seam motif draws itself when its section reveals */
.has-js [data-reveal] .seam { clip-path: inset(-4px 100% -4px 0); transition: clip-path .9s var(--ease) .25s; }
.has-js [data-reveal].is-in .seam { clip-path: inset(-4px 0 -4px 0); }
@keyframes stitchIn { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px 0 -4px 0); } }
.has-js .hero-inner .seam { animation: stitchIn 1s var(--ease) .55s both; }

/* hero: draw-a-name link */
.hero-draw { margin: 1.05rem 0 0; }
.hero-draw-link {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-soft); text-decoration: none; padding-bottom: .18rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  transition: color var(--t), border-color var(--t);
}
.hero-draw-link:hover { color: var(--custard); border-bottom-color: var(--custard); border-bottom-style: solid; }

/* directory: draw-a-name next to Clear */
.btn-draw { color: var(--brand); text-decoration: none; }
.btn-draw::before { content: "⟳ "; color: var(--gold); }
[data-theme="dark"] .btn-draw { color: var(--gold-soft); }

/* command palette */
.pal { position: fixed; inset: 0; z-index: 240; display: grid; place-items: start center; padding: min(13vh, 120px) 1rem 1rem; }
.pal[hidden] { display: none; }
.pal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--brand-deep) 34%, rgba(12, 7, 5, .48)); backdrop-filter: blur(3px); }
.pal-panel {
  position: relative; width: min(94vw, 560px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; animation: palIn .18s var(--ease);
}
@keyframes palIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.pal-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.pal-input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.04rem; color: var(--ink); min-width: 0; }
.pal-input:focus { outline: none; }
.pal-list { list-style: none; margin: 0; padding: .4rem; max-height: min(54vh, 430px); overflow-y: auto; overscroll-behavior: contain; }
.pal-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .42rem .6rem; border-radius: 9px; cursor: pointer; }
.pal-row[aria-selected="true"] { background: color-mix(in srgb, var(--yc, var(--brand)) 12%, transparent); box-shadow: inset 3px 0 0 var(--yc, var(--brand)); }
.pal-thumb { width: 40px; height: 48px; object-fit: cover; object-position: center top; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-alt); }
.pal-thumb--none { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--gold-soft); background: var(--brand); }
.pal-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.pal-year { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--yc, var(--gold)); }
.pal-empty { padding: 1rem .8rem; color: var(--ink-muted); font-size: .95rem; }
.pal-hint { margin: 0; padding: .55rem 1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; color: var(--ink-muted); }
.pal-hint kbd { font: inherit; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .34em; background: var(--surface-alt); margin-right: .1em; }
body.pal-open { overflow: hidden; }

/* connection web */
.bio-xref {
  color: var(--brand); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--gold) 45%, transparent);
  transition: border-color var(--t), color var(--t);
}
.bio-xref:hover { border-bottom-color: var(--gold); color: var(--accent); }
[data-theme="dark"] .bio-xref { color: var(--gold-soft); }
[data-theme="dark"] .bio-xref:hover { color: var(--custard); }
.connections { margin-top: 2.1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.conn-group { margin-top: 1rem; }
.conn-h { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .6rem; }
.conn-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* directory empty state */
.empty-state { text-align: center; padding: 2.2rem 0 3rem; color: var(--ink-muted); }
.empty-ball { color: var(--gold); display: block; margin: 0 auto .95rem; }
.has-js .empty-state:not([hidden]) .empty-ball { animation: ballRoll .85s var(--ease) both; }
@keyframes ballRoll { from { transform: translateX(-64px) rotate(-210deg); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
.has-js .empty-state:not([hidden]) .empty-seam { opacity: 0; animation: seamFade .45s ease .6s forwards; }
@keyframes seamFade { to { opacity: 1; } }
.empty-line { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 0 0 .4rem; }
.empty-sub { margin: 0; }

/* profile share/print actions */
.profile-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.btn-sm { padding: .42rem .95rem; font-size: .84rem; }
.share-toast { display: inline-block; margin-top: .55rem; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
[data-theme="dark"] .share-toast { color: var(--gold); }

/* phone touch floor for interactive controls added in recent passes */
@media (max-width: 700px) {
  .btn-sm { min-height: 44px; }
  .class-chip { min-height: 44px; }
  .btn-clear, .btn-draw { min-height: 44px; padding-block: .55rem; }
  .hero-draw-link { display: inline-block; padding: .6rem 0; }
  .pal-row { min-height: 52px; }
  .pal-hint { display: none; } /* keyboard hints mean nothing on touch */
  .profile-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* owner-controlled announcement bar (all pages, above the header) */
.announce-bar { background: var(--brand-deep); color: var(--on-brand); border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.announce-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .35rem .8rem; padding: .5rem 0; text-align: center; }
.announce-text { font-size: .88rem; font-weight: 500; }
.announce-link { color: var(--custard); font-weight: 700; font-size: .88rem; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--custard) 55%, transparent); }
.announce-link:hover { border-bottom-color: var(--custard); }

/* eyebrows on dark bands keep the bright gold (readable there, unlike on paper) */
.page-head--brand .eyebrow, .band--cta .eyebrow { color: var(--gold-soft); }

/* admin link in the primary nav — quiet, mono, lock glyph */
.site-nav a.nav-admin {
  display: inline-flex; align-items: center; gap: .32rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); padding: .35rem .1rem;
}
.site-nav a.nav-admin::after { display: none; }
.site-nav a.nav-admin:hover { color: var(--brand); }
[data-theme="dark"] .site-nav a.nav-admin:hover { color: var(--gold); }
.nav-admin svg { opacity: .75; flex: none; }

/* newly-elected band (home) */
.band--elects { background: color-mix(in srgb, var(--brand) 8%, var(--page-bg)); border-block: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); }
.elects-sub { max-width: 64ch; margin-top: .2rem; }
.elects-chips { margin-top: 1.2rem; }
.elect-cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin-left: .45rem; padding-left: .55rem; border-left: 1px solid var(--line); }
.elects-cta { margin: 1.3rem 0 0; }

/* directory chip rows: obvious scroll arrows when categories overflow */
.chip-scroll { display: flex; align-items: center; gap: .35rem; }
.chip-scroll .chip-row { flex: 1; min-width: 0; margin-top: .75rem; }
.chip-arrow {
  flex: none; width: 40px; height: 40px; margin-top: .75rem;
  display: inline-grid; place-items: center;
  font-size: 1.7rem; line-height: 1; font-weight: 600; color: var(--brand);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: color var(--t), border-color var(--t), transform var(--t);
}
.chip-arrow:hover { color: var(--accent); border-color: var(--gold); transform: scale(1.06); }
[data-theme="dark"] .chip-arrow { color: var(--gold-soft); }

/* contribution page: ways-to-give cards */
.give-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.give-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.give-h { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 .5rem; color: var(--brand); }
[data-theme="dark"] .give-h { color: var(--gold-soft); }
.give-card p { margin: 0; color: var(--ink); }

/* in memoriam: honor roll grouped by class */
.honor-roll { margin-top: 1.4rem; display: grid; gap: 1.05rem; }
.roll-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 1rem; align-items: start; }
.roll-year { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--gold-text); padding-top: .35rem; }
@media (max-width: 560px) { .roll-row { grid-template-columns: 1fr; gap: .35rem; } .roll-year { padding-top: 0; } }
.plate-line--mem { color: var(--ink-muted); }
.plate-line--mem svg { opacity: .8; }

/* in memoriam: lost this year */
.memorial-list { margin-top: 1.4rem; display: grid; gap: 1.3rem; }
.memorial-entry { border-left: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); padding-left: 1rem; }
.memorial-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 .3rem; color: var(--ink); }
.memorial-date { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-muted); margin-left: .5rem; }
.memorial-note { margin: 0; color: var(--ink-muted); }

/* sunset-wipe theme toggle: suppress the default crossfade so the
   scripted circular clip is the only animation */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* keepsake print: profile pages print as a clean commemorative plaque */
.print-footer { display: none; }
@media print {
  :root, [data-theme="dark"] {
    --page-bg: #fff; --surface: #fff; --surface-alt: #fff;
    --ink: #191512; --ink-muted: #575047; --line: #c9c2b4;
    --brand: #335C67; --brand-deep: #540B0E; --gold: #8a6420; --gold-soft: #8a6420;
    --accent: #9E2A2B; --on-brand: #191512;
  }
  body { background: #fff !important; color: #191512 !important; font-size: 11.5pt; }
  .site-header, .site-footer, .prevnext, .related, .back-link, .skip-link,
  .profile-actions, .share-toast, .intro, .connections { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .seam { clip-path: none !important; }
  .profile-grid { display: grid !important; grid-template-columns: 2.3in minmax(0, 1fr) !important; gap: .35in !important; }
  .profile-figure { position: static !important; break-inside: avoid; }
  /* the aspect-ratio frame collapses in print engines — flatten it so the
     portrait prints as a normal image with its natural height */
  .frame, .frame--lg { box-shadow: none !important; aspect-ratio: auto !important; overflow: visible !important; height: auto !important; background: none !important; border: 1pt solid #c9c2b4 !important; }
  .frame::before, .plaque, .card-scrim { display: none !important; }
  .frame .portrait, .portrait {
    position: static !important; width: 100% !important; height: auto !important;
    object-fit: contain !important; filter: none !important; transform: none !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .portrait--none { display: none !important; }
  .profile-plate { border: 1pt solid #c9c2b4; border-left: 3pt solid #8a6420; background: #fff; }
  .bio-xref { border-bottom: none; color: inherit; font-weight: 600; }
  a { color: inherit; text-decoration: none; }
  .print-footer {
    display: block; margin-top: .35in; padding-top: .14in; border-top: 1.5pt solid #335C67;
    font-family: var(--font-mono); font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; color: #575047;
  }
}
