/* =====================================================================
   The Hardy Williams Education Fund: "The Man" (DRAFT)
   Loaded after la.css. Reuses its nav, footer, buttons, stamp, placeholder
   marks, prints and reveal system. Black and white first; each chapter's
   color arrives as it scrolls into view (la.js adds .is-in).
   Contrast: tools/contrast-pages.py
   ===================================================================== */

/* ---------- Official brand kit (overrides la.css's older values) ---------- */
:root {
  --brand-navy: #011F5B;        /* PRIMARY: headlines, logo areas, core backgrounds */
  --brand-blue: #002A82;        /* Commonwealth Blue: supporting blue, links, CTAs */
  --brand-gold: #FFCE00;        /* Commonwealth Yellow, THE gold: FILL / ACCENT ONLY on light */
  --brand-purple: #6D2077;      /* Royal Purple: heritage accent (the Movement / Omega) */
  --brand-oldgold: #D29F13;     /* accent only (4.1:1 on purple, so never body text) */
  --brand-beige: #DAD3C1;       /* Misty Beige: soft neutral fills */
  --brand-crocodile: #746B5A;   /* text OK on white (5.26), large only on beige */
  --brand-iguana: #A39977;      /* fills only */
  --brand-cheyney: #0C123B;
  --brand-pennstate: #1E547C;
  --brand-upenn: #011F5B;

  /* map la.css's older tokens onto the kit, so shared components match on this page */
  --hw-navy: var(--brand-navy);
  --hw-navy-deep: var(--brand-navy);
  --hw-blue: var(--brand-blue);
  --hw-gold: var(--brand-gold);
  --hw-purple: var(--brand-purple);
  --hw-beige: var(--brand-beige);
  --ch-cheyney: var(--brand-cheyney);
  --ch-pennstate: var(--brand-pennstate);
  --ch-upenn: var(--brand-upenn);
  --ch-army-croc: var(--brand-crocodile);
  --ch-army-misty: var(--brand-beige);
  --ch-old-gold: var(--brand-oldgold);
  --ch-cw-blue: var(--brand-blue);
  --ch-cw-yellow: var(--brand-gold);

  --bw: var(--grey-700);        /* the "black and white" state of every chapter color */
  --bw-fill: #E4DED2;           /* the "black and white" state of every chapter fill */
  --hairline: #DDD6C6;
}

/* current page in the nav */
.site-nav ul a[aria-current="page"] { background-size: calc(100% - 24px) 4px; font-weight: 800; }
@media (max-width: 1180px) { .site-nav ul a[aria-current="page"] { background-size: 120px 4px; } }
.footer__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--brand-gold); }
/* transparent white logo on the dark footer (no white panel needed any more) */
.footer__logo { background: none; padding: 0; }
.footer__logo img { max-width: 200px; }

/* =====================================================================
   1. HERO
   ===================================================================== */
.man-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.man-hero__title {
  font-size: clamp(76px, 10.5vw, 168px); line-height: .88; letter-spacing: -.035em;
  color: var(--brand-navy);
}
.man-hero .gold-rule { margin: 34px 0 26px; }
.man-hero .hero__lede { max-width: 30em; }
.man-hero__print { padding: 48px 40px 0 30px; }
.man-hero__print .print { max-width: 360px; margin: 0 auto; }
.man-hero__print .newspage { width: 80%; height: 80%; }
.man-hero__print .wash { top: 26%; bottom: 150px; left: 4%; right: -6%; }
.man-hero__print .hero__caption { max-width: 420px; margin-left: auto; margin-right: auto; text-align: left; }

/* CSS crop of the portrait inside the yearbook scan (scan is 1400 x 581; portrait sits at 28,48 / 387 x 487) */
.crop { position: relative; display: block; overflow: hidden; }
.crop--portrait { aspect-ratio: 387 / 487; }
.crop--portrait img {
  position: absolute; max-width: none; height: auto;
  width: 361.76%; left: -7.235%; top: -9.856%;
  transition: filter 1.8s ease .4s;
}
.js .man-hero__print:not(.is-in) .crop img { filter: grayscale(1) contrast(1.05); }

/* the five parts, as a contents list */
.parts-index { margin-top: clamp(40px, 5vw, 64px); }
.parts-index ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.parts-index a {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
  min-height: 112px; padding: 20px 14px 14px; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 18px -12px rgba(0,0,0,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.parts-index a::before { /* chapter swatch: grey first, color when it scrolls in */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 4px 4px 0 0;
  background: #CFC8B8; transition: background-color .7s ease; transition-delay: calc(var(--i) * .16s + .2s);
}
.parts-index.is-in a::before, .no-js .parts-index a::before { background: var(--lit); }
.parts-index a:hover, .parts-index a:focus-visible, .parts-index a:active { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 24px -12px rgba(0,0,0,.45); }
.parts-index a:hover .parts-index__name, .parts-index a:focus-visible .parts-index__name, .parts-index a:active .parts-index__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.parts-index__num { font: 700 15px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--grey-700); }
.parts-index__name { font: 700 22px/1.15 var(--serif); }
.parts-index__when { font-size: 16px; line-height: 1.35; color: var(--grey-700); margin-top: auto; padding-top: 6px; }

@media (max-width: 1100px) { .parts-index ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .man-hero__print { max-width: 460px; padding: 34px 14px 0 20px; }
}
@media (max-width: 560px) {
  .parts-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .parts-index a { min-height: 104px; padding: 18px 12px 12px; }
  .parts-index__name { font-size: 20px; }
}

/* =====================================================================
   2. TIMELINE LAYOUT: sticky year rail + chapters
   ===================================================================== */
.tl {
  position: relative; isolation: isolate; overflow-x: clip; /* clip the full-bleed tints without breaking sticky */
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: clamp(40px, 5vw, 72px);
}
.tl__col { min-width: 0; }

/* ---------- The year rail ---------- */
.yr {
  --rail-c: var(--brand-cheyney);
  position: sticky; top: calc(var(--mh, 85px) + 20px); align-self: start; z-index: 5;
  padding: clamp(64px, 8vw, 112px) 0 24px;
}
.yr__label { font: 700 15px/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey-700); margin: 0 0 10px; }
.yr__year {
  font: 700 60px/1 var(--serif); letter-spacing: -.035em; color: var(--rail-c); margin: 0;
  transition: color .6s ease; white-space: nowrap;
}
.yr__year.is-range { font-size: 50px; }
.yr__year.is-word { font-size: 40px; letter-spacing: -.01em; line-height: 1.1; white-space: normal; }
.yr__name { font: 600 19px/1.3 var(--sans); margin: 8px 0 30px; min-height: 1.3em; }
.yr__list { position: relative; padding-left: 34px; }
.yr__list::before, .yr__list::after {
  content: ""; position: absolute; left: 10px; top: 24px; width: 4px; border-radius: 2px;
}
.yr__list::before { bottom: 24px; background: #DAD3C5; }
.yr__list::after { height: calc((100% - 48px) * var(--p, 0)); background: var(--rail-c); transition: background-color .6s ease; }
.yr__list a {
  position: relative; display: flex; align-items: center; min-height: 48px;
  font: 600 18px/1.2 var(--sans); color: var(--grey-700); text-decoration: none;
}
.yr__list a::before { /* chapter dot */
  content: ""; position: absolute; left: -34px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--paper); border: 3px solid #CFC8B8; z-index: 1;
  transition: background-color .5s ease, border-color .5s ease, box-shadow .3s ease;
}
.yr__list li.is-seen a::before { background: var(--lit); border-color: var(--lit); }
.yr__list a[aria-current] { color: var(--ink); font-weight: 800; }
.yr__list a[aria-current]::before { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink); }
.yr__list a:hover, .yr__list a:focus-visible, .yr__list a:active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.yr__roman { display: inline-block; min-width: 38px; font: 700 18px/1 var(--serif); }
.yr__bar { display: none; }

/* ---------- Mobile / tablet: the rail becomes a thin sticky top bar ---------- */
@media (max-width: 1099.98px) {
  .tl { display: block; padding: 0; }
  .yr {
    top: var(--mh, 85px); z-index: 60;
    display: flex; align-items: baseline; gap: 14px;
    padding: 10px var(--gutter) 12px; background: var(--paper);
    border-bottom: 1px solid var(--hairline); box-shadow: 0 6px 14px -10px rgba(0,0,0,.35);
  }
  .yr__label, .yr__nav { display: none; }
  .yr__year, .yr__year.is-word { font-size: 30px; letter-spacing: -.01em; line-height: 1.1; }
  .yr__name { margin: 0; font-size: 17px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .yr__bar {
    display: block; position: absolute; left: 0; bottom: -1px; height: 5px;
    width: calc(100% * var(--p, 0)); background: var(--rail-c); transition: background-color .6s ease;
  }
  .tl__col { padding: 0 var(--gutter); }
}

/* =====================================================================
   3. PARTS (chapters) and ENTRIES
   ===================================================================== */
.part { position: relative; padding: clamp(64px, 8vw, 112px) 0 clamp(16px, 2vw, 32px); }
/* tinted chapters: newsprint runs full-bleed behind the rail too */
.part--tint::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; z-index: -1;
  background: var(--grain) var(--newsprint); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}

/* ---------- Chapter opening: roman numeral + rubber stamp ---------- */
.part__open {
  --c: var(--lit); --f: var(--lit-fill);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 36px);
  padding-top: 26px; border-top: 8px solid var(--c); margin-bottom: 8px;
  transition: border-color 1s ease;
}
.js .part__open:not(.is-in) { --c: var(--bw); --f: var(--bw-fill); }
.part__roman {
  flex: none; font: 700 clamp(96px, 10vw, 156px)/.8 var(--serif); letter-spacing: -.03em;
  color: var(--f); -webkit-text-stroke: 3px var(--c);
  transition: color 1.2s ease .2s, -webkit-text-stroke-color 1s ease;
}
.part__roman--word { font-size: clamp(44px, 5vw, 76px); line-height: 1; -webkit-text-stroke-width: 2px; }
.part__num { font: 700 16px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--grey-700); margin: 0 0 12px; }
.part__stamp {
  --stamp-c: var(--c);
  font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .14em; line-height: 1.05;
  padding: 16px 22px 14px 26px; border-width: 4px; margin: 0; white-space: normal;
  background-color: var(--stamp-bg, transparent);
  transition: color 1s ease, border-color 1s ease, background-color 1s ease;
}
.part__sub { font: italic 400 24px/1.3 var(--serif); color: var(--grey-700); margin: 18px 0 0; }
/* stamp fills, only where the brief asks for them (lit state only) */
#elected .part__open.is-in .part__stamp, .no-js #elected .part__stamp { --stamp-bg: var(--brand-gold); }

@media (prefers-reduced-motion: no-preference) {
  .js:not(.static) .part__open.is-in .part__stamp { animation: stamp-press .55s cubic-bezier(.3,1.6,.5,1) .15s both; }
}
@keyframes stamp-press {
  0% { transform: rotate(-9deg) scale(1.45); opacity: 0; }
  100% { transform: rotate(-3deg) scale(1); opacity: 1; }
}

/* ---------- Entry: big year numeral, then record + story + picture ---------- */
.entry {
  --c: var(--lit);
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hairline);
}
.part__open + .entry { border-top: 0; padding-top: clamp(28px, 3vw, 40px); }
.js .entry:not(.is-in) { --c: var(--bw); }
.entry__year {
  font: 700 clamp(76px, 8.4vw, 128px)/.9 var(--serif); letter-spacing: -.04em;
  color: var(--c); margin: 0 0 28px; transition: color 1.1s ease;
}
.entry__year--word { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.entry__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.entry h3 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 22px; color: var(--ink); }
.entry .ph { max-width: 34em; }
/* compact entry (no picture): the numeral sits beside the text */
.entry--compact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.entry--compact .entry__year { margin: 0; font-size: clamp(60px, 6.2vw, 96px); white-space: nowrap; }
.entry--compact .entry__year--word { font-size: clamp(40px, 4.6vw, 68px); white-space: normal; }
.entry--compact .entry__grid { display: block; }
.nowrap { white-space: nowrap; }
.entry .text-link { color: var(--brand-purple); }

/* the record: verified facts only */
.record { margin: 0 0 26px; border-top: 3px solid var(--c); transition: border-color 1s ease; }
.record div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.record dt { font: 700 16px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--c); transition: color 1s ease; }
.record dd { margin: 0; font-size: 20px; line-height: 1.5; }
.record--ledger { margin-top: 6px; }

/* ---------- "Photo needed" archival frame ---------- */
.need { margin: 0; }
.need__frame {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--newsprint-deep); border: 16px solid var(--paper);
  box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 16px 30px -12px rgba(0,0,0,.35);
  transform: rotate(1.2deg);
}
.need__frame::before { /* dashed "where the print goes" line */
  content: ""; position: absolute; inset: 12px; border: 2px dashed #948C7C; pointer-events: none;
}
.need__frame::after { /* photo corners */
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background:
    linear-gradient(135deg, #1E1B17 0 18px, transparent 18px) top left / 30px 30px no-repeat,
    linear-gradient(225deg, #1E1B17 0 18px, transparent 18px) top right / 30px 30px no-repeat,
    linear-gradient(45deg, #1E1B17 0 18px, transparent 18px) bottom left / 30px 30px no-repeat,
    linear-gradient(315deg, #1E1B17 0 18px, transparent 18px) bottom right / 30px 30px no-repeat;
}
.need--wide .need__frame { aspect-ratio: 16 / 9; transform: rotate(-.8deg); }
.need--portrait .need__frame { aspect-ratio: 4 / 5; max-width: 420px; }
.need__icon { width: 52px; height: 52px; fill: none; stroke: var(--grey-700); stroke-width: 2.4; stroke-linejoin: round; }
.need__tag {
  font: 700 16px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: var(--paper); padding: 9px 12px 8px; border-radius: 2px;
}
.need figcaption { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.need figcaption::before { content: "Photo needed: "; font-weight: 700; }

/* ---------- Photographs (real Bulletin prints) ---------- */
.shot { position: relative; padding: 22px 8px 0 22px; }
.shot .print { max-width: 500px; transform: rotate(-1.6deg); }
.shot--tall .print { max-width: 400px; transform: rotate(1.4deg); }
.shot__stage { position: relative; }
.shot__mat { /* chapter color slides in behind the print */
  position: absolute; top: -22px; left: -22px; width: 76%; bottom: 18%;
  background: var(--mat, var(--c)); transform-origin: left top;
  transition: transform 1.4s var(--ease) .25s, background-color 1s ease;
}
.js .shot:not(.is-in) .shot__mat { transform: scaleX(0); }
.js .shot:not(.is-in) .print { transform: rotate(-4deg) translateY(10px); }
.shot figcaption { position: relative; margin-top: 22px; font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 500px; }
.shot figcaption .credit { color: var(--grey-700); }
#elected { --mat: var(--brand-gold); }
.js #elected .entry:not(.is-in) { --mat: var(--bw-fill); }

/* ---------- Yearbook scans ---------- */
.scan { margin-top: clamp(40px, 5vw, 60px); }
.scan .artifact__scan { box-shadow: 0 2px 3px rgba(0,0,0,.14), 0 20px 36px -14px rgba(0,0,0,.4); }
.scan--entry { transform: rotate(-.5deg); }
.scan--team { max-width: 880px; transform: rotate(.6deg); }
.entry .artifact figcaption { color: var(--ink); font-size: 18px; }
.entry .artifact figcaption strong { color: var(--ink); }
.entry .artifact figcaption .credit { color: var(--grey-700); }
.scan .grease path { filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }

/* ---------- Part III: Army, service card on Misty Beige ---------- */
.service-card {
  background: var(--f, var(--brand-beige)); padding: 18px 24px 6px; margin-bottom: 26px;
  border-left: 8px solid var(--c); transition: background-color 1s ease, border-color 1s ease;
}
.entry--army { --f: var(--brand-beige); }
.js .entry--army:not(.is-in) { --f: var(--bw-fill); }
.service-card__head { font: 800 16px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.record--service { border-top-color: rgba(17,17,17,.55); }
.record--service dt { color: var(--ink); }
.record--service div { border-bottom-color: rgba(17,17,17,.14); }

/* ---------- Part IV: 1967, Royal Purple with Old Gold accents ---------- */
.forum {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 52px); background: var(--c); color: var(--paper);
  border-top: 8px solid var(--brand-oldgold); transition: background-color 1.2s ease;
}
.js .entry--forum:not(.is-in) .forum { border-top-color: #8C8578; }
.forum::before { /* faint rays, as in the homepage quote band */
  content: ""; position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg at 70% 60%, rgba(255,255,255,.035) 0 6deg, transparent 6deg 14deg);
  pointer-events: none;
}
.forum > * { position: relative; }
.forum__kicker { font: 700 16px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); margin: 0 0 14px; display: inline-block; padding-bottom: 8px; border-bottom: 4px solid var(--brand-oldgold); }
.forum h3 { color: var(--paper); }
.record--on-purple { border-top-color: rgba(255,255,255,.7); }
.record--on-purple dt { color: var(--on-dark); }
.record--on-purple div { border-bottom-color: rgba(255,255,255,.22); }
.forum .btn { margin-top: 8px; }
.forum { --focus: var(--brand-gold); }
.shot--forum { padding: 0; }
.shot--forum .print { transform: rotate(2deg); }
.shot--forum figcaption { color: var(--paper); }
.shot--forum figcaption .credit, .shot--forum figcaption .confirm { color: var(--on-dark); }

/* pull quote (placeholder), joined to the 1967 block */
.pq {
  position: relative; margin: 0; padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 72px);
  background: var(--c, var(--lit, var(--hw-navy))); color: var(--paper); text-align: center; /* Nov 27: fall back to the chapter color so no quote is left without a background */
  border-top: 2px solid rgba(255,255,255,.18); transition: background-color 1.2s ease;
}
.pq__mark { width: 64px; fill: var(--brand-gold); margin: 0 auto 18px; display: block; }
.js .entry--forum:not(.is-in) .pq__mark { fill: var(--paper); }
.pq__text { margin: 0; }
.pq__text p { font: italic 400 clamp(30px, 3.4vw, 44px)/1.25 var(--serif); margin: 38px auto 0; display: inline-block; }
.pq__cite { display: inline-block; margin-top: 44px; font-size: 20px; }

/* ---------- Part V: desk nameplate (Commonwealth Blue on Yellow) ---------- */
.plate {
  --pf: var(--brand-gold);
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 40px 16px; margin: 0 0 26px; background: var(--pf); color: var(--c);
  border: 3px solid var(--c); border-radius: 3px;
  box-shadow: inset 0 0 0 5px var(--pf), inset 0 0 0 7px var(--c), 0 12px 22px -12px rgba(0,0,0,.45);
  transition: background-color 1s ease, color 1s ease, border-color 1s ease;
}
.js .entry:not(.is-in) .plate { --pf: var(--bw-fill); }
.plate__top { font: 700 16px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.plate__main { font: 700 clamp(40px, 4vw, 52px)/1.05 var(--serif); margin: 6px 0 4px; }
.plate__years { font: 700 22px/1.2 var(--sans); letter-spacing: .08em; }

/* ---------- Epilogue: Legacy ---------- */
.legacy-tag { font: italic 400 clamp(30px, 3vw, 40px)/1.2 var(--serif); color: var(--brand-navy); margin: 6px 0 22px; }
.legacy-tag::after { content: ""; display: block; width: 120px; height: 6px; background: var(--brand-gold); margin-top: 18px; }
.legacy-logo { padding: 24px; display: flex; justify-content: center; }
.legacy-logo img { width: 100%; max-width: 380px; }

/* =====================================================================
   4. SHARE A MEMORY (closing band, brand navy)
   ===================================================================== */
.memory-cta {
  background-color: var(--brand-navy); background-image: var(--grain);
  color: var(--paper); padding: clamp(64px, 8vw, 104px) 0; --focus: var(--brand-gold);
}
.memory-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.memory-cta__inner > div { max-width: 720px; }
.memory-cta h2 { font-size: clamp(38px, 4.6vw, 60px); margin-bottom: 18px; padding-bottom: 14px; color: var(--paper); }
.memory-cta .ph { color: var(--on-dark); margin: 0; }
.memory-cta .eyebrow--gold { color: var(--brand-gold); }
.btn--big { min-height: 64px; padding: 16px 34px; font-size: 21px; }

/* =====================================================================
   5. RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .entry__grid, .forum, .entry--compact { grid-template-columns: 1fr; }
  .entry--compact { gap: 24px; }
  .shot, .need { max-width: 560px; }
  .shot--forum { max-width: 520px; }
  .part__open { align-items: flex-end; }
}
@media (max-width: 560px) {
  .record div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .part__roman { display: none; }
  .need--portrait .need__frame { max-width: 300px; }
  .part__roman--word { display: none; }
  .part__stamp { font-size: 22px; padding: 13px 16px 11px 18px; }
  .part__open { gap: 16px; }
  .part__sub { font-size: 21px; }
  .entry__year { font-size: 68px; }
  .entry__year--word { font-size: 38px; }
  .need__frame { border-width: 12px; }
  .plate { padding: 16px 22px 14px; }
  .forum { margin: 0 calc(-1 * var(--gutter)); padding: 32px var(--gutter); }
  .pq { margin: 0 calc(-1 * var(--gutter)); }
  .memory-cta .btn { width: 100%; }
  .shot { padding: 16px 4px 0 14px; }
}

/* reduced motion: la.css already stops transitions; also keep the stamp still */
@media (prefers-reduced-motion: reduce) {
  .part__stamp { animation: none !important; }
}

/* =====================================================================
   DECADE BY DECADE (Oct 26) — Nia's full bio timeline, wording verbatim
   ===================================================================== */
.decades { background: var(--paper); padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid #DAD3C5; }
.decades .section-head { text-align: left; margin-bottom: clamp(24px, 3vw, 36px); }
.dec__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(24px, 3vw, 36px); }
.dec__tab {
  font: 700 18px/1 var(--sans); padding: 13px 18px; min-height: 48px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 2px solid #CFC8B8; transition: background .2s, color .2s, border-color .2s;
}
.dec__tab:hover { border-color: var(--dc); color: var(--dc); }
.dec__tab[aria-selected="true"] { background: var(--dc); border-color: var(--dc); color: #fff; }
.dec__tab:focus-visible { outline: 3px solid #FFCE00; outline-offset: 3px; }
.dec__panel { border-top: 6px solid var(--dc); padding-top: clamp(22px, 3vw, 34px); }
.dec__panel:focus-visible { outline: 3px solid #FFCE00; outline-offset: 6px; }
.dec__name { font: 700 clamp(34px, 4vw, 52px)/1 var(--serif); color: var(--dc); margin: 0 0 clamp(20px, 2.4vw, 30px); }
.dec__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.dec__list { display: grid; gap: 0; }
.dec__item { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid #E2DCCD; }
.dec__item:first-child { border-top: 0; padding-top: 0; }
.dec__item--cont { padding-top: 6px; border-top: 0; }
.dec__when { font: 700 20px/1.35 var(--serif); color: var(--dc); }
.dec__item p { margin: 0; font-size: 19px; line-height: 1.6; }
.dec__media { display: grid; gap: 28px; }
.dec__fig, .dec__medals, .dec__need { margin: 0; }
.dec__print { background: #fff; padding: 12px 12px 14px; box-shadow: 0 10px 28px -12px rgba(0,0,0,.45); transform: rotate(-1.2deg); }
.dec__fig:nth-child(even) .dec__print { transform: rotate(1.4deg); }
.dec__print img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #F4F0E6; }
.dec__fig figcaption, .dec__medals figcaption { font-size: 16px; line-height: 1.45; color: var(--grey-700); margin-top: 12px; }
.dec__fig .credit { display: block; font-size: 14px; margin-top: 4px; }
.dec__medal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dec__medal-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; padding: 10px; box-shadow: 0 8px 22px -12px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .dec__grid { grid-template-columns: 1fr; }
  .dec__item { grid-template-columns: 1fr; gap: 4px; }
  .dec__item--cont { padding-top: 0; }
  .dec__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .dec__tab { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .dec__tab { transition: none; } }
.dec-jump { margin: 22px 0 0; font: 600 19px/1.4 var(--sans); }
.dec-jump a { display: inline-block; padding: 4px 0; color: #002A82; text-decoration: underline; text-decoration-color: #FFCE00; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.dec-jump a:hover, .dec-jump a:focus-visible { color: #011F5B; }

/* Oct 29: The Man opens with its title and lede side by side, then the documentary as a full-width screening room */
.man-hero__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30em); gap: clamp(28px, 5vw, 80px); align-items: end; margin-top: clamp(40px, 5vw, 64px); }
.man-hero__intro .hero__lede { margin: 0 0 6px; }
@media (max-width: 900px) { .man-hero__intro { grid-template-columns: 1fr; } }

.screening { position: relative; margin-top: clamp(48px, 6vw, 80px); background: #0c0d10; color: #fff; overflow: hidden;
  background-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(1,31,91,.55), rgba(12,13,16,0) 70%); }
.screening__strip { height: 26px; background-color: #000;
  background-image: repeating-linear-gradient(90deg, rgba(233,228,216,.16) 0 16px, transparent 16px 36px);
  background-size: 100% 10px; background-repeat: no-repeat; background-position: 0 center; animation: strip-run 6s linear infinite; }
.screening__strip:last-child { animation-direction: reverse; }
@keyframes strip-run { to { background-position: 36px center; } }
.screening__inner { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(36px, 5vw, 60px); }
.screening__marquee { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; font: 700 14px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #FFCE00; }
.screening__marquee::before, .screening__marquee::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,206,0,0), rgba(255,206,0,.6)); }
.screening__marquee::after { transform: scaleX(-1); }

.screening__screen { position: relative; aspect-ratio: 2.39 / 1; background: #000; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 90px -30px rgba(1,31,91,.9), 0 0 120px -40px rgba(255,206,0,.25);
  transition: aspect-ratio .7s cubic-bezier(.2,.7,.2,1); }
.screening__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--x) var(--y);
  filter: grayscale(1) sepia(.3) contrast(1.12) brightness(.6); opacity: 0; animation: reel 21s linear infinite; }
.screening__reel img:nth-child(2) { animation-delay: 7s; }
.screening__reel img:nth-child(3) { animation-delay: 14s; }
@keyframes reel {
  0% { opacity: 0; transform: scale(1.04) translateX(1.5%); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.14) translateX(-1.5%); }
  100% { opacity: 0; transform: scale(1.14) translateX(-1.5%); }
}
.screening__screen::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%), linear-gradient(0deg, rgba(1,31,91,.55), rgba(1,31,91,0) 55%); }
.screening__grain { position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

.screening__card { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.screening__kicker { margin: 0 0 14px; font: 700 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.screening__title { margin: 0; font: 700 clamp(36px, 5.6vw, 76px)/1 var(--serif); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.screening__title span { display: block; margin-top: 12px; font: italic 400 clamp(20px, 2.4vw, 32px)/1.2 var(--serif); color: #FFCE00; letter-spacing: 0; }
.screening__play { display: inline-flex; align-items: center; gap: 16px; margin: clamp(22px, 3vw, 34px) 0 0; padding: 6px 22px 6px 6px; border: 0; border-radius: 999px;
  background: rgba(12,13,16,.5); color: #fff; cursor: pointer; font: 700 17px/1 var(--sans); letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255,206,0,.5); transition: background .25s, box-shadow .25s; }
.screening__disc { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #FFCE00; box-shadow: 0 0 34px rgba(255,206,0,.55); }
.screening__disc::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255,206,0,.7); animation: pulse 2.4s ease-out infinite; }
.screening__disc::after { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #011F5B; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.screening__play:hover, .screening__play:focus-visible { background: rgba(1,31,91,.8); box-shadow: inset 0 0 0 2px #FFCE00; }
.screening__play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.screening__meta { margin: 18px 0 0; font: 400 16px/1.5 var(--sans); color: rgba(255,255,255,.82); }

/* the film-leader countdown, then the player */
.screening__leader { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; background: #1a1a1d;
  background-image: linear-gradient(rgba(233,228,216,.25), rgba(233,228,216,.25)), linear-gradient(rgba(233,228,216,.25), rgba(233,228,216,.25)),
    radial-gradient(circle, transparent 0 calc(min(28vh, 30%) - 2px), rgba(233,228,216,.5) calc(min(28vh, 30%) - 2px) min(28vh, 30%), transparent min(28vh, 30%));
  background-size: 100% 1px, 1px 100%, 100% 100%; background-position: center; background-repeat: no-repeat; animation: flicker .12s steps(2) infinite; }
.is-leader .screening__leader { display: grid; }
.screening__hand { position: absolute; left: 50%; top: 50%; width: 1px; height: 50%; background: rgba(255,206,0,.8); transform-origin: 0 0; animation: sweep .7s linear infinite; }
@keyframes sweep { from { transform: rotate(180deg); } to { transform: rotate(540deg); } }
.screening__count { position: relative; font: 700 clamp(64px, 12vw, 150px)/1 var(--serif); color: #E9E4D8; }
@keyframes flicker { 50% { filter: brightness(1.15); } }
.screening__screen iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; background: #000; }
.screening__screen.is-playing { aspect-ratio: 16 / 9; }
.is-playing .screening__card, .is-playing .screening__reel, .is-playing .screening__grain { visibility: hidden; }

@media (max-width: 760px) {
  .screening__screen { aspect-ratio: 4 / 5; }
  .screening__kicker { font-size: 11px; }
  .screening__meta { font-size: 15px; }
  .screening__disc { width: 54px; height: 54px; }
  .screening__disc::after { left: 21px; top: 17px; border-width: 10px 0 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .screening__strip, .screening__grain, .screening__disc::before, .screening__leader, .screening__hand { animation: none; }
  .screening__reel img { animation: none; }
  .screening__reel img:first-child { opacity: 1; }
  .screening__screen { transition: none; }
}

/* Oct 29: the page opens on the documentary (no title header). Until the film premieres it reads "Coming soon". */
.man-hero { padding-top: 0; }
.man-hero .screening { margin-top: 0; }
.man-hero__lede { margin: clamp(36px, 5vw, 56px) 0 0; max-width: 34em; }
.screening__marquee-soon, .screening__soon { display: none; }
[data-film-status="soon"] .screening__play { display: none; }
[data-film-status="soon"] .screening__soon { display: inline-block; margin: clamp(22px, 3vw, 32px) 0 0; padding: 12px 26px; border: 2px solid #FFCE00; border-radius: 999px;
  font: 700 15px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #FFCE00; background: rgba(12,13,16,.45); box-shadow: 0 0 34px rgba(255,206,0,.25); }
.screening:has([data-film-status="soon"]) .screening__marquee-live { display: none; }
.screening:has([data-film-status="soon"]) .screening__marquee-soon { display: inline; }

/* Oct 29: the decade-by-decade facts now live inside each chapter as a "Year by year" list (reuses the .dec__ styles) */
.chron { margin-top: clamp(40px, 5vw, 64px); border-top: 6px solid var(--dc); padding-top: clamp(22px, 3vw, 34px); }
.chron__label { font: 700 15px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dc); margin: 0 0 clamp(18px, 2.2vw, 26px); }
.chron__solo { grid-template-columns: minmax(0, 1fr); max-width: 46em; }
.man-hero { padding-bottom: 0; }

/* Oct 30: vintage Pennsylvania legislative license plates (Nia: "the vintage ones", navy and yellow).
   One for the State House (191st District), one for the Senate (8th District). Embossed look, bolt holes, keystone. */
.lplate {
  --pn: #011F5B; --py: #FFCE00;
  position: relative; display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center;
  width: min(100%, 420px); aspect-ratio: 2 / 1; margin: 28px 0 8px; padding: 4.2% 5% 3.6%;
  background: var(--pn); color: var(--py); border-radius: 14px;
  box-shadow: inset 0 0 0 5px var(--pn), inset 0 0 0 8px var(--py), inset 0 2px 0 9px rgba(255,255,255,.08), 0 14px 26px -14px rgba(0,0,0,.6);
  font-family: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; line-height: 1;
  transform: rotate(-1.2deg); transition: filter .8s ease, transform .3s ease;
}
.lplate::before, .lplate::after { /* bolt holes */
  content: ""; position: absolute; top: 9%; width: 3.2%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #F3EFE6, #B4AE9C); box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.lplate::before { left: 22%; } .lplate::after { right: 22%; }
.lplate__top { font-weight: 600; font-size: clamp(15px, 2.1vw, 22px); letter-spacing: .14em; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.lplate__mid { display: flex; align-items: center; justify-content: center; gap: 5%; width: 100%; }
.lplate__key { width: 17%; flex: none; color: var(--py); }
.lplate__key text { font: 600 26px/1 "Oswald", "Arial Narrow", Arial, sans-serif; fill: currentColor; }
.lplate__num { font-weight: 500; font-size: clamp(48px, 7.4vw, 86px); letter-spacing: .02em; transform: scaleY(1.12); text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 -1px 0 rgba(255,255,255,.15); white-space: nowrap; }
.lplate__bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 600; font-size: clamp(15px, 2.1vw, 22px); letter-spacing: .16em; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.lplate__sticker { font: 700 clamp(11px, 1.3vw, 14px)/1 var(--sans); letter-spacing: .02em; color: var(--pn); background: #F3EFE6; padding: 5px 6px 4px; border-radius: 2px; text-shadow: none; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.lplate__sticker--b { background: var(--py); }
.lplate:hover { transform: rotate(0) translateY(-2px); }
.lplate-wrap { display: flex; justify-content: center; }
/* before it scrolls in, the plate waits in black and white like the rest of the timeline */
.js .entry:not(.is-in) .lplate { filter: grayscale(1) brightness(1.1); }
@media (max-width: 640px) { .lplate { width: 100%; } .lplate__num { font-size: 15vw; } .lplate__top, .lplate__bottom { font-size: 4vw; } }
@media (prefers-reduced-motion: reduce) { .lplate { transition: none; transform: none; } }

/* Oct 30 (b): matched to real plates. Senate 1984–99: navy, SENATOR, keystone PA + district. House 1977–83: yellow, navy lettering,
   PENNSYLVANIA over keystone HR + district, LEGISLATOR below, stickers in the top corners. */
.lplate--house { --pn: #FFCE00; --py: #011F5B; }
.lplate--house .lplate__top, .lplate--house .lplate__num, .lplate--house .lplate__bottom { text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.lplate--house .lplate__sticker { background: #F3EFE6; color: #011F5B; }
.lplate--house .lplate__sticker--b { background: #011F5B; color: #FFCE00; }
.lplate--house::before, .lplate--house::after { top: auto; bottom: 8%; }
.lplate__top { display: flex; align-items: center; justify-content: center; gap: 4%; width: 100%; }
.lplate--house .lplate__top { justify-content: space-between; }
.lplate--senate .lplate__mid { gap: 2%; }
.lplate__key { width: 20%; }
.lplate__num { font-size: clamp(56px, 8.4vw, 98px); }
.lplate--house .lplate__bottom { justify-content: center; }
.lplate--house::before, .lplate--house::after { bottom: 7%; }
.lplate--house::before { left: 14%; } .lplate--house::after { right: 14%; }
/* both plates line up the same way at every width: left edge, like the rest of the timeline content */
.lplate-wrap { justify-content: flex-start; }
.lplate { margin-left: 0; margin-right: auto; }

/* Nov 3 (Nia): House years "without the dash, as they were not concurrent" -> one registration sticker per term won */
.lplate__stickers { display: inline-flex; gap: 3px; }
.lplate__stickers .lplate__sticker { padding: 4px 4px 3px; }

/* Nov 3: a little more breathing room between the timeline and Hardy in the News */
.tl { padding-bottom: clamp(40px, 5vw, 72px); }

/* Nov 5: "On the campaign trail" moved from The Movement into 1971 (rules copied from page-movement.css) */
/* ---------- On the campaign trail (Oct 29): three campaign buttons, pinned at a slight tilt ---------- */
.trail { background: var(--newsprint, #F3EEE3); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--hairline); }
.trail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.trail__title { font: 700 clamp(30px, 3vw, 40px)/1.1 var(--serif); color: var(--hw-navy, #011F5B); margin: 14px 0 12px; }
.trail__note { margin: 0; font: 400 18px/1.55 var(--sans); color: #3D3D3D; max-width: 22em; }
.trail__buttons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(12px, 2.5vw, 32px); }
.trail__buttons li { flex: 0 1 220px; }
.trail__buttons img { display: block; width: 100%; height: auto; border-radius: 50%;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.trail__buttons li:nth-child(1) img { transform: rotate(-8deg); }
.trail__buttons li:nth-child(2) img { transform: rotate(5deg) translateY(10px); }
.trail__buttons li:nth-child(3) img { transform: rotate(-3deg); }
.trail__buttons li:hover img { transform: rotate(0deg) scale(1.06); }
@media (max-width: 860px) {
  .trail__grid { grid-template-columns: 1fr; }
  .trail__buttons { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .trail__buttons img { transition: none; } .trail__buttons li:hover img { transform: none; } }
.trail--man { margin: clamp(28px, 4vw, 44px) 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--hairline, #DDD6C8); border-radius: 4px; }
@media (max-width: 1100px) { .trail--man .trail__grid { grid-template-columns: 1fr; } .trail--man .trail__buttons { justify-content: flex-start; } }

/* Nov 5: Early Years shows its school photos in order (Shaw Junior High, then West Philadelphia High) */
.entry__shots { display: grid; gap: clamp(28px, 4vw, 44px); align-content: start; }
/* Nov 5: a photo in the left column of a compact entry, under its big title (State House) */
@media (min-width: 900.02px) {
  .entry--compact > .entry__grid { grid-column: 2; grid-row: 1 / span 2; }
  .entry--compact > .shot--side { grid-column: 1; grid-row: 2; align-self: start; max-width: 360px; margin: 0; }
}

/* Nov 27: photos that sit between entries (Mom Frances) or under a year-by-year list (OACCN board) */
.shot--between { max-width: 560px; margin: clamp(32px, 5vw, 56px) auto; }
.shot--between.shot--wide { max-width: 820px; }
.shot--between .print { transform: rotate(-1deg); }
.shot--between figcaption { color: var(--ink, #16130E); }
