/* ==========================================================================
   CAP homepage prototype
   Design language: archival paper, ink and photographic prints.
   Type: Instrument Serif (display) · Hanken Grotesk (text/UI) · IBM Plex Mono (metadata)
   ========================================================================== */

:root {
  /* Palette follows CAP's own site: white pages, charcoal, olive, lavender. */
  --paper: #fbfaf7;
  --paper-2: #f2f0eb;
  --print: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #3f3e3a;
  --muted: #6b6a65;
  --rule: rgba(29, 29, 27, 0.14);
  --night: #1f1f1e;          /* CAP charcoal — hero and footer only */
  --on-night: #f4f3ef;
  --on-night-muted: #aaa9a3;
  --rule-night: rgba(244, 243, 239, 0.16);
  --accent: #6c7c2c;         /* CAP olive */
  --accent-hover: #5b6a22;
  --accent-light: #c3cf86;
  --olive-section: #5f6e27;
  --lavender: #a5a1c8;       /* CAP's Urdu heading colour */
  --lavender-tint: #f1f0f6;
  --stamp: #96402f;

  --f-manila: #e3d4a7;
  --f-kraft: #caa878;
  --f-slate: #aab4b6;
  --f-oxblood: #7b3b2e;
  --f-olive: #6c7c2c;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Archivo Narrow", "Archivo", system-ui, sans-serif;  /* archive labels */
  --display: var(--serif);   /* big headlines; type options override it */
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.12, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

/* Photographic grain over everything — static, so it costs one paint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .years :focus-visible, .oral :focus-visible, .footer :focus-visible, .nav:not(.is-solid) :focus-visible { outline-color: var(--accent-light); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 13vw, 190px); }

/* --------------------------------------------------------------- type */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--light { color: var(--on-night-muted); }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display--light { color: var(--on-night); }

.urdu {
  font-family: var(--urdu);
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.9;
  color: var(--lavender);
  margin-block: -0.5em -0.7em;
}
.urdu--light { color: var(--lavender); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(48px, 7vw, 104px);
}
.section-head--light { border-color: var(--rule-night); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px 1px;
  border: 1px solid currentColor;
  color: var(--stamp);
  vertical-align: 1px;
}
.tag--light { color: var(--stamp); }

/* --------------------------------------------------------------- buttons/links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn span { transition: transform 0.5s var(--ease); }
.btn:hover span { transform: translateX(5px); }
.btn--paper { background: var(--on-night); color: var(--night); }
.btn--paper:hover { opacity: 0.9; }
.btn--olive { background: var(--accent); color: #fff; }
.btn--olive:hover { background: var(--accent-hover); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }

.link-arrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover { background-size: 0% 1px; background-position: 100% calc(100% - 10px); }
.link-arrow--light { color: var(--on-night); }

.link-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-night);
}
.link-play--ink { color: var(--ink); }
.link-play__dot {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
}
.link-play__dot::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 10.5px;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.link-play:hover .link-play__dot { background: currentColor; }
.link-play:hover .link-play__dot::after { border-left-color: var(--night); }
.link-play--ink:hover .link-play__dot::after { border-left-color: var(--paper); }

/* --------------------------------------------------------------- prints */
.print__paper {
  background: var(--print);
  padding: 3.2%;
  padding-bottom: 4%;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.18),
    0 14px 28px -8px rgba(0, 0, 0, 0.45),
    0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.print__paper img {
  width: 100%;
  filter: sepia(0.14) contrast(1.03) saturate(0.85);
  transition: opacity 0.9s var(--ease);
}
.print__paper { background-color: var(--print); }
.js .print__paper img:not(.is-loaded) { opacity: 0; }

/* --------------------------------------------------------------- reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  color: var(--on-night);
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav__logo { height: 46px; width: auto; transition: filter 0.5s var(--ease); }
.nav.is-solid .nav__logo { filter: invert(1); }
.nav__brand-text { font-family: var(--serif); font-size: 16px; line-height: 1.05; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.nav__links a:hover { background-size: 100% 1px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__search {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%;
}
.nav__search:hover { background: rgba(127, 120, 110, 0.18); }
.nav__cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background-color 0.4s, color 0.4s;
}
.nav__cta:hover { background: var(--on-night); color: var(--ink); border-color: var(--on-night); }
.nav.is-solid .nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav__menu { display: none; align-items: center; gap: 10px; background: none; border: 0; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 500; }
.nav__menu-icon { display: grid; gap: 5px; width: 20px; }
.nav__menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--night);
  color: var(--on-night);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-night);
  font-family: var(--display);
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.05;
  text-decoration: none;
}
.menu__list span { font-family: var(--mono); font-size: 11px; color: var(--on-night-muted); letter-spacing: 0.1em; }
.menu__foot { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); }
.js .menu.is-open .menu__list li { animation: menu-in 0.8s var(--ease) both; }
.js .menu.is-open .menu__list li:nth-child(2) { animation-delay: 0.04s; }
.js .menu.is-open .menu__list li:nth-child(3) { animation-delay: 0.08s; }
.js .menu.is-open .menu__list li:nth-child(4) { animation-delay: 0.12s; }
.js .menu.is-open .menu__list li:nth-child(5) { animation-delay: 0.16s; }
.js .menu.is-open .menu__list li:nth-child(6) { animation-delay: 0.2s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__menu { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__logo { height: 40px; }
}

/* ==========================================================================
   HERO — prints on a table
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  display: flex;
  align-items: center;
  perspective: 1600px;
}
.hero__table {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.print {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: 1;
  will-change: transform;
}
.print .print__paper {
  transform: rotate(var(--r));
  transition: transform 1.6s var(--ease), opacity 1.2s var(--ease), box-shadow 0.6s var(--ease), filter 0.6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.print[data-depth="0.25"], .print[data-depth="0.3"], .print[data-depth="0.35"] { z-index: 0; }
.print[data-depth="0.25"] .print__paper,
.print[data-depth="0.3"] .print__paper,
.print[data-depth="0.35"] .print__paper { filter: brightness(0.55) blur(0.6px); }
.print[data-depth="1"] { z-index: 3; }
.print--doc .print__paper { padding: 0; }
.print--doc .print__paper img { filter: sepia(0.2) contrast(1.05); }

.js .hero.is-dealing .print__paper {
  opacity: 0;
  transform: translate3d(0, -26px, 0) rotate(calc(var(--r) * 2.2)) scale(1.07);
  transition: none;
}
/* Hover only changes paint, never geometry or stacking, so a print can't slide out from under the cursor and flicker. */
.hero__table .print:hover .print__paper {
  filter: none;
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 30px 60px -12px rgba(0,0,0,.6);
  transition-delay: 0s;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 31, 30, 0.94) 0%, rgba(31, 31, 30, 0.8) 34%, rgba(31, 31, 30, 0.15) 66%, rgba(31, 31, 30, 0) 100%),
    linear-gradient(0deg, rgba(31, 31, 30, 0.85) 0%, rgba(31, 31, 30, 0) 26%);
}
.hero__content {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 120px;
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; max-width: 860px; }
.hero__content .eyebrow { margin-bottom: 32px; pointer-events: none; }
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.3vw, 108px);
  line-height: 1;
  letter-spacing: -0.012em;
  pointer-events: none;
}
.hero__title em { color: #d8d6cc; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: inline-block; transition: transform 1.4s var(--ease); }
.js .hero.is-dealing .line > span { transform: translateY(110%); transition: none; }
.hero .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero__lede {
  max-width: 34em !important;
  margin-top: 32px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: #cfcec8;
  pointer-events: none;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.js .hero .hero__lede, .js .hero .hero__actions, .js .hero .eyebrow { transition: opacity 1.2s var(--ease) 0.5s, transform 1.2s var(--ease) 0.5s; }
.js .hero.is-dealing .hero__lede, .js .hero.is-dealing .hero__actions, .js .hero.is-dealing .eyebrow { opacity: 0; transform: translateY(16px); transition: none; }

.hero__label {
  position: absolute;
  z-index: 6;
  right: var(--gutter);
  bottom: 34px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-night-muted);
  max-width: 46vw;
}
.hero__label-k { text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; }
.hero__label-v { color: var(--on-night); transition: opacity 0.4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__scroll {
  position: absolute;
  z-index: 6;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-night-muted);
  min-height: 44px;
}
.hero__scroll i { position: relative; display: block; width: 1px; height: 36px; background: rgba(244,243,239,.25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--on-night); animation: scroll-cue 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 1100px) {
  .hero__shade { background: linear-gradient(90deg, rgba(31,31,30,.92) 0%, rgba(31,31,30,.7) 50%, rgba(31,31,30,.2) 100%), linear-gradient(0deg, rgba(31,31,30,.85) 0%, rgba(31,31,30,0) 30%); }
}
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero__content { padding-bottom: 96px; padding-top: 52vh; }
  .hero__shade { background: linear-gradient(0deg, rgba(31,31,30,.97) 0%, rgba(31,31,30,.9) 42%, rgba(31,31,30,.25) 72%, rgba(31,31,30,.45) 100%); }
  .hero__label { display: none; }
  .print:nth-child(1), .print:nth-child(3), .print:nth-child(7) { display: none; }
  /* Sized and placed in vw so the stack scales as one unit and never meets the text. */
  .print:nth-child(2) { --x: 3% !important; --y: calc(var(--nav-h) + 4vw) !important; --w: 62vw !important; }
  .print:nth-child(4) { --x: 63% !important; --y: calc(var(--nav-h) + 8vw) !important; --w: 32vw !important; }
  .print:nth-child(5) { --x: 20% !important; --y: calc(var(--nav-h) + 34vw) !important; --w: 48vw !important; }
  .print:nth-child(6) { --x: 76% !important; --y: calc(var(--nav-h) + 50vw) !important; --w: 18vw !important; }
  .hero__content { padding-top: calc(var(--nav-h) + 82vw); }
  .hero__content .eyebrow span:last-child { display: none; }
  .hero__actions { gap: 8px 20px; }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(48px, 6vw, 96px);
}
.intro__statement {
  grid-column: 1 / span 10;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}
.intro__statement em { color: var(--accent); }
.intro__print { grid-column: 2 / span 3; grid-row: 2; align-self: start; transform: rotate(-2deg); }
.intro__print .print__paper { box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 18px 34px -14px rgba(30,30,30,.28); }
.intro__print figcaption { margin-top: 16px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); transform: rotate(2deg); }
.intro__print figcaption span { display: block; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }
.intro__body { grid-column: 7 / span 5; grid-row: 2; display: grid; gap: 20px; align-content: start; color: var(--ink-2); font-size: 18px; }
.intro__body .link-arrow { justify-self: start; margin-top: 8px; color: var(--ink); }

.stats {
  margin-top: clamp(80px, 10vw, 150px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}
.stat { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; }
.stat__k { order: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat__v { order: 2; margin-top: 28px; font-family: var(--display); font-size: clamp(44px, 4.8vw, 82px); line-height: 0.95; letter-spacing: -0.015em; font-variant-numeric: lining-nums tabular-nums; }
.stat__d { order: 3; margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 18em; }

@media (max-width: 900px) {
  .intro__statement { grid-column: 1 / -1; }
  .intro__body { grid-column: 1 / -1; grid-row: auto; }
  .intro__print { grid-column: 1 / span 7; grid-row: auto; max-width: 340px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

/* ==========================================================================
   ARCHIVE — search + folder cabinet
   ========================================================================== */
.archive { padding-top: 0; }
.archive__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  row-gap: 28px;
}
.archive__intro .display { grid-column: 1 / span 6; }
.archive__lede { grid-column: 8 / span 5; color: var(--ink-2); }

.search { margin-top: clamp(56px, 7vw, 96px); }
.search__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.search__field { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); }
.search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 40px);
  color: var(--ink);
  outline: none;
}
.search__field input::placeholder { color: #a3a29c; }
.search__field:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.search__go {
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
}
.search__browse, .search__try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.search__browse > span, .search__try > span { color: var(--muted); margin-right: 6px; }
.search__browse a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; border-bottom: 1px solid transparent; }
.search__browse a:hover { border-bottom-color: currentColor; }
.search__browse i { font-style: normal; color: var(--muted); }
.search__try { margin-top: 6px; text-transform: none; letter-spacing: 0.02em; }
.search__try button {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 10px;
  min-height: 32px;
  font-family: var(--mono);
  font-size: 12px;
}
.search__try button:hover { border-color: var(--ink); }

/* Cabinet: the stack and the open dossier share one grid cell. */
.cabinet { display: grid; margin-top: clamp(72px, 9vw, 128px); }
.cabinet > * { grid-area: 1 / 1; }
.cabinet__fallback { display: grid; gap: 8px; font-family: var(--serif); font-size: 28px; }
.cabinet__stack { position: relative; z-index: 1; padding-top: 10px; transition: opacity 0.5s var(--ease); }

.folder {
  --c: var(--f-manila);
  --fg: var(--ink);
  position: relative;
  margin-top: -58px;
  color: var(--fg);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.folder:first-child { margin-top: 0; }
.folder[data-colour="manila"] { --c: var(--f-manila); }
.folder[data-colour="kraft"] { --c: var(--f-kraft); }
.folder[data-colour="slate"] { --c: var(--f-slate); }
.folder[data-colour="oxblood"] { --c: var(--f-oxblood); --fg: var(--print); }
.folder[data-colour="olive"] { --c: var(--f-olive); --fg: var(--print); }

.folder__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: var(--tab-x, 0%);
  width: max-content;
  min-width: clamp(200px, 22vw, 290px);
  height: 46px;
  padding: 0 26px 0 22px;
  border: 0;
  background: var(--c);
  color: var(--fg);
  clip-path: polygon(0 100%, 10px 4px, 18px 0, calc(100% - 18px) 0, calc(100% - 10px) 4px, 100% 100%);
  font-family: var(--serif);
  font-size: 23px;
  text-align: left;
  white-space: nowrap;
}
.folder__tab .folder__series { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.folder__body {
  position: relative;
  height: 96px;
  background: var(--c);
  border-radius: 0 6px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.12) inset, 0 -10px 24px -14px rgba(0,0,0,.35);
  padding: 14px 22px;
  display: flex;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.folder__body::before {
  /* paper fibre */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.04));
  pointer-events: none;
}
.folder__formats { opacity: 0.75; }
.folder:last-child .folder__body {
  height: auto;
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 40px;
}
.folder__lede { display: none; }
.folder:last-child .folder__lede {
  display: block;
  max-width: 30em;
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
}
.folder__open-hint { display: none; }
.folder:last-child .folder__open-hint { display: block; grid-column: 1; font-family: var(--mono); opacity: 0.8; }

/* A sheet peeks out of the folder on hover. It ignores the pointer and the
   folder itself never moves, so the hover target is stable (no flicker). */
.folder__body::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 34%;
  right: 4%;
  top: 0;
  height: 22px;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(80,100,140,.14) 7px 8px), var(--print);
  box-shadow: 0 -2px 6px rgba(0,0,0,.08);
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}
.folder__tab, .folder__body { transition: filter 0.4s var(--ease); }
@media (hover: hover) {
  .folder:hover .folder__body::after { transform: translateY(-14px); }
  .folder:hover .folder__tab, .folder:hover .folder__body { filter: brightness(1.04); }
}
.folder__tab:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
.folder[data-colour="oxblood"] .folder__tab:focus-visible, .folder[data-colour="olive"] .folder__tab:focus-visible { outline-color: var(--print); }
/* the whole folder face is clickable via the tab button */
.folder__tab::after { content: ""; position: absolute; inset: 0; }
.folder__hit { position: absolute; inset: 46px 0 0 0; z-index: 1; cursor: pointer; }

.cabinet.is-open .cabinet__stack { pointer-events: none; }
.cabinet.is-open .folder { opacity: 0; transform: translateY(60px); }
.cabinet.is-open .folder.is-chosen { opacity: 0; transform: none; transition: none; }

/* Dossier */
.dossier {
  --c: var(--f-manila);
  --fg: var(--ink);
  position: relative;
  z-index: 2;
  color: var(--fg);
  will-change: transform;
}
.dossier[hidden] { display: none; }
.dossier[data-colour="kraft"] { --c: var(--f-kraft); }
.dossier[data-colour="slate"] { --c: var(--f-slate); }
.dossier[data-colour="oxblood"] { --c: var(--f-oxblood); --fg: var(--print); }
.dossier[data-colour="olive"] { --c: var(--f-olive); --fg: var(--print); }
.dossier__head { display: flex; align-items: flex-end; justify-content: space-between; }
.dossier__tab {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: var(--tab-x, 0%);
  width: max-content;
  min-width: clamp(200px, 22vw, 290px);
  height: 46px;
  padding: 0 26px 0 22px;
  background: var(--c);
  clip-path: polygon(0 100%, 10px 4px, 18px 0, calc(100% - 18px) 0, calc(100% - 10px) 4px, 100% 100%);
  transition: margin-left 0.7s var(--ease);
}
.dossier__tab h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; white-space: nowrap; }
.dossier__tab span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.dossier.is-settled .dossier__tab { margin-left: 0; }
.dossier__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.dossier.is-settled .dossier__close { opacity: 1; }
.dossier__close b { font-weight: 400; font-size: 20px; line-height: 1; }
.dossier__folder {
  position: relative;
  background: var(--c);
  border-radius: 0 6px 6px 6px;
  padding: clamp(14px, 2vw, 28px);
  padding-right: clamp(14px, 6vw, 92px);
  box-shadow: 0 30px 60px -30px rgba(30, 30, 30, 0.35);
}
.dossier__sheet {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 100, 140, 0.13) 31px 32px),
    var(--print);
  color: var(--ink);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 12px 30px -12px rgba(0,0,0,.35);
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease), clip-path 0.9s var(--ease);
  clip-path: inset(0 0 0 0);
}
.dossier__sheet::before {
  /* punch holes */
  content: "";
  position: absolute;
  left: clamp(14px, 2vw, 26px);
  top: 0;
  bottom: 0;
  width: 13px;
  background: radial-gradient(circle at 50% 50%, var(--c) 0 6px, transparent 6.5px) 0 12% / 13px 120px repeat-y;
}
.dossier.is-sheet-hidden .dossier__sheet { clip-path: inset(100% 0 0 0); transform: translateY(24px); }
.dossier__collage { position: relative; min-height: 420px; }
.dossier__collage .print__paper {
  position: absolute;
  width: 58%;
  transform: rotate(var(--r)) translateY(0);
  transition: transform 1s var(--ease), opacity 0.8s var(--ease);
  transition-delay: var(--d, 0s);
  box-shadow: 0 1px 1px rgba(0,0,0,.14), 0 16px 30px -12px rgba(30,30,30,.5);
}
.dossier__collage .print__paper:nth-child(1) { left: 0; top: 2%; --r: -3deg; }
.dossier__collage .print__paper:nth-child(2) { right: 0; top: 18%; width: 52%; --r: 4deg; }
.dossier__collage .print__paper:nth-child(3) { left: 16%; bottom: 0; width: 50%; --r: -1deg; }
.dossier__collage .clip {
  position: absolute;
  left: 14%;
  top: -10px;
  width: 16px;
  height: 46px;
  border: 2px solid #8b8f93;
  border-radius: 8px;
  z-index: 3;
  transform: rotate(-3deg);
}
.dossier.is-sheet-hidden .dossier__collage .print__paper { opacity: 0; transform: rotate(0) translateY(40px); }
.dossier__info { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.dossier__series { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dossier__lede { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; }
.dossier__dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-family: var(--mono); font-size: 13px; padding-top: 18px; border-top: 1px dashed rgba(27,24,20,.3); }
.dossier__dl dt { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--muted); padding-top: 2px; }
.dossier__dl dd ul { display: grid; gap: 4px; }
.dossier__info .btn { align-self: flex-start; margin-top: auto; }
.dossier__switch {
  position: absolute;
  right: 0;
  top: clamp(14px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: clamp(14px, 6vw, 92px);
  align-items: flex-end;
}
.dossier__switch button {
  writing-mode: vertical-rl;
  min-width: 40px;
  padding: 16px 10px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--sc);
  color: var(--sfg, var(--ink));
  font-family: var(--serif);
  font-size: 17px;
  white-space: nowrap;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease), filter 0.3s;
  transition-delay: var(--d, 0s);
  margin-right: -40px;
}
.dossier.is-settled .dossier__switch button { transform: translateX(0); }
.dossier__switch button:hover { filter: brightness(1.08); }

@media (max-width: 900px) {
  .archive__intro .display, .archive__lede { grid-column: 1 / -1; }
  .folder__tab, .dossier__tab { min-width: 190px; font-size: 20px; }
  .folder__tab .folder__series, .dossier__tab span { display: none; }
  .folder__formats { display: none; }
  .folder:last-child .folder__body { grid-template-columns: 1fr; }
  .dossier__sheet { grid-template-columns: 1fr; min-height: 0; padding-left: 44px; }
  .dossier__collage { min-height: 300px; max-width: 460px; }
  .dossier__folder { padding-right: clamp(14px, 2vw, 28px); padding-bottom: 76px; }
  .dossier__switch { flex-direction: row; top: auto; bottom: 14px; left: 14px; right: 14px; width: auto; justify-content: flex-start; overflow-x: auto; }
  .dossier__switch button { writing-mode: horizontal-tb; margin: 0; border-radius: 6px; padding: 10px 14px; font-size: 16px; transform: none; }
  .dossier.is-settled .dossier__switch button { transform: none; }
}
@media (max-width: 560px) {
  .folder__tab, .dossier__tab { min-width: 0; max-width: 78%; padding: 0 16px; }
  .folder { --tab-x: 0% !important; }
  .folder:nth-child(even) .folder__tab { margin-left: 18%; }
  .search__go { padding: 10px 14px; }
}

/* ==========================================================================
   THROUGH THE YEARS — infinite wall
   ========================================================================== */
.years, .oral {
  /* Light sections: re-point the "night" tokens instead of duplicating rules. */
  --on-night: var(--ink);
  --on-night-muted: var(--muted);
  --rule-night: var(--rule);
  --accent-light: var(--accent);
}
.years { --night: var(--paper-2); }
.oral { --night: var(--lavender-tint); }
.years {
  background: var(--night);
  color: var(--on-night);
  padding-top: clamp(96px, 11vw, 160px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.years__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.years__head .eyebrow { margin-bottom: 28px; }
.years__head .display { max-width: 12em; font-size: clamp(40px, 5vw, 80px); }
.years__controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.toggle { display: flex; border: 1px solid var(--rule-night); border-radius: 2px; }
.toggle button, .years__full {
  min-height: 40px;
  padding: 8px 14px;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-muted);
}
.toggle button[aria-pressed="true"] { background: var(--on-night); color: var(--night); }
.years__full { border: 1px solid var(--rule-night); border-radius: 2px; color: var(--on-night); }
.years__full:hover, .toggle button:hover { color: var(--on-night); }
.toggle button[aria-pressed="true"]:hover { color: var(--night); }

.wall {
  position: relative;
  height: clamp(540px, 80vh, 860px);
  overflow: hidden;
  border-top: 1px solid var(--rule-night);
  border-bottom: 1px solid var(--rule-night);
  background: var(--night);
}
.wall[hidden] { display: none; }
.wall__plane {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.wall__plane:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-light); }
.wall__plane.is-dragging { cursor: grabbing; }
.tile {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tw);
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--on-night);
  will-change: transform;
  transition: opacity 0.6s var(--ease);
}
.tile__label {
  display: flex;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--on-night-muted);
}
.tile__label b { font-weight: 500; color: var(--on-night); }
.tile .print__paper { display: block; padding: 5px 5px 7px; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 12px 24px -12px rgba(30,30,30,.35); }
.tile .print__paper img { aspect-ratio: var(--ar); object-fit: cover; }
@media (hover: hover) {
  .tile--item:hover .print__paper { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 22px 36px -14px rgba(30,30,30,.45); }
}
.tile--item:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 6px; }
.tile.is-dim { opacity: 0.12; }
.tile.is-match .print__paper { box-shadow: 0 0 0 2px var(--accent), 0 22px 36px -14px rgba(30,30,30,.45); }
.tile--era { pointer-events: none; padding-top: 28px; }
.tile--era .tile__year { display: block; font-family: var(--display); font-size: 60px; line-height: 0.95; letter-spacing: -0.02em; color: var(--on-night); }
.tile--era .tile__title { display: block; margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--ink-2); }
.tile--era .tile__note { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--on-night-muted); }
.tile--cap .tile__year { color: var(--accent-light); }
.tile--cap .tile__kicker { display: inline-block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night); background: var(--accent-light); padding: 2px 6px; }

.wall__era {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 28px 14px var(--gutter);
  background: color-mix(in srgb, var(--night) 94%, transparent);
  border-top: 1px solid var(--rule-night);
  border-right: 1px solid var(--rule-night);
}
.wall__era-year { font-family: var(--display); font-size: clamp(44px, 5.4vw, 84px); line-height: 0.9; }
.wall__era-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.wall__era.is-swapping .wall__era-year, .wall__era.is-swapping .wall__era-title { opacity: 0; transform: translateY(8px); }
.wall__era-year, .wall__era-title { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.wall__hint {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 14px var(--gutter) 14px 20px;
  background: color-mix(in srgb, var(--night) 94%, transparent);
  border-top: 1px solid var(--rule-night);
  border-left: 1px solid var(--rule-night);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-muted);
  transition: opacity 0.6s;
}
.wall__hint-icon { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.wall__hint-icon::before { content: "↔"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: 0; }
.wall.has-moved .wall__hint { opacity: 0; }
.wall__close { display: none; }
.wall.is-full {
  position: fixed;
  inset: 0;
  z-index: 150;
  height: 100vh;
  height: 100dvh;
  border: 0;
}
.wall.is-full .wall__close {
  display: inline-flex;
  position: absolute;
  top: 18px;
  right: var(--gutter);
  z-index: 3;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--on-night);
  color: var(--night);
  border: 0;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html.wall-full-open { overflow: hidden; }

.years__list { padding-block: 8px 40px; }
.years__list[hidden] { display: none; }
.era-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-night);
}
.era-row__year { font-family: var(--display); font-size: 48px; line-height: 1; }
.era-row__title { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--ink-2); }
.era-row__title small { display: block; margin-top: 8px; font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--on-night-muted); }
.era-row ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.era-row li button { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; color: var(--on-night); }
.era-row li img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e1da; margin-bottom: 8px; filter: sepia(.14) saturate(.85); }
.era-row li span { display: block; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--on-night-muted); }
.years__noscript { color: var(--on-night-muted); padding-top: 24px; }

@media (max-width: 760px) {
  .years__head { flex-direction: column; align-items: flex-start; }
  .years__full { display: none; }
  .wall { height: 78vh; height: 78svh; max-height: 640px; }
  .wall__era-title { display: none; }
  .era-row { grid-template-columns: 1fr; gap: 12px; }
  .era-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   FEATURED STORY
   ========================================================================== */
.story { padding-block: clamp(110px, 13vw, 200px) clamp(80px, 10vw, 160px); }
.story__head { margin-bottom: clamp(56px, 8vw, 120px); }
.story__head .eyebrow { margin-bottom: 36px; }
.story__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 8.4vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.story__title em { color: var(--stamp); }
.story__dek { margin-top: 36px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }

.story__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}
.story__stage {
  grid-column: 1 / span 7;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 64px);
  height: calc(100svh - var(--nav-h) - 64px);
  display: flex;
  flex-direction: column;
}
.story__frame {
  position: relative;
  flex: 1;
  background: var(--paper-2);
  overflow: hidden;
}
.story__img {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 7%;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.story__img img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: var(--print);
  padding: 10px 10px 14px;
  box-shadow: 0 1px 1px rgba(0,0,0,.14), 0 28px 50px -20px rgba(30,30,30,.55);
  filter: sepia(.12) contrast(1.03) saturate(.85);
  transform: translateY(30px) scale(0.97) rotate(-1deg);
  transition: transform 1.4s var(--ease);
}
.story__img.is-active { opacity: 1; }
.story__img.is-active img { transform: none; }
.story__img.is-past img { transform: translateY(-30px) scale(0.98) rotate(0.6deg); }
.story__meta { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); min-height: 1.6em; }

.story__chapters { grid-column: 9 / span 4; }
.chapter {
  min-height: 82vh;
  padding-block: 18vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0.28;
  transition: opacity 0.8s var(--ease);
}
.chapter:first-child { padding-top: 6vh; }
.chapter.is-active { opacity: 1; }
.chapter__img { display: none; }
.chapter__n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--stamp); }
.chapter h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; }
.chapter > p:not(.chapter__n) { color: var(--ink-2); font-size: 18px; }
.chapter__quote { margin-top: 12px; padding-left: 20px; border-left: 1px solid var(--stamp); }
.chapter__quote p { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.25; }
.chapter__quote footer { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.story__ctas { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 18px; }

@media (max-width: 900px) {
  .story__stage { display: none; }
  .story__chapters { grid-column: 1 / -1; }
  .chapter { min-height: 0; padding-block: 40px; opacity: 1; border-top: 1px solid var(--rule); }
  .chapter:first-child { padding-top: 40px; }
  .chapter__img { display: block; margin-bottom: 8px; }
  .chapter__img img { width: 100%; background: var(--print); padding: 8px 8px 12px; box-shadow: 0 16px 30px -16px rgba(30,30,30,.5); filter: sepia(.12) saturate(.85); }
}

/* ==========================================================================
   ORAL HISTORIES
   ========================================================================== */
.oral { background: var(--night); color: var(--on-night); padding-block: clamp(110px, 13vw, 190px); }
.oral__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; align-items: end; }
.oral__intro .display { grid-column: 1 / span 7; }
.oral__lede { grid-column: 9 / span 4; color: var(--on-night-muted); }

.player {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: center;
}
.player__photo { grid-column: 1 / span 5; }
.player__photo-frame {
  background: var(--print);
  padding: 12px 12px 18px;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 26px 50px -22px rgba(30,30,30,.45);
  transition: transform 1s var(--ease);
}
.player__photo-frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.95); transition: opacity 0.5s var(--ease), filter 1.2s var(--ease); }
.player.is-playing .player__photo-frame { transform: rotate(0deg) scale(1.01); }
.player.is-playing .player__photo-frame img { filter: grayscale(.35) sepia(.2) contrast(1.05); }
.player.is-switching .player__photo-frame img, .player.is-switching .player__body > * { opacity: 0; }
.player__photo figcaption { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--on-night-muted); }
.player__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; }
.player__body > * { transition: opacity 0.4s var(--ease); }
.player__meta { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); }
.player__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.02; }
.player__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); }
.player__quote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; color: var(--ink-2); border-left: 1px solid var(--rule-night); padding-left: 22px; }
.player__controls { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.player__play {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--on-night);
  background: none;
  color: var(--on-night);
  display: grid;
  place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.player__play svg { width: 20px; height: 20px; }
.player__play:hover { background: var(--on-night); color: var(--night); }
.player__play .i-pause, .player.is-playing .player__play .i-play { display: none; }
.player.is-playing .player__play .i-pause { display: block; }
.wave { position: relative; flex: 1; height: 56px; cursor: pointer; }
.wave__bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave__bars i { flex: 1; min-width: 1px; background: color-mix(in srgb, var(--on-night) 22%, transparent); border-radius: 1px; height: var(--h); }
.wave__bars--played { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.wave__bars--played i { background: var(--on-night); }
.player__time { flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.player__status { min-height: 1.4em; font-family: var(--mono); font-size: 12px; color: var(--stamp); }
.player__transcript summary { cursor: pointer; display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.player__transcript p { margin-top: 8px; max-width: 38em; color: var(--on-night-muted); font-size: 16px; }

.narrators { margin-top: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--rule-night); }
.narrator button {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 64px 40px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--rule-night);
  background: none;
  text-align: left;
  color: var(--on-night);
  transition: padding 0.5s var(--ease), background-color 0.4s;
}
.narrator button:hover { padding-left: 12px; }
.narrator__n, .narrator__theme, .narrator__place, .narrator__dur { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); }
.narrator__title { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.narrator__icon { width: 36px; height: 36px; border: 1px solid var(--rule-night); border-radius: 50%; display: grid; place-items: center; justify-self: end; }
.narrator__icon::after { content: ""; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.narrator.is-current button { color: var(--on-night); }
.narrator.is-current .narrator__icon { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.oral__foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 56px; }

@media (max-width: 900px) {
  .oral__intro .display, .oral__lede { grid-column: 1 / -1; }
  .player__photo, .player__body { grid-column: 1 / -1; }
  .player__photo { max-width: 520px; }
  .narrator button { grid-template-columns: 36px minmax(0, 1fr) 40px; row-gap: 4px; }
  .narrator__theme, .narrator__place, .narrator__dur { grid-column: 2; }
  .narrator__theme { grid-row: 2; }
  .narrator__place, .narrator__dur { display: none; }
  .narrator__icon { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 560px) {
  .player__controls { flex-wrap: wrap; }
  .wave { flex-basis: calc(100% - 80px); }
  .player__time { width: 100%; padding-left: 78px; margin-top: -10px; }
}

/* ==========================================================================
   OUR WORK — index
   ========================================================================== */
.work__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.work__intro .display { grid-column: 1 / span 7; }
.work__lede { grid-column: 9 / span 4; color: var(--ink-2); }
.index { border-bottom: 1px solid var(--ink); }
.index__row a {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: baseline;
  padding: 30px 0 34px;
  border-top: 1px solid var(--ink);
  text-decoration: none;
}
.index__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.index__title { font-family: var(--display); font-size: clamp(26px, 2.7vw, 42px); line-height: 1.08; transition: transform 0.6s var(--ease); }
.index__desc { color: var(--ink-2); font-size: 16px; max-width: 32em; }
.index__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.index__thumb { display: none; }
@media (hover: hover) {
  .index__row a:hover .index__title { transform: translateX(14px); }
  .index:hover .index__row a:not(:hover) { opacity: 0.45; }
  .index__row a { transition: opacity 0.5s var(--ease); }
}
.index__float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: min(280px, 20vw);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: var(--print);
  padding: 8px 8px 12px;
  box-shadow: 0 30px 60px -20px rgba(30,30,30,.6);
}
.index__float.is-on { opacity: 1; }
.index__float img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.1) saturate(.9); }

@media (max-width: 900px) {
  .work__intro .display, .work__lede { grid-column: 1 / -1; }
  .index__row a { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "thumb title" "thumb desc" "thumb meta"; row-gap: 10px; align-items: start; }
  .index__n { display: none; }
  .index__thumb { display: block; grid-area: thumb; }
  .index__thumb img { width: 96px; aspect-ratio: 1; object-fit: cover; filter: sepia(.1) saturate(.9); }
  .index__title { grid-area: title; }
  .index__desc { grid-area: desc; font-size: 15px; }
  .index__meta { grid-area: meta; text-align: left; }
  .index__float { display: none; }
}

/* ==========================================================================
   CONTRIBUTE
   ========================================================================== */
.contribute { background: var(--olive-section); color: #fff; padding-block: clamp(110px, 13vw, 190px); overflow: hidden; }
.contribute__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 64px; }
.contribute__text { grid-column: 1 / span 5; }
.contribute__text .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 36px; }
.contribute__title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5vw, 82px); line-height: 1.02; letter-spacing: -0.012em; }
.contribute__lede { margin-top: 28px; font-size: 18px; color: rgba(255,255,255,.88); max-width: 26em; }
.contribute__pile { position: relative; height: 260px; margin-top: 64px; max-width: 520px; }
.contribute__pile .print__paper {
  position: absolute;
  left: var(--tx);
  top: 0;
  width: 46%;
  transform: rotate(var(--r)) translateY(var(--py, 0px));
  box-shadow: 0 1px 1px rgba(0,0,0,.14), 0 18px 34px -14px rgba(30,30,30,.55);
  transition: transform 0.2s linear;
}
.contribute__pile .print__paper:nth-child(2) { top: 30px; }
.contribute__pile .print__paper:nth-child(3) { top: 10px; }
.contribute__pile img { aspect-ratio: 4 / 3; object-fit: cover; }

.cards { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-content: start; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 52px 28px 26px;
  background:
    linear-gradient(180deg, transparent 38px, rgba(142, 52, 38, 0.45) 38px 39px, transparent 39px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(80, 100, 140, 0.12) 27px 28px) 0 39px / 100% calc(100% - 39px) no-repeat,
    var(--print);
  box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 14px 28px -16px rgba(30,30,30,.55);
  transform: rotate(var(--r));
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.cards__slot { display: flex; }
.cards__slot > .card { flex: 1; }
.cards__slot:nth-child(even) { margin-top: 36px; }
/* The static slot is the hover target; only the card inside moves. */
.cards__slot:hover .card { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 26px 40px -18px rgba(0,0,0,.45); }
.card__k { position: absolute; top: 12px; left: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.card p:not(.card__k) { font-size: 15px; color: var(--ink-2); }
.card__link { margin-top: auto; font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; min-height: 44px; align-items: flex-end; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link span { transition: transform 0.5s var(--ease); }
.cards__slot:hover .card__link span { transform: translateX(5px); }
.card--ink { background: var(--night); color: var(--on-night); }
.card--ink p:not(.card__k) { color: #c9c8c2; }
.card--ink .card__k { color: var(--accent-light); }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.card__link:focus-visible { outline: none; }

@media (max-width: 1000px) {
  .contribute__text, .cards { grid-column: 1 / -1; }
  .contribute__pile { height: 200px; margin-top: 48px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .cards__slot:nth-child(even) { margin-top: 0; }
  .card { min-height: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--night); color: var(--on-night); padding-block: clamp(80px, 9vw, 130px) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(48px, 7vw, 120px); }
.newsletter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; }
.newsletter > p { margin-top: 16px; color: var(--on-night-muted); max-width: 26em; }
.newsletter__field { display: flex; margin-top: 28px; border-bottom: 1px solid var(--on-night); }
.newsletter__field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--on-night); padding: 12px 0; font-size: 17px; outline: none; }
.newsletter__field input::placeholder { color: #8d8c86; }
.newsletter__field button { background: none; border: 0; font-weight: 500; min-height: 44px; padding: 0 0 0 16px; }
.newsletter__field:focus-within { border-bottom-color: var(--accent-light); }
.newsletter__msg { margin-top: 10px; min-height: 1.4em; font-family: var(--mono); font-size: 12px; color: var(--accent-light); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols h3 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 14px; }
.footer__cols a, .footer__cols address { display: block; font-style: normal; font-size: 15px; line-height: 1.5; padding-block: 5px; text-decoration: none; color: var(--on-night); }
.footer__cols address { color: var(--on-night-muted); margin-bottom: 6px; }
.footer__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__reg { margin-top: clamp(56px, 7vw, 96px); max-width: 58em; font-size: 14px; color: var(--on-night-muted); }
.footer__mark {
  margin-top: clamp(56px, 7vw, 100px);
  font-family: var(--display);
  font-size: clamp(40px, 7.6vw, 136px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--on-night);
}
.footer__mark em { color: var(--accent-light); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-night);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--on-night-muted);
}
.footer__social, .footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__bottom a { text-decoration: none; display: inline-block; padding-block: 4px; }
.footer__bottom a:hover { color: var(--on-night); }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   RECORD DIALOG
   ========================================================================== */
.record {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
}
.record::backdrop { background: rgba(14, 12, 9, 0.82); }
.record[open] { animation: record-in 0.6s var(--ease); }
@keyframes record-in { from { opacity: 0; transform: translateY(20px) scale(0.985); } }
.record__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.record__img { background: var(--paper-2); display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); min-height: 360px; }
.record__img img { max-height: 70vh; width: auto; background: var(--print); padding: 10px 10px 14px; box-shadow: 0 20px 40px -18px rgba(30,30,30,.5); filter: sepia(.1) saturate(.9); }
.record__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 20px; }
.record__ref { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-right: 40px; }
.record__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; }
.record__meta { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.record__meta div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.record__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.record__credit { font-family: var(--mono); font-size: 11px; color: var(--stamp); }
.record__body .btn { align-self: flex-start; margin-top: auto; }
.record__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; }
@media (max-width: 760px) {
  .record__inner { grid-template-columns: 1fr; }
  .record__img { min-height: 0; }
  .record__img img { max-height: 46vh; }
}

/* ==========================================================================
   PROTOTYPE CHROME
   ========================================================================== */
.proto {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 12px;
  background: rgba(31, 31, 30, 0.92);
  color: var(--on-night);
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 3px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.proto.is-tucked { opacity: 0; transform: translateY(12px); pointer-events: none; }
.proto strong { font-weight: 500; }
.proto button { background: var(--on-night); color: var(--ink); border: 0; border-radius: 2px; padding: 6px 10px; font-family: var(--mono); font-size: 11px; min-height: 32px; }
.proto button[aria-pressed="true"] { background: #e2a08f; }
@media (max-width: 560px) {
  .proto { left: 8px; bottom: 8px; padding: 3px; }
  .proto p { display: none; }
  .proto button { min-height: 28px; padding: 4px 8px; font-size: 10px; }
}
.show-placeholders [data-placeholder] { outline: 2px dashed #d0533c !important; outline-offset: 2px; position: relative; }
.show-placeholders [data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 5;
  background: #d0533c;
  color: #fff;
  font: 500 10px/1.4 var(--mono);
  padding: 2px 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.show-placeholders .tag[data-placeholder]::after { display: none; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero.is-dealing .print__paper, .js .hero.is-dealing .line > span,
  .js .hero.is-dealing .hero__lede, .js .hero.is-dealing .hero__actions, .js .hero.is-dealing .eyebrow { opacity: 1; transform: none; }
  .js .hero.is-dealing .print__paper { transform: rotate(var(--r)); }
}

/* Search results on the wall */
.wall__filter {
  position: absolute;
  top: 16px;
  left: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 6px 6px 6px 14px;
  background: var(--on-night);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 2px;
}
.wall__filter[hidden] { display: none; }
.wall__filter button { flex-shrink: 0; min-height: 32px; padding: 4px 10px; border: 0; background: var(--ink); color: var(--on-night); font-family: var(--mono); font-size: 11px; border-radius: 2px; }

/* ==========================================================================
   TYPE OPTIONS (prototype) — switch with ?type=a / ?type=b or the badge
   ========================================================================== */

/* A · Catalogue — after Mosby Files (Founders Grotesk + Signifier) and the
   Rijksmuseum wordmark: condensed bold capitals for headlines, a light book
   serif for reading and italics, narrow capitals for archive labels. */
html[data-type="a"] {
  --display: "Archivo", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Archivo Narrow", "Archivo", sans-serif;
}
html[data-type="a"] :is(.hero__title, .display, .story__title, .contribute__title, .footer__mark, .index__title, .menu__list a) {
  font-stretch: 68%;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.9;
}
html[data-type="a"] .hero__title { font-size: clamp(50px, 6.9vw, 126px); }
html[data-type="a"] .display { font-size: clamp(44px, 6vw, 104px); }
html[data-type="a"] .story__title { font-size: clamp(64px, 11vw, 190px); }
html[data-type="a"] .footer__mark { font-size: clamp(48px, 9.4vw, 172px); }
html[data-type="a"] .index__title { font-size: clamp(28px, 3vw, 48px); line-height: 0.95; }
/* Italic phrases inside capital headlines switch to the book serif, as on Mosby. */
html[data-type="a"] :is(.hero__title, .display, .story__title, .contribute__title, .footer__mark) em {
  font-family: var(--serif);
  font-stretch: 100%;
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.02em;
}
html[data-type="a"] :is(.stat__v, .tile__year, .wall__era-year, .era-row__year) { font-stretch: 68%; font-weight: 700; letter-spacing: -0.01em; }
html[data-type="a"] :is(.intro__statement, .dossier__lede, .player__quote, .chapter__quote p) { font-weight: 300; }
html[data-type="a"] :is(.chapter h3, .player__title, .card__title, .record__title, .newsletter__title) { font-weight: 400; letter-spacing: -0.015em; }

/* B · Book & Typewriter — after PD Image Archive (Alegreya) and 197 Historias
   (typewritten mono): a calligraphic book serif family throughout, with a real
   typewriter face for catalogue labels. */
html[data-type="b"] {
  --display: "Alegreya", Georgia, serif;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --mono: "Cutive Mono", "Courier New", monospace;
}
html[data-type="b"] body { font-size: 18px; }
html[data-type="b"] :is(.hero__title, .display, .story__title, .contribute__title, .footer__mark) { font-weight: 500; letter-spacing: -0.02em; line-height: 0.98; }
html[data-type="b"] .hero__title { font-size: clamp(50px, 7vw, 122px); }
html[data-type="b"] :is(.hero__title, .display, .story__title, .contribute__title, .footer__mark) em { font-weight: 400; }
html[data-type="b"] :is(.eyebrow, .search__label, .stat__k, .tile__label, .folder__body, .dossier__series, .dossier__dl, .player__meta, .player__facts, .index__meta, .card__k, .record__ref, .footer__bottom) { letter-spacing: 0.04em; font-weight: 400; }
html[data-type="b"] .eyebrow { font-size: 13px; }

/* Type switcher in the prototype badge */
.proto__type { display: flex; gap: 2px; padding: 2px; background: rgba(255,255,255,.08); border-radius: 2px; }
.proto__type button { background: transparent; color: var(--on-night); }
.proto .proto__type button[aria-pressed="true"] { background: #fff; color: #1f1f1e; }
.proto { color: #f4f3ef; }

.proto { flex-wrap: wrap; max-width: calc(100vw - 16px); }
html[data-type="b"] .eyebrow--light { color: #cfcec8; }
html[data-type="b"] .eyebrow { font-size: 13.5px; }
