/* =====================================================================
   The Hardy Williams Education Fund — "The Living Archive" (DRAFT)
   ---------------------------------------------------------------------
   Black and white first; color arrives when people engage.
   Every color is a custom property. Text-safe colors are marked; the
   gold / yellow / beige / misty / old-gold family is FILL ONLY on light
   surfaces (never text on light). Contrast: tools/contrast.py
   ===================================================================== */

:root {
  /* Core */
  --ink: #111111;
  --paper: #FFFFFF;
  --newsprint: #F3EEE3;         /* warm newsprint off-white */
  --newsprint-deep: #E7E0D0;    /* abstract column page, fill only */
  --rule: #B9B1A0;              /* decorative rules, fill only */
  --grey-700: #565656;          /* secondary text on white / newsprint */
  --grey-100: #EFEFEF;
  --on-dark: #E9E4D8;           /* body text on dark sections */
  --on-dark-muted: #BDB7AA;     /* secondary text on dark */

  /* Brand, sampled from the approved logo */
  --hw-navy: #011F5B;           /* brand kit: Primary Navy (UPenn Blue) */
  --hw-navy-deep: #011F5B;      /* brand kit: Primary Navy */
  --hw-blue: #002A82;           /* brand kit: Commonwealth Blue, CTAs/links */
  --hw-gold: #FFCE00;           /* brand kit: Commonwealth Yellow. FILL ONLY on light */
  --hw-beige: #DAD3C1;          /* brand kit: Misty Beige. FILL ONLY */
  --hw-purple: #6D2077;         /* brand kit: Royal Purple */
  --hw-olive: #7D785C;          /* FILL ONLY (4.46:1 on white) */

  /* Secondary chapter colors */
  --ch-cheyney: #0C123B;
  --ch-pennstate: #1E547C;
  --ch-upenn: #011F5B;
  --ch-army-misty: #DAD3C1;     /* FILL ONLY */
  --ch-army-croc: #746B5A;      /* text OK on white/newsprint */
  --ch-old-gold: #D29F13;       /* FILL ONLY on light */
  --ch-cw-blue: #002A82;
  --ch-cw-yellow: #FFCE00;      /* FILL ONLY on light */

  /* Surfaces */
  --desk: #0F1E33;              /* reading-room table (yearbook) */
  --screening: #131110;         /* TV room */
  --film: #171513;              /* contact-sheet film base */
  --photo-paper: #FAF8F3;       /* contact-sheet paper */
  --wood-1: #5B3A21;  --wood-2: #6E4629;  --wood-3: #4A2E19;  --wood-4: #3A2313;
  --chrome-1: #F2F2EF; --chrome-2: #A9A9A4; --chrome-3: #6D6D69;

  /* Semantic */
  --focus: var(--hw-blue);
  --focus-on-dark: var(--hw-gold);

  /* Type */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* Textures (SVG noise, decorative only) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .14 0 0 0 0 .08 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --woodgrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .09' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .06 0 0 0 0 .02 1.6 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --static: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1.4 0 0 0 -.2 1.4 0 0 0 -.2 1.4 0 0 0 -.2 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --stamp-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 0 0 0 4.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 20px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(34px, 4vw, 52px); }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.desk, .motion, .quote, .footer, .card--navy, .card--blue { --focus: var(--focus-on-dark); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 14px 20px;
  font: 700 18px/1 var(--sans); text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--hw-gold); }

.eyebrow {
  font: 700 15px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 18px; color: var(--grey-700);
}
.eyebrow--gold { color: var(--hw-gold); }            /* only ever on dark */
.confirm, .tbc { font-style: italic; font-weight: 500; }
.credit { display: block; font-size: 16px; line-height: 1.45; margin-top: 6px; }

/* ---------- Buttons (min 56px tall) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; border-radius: 999px;
  font: 700 19px/1.1 var(--sans); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn .arrow { font-size: 20px; transition: transform .25s ease; }
.btn:hover .arrow, .btn:focus-visible .arrow, .btn:active .arrow { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover, .btn--ink:focus-visible, .btn--ink:active { background: var(--hw-blue); color: var(--paper); }   /* Commonwealth Blue: the kit's CTA color */
.btn--gold { background: var(--hw-gold); color: var(--ink); }
.btn--gold:hover, .btn--gold:focus-visible, .btn--gold:active { background: var(--ch-old-gold); color: var(--ink); }   /* Old Gold */
.btn--light { background: var(--paper); color: var(--hw-navy); }
.btn--light:hover, .btn--light:active { background: var(--newsprint); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover, .btn--outline:focus-visible, .btn--outline:active { background: var(--hw-gold); border-color: var(--hw-navy); color: var(--hw-navy); }   /* Commonwealth Yellow fill */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-weight: 700; color: var(--hw-purple); text-underline-offset: 5px; text-decoration-thickness: 2px;
}

.todo {
  display: inline-block; margin-top: 12px; font: 600 14px/1.3 var(--sans);
  background: var(--grey-100); color: var(--ink); border: 1px dashed var(--grey-700);
  padding: 4px 9px; border-radius: 3px;
}

/* ---------- Rubber stamp label ---------- */
.stamp {
  --stamp-c: var(--ink);
  display: inline-block; position: relative;
  font: 800 16px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--stamp-c); border: 3px solid var(--stamp-c);
  padding: 11px 16px 10px 18px; border-radius: 3px; transform: rotate(-3deg);
  -webkit-mask-image: var(--stamp-mask); mask-image: var(--stamp-mask);
  -webkit-mask-size: 220px; mask-size: 220px; white-space: nowrap; margin-bottom: 22px;
}
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--stamp-c); pointer-events: none; }
.stamp--light { --stamp-c: var(--on-dark); }
.stamp--purple { --stamp-c: var(--hw-purple); }
.stamp--navy { --stamp-c: var(--hw-navy); }

/* ---------- Placeholder copy marking (ON by default) ---------- */
.ph { position: relative; }
.show-placeholders .ph {
  outline: 2px dashed currentColor; outline-offset: 6px; border-radius: 2px; margin-top: 38px;
}
.show-placeholders .ph::before {
  content: "placeholder copy";
  position: absolute; left: -7px; top: -34px;
  font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--hw-gold); color: var(--ink); padding: 5px 7px 4px; border-radius: 2px;
  white-space: nowrap; font-style: normal;
}
.ph-toggle {
  position: fixed; right: 14px; bottom: 14px; z-index: 900; min-height: 48px;
  font: 700 15px/1 var(--sans); background: var(--ink); color: var(--paper);
  border: 2px solid var(--hw-gold); padding: 12px 16px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.ph-toggle:focus-visible { outline-color: var(--hw-gold); }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.section-head h2 { margin-bottom: 18px; }
.section-head__lede { font-size: 21px; color: var(--grey-700); margin: 0; }
.section-head--on-dark { color: var(--paper); }
.section-head--on-dark .section-head__lede { color: var(--on-dark); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* =====================================================================
   1. MASTHEAD / NAV
   ===================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 800; background: var(--paper);
  border-bottom: 1px solid #DDD6C6;
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand__mark { width: 34px; height: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1.1; }
.brand__the { font: 700 22px/1.1 var(--serif); color: var(--hw-navy); }
.brand__fund { font: 700 13px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hw-blue); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  font: 600 18px/1 var(--sans); text-decoration: none; color: var(--ink); white-space: nowrap;
  background-image: linear-gradient(var(--hw-gold), var(--hw-gold));
  background-size: 0 4px; background-position: 12px 78%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a:focus-visible, .site-nav ul a:active { background-size: calc(100% - 24px) 4px; }
.menu-btn { display: none; }

@media (max-width: 1180px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 12px; min-height: 56px; min-width: 56px;
    padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
    font: 700 19px/1 var(--sans); color: var(--ink); cursor: pointer;
  }
  .menu-btn__bars { display: grid; gap: 5px; }
  .menu-btn__bars span { display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--ink);
    padding: 8px var(--gutter) 24px; box-shadow: 0 18px 30px rgba(0,0,0,.18);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { min-height: 64px; font: 700 24px/1 var(--serif); padding: 0; border-bottom: 1px solid #E3DCCB; background-position: 0 80%; }
  .site-nav ul a:hover, .site-nav ul a:focus-visible, .site-nav ul a:active { background-size: 120px 4px; }
  .site-nav__donate { margin-top: 20px; }
}
@media (max-width: 480px) {
  .brand__the { font-size: 18px; }
  .brand__fund { font-size: 11px; letter-spacing: .14em; }
  .brand__mark { width: 28px; }
  .menu-btn { padding: 0 12px; gap: 8px; flex: none; }   /* Oct 29: never squeezed, so "Menu" stays inside the pill */}

/* =====================================================================
   2. HERO — the archive opens
   ===================================================================== */
.hero {
  background-color: var(--newsprint);
  background-image: var(--grain);
  padding: 26px 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid #DDD6C6;
  overflow: hidden;
}
.dateline {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-top: 5px solid var(--ink); border-bottom: 1px solid var(--ink);
  box-shadow: 0 -9px 0 -7px var(--ink);  /* thin second rule above: newspaper double rule */
  padding: 12px 0 11px; margin-top: 8px;
  font: 700 16px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.dateline__title { font: italic 400 24px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.dateline__dates { justify-self: end; letter-spacing: .1em; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 64px);
}
.hero .eyebrow { color: var(--grey-700); }
.hero__title { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.08; max-width: 15ch; }
.gold-rule {
  display: block; width: 160px; height: 7px; background: var(--hw-gold);
  margin: 30px 0 20px; transform-origin: left center;
  transition: transform 1.2s var(--ease) .3s;
}
.tagline { font: italic 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); color: var(--hw-navy); margin: 0 0 22px; }
.hero__lede { font-size: 21px; max-width: 34em; }

/* the print on a newspaper page */
.hero__print { position: relative; padding: 58px 64px 0 34px; }
.newspage {
  position: absolute; top: 0; right: 0; width: 74%; height: 78%;
  background: var(--newsprint-deep); padding: 22px 22px 0;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.newspage__head {  /* abstract headline bars, no readable words */
  height: 52px;
  background:
    linear-gradient(var(--rule), var(--rule)) 0 0 / 88% 20px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 30px / 62% 20px no-repeat;
}
.newspage__cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 2px solid var(--rule); padding-top: 14px; }
.newspage__cols i {
  display: block;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 5px, transparent 5px 13px);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
  opacity: .7;
}
.newspage__cols i + i { box-shadow: -7px 0 0 -6px var(--rule); }
.wash {
  position: absolute; top: 30%; right: -10%; bottom: 128px; left: -4%;
  background: linear-gradient(105deg, var(--hw-navy) 0%, var(--hw-navy-deep) 40%, var(--hw-purple) 100%);
  mix-blend-mode: multiply; opacity: .94;
  clip-path: polygon(10% 0, 100% 0, 92% 100%, 0 100%);
  transition: clip-path 1.8s var(--ease) .5s;
}
.print {
  position: relative; background: var(--paper); padding: 16px 16px 18px;
  transform: rotate(-2.4deg); max-width: 520px;
  box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 18px 36px -8px rgba(0,0,0,.4);
  transition: transform 1.4s var(--ease);
}
.print img { width: 100%; filter: contrast(1.05); }
.corner { position: absolute; width: 38px; height: 38px; background: #1E1B17; }
.corner--tl { top: 4px; left: 4px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner--tr { top: 4px; right: 4px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner--bl { bottom: 4px; left: 4px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.corner--br { bottom: 4px; right: 4px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.hero__caption { position: relative; margin: 26px 0 0 4px; font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 540px; }
.hero__caption .credit { color: var(--grey-700); }

/* color arrives */
.js .gold-rule:not(.is-in) { transform: scaleX(0); }
.js .hero__print:not(.is-in) .wash { clip-path: polygon(10% 0, 10% 0, 0 100%, 0 100%); }
.js .hero__print:not(.is-in) .print { transform: rotate(-5deg) translateY(10px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__print { padding: 34px 14px 0 26px; max-width: 580px; }
}
@media (max-width: 640px) {
  .dateline { grid-template-columns: 1fr; text-align: center; gap: 6px; font-size: 14px; }
  .dateline__dates { justify-self: center; }
  .dateline__place { order: 2; }
  .dateline__title { order: 1; }
  .dateline__dates { order: 3; }
  .hero__lede { font-size: 20px; }
  .btn-row .btn { flex: 1 1 100%; }
  .corner { width: 26px; height: 26px; }
  .print { padding: 10px 10px 12px; }
}

/* =====================================================================
   3. QUICK PATHS
   ===================================================================== */
.paths { padding: clamp(40px, 5vw, 64px) 0; background: var(--paper); }
.paths__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.path-card {
  display: flex; flex-direction: column; height: 100%; min-height: 230px;
  padding: 26px 26px 28px; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px; background: var(--paper);
  box-shadow: 0 0 0 var(--hw-gold);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease), border-color .3s ease;
}
.path-card.is-in, .no-js .path-card { box-shadow: 7px 7px 0 var(--hw-gold); }
.path-card:hover, .path-card:focus-visible, .path-card:active { box-shadow: 7px 7px 0 var(--hw-navy); border-color: var(--hw-navy); }
.path-card__icon { width: 64px; height: 64px; margin-bottom: 18px; fill: none; stroke: var(--hw-navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.path-card__icon .fill { fill: var(--hw-gold); stroke: none; opacity: 0; transform: translate(3px, 3px); transition: opacity .8s ease .3s; }
.path-card.is-in .fill, .no-js .path-card .fill, .path-card:hover .fill, .path-card:active .fill { opacity: .9; }
.path-card__label { font: 700 27px/1.15 var(--serif); margin-bottom: 8px; }
.path-card__label::after { content: "\00a0→"; font-family: var(--sans); font-weight: 400; }
.path-card__desc { font-size: 20px; line-height: 1.45; color: var(--grey-700); }
@media (max-width: 1100px) { .paths__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .paths__list { grid-template-columns: 1fr; gap: 16px; }
  .path-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 20px; }
  .path-card__icon { width: 52px; height: 52px; margin: 0; }
  .path-card__label { margin: 0; flex: 1; }
  .path-card__desc { flex-basis: 100%; margin-top: 8px; }
}

/* =====================================================================
   4. LIFE AT A GLANCE — timeline rail
   ===================================================================== */
.life { background: var(--newsprint); background-image: var(--grain); padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid #DDD6C6; }
.rail { position: relative; }
.stop__node {
  display: block; width: 30px; height: 30px; border-radius: 50%;
  background: #CFC8B8; box-shadow: 0 0 0 5px var(--newsprint), 0 0 0 8px #CFC8B8;
  transition: background .6s ease, box-shadow .6s ease;
  transition-delay: calc(var(--i) * .22s + .3s);
}
.stop__card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); padding: 16px 18px 18px; border-radius: 4px;
  border-top: 6px solid #CFC8B8;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 20px -10px rgba(0,0,0,.25);
  transition: border-color .6s ease; transition-delay: calc(var(--i) * .22s + .3s);
}
.stop__year { font: 700 32px/1 var(--serif); color: var(--grey-700); transition: color .6s ease; transition-delay: inherit; }
.stop__year--word { font-size: 26px; line-height: 1.1; }
.stop__what { font-size: 19px; line-height: 1.4; }
/* lit state */
.rail.is-in .stop__node, .no-js .stop__node { background: var(--node); box-shadow: 0 0 0 5px var(--newsprint), 0 0 0 8px var(--ring, var(--c)); }
.rail.is-in .stop__card, .no-js .stop__card { border-top-color: var(--c); }
.rail.is-in .stop__year, .no-js .stop__year { color: var(--c); }

/* horizontal rail, alternating above / below the line */
@media (min-width: 1100px) {
  .rail { display: grid; grid-template-columns: repeat(9, 1fr); height: 440px; }
  .rail::before, .rail::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px;
  }
  .rail::before { background: #D6CFBF; }
  .rail::after {
    background: linear-gradient(90deg, var(--hw-navy), var(--ch-pennstate) 18%, var(--ch-army-croc) 30%, var(--ch-upenn) 42%,
      var(--hw-navy-deep) 54%, var(--hw-purple) 64%, var(--hw-blue) 76%, var(--ch-cw-blue) 88%, var(--hw-gold));
    transform-origin: left; transform: scaleX(0); transition: transform 2.6s cubic-bezier(.45,.05,.3,1) .2s;
  }
  .rail.is-in::after, .no-js .rail::after { transform: scaleX(1); }
  .stop { position: relative; z-index: 1; }
  .stop__node { position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -15px; }
  .stop__card { position: absolute; left: 50%; width: calc(200% - 18px); transform: translateX(-50%); }
  .stop:nth-child(odd) .stop__card { bottom: calc(50% + 36px); }
  .stop:nth-child(even) .stop__card { top: calc(50% + 36px); }
  .stop:first-child .stop__card { left: 0; transform: none; width: calc(160% - 18px); }
  .stop:last-child .stop__card { left: auto; right: 0; transform: none; width: calc(160% - 18px); }
  .stop__card::after { /* tick from card to node */
    content: ""; position: absolute; left: 50%; width: 2px; height: 22px; background: #CFC8B8;
  }
  .stop:first-child .stop__card::after { left: 31.25%; }
  .stop:last-child .stop__card::after { left: auto; right: 31.25%; }
  .stop:nth-child(odd) .stop__card::after { top: 100%; }
  .stop:nth-child(even) .stop__card::after { bottom: calc(100% + 6px); }
}
/* vertical rail (mobile / tablet) */
@media (max-width: 1099.98px) {
  .rail { padding-left: 58px; display: grid; gap: 22px; }
  .rail::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px; background: #D6CFBF; }
  .rail::after {
    content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px;
    background: linear-gradient(180deg, var(--hw-navy), var(--ch-pennstate) 18%, var(--ch-army-croc) 30%, var(--ch-upenn) 42%,
      var(--hw-navy-deep) 54%, var(--hw-purple) 64%, var(--hw-blue) 76%, var(--ch-cw-blue) 88%, var(--hw-gold));
    transform-origin: top; transform: scaleY(0); transition: transform 2.6s cubic-bezier(.45,.05,.3,1) .2s;
  }
  .rail.is-in::after, .no-js .rail::after { transform: scaleY(1); }
  .stop { position: relative; }
  .stop__node { position: absolute; left: -56px; top: 18px; z-index: 1; }
  .stop__year { font-size: 30px; }
  .stop__what { font-size: 20px; }
}

/* =====================================================================
   5. THE YEARBOOK MOMENT — reading-room desk
   ===================================================================== */
.desk {
  background-color: var(--desk);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%),
    var(--grain);
  padding: clamp(64px, 8vw, 110px) 0; color: var(--on-dark);
}
.desk__surface { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 32px; align-items: start; }
.artifact--entry { grid-column: 1 / 9; transform: rotate(-1deg); }
.index-cards { grid-column: 9 / 13; align-self: center; }
.artifact--team { grid-column: 3 / 11; transform: rotate(.8deg); margin-top: 10px; }
.artifact__scan { position: relative; box-shadow: 0 3px 4px rgba(0,0,0,.3), 0 26px 50px -12px rgba(0,0,0,.65); }
.artifact__scan img { width: 100%; transition: filter 1.8s ease .2s; }
.js .artifact:not(.is-in) .artifact__scan img { filter: grayscale(1) contrast(1.05); }
.artifact figcaption { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--on-dark); }
.artifact figcaption strong { color: var(--paper); }
.artifact figcaption .credit { color: var(--on-dark-muted); }

/* gold highlighter strokes over the printed words */
.hl {
  position: absolute; background: var(--hw-gold); mix-blend-mode: multiply; opacity: .6;
  border-radius: 3px 6px 4px 7px; transform-origin: left center;
  transform: scaleX(1) rotate(-.6deg);
  transition: transform .7s cubic-bezier(.6,.05,.3,1);
}
.hl--1 { left: 33%;   top: 20.6%; width: 28.9%; height: 6%; transition-delay: 1.0s; }
.hl--2 { left: 87.8%; top: 20.6%; width: 12.2%; height: 6%; transition-delay: 1.7s; }
.hl--3 { left: 39.2%; top: 26%;   width: 10.8%; height: 6%; transition-delay: 2.0s; }
.js .artifact:not(.is-in) .hl { transform: scaleX(0) rotate(-.6deg); }

.index-cards__intro { font: 700 15px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.index-cards ul { display: grid; gap: 16px; }
.index-card {
  position: relative; background: var(--paper); color: var(--ink);
  font: 700 26px/1.2 var(--serif); padding: 18px 20px 20px;
  background-image: linear-gradient(transparent 44px, #E4B9B9 44px 46px, transparent 46px),
                    repeating-linear-gradient(transparent 0 33px, #D6E1EE 33px 34px);
  background-position: 0 0, 0 12px;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.6);
  border-left: 8px solid var(--hw-gold);
  transform: rotate(var(--r, -.8deg)); transition: transform .6s var(--ease), opacity .6s ease;
  transition-delay: calc(var(--i) * .15s + .6s);
}
.index-card:nth-child(2) { --r: .9deg; border-left-color: var(--hw-purple); }
.index-card--plain { font: 500 19px/1.45 var(--sans); --r: -.4deg; border-left-color: var(--hw-beige); }
.index-card__kicker { display: block; font: 700 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--grey-700); margin-bottom: 14px; }
.js .index-card:not(.is-in) { opacity: 0; transform: translateY(14px) rotate(var(--r, -.8deg)); }

.grease { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.grease path {
  fill: none; stroke: var(--hw-gold); stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease 1s;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.5));
}
.js .artifact:not(.is-in) .grease path, .js .sheet:not(.is-in) .grease path { stroke-dashoffset: 1; }

@media (max-width: 900px) {
  .desk__surface { grid-template-columns: 1fr; gap: 36px; }
  .artifact--entry, .index-cards, .artifact--team { grid-column: 1; }
  .artifact--entry { transform: none; }
  .artifact--team { transform: none; margin-top: 0; }
  .index-card { font-size: 24px; }
}

/* =====================================================================
   6. HISTORY IN MOTION — the console TV
   ===================================================================== */
.motion {
  background-color: var(--screening);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255,206,0,.10), transparent 70%),
    var(--grain);
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); color: var(--on-dark);
}
.motion .section-head { max-width: 760px; }
.tv { max-width: 910px; margin: 0 auto; }
.tv__cabinet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 26px;
  padding: 26px 26px 30px; border-radius: 20px 20px 14px 14px;
  background:
    var(--woodgrain),
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 18%, transparent 82%, rgba(0,0,0,.35)),
    linear-gradient(90deg, var(--wood-3), var(--wood-2) 20%, var(--wood-1) 48%, var(--wood-2) 70%, var(--wood-3));
  background-size: 600px 300px, auto, auto;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.4),
    inset 0 0 0 4px var(--wood-4), 0 40px 60px -20px rgba(0,0,0,.8);
}
.tv__cabinet::after { /* brass trim strip along the bottom */
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 12px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #7A5C21, #D8B863 30%, #F4DE98 50%, #C9A24E 70%, #7A5C21);
}
.tv__bezel {
  padding: clamp(12px, 2vw, 22px); border-radius: 30px;
  background: linear-gradient(145deg, #2A2520, #0E0C0A 55%, #221E19);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), inset 0 -1px 0 rgba(255,255,255,.12), 0 1px 0 rgba(255,255,255,.15);
  max-width: 590px; width: 100%; justify-self: center; align-self: center;
}
.tv__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  border-radius: 9% / 12%; background: #060606;
  box-shadow: 0 0 0 3px #000, 0 0 0 5px #3A332B;
}
.tv__picture { position: absolute; inset: 0; animation: crt-flicker 5s steps(1) infinite; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; overflow: hidden; }
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(1) contrast(1.12) brightness(1.02);
  transform: var(--kb-from); transform-origin: center;
}
/* keep heads in frame: anchor near the top, and zoom from there rather than panning (Zahra, Oct 1) */
.slide img { transform-origin: 50% 22%; }
.slide--tall img { object-position: center 4%; transform-origin: 50% 10%; }
.slide.is-active img { animation: kenburns var(--kb-dur, 9s) ease-in-out forwards; }
.tv.is-paused .slide.is-active img, .tv.is-paused .tv__picture { animation-play-state: paused; }
@keyframes kenburns { from { transform: var(--kb-from); } to { transform: var(--kb-to); } }
@keyframes crt-flicker {
  0%, 100% { opacity: 1; filter: none; }
  41% { opacity: .96; filter: brightness(1.06); }
  42% { opacity: 1; filter: none; }
  77% { opacity: .97; }
  78% { opacity: 1; }
}
/* glass: glare + scanlines + vignette (curvature) */
.tv__glass { position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 45% at 28% 12%, rgba(255,255,255,.20), rgba(255,255,255,.05) 45%, transparent 65%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 85% 80% at 50% 50%, transparent 55%, rgba(0,0,0,.6) 100%);
  box-shadow: inset 0 0 40px 10px rgba(0,0,0,.55), inset 0 0 3px 2px rgba(255,255,255,.08);
}
/* static burst between channels */
.tv__static { position: absolute; inset: -20%; z-index: 2; opacity: 0; pointer-events: none;
  background: var(--static) 0 0 / 180px 180px; mix-blend-mode: screen; }
.tv.is-switching .tv__static { animation: static-burst .55s steps(1) forwards, static-jitter .12s steps(3) infinite; }
@keyframes static-burst { 0% { opacity: .95; } 60% { opacity: .75; } 100% { opacity: 0; } }
@keyframes static-jitter { 0% { transform: translate(0,0); } 33% { transform: translate(-37px, 21px); } 66% { transform: translate(23px, -44px); } }
/* horizontal-hold roll */
.tv__picture.is-rolling { animation: vroll .6s cubic-bezier(.5,0,.5,1); }
@keyframes vroll {
  0% { transform: translateY(0); filter: none; }
  30% { transform: translateY(-22%) skewX(3deg); filter: brightness(1.4) blur(1px); }
  55% { transform: translateY(14%) skewX(-2deg); filter: brightness(1.2); }
  80% { transform: translateY(-3%); }
  100% { transform: translateY(0); filter: none; }
}
/* lower third */
.tv__lower {
  position: absolute; left: 7%; bottom: 9%; z-index: 4; max-width: 84%;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--sans); text-transform: uppercase;
  transition: opacity .35s ease, transform .35s ease;
}
.tv__lower-name { background: var(--hw-gold); color: var(--ink); font: 800 13px/1 var(--sans); letter-spacing: .16em; padding: 7px 10px 6px; }
.tv__lower-text { background: var(--hw-navy); color: var(--paper); font: 700 clamp(13px, 1.6vw, 18px)/1.2 var(--sans); letter-spacing: .08em; padding: 9px 14px 8px; border-left: 5px solid var(--hw-gold); }
.tv.is-switching .tv__lower { opacity: 0; transform: translateX(-10px); }

/* video drop-in */
.tv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.tv__video { display: none; }
.tv.has-video .tv__video { display: block; }
.tv.has-video .tv__picture { display: none; }

/* control panel */
.tv__panel {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 18px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #D9C7A1, #BFA87A 50%, #A48C5E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 3px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.4);
}
.tv__badge { width: 100%; display: flex; justify-content: center; }
.tv__badge span {
  font: 700 16px/1 var(--serif); letter-spacing: .3em; padding: 6px 6px 6px 12px; color: #2B2116;
  border: 2px solid #6A5432; border-radius: 3px; background: linear-gradient(180deg, #F3E6C4, #C9B27F);
  box-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.tv__knobs { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.knob-label { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #2B2116; display: inline-flex; align-items: center; gap: 6px; }
.knob {
  position: relative; display: grid; place-items: center; cursor: pointer;
  width: 128px; height: 128px; padding: 0; border: 0; background: transparent; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.knob--power { width: 88px; height: 88px; }
.knob:focus-visible { outline: 4px solid var(--hw-navy); outline-offset: 2px; }
.knob__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.knob__ring circle { fill: #2B2116; }
.knob__ring text { fill: #F3E6C4; font: 700 9px/1 var(--sans); text-anchor: middle; dominant-baseline: central; }
.knob__ring .tick { stroke: #F3E6C4; stroke-width: 1.2; }
.knob__ring text { opacity: .45; }
.knob__ring text.is-live { opacity: 1; }
.knob__ring text.is-on { fill: var(--hw-gold); }
.knob__cap {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 50% 50%, var(--chrome-1) 0 44%, var(--chrome-2) 46%, var(--chrome-3) 58%, transparent 59%),
    repeating-conic-gradient(from 0deg, #3B3834 0 5deg, #8E8A83 5deg 10deg);
  box-shadow: 0 6px 10px rgba(0,0,0,.55), 0 0 0 2px #1C1A17;
  transform: rotate(var(--rot, 0deg)); transition: transform .45s cubic-bezier(.3,1.6,.5,1);
}
.knob--power .knob__cap { width: 62px; height: 62px; }
.knob__pointer { position: absolute; left: 50%; top: 6px; width: 5px; height: 22px; margin-left: -2.5px; border-radius: 3px; background: #1C1A17; }
.knob:active .knob__cap { box-shadow: 0 3px 6px rgba(0,0,0,.55), 0 0 0 2px #1C1A17; }
.pilot { width: 11px; height: 11px; border-radius: 50%; background: #5A4020; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); transition: background .3s ease, box-shadow .3s ease; }
.tv:not(.is-paused) .pilot { background: #FFB12B; box-shadow: 0 0 8px 2px rgba(255,177,43,.8); }
.tv__grille {
  flex: 1; width: 100%; min-height: 90px; border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #6B5638, #4A3A24);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.4);
}
.tv__legs { display: flex; justify-content: space-between; padding: 0 9%; height: 58px; }
.tv__legs span {
  width: 20px; height: 100%; background: linear-gradient(90deg, var(--wood-4), var(--wood-2), var(--wood-4));
  clip-path: polygon(0 0, 100% 0, 72% 100%, 34% 100%); transform-origin: top;
}
.tv__legs span:nth-child(1) { transform: rotate(9deg); }
.tv__legs span:nth-child(2) { transform: rotate(4deg); visibility: hidden; }
.tv__legs span:nth-child(3) { transform: rotate(-4deg); visibility: hidden; }
.tv__legs span:nth-child(4) { transform: rotate(-9deg); }

/* plain, always-visible controls */
.tv__controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ctl {
  min-height: 56px; min-width: 150px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: 700 19px/1 var(--sans); color: var(--paper); background: transparent; border: 2px solid var(--on-dark);
  transition: background-color .2s ease, color .2s ease;
}
.ctl:hover, .ctl:active { background: var(--paper); color: var(--ink); }
.ctl--play { background: var(--hw-gold); color: var(--ink); border-color: var(--hw-gold); }
.ctl--play:hover, .ctl--play:active { background: #FFD25E; }
.tv__caption { text-align: center; margin: 20px auto 0; font: 400 22px/1.4 var(--serif); color: var(--paper); max-width: 40em; }
.tv__count { font: 700 16px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hw-gold); margin-right: 8px; }
.tv__credit { text-align: center; font-size: 16px; line-height: 1.5; color: var(--on-dark-muted); margin: 10px auto 0; max-width: 46em; }

@media (max-width: 900px) {
  .tv__cabinet { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 26px; }
  .tv__cabinet::after { left: 16px; right: 16px; bottom: 9px; }
  .tv__bezel { border-radius: 22px; }
  .tv__panel { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .tv__badge { width: auto; }
  .tv__knobs { flex-direction: row; gap: 10px; }
  .tv__grille { min-height: 96px; align-self: stretch; }
}
@media (max-width: 560px) {
  .knob { width: 104px; height: 104px; }
  .knob__cap { width: 60px; height: 60px; }
  .knob--power { width: 72px; height: 72px; }
  .knob--power .knob__cap { width: 52px; height: 52px; }
  .tv__badge { display: none; }
  .tv__legs { height: 40px; }
  .ctl { min-width: 0; flex: 1 1 0; padding: 0 12px; font-size: 18px; white-space: nowrap; }
  .ctl--play { order: -1; flex-basis: 100%; }
  .tv__lower-name { font-size: 10px; padding: 5px 7px 4px; }
  .tv__lower { left: 6%; bottom: 7%; }
  .tv__caption { font-size: 20px; }
}

/* =====================================================================
   7. THE MOVEMENT — contact sheet
   ===================================================================== */
.movement { background: var(--paper); padding: clamp(64px, 8vw, 110px) 0; }
.movement__grid .section-head {
  max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: end;
}
.movement__grid .section-head .stamp { grid-column: 1 / -1; justify-self: start; }
.movement__grid .section-head h2 { grid-column: 1; margin-bottom: 0; font-size: clamp(38px, 4.4vw, 58px); }
.movement__grid .section-head p { grid-column: 2; margin-bottom: 0; }
.movement__grid .section-head .text-link { grid-column: 2; margin-top: 12px; justify-self: start; }
.sheet {
  position: relative; background: var(--photo-paper); padding: 26px clamp(14px, 2.4vw, 32px) 20px;
  box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 24px 44px -18px rgba(0,0,0,.4);
  transform: rotate(-.5deg); border: 1px solid #E6E1D6;
}
.sheet__label { font: 700 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--grey-700); margin-bottom: 14px; }
.strip {
  position: relative; display: flex; gap: 14px; background: var(--film);
  padding: 50px 18px 22px;
}
.strip::before, .strip::after { /* sprocket holes */
  content: ""; position: absolute; left: 10px; right: 10px; height: 11px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--photo-paper) 9px 21px, transparent 21px 30px);
  border-radius: 2px; opacity: .9;
}
.strip::before { top: 9px; }
.strip::after { bottom: 7px; display: none; }
.frame { position: relative; flex: calc(var(--ar) * 100) 1 0%; min-width: 0; display: flex; flex-direction: column; }
.frame__img { position: relative; display: block; }
.frame__img img { width: 100%; filter: grayscale(1) contrast(1.06); }
.frame__img::after { /* Omega purple duotone wash */
  content: ""; position: absolute; inset: 0; background: var(--hw-purple);
  mix-blend-mode: color; opacity: .32; transition: opacity 2s ease .3s;
}
.js .sheet:not(.is-in) .frame__img::after { opacity: 0; }
.frame__num { position: absolute; top: -22px; left: 2px; font: 700 14px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--hw-gold); letter-spacing: .08em; }
.frame figcaption { color: var(--on-dark); font-size: 18px; line-height: 1.45; padding: 12px 2px 4px; }
.frame figcaption .confirm { color: var(--on-dark-muted); }
.grease--frame { inset: -12px -14px; width: calc(100% + 28px); height: calc(100% + 24px); z-index: 2; }
.grease--frame path { stroke-width: 1.3; }
.grease--team path { stroke-width: 7; }
.sheet__credit { font-size: 16px; color: var(--grey-700); margin: 14px 0 0; }
@media (max-width: 900px) {
  .movement__grid .section-head { grid-template-columns: 1fr; }
  .movement__grid .section-head p, .movement__grid .section-head .text-link { grid-column: 1; }
  .movement__grid .section-head h2 { margin-bottom: 18px; }
}
@media (max-width: 640px) {
  .sheet { transform: none; }
  .strip { flex-direction: column; gap: 44px; padding: 50px 14px 18px; }
  .frame { flex: none; }
}

/* =====================================================================
   8. PULL QUOTE — Omega purple
   ===================================================================== */
.quote { background: var(--hw-purple); color: var(--paper); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.quote::before { /* faint rays, decorative */
  content: ""; position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255,255,255,.035) 0 6deg, transparent 6deg 14deg);
}
.quote__inner { position: relative; max-width: 960px; text-align: center; }
.quote__mark { width: 80px; fill: var(--hw-gold); margin: 0 auto 26px; }
.quote__text { margin: 0; }
.quote__text p { font: italic 400 clamp(32px, 4vw, 50px)/1.25 var(--serif); margin: 0 auto; display: inline-block; }
.quote__cite { display: inline-block; margin-top: 44px; font-size: 20px; color: var(--paper); }
.words { margin-top: 64px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.3); }
.words__title { font: 700 16px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hw-gold); margin-bottom: 8px; }
.words__chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.words__chips li {
  font: 400 24px/1 var(--serif); padding: 14px 24px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.75); color: var(--paper);
}
.words__note { margin: 22px 0 0; font-size: 18px; color: #E4D6EC; }

/* =====================================================================
   9. SCHOLARSHIPS + GET INVOLVED
   ===================================================================== */
.legacy { background: var(--newsprint); background-image: var(--grain); padding: clamp(64px, 8vw, 110px) 0; }
.legacy h2 { color: var(--hw-navy); font-style: italic; font-weight: 400; font-size: clamp(38px, 4.6vw, 60px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
  padding: 30px 26px 28px; border-radius: 6px; min-height: 400px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 16px 30px -18px rgba(0,0,0,.5);
  transition: transform .8s var(--ease), opacity .8s ease; transition-delay: calc(var(--i) * .12s);
}
.js .card:not(.is-in) { opacity: 0; transform: translateY(24px); }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 20px; line-height: 1.5; }
.card .btn { margin-top: auto; }
.card__kicker { font: 700 14px/1 var(--sans) !important; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.card--navy { background: var(--hw-navy); color: var(--paper); }
.card--blue { background: var(--hw-blue); color: var(--paper); }
.card--beige { background: var(--hw-beige); color: var(--ink); }
.card--gold { background: var(--hw-gold); color: var(--ink); }
.card--navy .card__kicker, .card--blue .card__kicker { color: var(--paper); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } .card .btn { margin-top: 12px; width: 100%; } }

/* =====================================================================
   10. FOOTER
   ===================================================================== */
.footer { background: var(--ch-cheyney); color: var(--paper); padding: 64px 0 90px; }
.footer__grid { display: grid; grid-template-columns: 220px 1fr 1.4fr; gap: 48px; align-items: start; }
.footer__logo { background: none; padding: 0; }
.footer__logo img { width: 100%; max-width: 240px; }
.footer__nav ul { display: grid; gap: 2px; }
.footer__nav a { display: flex; align-items: center; min-height: 48px; font: 600 20px/1 var(--sans); text-decoration: none; }
.footer__nav a:hover, .footer__nav a:focus-visible, .footer__nav a:active { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hw-gold); }
.footer__small p { font-size: 17px; line-height: 1.55; color: var(--on-dark-muted); }
.footer__small .footer__tag { font: italic 400 28px/1.2 var(--serif); color: var(--paper); margin-bottom: 18px; }
.footer__draft { color: var(--hw-gold) !important; font-weight: 700; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } .footer__logo { width: 200px; } }

/* =====================================================================
   Static mode (?static) and reduced motion
   ===================================================================== */
.static *, .static *::before, .static *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .slide img { transform: none !important; }
}
.tv.is-still .slide img { transform: none !important; animation: none !important; }
.tv.is-still .tv__picture { animation: none; }
/* Option 1 (Oct 1): dateline carries the title only, centred */
.dateline--title-only { grid-template-columns: 1fr; justify-items: center; }
/* Oct 2 client copy: the roll call line under the headline */
.hero__roles { margin: 0 0 10px; font: 700 clamp(19px, 1.6vw, 22px)/1.4 var(--sans); letter-spacing: .01em; color: var(--hw-navy); }

/* =====================================================================
   Oct 2: 11-stop rail (client additions) + detail pop-ups (Nia: "roll onto the box and it pops up more")
   ===================================================================== */
.stop__hint { align-self: flex-start; margin-top: 2px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hw-blue); border-bottom: 2px solid var(--hw-gold); padding-bottom: 2px; }
.stop__hint::after { content: " +"; }
.stop__more { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.stop__more li { padding-left: 14px; position: relative; }
.stop__more li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.stop.has-more .stop__card { cursor: pointer; }
.stop.has-more .stop__card:focus-visible { outline: 3px solid var(--hw-blue); outline-offset: 3px; }
@media (min-width: 1100px) {
  .rail--11 { grid-template-columns: repeat(11, 1fr); height: 470px; }
  .rail--11::after {
    background: linear-gradient(90deg, var(--hw-navy), var(--ch-cheyney) 10%, var(--ch-pennstate) 19%, var(--ch-army-croc) 28%,
      var(--ch-upenn) 37%, var(--hw-navy-deep) 46%, var(--hw-purple) 55%, var(--ch-old-gold) 64%, var(--hw-blue) 73%, var(--ch-cw-blue) 85%, var(--hw-gold));
  }
  .rail--11 .stop__year { font-size: 26px; }
  .rail--11 .stop__year--word { font-size: 21px; }
  .rail--11 .stop__what { font-size: 16px; }
  .rail--11 .stop__card { padding: 12px 14px 14px; }
  /* the detail list opens as a pop-up: upward for cards above the line, downward below it */
  .rail--11 .stop__more {
    position: absolute; left: 0; right: 0; z-index: 5; padding: 14px 16px; background: var(--paper);
    border-top: 6px solid var(--c); border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.22);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .rail--11 .stop:nth-child(odd) .stop__more { bottom: calc(100% + 8px); }
  .rail--11 .stop:nth-child(even) .stop__more { top: calc(100% + 8px); transform: translateY(-6px); }
  .rail--11 .stop.has-more:hover .stop__more, .rail--11 .stop.has-more .stop__card:focus-within .stop__more, .rail--11 .stop.has-more.is-open .stop__more {
    opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease;
  }
  .rail--11 .stop.has-more:hover, .rail--11 .stop.has-more:focus-within { z-index: 6; }
  /* Oct 20 (Lynette): flip the alternation so the last stop, 2010, sits BELOW the line at the end, not on top */
  .rail--11 .stop:nth-child(odd) .stop__card { bottom: auto; top: calc(50% + 36px); }
  .rail--11 .stop:nth-child(even) .stop__card { top: auto; bottom: calc(50% + 36px); }
  .rail--11 .stop:nth-child(odd) .stop__card::after { top: auto; bottom: calc(100% + 6px); }
  .rail--11 .stop:nth-child(even) .stop__card::after { bottom: auto; top: 100%; }
  .rail--11 .stop:nth-child(odd) .stop__more { bottom: auto; top: calc(100% + 8px); transform: translateY(-6px); }
  .rail--11 .stop:nth-child(even) .stop__more { top: auto; bottom: calc(100% + 8px); transform: translateY(6px); }
}
@media (max-width: 1099.98px) {
  .stop__hint { display: none; }          /* on phones the detail is simply shown */
  .stop__more { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .rail--11 .stop__more { transition: none; } }

.nowrap { white-space: nowrap; }

/* Oct 29: the site is treated as live. "TODO" labels beside unfinished links are hidden; the links themselves stay. */
.todo { display: none !important; }

/* Click-to-play video card (homepage, The Man). The player (Drive now, YouTube later) only loads when someone presses play. */
.vid-card { position: relative; aspect-ratio: 16 / 9; background: var(--hw-navy, #011F5B); box-shadow: 12px 12px 0 var(--hw-gold, #FFCE00); overflow: hidden; }
.vid-card img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.vid-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--hw-navy, #011F5B) 38%, rgba(1,31,91,.6) 50%, rgba(1,31,91,0) 70%); }
.vid-card__play { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; width: 100%;
  padding: clamp(18px, 2.4vw, 28px); border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.vid-card__icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--hw-gold, #FFCE00); position: relative; transition: transform .2s; }
.vid-card__icon::after { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--hw-navy, #011F5B); }
.vid-card__play:hover .vid-card__icon, .vid-card__play:focus-visible .vid-card__icon { transform: scale(1.08); }
.vid-card__play:focus-visible { outline: 4px solid var(--hw-gold, #FFCE00); outline-offset: -4px; }
.vid-card__label { font: 700 clamp(16px, 1.6vw, 21px)/1.25 var(--serif); max-width: 40%; }
.vid-card__play[hidden] { display: none; }
.vid-card__kicker { display: block; font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--hw-gold, #FFCE00); margin-bottom: 6px; }
.vid-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
@media (max-width: 860px) {
  .vid-card__icon { width: 44px; height: 44px; }
  .vid-card__play { gap: 10px; padding: 16px; }
  .vid-card__label { font-size: 15px; max-width: 48%; }
  .vid-card__kicker { font-size: 11px; margin-bottom: 4px; }
  .vid-card__icon::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
}

/* Oct 30: sound button on the TV's film channel (the film starts muted) */
.tv__sound { position: absolute; right: 10px; bottom: 10px; z-index: 6; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 2px solid #FFCE00; background: rgba(1, 31, 91, .85); color: #FFCE00; font: 700 15px/1 var(--sans); cursor: pointer; }
.tv__sound:hover, .tv__sound:focus-visible { background: #FFCE00; color: #011F5B; outline: none; }
.tv__sound[hidden] { display: none; }
.tv__sound.is-play { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); padding: 14px 24px; font-size: 18px; background: #FFCE00; color: #011F5B; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); }

/* Oct 30: power knob reads OFF on the left, ON on the right. The pointer turns toward the lit word, and the pilot light glows when on. */
.pw-dial { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.pw-side { font: 800 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6B5636; transition: color .3s ease, text-shadow .3s ease; align-self: flex-start; margin-top: 6px; }
.tv:not(.is-paused) .pw-side--on { color: #FFB12B; text-shadow: 0 0 6px rgba(255,177,43,.7); }
.tv.is-paused .pw-side--off { color: #2B2116; }
@media (prefers-reduced-motion: reduce) { .pw-side { transition: none; } }
/* readable on the beige panel: the active word is dark ink, the other one fades back */
.pw-side { color: #A08C68; }
.tv:not(.is-paused) .pw-side--on, .tv.is-paused .pw-side--off { color: #2B2116; text-shadow: none; }
/* the sound button sits top-right so it never covers the caption bar */
.tv__sound:not(.is-play) { top: 10px; bottom: auto; }
/* Oct 30: with more than one film, only the film that's on shows */
.tv.has-video .tv__video:not(.is-active) { display: none; }
/* back to the bottom corner (Zahra liked it there); on narrow screens the caption bar leaves room for it */
.tv__sound:not(.is-play) { top: auto; bottom: 10px; }
@media (max-width: 760px) { .tv.has-video .tv__lower { max-width: calc(100% - 128px); } .tv__sound:not(.is-play) { padding: 7px 11px; font-size: 13px; } }
