/* ============================================================
   The Work of William A. Miecuna
   U.S. Department of Housing and Urban Development, 1979–2019

   A sibling to the memorial site: same typographic voice
   (Cormorant Garamond + Inter), but a cooler, civic palette —
   deep ink blue instead of candlelight brown. The brass accent
   is carried over, reserved here for honors and recognition.

   Fully self-contained. No CDN is required for the site to render.
   ============================================================ */

:root {
  /* Ground */
  --bg-0: #080d16;
  --bg-1: #0c1320;
  --bg-2: #101a2b;
  --surface: #131e31;
  --surface-2: #18253c;
  --surface-3: #1e2d48;

  /* Line */
  --border: rgba(150, 183, 226, 0.15);
  --border-strong: rgba(150, 183, 226, 0.32);

  /* Type */
  --ink: #e9eff8;
  --ink-soft: #b4c3d8;
  --ink-muted: #7d8da6;
  --ink-faint: #5d6b81;

  /* Accents */
  --blue: #6aa9e0;
  --blue-bright: #9ccbf5;
  --blue-deep: #2f6ba8;
  --brass: #d4b483;          /* carried from the memorial site — honors only */
  --brass-bright: #ecd6a8;
  --brass-deep: #b9924e;

  --glow: rgba(106, 169, 224, 0.13);
  --shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 10px 26px -12px rgba(0, 0, 0, 0.6);

  --font-display: "Cormorant Garamond", "Hoefler Text", Garamond, Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --maxw-wide: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg-0);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.14; }
p { margin: 0 0 1.15em; }
button, input, select { font-family: inherit; font-size: inherit; }
::selection { background: rgba(106, 169, 224, 0.3); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: var(--maxw-wide); }
.wrap--narrow { max-width: 820px; }
.section { position: relative; padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(44px, 6vw, 74px) 0; }
.section--tint { background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
.center { text-align: center; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow--brass { color: var(--brass); }
.eyebrow--center { display: flex; align-items: center; justify-content: center; gap: 14px; }
.eyebrow--center::before, .eyebrow--center::after {
  content: ""; height: 1px; width: 42px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.65;
}
.eyebrow--center::after { background: linear-gradient(90deg, currentColor, transparent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.35em;
}
.section-lead {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}
.center .section-lead { margin-inline: auto; }
.rule {
  width: 64px; height: 2px; margin: 24px 0 0;
  background: linear-gradient(90deg, var(--blue), transparent);
  border: 0;
}
.center .rule { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--blue), transparent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: rgba(106, 169, 224, 0.1); border-color: var(--blue); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--blue-deep), #24547f);
  border-color: transparent; color: #f4f9ff;
}
.btn--primary:hover { background: linear-gradient(135deg, #3a7ec0, #2b6294); border-color: transparent; }
.btn--brass { border-color: var(--brass-deep); color: var(--brass-bright); }
.btn--brass:hover { background: rgba(212, 180, 131, 0.12); border-color: var(--brass); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 clamp(18px, 4vw, 44px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 13, 22, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--border);
}
.nav__brand {
  display: flex; align-items: baseline; gap: 11px;
  font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: 0.015em;
  white-space: nowrap;
}
.nav__brand .mark {
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--blue);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 3px 6px;
  transform: translateY(-2px);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.87rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none; background: none; border: 0; color: var(--ink);
  padding: 8px; cursor: pointer; border-radius: 8px;
}
.nav__toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 55;
  background: rgba(8, 13, 22, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 10px 0 18px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  padding: 13px clamp(18px, 5vw, 44px);
  color: var(--ink-soft); font-size: 1rem;
  border-bottom: 1px solid rgba(150, 183, 226, 0.07);
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(96vh, 900px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 28%;
  opacity: 0.2;
  filter: saturate(0.75);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 65% at 50% 38%, rgba(8, 13, 22, 0.42) 0%, rgba(8, 13, 22, 0.88) 62%, var(--bg-0) 100%),
    linear-gradient(180deg, rgba(8, 13, 22, 0.7) 0%, transparent 30%, var(--bg-0) 100%);
}
.hero__glow {
  position: absolute; z-index: 1; top: 12%; left: 50%; transform: translateX(-50%);
  /* 100% (not 110vw) so the glow never widens the document on a narrow phone */
  width: min(900px, 100%); height: 460px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 940px; }

.hero__seal {
  width: 74px; height: 74px; margin: 0 auto 26px;
  opacity: 0.9;
}
.hero__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.hero__tagline {
  margin-top: 20px;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brass); font-weight: 500;
}
.hero__role {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--ink-soft);
  font-style: italic;
}
.hero__dates {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-size: 0.86rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted);
}
.hero__dates .star { color: var(--brass); letter-spacing: 0; }
.hero__epitaph {
  margin: 34px auto 0; max-width: 700px;
  color: var(--ink-soft); font-size: 1.08rem;
}
.hero__cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-muted);
}
.scroll-cue .chev { width: 20px; height: 20px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .chev { animation: none; } }

/* ============================================================
   Statistics strip
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border);
  border-block: 1px solid var(--border);
}
.stat { background: var(--bg-1); padding: 34px 26px; text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.2rem);
  color: var(--brass-bright); line-height: 1;
}
.stat__label {
  margin-top: 12px;
  font-size: 0.73rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted);
}

/* ============================================================
   Prose / story
   ============================================================ */
.prose { max-width: 720px; margin-inline: auto; }
.prose p { color: var(--ink-soft); }
.prose .lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.72rem);
  line-height: 1.5; color: var(--ink); font-style: italic;
  margin-bottom: 1.3em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--brass-bright); font-style: italic; }

.pull {
  margin: 46px 0; padding: 28px 0 28px 30px;
  border-left: 2px solid var(--brass-deep);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.68rem);
  line-height: 1.45; color: var(--ink); font-style: italic;
}
.pull cite {
  display: block; margin-top: 16px;
  font-family: var(--font-body); font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
}

.figure { margin: 46px 0; }
.figure img { width: 100%; border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.figure figcaption {
  margin-top: 13px; font-size: 0.86rem; color: var(--ink-muted); font-style: italic;
}

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 70px); align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}
.split__media img { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.split__media figcaption { margin-top: 13px; font-size: 0.85rem; color: var(--ink-muted); font-style: italic; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; max-width: 860px; margin-inline: auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent);
}
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--blue);
}
.tl-item--honor::before { border-color: var(--brass); }
.tl-year {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--blue); margin-bottom: 5px;
}
.tl-item--honor .tl-year { color: var(--brass); }
.tl-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.tl-body { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.tl-body cite { display: block; margin-top: 8px; font-size: 0.83rem; color: var(--ink-faint); font-style: normal; }

/* ============================================================
   Cards / gateways
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: linear-gradient(165deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: rgba(106, 169, 224, 0.11); border: 1px solid var(--border);
  color: var(--blue);
}
.card__icon svg { width: 21px; height: 21px; }
.card__kicker {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 9px;
}
.card__title { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 11px; }
.card__body { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.87rem; font-weight: 600; color: var(--blue);
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.card:hover .card__link svg { transform: translate(3px, -3px); }

/* ============================================================
   Honors wall
   ============================================================ */
.honors { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.honor {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg-1);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  cursor: zoom-in;
}
.honor:hover { transform: translateY(-3px); border-color: var(--brass-deep); }
.honor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; background: #fff; }
.honor__body { padding: 18px 20px 22px; }
.honor__year {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--brass); margin-bottom: 6px;
}
.honor__title { font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: 7px; }
.honor__from { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }

/* ============================================================
   Featured video (home page)
   ============================================================ */
.feature-video {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: #000;
}
.feature-video .video-js { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 62px 24px 46px; text-align: center;
}
.footer__seal { width: 52px; height: 52px; margin: 0 auto 20px; opacity: 0.7; }
.footer__name { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 6px; }
.footer__dates { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.footer__verse {
  margin: 26px auto 0; max-width: 540px;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-soft);
}
.footer__meta {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 0.84rem; color: var(--ink-faint);
  display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap;
}
.footer__meta a { color: var(--ink-muted); }
.footer__meta a:hover { color: var(--blue); }

/* ============================================================
   Lightbox (photos + honors)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 12, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.32s var(--ease);
  padding: 64px 20px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1500px, 94vw); max-height: 82vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
}
.lightbox__cap {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  max-width: min(760px, 90vw); text-align: center;
  font-size: 0.92rem; color: var(--ink-soft);
  background: rgba(8, 13, 22, 0.7); padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--border);
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(19, 30, 49, 0.85); border: 1px solid var(--border);
  color: var(--ink); border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--surface-3); border-color: var(--border-strong); }
.lightbox__close { top: 22px; right: 22px; width: 44px; height: 44px; }
.lightbox__close svg { width: 21px; height: 21px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav.prev { left: 20px; }
.lightbox__nav.next { right: 20px; }
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav.prev { left: 8px; }
  .lightbox__nav.next { right: 8px; }
}

/* ============================================================
   Filter bar (archive + gallery)
   ============================================================ */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 30px;
}
.chip {
  padding: 8px 17px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--ink-soft); font-size: 0.84rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.is-active { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.searchbox { position: relative; flex: 1 1 240px; min-width: 200px; }
.searchbox input {
  width: 100%; padding: 10px 16px 10px 40px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-size: 0.9rem;
}
.searchbox input::placeholder { color: var(--ink-faint); }
.searchbox input:focus { border-color: var(--blue); outline: none; }
.searchbox svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none;
}

.result-count { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 20px; }

.empty {
  text-align: center; padding: 70px 20px; color: var(--ink-muted);
  border: 1px dashed var(--border); border-radius: 14px;
}

/* ============================================================
   Video archive grid
   ============================================================ */
.film-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 24px;
}
.film {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg-1); cursor: pointer; text-align: left;
  display: flex; flex-direction: column;
  padding: 0; color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.film:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.film.is-playing { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.film__thumb { position: relative; aspect-ratio: 4 / 3; background: #05080e; overflow: hidden; }
.film__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.film:hover .film__thumb img { transform: scale(1.045); }
.film__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(8,13,22,0.05), rgba(8,13,22,0.55));
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.film:hover .film__play, .film:focus-visible .film__play { opacity: 1; }
.film__play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(106, 169, 224, 0.92); color: #051020;
  display: grid; place-items: center;
}
.film__play svg { width: 22px; height: 22px; margin-left: 3px; }
.film__dur {
  position: absolute; right: 9px; bottom: 9px;
  font-family: var(--font-mono); font-size: 0.72rem;
  background: rgba(5, 8, 14, 0.85); color: var(--ink-soft);
  padding: 3px 8px; border-radius: 5px;
}
.film__cc {
  position: absolute; left: 9px; bottom: 9px;
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(5, 8, 14, 0.85); color: var(--brass);
  padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(212, 180, 131, 0.35);
}
.film__body { padding: 17px 19px 20px; flex: 1; display: flex; flex-direction: column; }
.film__meta {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.film__meta .year { color: var(--blue); font-family: var(--font-mono); letter-spacing: 0.06em; }
.film__title { font-size: 1.03rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.film__blurb { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }

/* ============================================================
   Player + transcript (archive page)
   ============================================================ */
.stage {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  padding: 0 0 4px;
  margin-bottom: 40px;
}
.stage.is-idle { display: none; }
.stage__grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px; padding: 24px 0;
  align-items: start;
}
@media (max-width: 1000px) {
  .stage { position: static; }
  .stage__grid { grid-template-columns: 1fr; }
}

.player-shell {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  background: #000; box-shadow: var(--shadow);
}
.player-shell .video-js { width: 100%; height: auto; aspect-ratio: 4 / 3; }

.stage__info { min-width: 0; }
.stage__eyebrow {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 9px;
}
.stage__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.stage__blurb { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.stage__tools { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.stage__tools .btn { padding: 8px 16px; font-size: 0.82rem; }

.transcript {
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg-1);
  max-height: 380px; overflow-y: auto;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { .transcript { scroll-behavior: auto; } }
.transcript__head {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 11px 15px;
  display: flex; align-items: center; gap: 10px;
}
.transcript__head .searchbox { flex: 1; }
.transcript__head .searchbox input { padding: 7px 14px 7px 36px; font-size: 0.85rem; }
.transcript__head .searchbox svg { left: 12px; width: 14px; height: 14px; }
.transcript__body { padding: 6px 0 14px; }

.cue {
  display: grid; grid-template-columns: 62px 1fr; gap: 12px;
  padding: 7px 15px; cursor: pointer;
  border-left: 2px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cue:hover { background: rgba(106, 169, 224, 0.07); }
.cue.is-active { background: rgba(106, 169, 224, 0.12); border-left-color: var(--blue); }
.cue__t {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); padding-top: 3px;
}
.cue.is-active .cue__t { color: var(--blue); }
.cue__x { font-size: 0.91rem; color: var(--ink-soft); line-height: 1.6; }
.cue.is-active .cue__x { color: var(--ink); }
.cue mark { background: rgba(212, 180, 131, 0.32); color: var(--brass-bright); border-radius: 2px; padding: 0 2px; }

.transcript__note {
  padding: 26px 20px; text-align: center; color: var(--ink-muted); font-size: 0.9rem;
}
.transcript__note code {
  font-family: var(--font-mono); font-size: 0.83em;
  background: var(--surface); padding: 2px 6px; border-radius: 4px; color: var(--ink-soft);
}

/* Archive-wide search results */
.hits { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.hit {
  display: grid; grid-template-columns: 96px 1fr; gap: 15px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg-1); cursor: pointer; text-align: left; color: inherit; padding: 0;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.hit:hover { border-color: var(--border-strong); background: var(--surface); }
.hit img { width: 96px; height: 100%; min-height: 72px; object-fit: cover; }
.hit__body { padding: 11px 15px 13px 0; min-width: 0; }
.hit__title { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.hit__title .year { color: var(--blue); font-family: var(--font-mono); font-weight: 400; font-size: 0.85em; margin-left: 7px; }
.hit__line { font-size: 0.86rem; color: var(--ink-muted); margin: 0; }
.hit__line .t { font-family: var(--font-mono); color: var(--ink-faint); margin-right: 8px; font-size: 0.9em; }
.hit__line mark { background: rgba(212, 180, 131, 0.32); color: var(--brass-bright); border-radius: 2px; padding: 0 2px; }

/* ============================================================
   Photo gallery
   ============================================================ */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gallery__item {
  margin: 0; position: relative; overflow: hidden; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-1);
  cursor: zoom-in; aspect-ratio: 4 / 3;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.gallery__item:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 13px 11px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 14, 0.92));
  font-size: 0.8rem; color: var(--ink-soft);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

.load-more { display: flex; justify-content: center; margin-top: 40px; }

/* ============================================================
   Video.js theming — match the site rather than the default purple
   ============================================================ */
.video-js { font-family: var(--font-body); background-color: #000; }
.video-js .vjs-big-play-button {
  width: 78px; height: 78px; line-height: 78px; border-radius: 50%;
  border: 0; background: rgba(106, 169, 224, 0.9); color: #051020;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.video-js:hover .vjs-big-play-button { background: var(--blue-bright); transform: translate(-50%, -50%) scale(1.06); }
.video-js .vjs-control-bar { background: rgba(8, 13, 22, 0.88); height: 3.4em; }
.video-js .vjs-play-progress { background: var(--blue); }
.video-js .vjs-play-progress::before { color: var(--blue-bright); }
.video-js .vjs-load-progress > div { background: rgba(150, 183, 226, 0.3); }
.video-js .vjs-slider { background: rgba(150, 183, 226, 0.22); }
.video-js .vjs-volume-level { background: var(--blue); }
.video-js .vjs-menu li.vjs-selected { background: var(--blue-deep); color: #fff; }
.video-js .vjs-text-track-display > div > div > div {
  background-color: rgba(5, 8, 14, 0.82) !important;
  border-radius: 4px; padding: 2px 8px !important;
  font-family: var(--font-body) !important;
}
.vjs-poster { background-size: cover; }

/* ============================================================
   Print — the honors wall and story read fine on paper
   ============================================================ */
@media print {
  .nav, .mobile-menu, .scroll-cue, .stage, .filters, .load-more, .lightbox { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding: 24px 0; }
  .prose p, .section-lead { color: #333; }
}
