/* Gradient Damage: shared stylesheet for every page.
   No scripts and no third-party requests. Fonts are served from this folder.
   Anton (c) The Anton Project Authors and IBM Plex Mono (c) IBM Corp., both under the SIL Open Font License 1.1. */

@font-face { font-family: "Anton"; src: url("anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("plex-mono-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* the channel's palette: luminous line colours on black */
  --ink: #050608;
  --ink-2: #0b0d12;
  --ink-3: #12151c;
  --rule: #1d222c;
  --rule-2: #2e3542;
  --ivory: #fff9e9;
  --text: #dde2e6;
  --soft: #a9b3bc;
  --dim: #7f8a96;
  --gold: #ffca68;
  --pink: #ff6fb5;
  --purple: #9b7bff;
  --lilac: #b9a4ff;
  --cyan: #55eeff;
  --spectrum: linear-gradient(90deg, var(--gold), var(--pink), var(--purple), var(--cyan));

  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --wrap: 76rem;
  --measure: 41rem;
  --radius: 16px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--purple); color: #fff; }
h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
sup, sub { line-height: 0; font-size: 0.72em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ivory); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* small purple label, as printed at the top of every Short */
.label {
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
}
.label a { color: inherit; text-decoration: none; }
.label a:hover { color: var(--ivory); }
.label .sep { color: var(--dim); margin: 0 0.5em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 6, 8, 0.84);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}
.site-header::after { content: ""; display: block; height: 1px; background: var(--spectrum); opacity: 0.6; }
.site-header .wrap { display: flex; align-items: center; gap: 0.75rem 1.75rem; flex-wrap: wrap; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ivory); text-decoration: none; margin-right: auto; }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.brand-name { font: 400 1.3rem/1 var(--display); letter-spacing: 0.07em; text-transform: uppercase; }
.nav { display: flex; gap: 1.5rem; }
.nav a {
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soft); text-decoration: none; padding: 0.5rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ivory); }
.nav a[aria-current] { color: var(--ivory); border-bottom-color: var(--gold); }
@media (max-width: 700px) {
  .site-header { position: static; }
  .nav { order: 3; width: 100%; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.3rem; border-radius: 999px;
  color: var(--ivory); border: 1px solid var(--rule-2); background: transparent;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--ivory); color: var(--ivory); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #0a0805; }
.btn.primary:hover { background: #ffd88c; border-color: #ffd88c; color: #0a0805; box-shadow: 0 0 0 4px rgba(255, 202, 104, 0.16), 0 14px 40px -12px rgba(255, 202, 104, 0.6); transform: translateY(-1px); }
.btn.small { padding: 0.62rem 0.95rem; font-size: 0.7rem; }
.btn.wide { width: 100%; justify-content: center; }
.btn .tri { width: 0; height: 0; border-style: solid; border-width: 0.36em 0 0.36em 0.6em; border-color: transparent transparent transparent currentColor; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; padding: clamp(2.75rem, 7vw, 6rem) 0 clamp(2.75rem, 6vw, 5rem); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.backdrop { position: relative; overflow: hidden; overflow: clip; }
.backdrop::before {
  /* graph paper, fading out from the top */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 70% 0%, #000 0%, transparent 72%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 26rem at 88% 8%, rgba(155, 123, 255, 0.22), transparent 70%),
    radial-gradient(34rem 22rem at 8% 0%, rgba(85, 238, 255, 0.1), transparent 70%);
}
.backdrop > * { position: relative; z-index: 1; }
.hero h1 {
  font: 400 clamp(3rem, 9.4vw, 6.75rem)/0.93 var(--display);
  text-transform: uppercase; letter-spacing: 0.004em; color: var(--ivory);
  margin: 1.1rem 0 1.5rem; text-wrap: balance;
}
.glow-gold { color: var(--gold); text-shadow: 0 0 34px rgba(255, 202, 104, 0.5); }
.glow-cyan { color: var(--cyan); text-shadow: 0 0 34px rgba(85, 238, 255, 0.45); }
.lede { font: 400 clamp(1.12rem, 2vw, 1.3rem)/1.55 var(--serif); color: var(--text); max-width: 36rem; }
.hero .cta { margin-top: 2rem; }

/* three tilted Shorts posters */
.reel { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; max-width: 34rem; margin: 0 auto; width: 100%; }
.reel a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--rule-2); background: #000; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s; }
.reel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.reel li:nth-child(1) a { transform: rotate(-7deg) translateX(18%) scale(0.86); box-shadow: 0 30px 70px -30px rgba(85, 238, 255, 0.55); }
.reel li:nth-child(2) { position: relative; z-index: 2; }
.reel li:nth-child(2) a { transform: scale(1.08); box-shadow: 0 40px 100px -30px rgba(155, 123, 255, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.reel li:nth-child(3) a { transform: rotate(7deg) translateX(-18%) scale(0.86); box-shadow: 0 30px 70px -30px rgba(255, 111, 181, 0.55); }
.reel li a:hover { transform: translateY(-6px) scale(1.1); position: relative; z-index: 3; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head h2 { font: 400 clamp(1.9rem, 4.6vw, 2.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ivory); margin-top: 0.6rem; }
.section-head p:not(.label) { color: var(--soft); max-width: 34rem; margin-top: 0.75rem; }
.more-link { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); text-decoration: none; white-space: nowrap; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule-2); }
.more-link:hover { color: var(--ivory); border-bottom-color: var(--gold); }

/* ---------- Feature story (home) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 3rem; align-items: center; text-decoration: none; color: inherit; }
@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-2); background: #000; aspect-ratio: 16 / 9; transition: box-shadow 0.25s, border-color 0.25s; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature:hover .feature-media { border-color: var(--gold); box-shadow: 0 30px 80px -30px rgba(255, 202, 104, 0.5); }
.feature h3 { font: 400 clamp(1.9rem, 4.2vw, 3rem)/1 var(--display); text-transform: uppercase; color: var(--ivory); margin: 0.8rem 0 1rem; text-wrap: balance; }
.feature p.standfirst { font: 400 1.12rem/1.55 var(--serif); color: var(--text); }
.feature .read { display: inline-block; margin-top: 1.25rem; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.feature:hover .read { color: var(--ivory); }

/* ---------- Video cards ---------- */
.grid { list-style: none; padding: 0; display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.vcard a { display: block; color: inherit; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--rule); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; right: 8px; bottom: 8px; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.06em; background: rgba(0, 0, 0, 0.8); color: var(--ivory); padding: 5px 7px; border-radius: 6px; }
.vcard a:hover .thumb { border-color: var(--cyan); box-shadow: 0 18px 50px -18px rgba(85, 238, 255, 0.55); transform: translateY(-3px); }
.vcard-title { display: block; margin-top: 0.85rem; font: 600 1rem/1.32 var(--sans); color: var(--ivory); text-wrap: pretty; }
.vcard-meta { display: block; margin-top: 0.45rem; font: 600 0.66rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.vcard a:hover .vcard-title { color: var(--cyan); }

/* wide film cards */
.films { list-style: none; padding: 0; display: grid; gap: 2rem 1.5rem; }
@media (min-width: 800px) { .films { grid-template-columns: 1fr 1fr; } }
.film a { display: block; color: var(--ivory); text-decoration: none; }
.film-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-2); background: #000; transition: border-color 0.2s, box-shadow 0.2s; }
.film-media img { width: 100%; height: 100%; object-fit: cover; }
.film .label { display: block; margin-top: 1.1rem; }
.film-title { display: block; font: 400 clamp(1.45rem, 3vw, 2rem)/1.04 var(--display); text-transform: uppercase; margin-top: 0.5rem; text-wrap: balance; }
.film a:hover .film-media { border-color: var(--pink); box-shadow: 0 30px 80px -30px rgba(255, 111, 181, 0.6); }
.film a:hover .film-title { color: var(--pink); }

/* round play button over a poster */
.play { position: absolute; inset: 0; margin: auto; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: rgba(5, 6, 8, 0.55); border: 2px solid var(--ivory); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 1; transition: transform 0.2s, background 0.2s; }
.play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 0.72rem 0 0.72rem 1.2rem; border-color: transparent transparent transparent var(--ivory); }
a:hover .play { transform: scale(1.08); background: var(--gold); border-color: var(--gold); }
a:hover .play::after { border-left-color: #0a0805; }

/* ---------- Panels (series, subjects) ---------- */
.panels { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.panel { position: relative; display: flex; flex-direction: column; gap: 0.75rem; height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--rule); color: inherit; text-decoration: none; overflow: hidden; transition: border-color 0.2s, background 0.2s; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spectrum); opacity: 0; transition: opacity 0.2s; }
a.panel:hover { border-color: var(--rule-2); background: var(--ink-3); }
a.panel:hover::before { opacity: 1; }
.panel h3 { font: 400 1.55rem/1.05 var(--display); text-transform: uppercase; color: var(--ivory); }
.panel p { color: var(--soft); font-size: 0.98rem; }
.panel .count { margin-top: auto; padding-top: 0.5rem; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.strip img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; width: 100%; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0; margin-top: 1.5rem; font: 600 0.68rem/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin: 0 0.6em; color: var(--rule-2); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }

/* ---------- Story (editorial write-up) ---------- */
.story-head { max-width: 58rem; padding: clamp(1.75rem, 5vw, 3.5rem) 0 0; }
.story-head h1 { font: 400 clamp(2.5rem, 6.8vw, 5rem)/0.97 var(--display); text-transform: uppercase; letter-spacing: 0.004em; color: var(--ivory); margin: 1rem 0 1.5rem; text-wrap: balance; }
.standfirst { font: 400 clamp(1.18rem, 2.3vw, 1.45rem)/1.5 var(--serif); color: var(--text); max-width: 44rem; }
.byline { margin-top: 1.5rem; font: 600 0.7rem/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.byline a { color: var(--soft); text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(255, 202, 104, 0.4); border-radius: 999px; padding: 0.5rem 0.8rem; }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.story-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; margin: clamp(2rem, 5vw, 3.25rem) 0; align-items: start; }
@media (min-width: 860px) { .story-lead { grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); } }

.glance { position: relative; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--rule); overflow: hidden; }
.glance::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spectrum); }
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 1.1rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.stat-n { font: 400 clamp(3.6rem, 10vw, 5.6rem)/0.9 var(--display); color: var(--gold); text-shadow: 0 0 34px rgba(255, 202, 104, 0.5); }
.stat-l { font: 600 0.72rem/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.glance dl { display: grid; gap: 1.15rem; }
.glance dt { font: 600 0.68rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac); }
.glance dd { margin: 0.3rem 0 0; color: var(--text); }

.poster { position: relative; display: block; aspect-ratio: 9 / 16; max-width: 21rem; width: 100%; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--rule-2); box-shadow: 0 50px 110px -40px rgba(155, 123, 255, 0.75); color: var(--ivory); text-decoration: none; transition: box-shadow 0.25s, border-color 0.25s; }
.poster.wide { aspect-ratio: 16 / 9; max-width: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover { border-color: var(--gold); box-shadow: 0 50px 110px -40px rgba(255, 202, 104, 0.7); }
.poster-cta { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(5, 6, 8, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

.story-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 1000px) { .story-body { grid-template-columns: minmax(0, var(--measure)) minmax(13rem, 17rem); justify-content: space-between; } .toc { order: 2; position: sticky; top: 5.5rem; align-self: start; } }
.toc { padding: 1.25rem 0 1.25rem 1.25rem; border-left: 1px solid var(--rule); }
.toc ol { list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.65rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 2rem 1fr; }
.toc li::before { content: counter(toc, decimal-leading-zero); font: 600 0.68rem/1.7 var(--mono); color: var(--dim); }
.toc a { color: var(--soft); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.toc a:hover { color: var(--ivory); }

/* long-form text */
.prose { max-width: var(--measure); font: 400 1.16rem/1.72 var(--serif); color: var(--text); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font: 400 clamp(1.7rem, 4vw, 2.3rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ivory); margin-top: 2.6em; scroll-margin-top: 5.5rem; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .num { display: block; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; color: var(--gold); margin-bottom: 0.8rem; }
.prose h3 { font: 600 1.12rem/1.35 var(--sans); color: var(--ivory); margin-top: 2em; }
.prose strong { color: var(--ivory); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold); }
.formula { padding: 1.5rem 1.25rem; text-align: center; font: 400 clamp(1.05rem, 2.6vw, 1.35rem)/1.6 var(--serif); color: var(--ivory); background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; white-space: nowrap; }
.formula var { font-style: italic; }
blockquote.claim { padding: 1.3rem 1.5rem; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(90deg, rgba(255, 202, 104, 0.09), rgba(255, 202, 104, 0)); color: var(--ivory); }
blockquote.claim footer { margin-top: 0.9rem; font: 600 0.68rem/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.note { padding: 1.1rem 1.3rem; border: 1px solid rgba(255, 111, 181, 0.35); border-radius: var(--radius); background: rgba(255, 111, 181, 0.06); font: 400 1rem/1.6 var(--sans); }
.note strong { color: var(--pink); }

figure.data { overflow-x: auto; }
figure.data table { width: 100%; border-collapse: collapse; font: 600 0.9rem/1 var(--mono); }
figure.data th, figure.data td { padding: 0.75rem 0.7rem; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
figure.data th { color: var(--lilac); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
figure.data th:first-child, figure.data td:first-child { text-align: left; color: var(--soft); }
figure.data td { color: var(--ivory); }
figure.data td.hot { color: var(--gold); text-shadow: 0 0 16px rgba(255, 202, 104, 0.5); }
figcaption { margin-top: 0.8rem; font: 400 0.9rem/1.5 var(--sans); color: var(--dim); }

/* sources */
.sources { list-style: none; padding: 0 !important; display: grid; gap: 0.75rem; font-family: var(--sans); }
.sources li { margin: 0 !important; }
.sources a { display: grid; gap: 0.35rem; padding: 1.05rem 1.2rem; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--rule); text-decoration: none; color: var(--ivory); font-size: 1.02rem; line-height: 1.35; transition: border-color 0.2s; }
.sources a:hover { border-color: var(--cyan); }
.sources span { font: 600 0.66rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--rule); background: var(--ink-2); color: var(--soft); font-size: 0.95rem; }
.site-footer::before { content: ""; display: block; height: 1px; background: var(--spectrum); opacity: 0.45; }
.site-footer .wrap { display: grid; gap: 2rem 3rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); } }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer p { max-width: 32rem; }
.site-footer p + p { margin-top: 0.75rem; }
.site-footer h2 { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.small { font-size: 0.85rem; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reel li a:hover, .vcard a:hover .thumb, .btn.primary:hover { transform: none; }
}

/* ---------- Page heads (hubs, indexes) ---------- */
.page-head { max-width: 58rem; padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { font: 400 clamp(2.5rem, 6.8vw, 4.6rem)/0.97 var(--display); text-transform: uppercase; letter-spacing: 0.004em; color: var(--ivory); margin: 0.8rem 0 1.25rem; text-wrap: balance; }
.page-head .lede { max-width: 44rem; }
.page-head .note { margin-top: 1rem; max-width: 44rem; }
.page-head .cta { margin-top: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }
.chip { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 0.55rem 0.85rem; border: 1px solid var(--rule-2); border-radius: 999px; }
.chip:hover { border-color: var(--gold); color: var(--ivory); }
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.pager a { min-width: 2.6rem; text-align: center; padding: 0.6rem 0.8rem; border: 1px solid var(--rule-2); border-radius: 10px; font: 600 0.8rem/1 var(--mono); color: var(--soft); text-decoration: none; }
.pager a:hover { border-color: var(--gold); color: var(--ivory); }
.pager a[aria-current] { background: var(--gold); border-color: var(--gold); color: #0a0805; }

/* hub sections and result rows */
.hub-section { padding: clamp(2rem, 4vw, 3rem) 0 0; }
.hub-section > h2 { font: 400 clamp(1.7rem, 4vw, 2.4rem)/1 var(--display); text-transform: uppercase; color: var(--ivory); margin-bottom: 1.25rem; scroll-margin-top: 5.5rem; }
.hub-section > h2 a { color: inherit; text-decoration: none; }
.hub-section > h2 a:hover { color: var(--gold); }
.hub-section > h2 .count { font: 600 0.8rem/1 var(--mono); color: var(--gold); margin-left: 0.5rem; vertical-align: middle; }
.note-text { color: var(--soft); max-width: 44rem; margin-bottom: 1.25rem; }
.rows { list-style: none; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 1rem; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--ink-2); color: var(--text); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.row:hover { border-color: var(--rule-2); background: var(--ink-3); color: var(--ivory); }
.row-n { font: 600 0.7rem/1 var(--mono); letter-spacing: 0.1em; color: var(--dim); }
.row-title { font-weight: 600; line-height: 1.35; }
.row-subject { grid-column: 2; font: 600 0.64rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.row-badges { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 6px; justify-self: end; }
.badge { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 0.55rem; border-radius: 6px; border: 1px solid var(--cyan); color: var(--cyan); white-space: nowrap; }
.badge.gold { border-color: var(--gold); color: var(--gold); }
.badge.dim { border-color: var(--rule-2); color: var(--dim); }
@media (max-width: 600px) { .row { grid-template-columns: 2.4rem minmax(0, 1fr); } .row-badges { grid-column: 2; grid-row: auto; justify-self: start; } }
.panels.subjects .panel { gap: 0.4rem; padding: 1.2rem 1.3rem; }
.panels.subjects h3 { font-size: 1.3rem; }
.subject-links { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.subject-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 10px; color: var(--text); text-decoration: none; background: var(--ink-2); }
.subject-links a:hover { border-color: var(--gold); color: var(--ivory); }
.subject-links .count { font: 600 0.72rem/1.4 var(--mono); color: var(--gold); }
.story-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0.75rem; }
.story-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.story-list a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.story-list a:hover { color: var(--gold); }

/* ---------- Embedded player ---------- */
.player { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.player .frame { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-2); box-shadow: 0 50px 110px -40px rgba(155, 123, 255, 0.6); }
.player .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.wide .frame { aspect-ratio: 16 / 9; }
.player.short .frame { aspect-ratio: 9 / 16; max-width: 22rem; margin: 0 auto; }
.player figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; margin-top: 0.8rem; font: 600 0.68rem/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.player figcaption a { color: var(--gold); text-decoration: none; }
.player figcaption a:hover { color: var(--ivory); }
.story-lead .player { margin: 0; }
.story-lead .player.short .frame { max-width: 21rem; }
.lead-card { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--rule); background: var(--ink-2); }
.lead-card h2 { font: 600 1.15rem/1.35 var(--sans); margin: 0.6rem 0 0.4rem; }
.lead-card h2 a { color: var(--ivory); text-decoration: none; }
.lead-card h2 a:hover { color: var(--gold); }
.lead-card .small { margin-top: 1rem; }

/* ---------- Video page ---------- */
.video-page .cta { margin-top: 1.5rem; }
.video-body { max-width: var(--measure); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.block { margin-top: clamp(2rem, 4vw, 2.75rem); }
.block > h2, .transcript summary h2 { font: 400 clamp(1.5rem, 3.6vw, 2rem)/1.02 var(--display); text-transform: uppercase; color: var(--ivory); margin-bottom: 1rem; }
.desc { font: 400 1.08rem/1.65 var(--sans); }
.desc p + p { margin-top: 1em; }
.desc a { overflow-wrap: anywhere; }
.chapters { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.chapters li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.chapters a { font: 600 0.78rem/1.7 var(--mono); color: var(--gold); text-decoration: none; }
.chapters a:hover { color: var(--ivory); }
.about-problem h3 { font: 400 clamp(1.3rem, 3vw, 1.7rem)/1.1 var(--display); text-transform: uppercase; margin: 0.6rem 0 1rem; }
.about-problem h3 a { color: var(--ivory); text-decoration: none; }
.about-problem h3 a:hover { color: var(--gold); }
.about-problem .claim { margin-bottom: 1.2rem; font: 400 1.08rem/1.65 var(--serif); }
.transcript summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary h2 { margin: 0; }
.transcript summary h2::after { content: " +"; color: var(--gold); }
.transcript[open] summary h2::after { content: " −"; }
.transcript-body { margin-top: 1.25rem; font: 400 1.02rem/1.7 var(--serif); }
.transcript-body p + p { margin-top: 0.9em; }
.transcript-body a { font: 600 0.72rem/1 var(--mono); color: var(--gold); text-decoration: none; margin-right: 0.3rem; }
.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topics span { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding: 0.5rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; }
.story-body.single { grid-template-columns: minmax(0, 1fr); }
.story-body.single .prose { max-width: 48rem; }
.prose .paper-list { list-style: none; padding: 0; display: grid; gap: 1rem; font-family: var(--sans); }
.prose .paper { padding: 1.2rem 1.3rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); }
.prose .paper h3 { margin: 0 0 0.3rem; font-size: 1.12rem; }
.prose .paper h3 a { color: var(--ivory); text-decoration: none; }
.prose .paper h3 a:hover { color: var(--gold); }
.paper-meta { margin: 0; font: 600 0.68rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.paper-meta a { color: var(--gold); text-decoration: none; }
.prose .abstract { margin-top: 0.9rem; font: 400 1.02rem/1.65 var(--serif); color: var(--text); }
.prose .rows { font-family: var(--sans); padding: 0; }
.prose .rows li { margin: 0; }
.problem .block { max-width: 48rem; }
.problem .block > h2 { font: 400 clamp(1.5rem, 3.6vw, 2rem)/1.02 var(--display); text-transform: uppercase; color: var(--ivory); margin-bottom: 1rem; }
.problem .related { padding-bottom: 3rem; }
.problem > .block:last-child { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.about .label { margin-bottom: 0.5rem; }
.about h1 { font: 400 clamp(2.5rem, 6.8vw, 4.6rem)/0.97 var(--display); text-transform: uppercase; color: var(--ivory); margin: 0.5rem 0 1rem; }
.about { padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(2rem, 5vw, 3.5rem); }

/* compilations: a problem embedded at its chapter */
.chapter-note { margin-top: 0.9rem; font: 600 0.7rem/1.7 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.chapter-note a { color: var(--gold); text-decoration: none; }
.chapter-note a:hover { color: var(--ivory); }
.chapters li > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.chapters li > span > a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.chapters li > span > a:hover { color: var(--gold); }
