/* Inventor Files: the archive look. Brand colours from channel/CHANNEL.md. */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-var.woff2") format("woff2"), url("/fonts/montserrat-var.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b0908;
  --ink-2: #13100d;
  --ink-3: #1c1814;
  --line: #2c261f;
  --cream: #f3d9a4;
  --text: #ece4d2;
  --muted: #a59a86;
  --red: #ff3346;
  --red-deep: #d81f33;
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", "Consolas", "Courier New", monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 18px/1.65 var(--serif);
  overflow-x: hidden;
}
/* Film grain over everything, very light. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
.label, .meta {
  font: 600 .72rem/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 .8em;
}
.label.red { color: var(--red); }
.meta { color: var(--muted); letter-spacing: .12em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text); max-width: 60ch; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: .35em 0; }
ul.plain a { text-decoration: none; color: var(--text); }
ul.plain a:hover { color: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  padding: 1em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn-sm { padding: .7em 1.1em; font-size: .72rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.more { font: 700 .8rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--red); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 8, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.brand b { color: var(--red); font-weight: 900; }
.brand img { width: 22px; height: auto; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-color: var(--red); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 78% 40%, rgba(255, 51, 70, .14), transparent 70%),
              radial-gradient(50% 60% at 10% 0%, rgba(243, 217, 164, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 .red { display: block; }
.facts { display: flex; gap: clamp(20px, 4vw, 44px); margin: 2em 0 0; padding-top: 1.4em; border-top: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { font: 900 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); color: var(--cream); }
.facts dd { margin: .3em 0 0; font: 600 .7rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero-stack { position: relative; height: clamp(420px, 44vw, 560px); }
.stack-item {
  position: absolute; top: 50%; left: 50%; width: 52%;
  border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(243, 217, 164, .12);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.stack-item img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.stack-item.s0 { z-index: 3; transform: translate(-50%, -50%) rotate(0deg); }
.stack-item.s1 { z-index: 2; transform: translate(-100%, -46%) rotate(-7deg) scale(.88); filter: brightness(.6); }
.stack-item.s2 { z-index: 1; transform: translate(0%, -46%) rotate(7deg) scale(.88); filter: brightness(.6); }
.hero-stack:hover .s1 { transform: translate(-108%, -47%) rotate(-9deg) scale(.88); }
.hero-stack:hover .s2 { transform: translate(8%, -47%) rotate(9deg) scale(.88); }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.tight { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.sub-head { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream); margin: 40px 0 18px; }
.page-head { padding: clamp(44px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { max-width: 20ch; }
.page-head.center h1, .page-head.center .lead { margin-left: auto; margin-right: auto; }

/* Short cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px; }
.card a { display: block; text-decoration: none; }
.card-img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(243, 217, 164, .08); margin-bottom: 12px; }
.card-img img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s; filter: saturate(.92); }
.card a:hover .card-img img { transform: scale(1.04); filter: saturate(1.05); }
.card-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; border-radius: var(--radius); transition: box-shadow .2s; }
.card a:hover .card-img::after, .card a:focus-visible .card-img::after { box-shadow: inset 0 0 0 2px var(--red); }
.card .meta { margin-bottom: .35em; font-size: .66rem; }
.card-person { margin: 0 0 .25em; color: #fff; font-size: 1rem; }
.card-headline { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Documentary cards */
.docs-band { background: linear-gradient(180deg, var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.doc-card a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 0 0 1px rgba(243, 217, 164, .1); }
.doc-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.doc-card a:hover img { transform: scale(1.03); }
.doc-copy { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(11, 9, 8, .94) 55%); }
.doc-copy h3 { font-size: 1.3rem; margin: 0 0 .2em; }
.doc-copy p:last-child { margin: 0; color: var(--text); font-size: .95rem; }
.doc-copy .meta { margin-bottom: .4em; color: var(--cream); }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.theme-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 110px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  background: var(--ink-2); transition: border-color .2s, background .2s;
}
.theme-tile span { font: 800 1.05rem/1.2 var(--display); color: #fff; }
.theme-tile small { font: 600 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.theme-tile:hover { border-color: var(--red); background: var(--ink-3); }

/* Method */
.method { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 64px; color: var(--muted); }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: -.1em; font: 900 1.9rem/1 var(--display); color: var(--red); }
.steps b { display: block; color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: .2em; }
.stamp {
  display: inline-block; margin-bottom: 18px; padding: .35em .8em;
  font: 900 .9rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); border: 3px solid var(--red); border-radius: 4px; transform: rotate(-6deg);
  opacity: .85; mix-blend-mode: screen;
}

/* Newsletter */
.newsletter {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: 10px;
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 51, 70, .16), transparent 60%), var(--ink-3);
  border: 1px solid var(--line);
}
.nl-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.nl-copy p:last-child { margin: 0; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-form input {
  flex: 1 1 220px; min-width: 0; padding: 1em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ink); color: var(--text); font: 1rem var(--serif);
}
.nl-form input::placeholder { color: #6f6656; }
.nl-note { flex-basis: 100%; margin: 0; min-height: 1.2em; }
.newsletter.compact { grid-template-columns: 1fr 1fr; }

/* Episode page */
.episode { padding: clamp(28px, 5vw, 64px) 0 24px; }
.ep-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.is-doc .ep-grid { grid-template-columns: 1fr; }
.is-doc .ep-media { max-width: 960px; }
.is-doc .ep-copy { max-width: 760px; }
.ep-media { position: sticky; top: 88px; }
.is-doc .ep-media { position: static; }
.poster { border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(243, 217, 164, .12); background: #000; }
.poster img { width: 100%; }
.poster iframe { display: block; width: 100%; border: 0; }
.watch { margin-top: 16px; display: grid; gap: 8px; }
.watch .btn { width: 100%; }
.ep-copy h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.ep-person { display: block; color: var(--cream); font-size: .5em; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .45em; }
.ep-headline { display: block; }
.hook {
  margin: 0 0 1.6em; padding: .2em 0 .2em 1em; border-left: 3px solid var(--red);
  font: italic 1.25rem/1.5 var(--serif); color: #fff;
}
.prose p { color: var(--text); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose a { color: var(--cream); }
.chapters { list-style: none; padding: 0; margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.chapters li { padding: .55em 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.chapters .t { display: inline-block; width: 4.2em; font: 600 .8rem var(--mono); color: var(--red); }
.ep-themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0; }
.credits { margin-top: 1.6em; border-top: 1px solid var(--line); padding-top: 1em; }
.credits summary { cursor: pointer; font: 700 .78rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.credits ul { padding-left: 1.1em; margin: 1em 0 0; }
.credits li { font-size: .84rem; line-height: 1.55; color: var(--muted); margin-bottom: .6em; word-break: break-word; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font: 800 1rem/1.2 var(--display); color: #fff; }
.pager a:hover { border-color: var(--red); }
.pager small { display: block; font: 600 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.pager .next { text-align: right; }

/* Filters */
.filters { display: grid; gap: 14px; margin-bottom: 8px; }
.search input {
  width: 100%; padding: .95em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ink-2); color: var(--text); font: 1rem var(--serif);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 700 .72rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .75em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.empty { padding: 40px 0; }

/* About / contact */
.checks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checks li { position: relative; padding-left: 1.8em; margin-bottom: 1em; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.checks b { color: #fff; }
.name-cloud { font: 700 1.05rem/2 var(--display); color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.contact-card p { font-size: .95rem; }
.big-link { font: 800 1.1rem var(--display); color: var(--cream); word-break: break-all; }
.todo { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 140px 1.6fr 1fr 1fr; gap: 32px; }
.footer-seal { width: 120px; opacity: .9; }
.footer-tag { font: 800 1.1rem/1.3 var(--display); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Tablet */
@media (max-width: 900px) {
  .hero-grid, .method-grid, .newsletter, .newsletter.compact { grid-template-columns: 1fr; }
  .hero-stack { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ep-grid { grid-template-columns: minmax(220px, 300px) 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .header-row { height: auto; flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .header-cta { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 10px; justify-content: space-between; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: none; }
  .main-nav a { font-size: .66rem; letter-spacing: .05em; }
  .main-nav::-webkit-scrollbar { display: none; }
  .hero-stack { height: 360px; }
  .stack-item { width: 58%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .card-person { font-size: .92rem; }
  .card-headline { font-size: .84rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-copy { padding: 40px 14px 12px; }
  .doc-copy h3 { font-size: 1.05rem; }
  .doc-copy p:last-child { font-size: .85rem; }
  .ep-grid { grid-template-columns: 1fr; }
  .ep-media { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .is-doc .ep-media { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .pager a { padding: 14px; font-size: .9rem; }
  .steps li { padding-left: 52px; }
  .facts { gap: 18px; }
}

/* Books (Amazon affiliate) */
.reading { margin: 2em 0 1.4em; }
.books { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.book a {
  display: flex; gap: 16px; padding: 16px 18px 16px 0; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: border-color .2s, background .2s;
}
.book a:hover { border-color: var(--cream); background: var(--ink-3); }
.book-spine { flex: 0 0 10px; border-radius: var(--radius) 0 0 var(--radius); margin: -16px 0 -16px 0; background: linear-gradient(180deg, var(--red), #8c1422); }
.book-body { display: grid; gap: 3px; min-width: 0; }
.book-title { font: 800 1rem/1.3 var(--display); color: #fff; }
.book-author { font: 600 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.book-note { font-size: .9rem; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.book-cta { font: 700 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: 8px; }
.aff-note { margin-top: .8em; }
.library { display: grid; gap: 40px; }
.shelf-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.shelf-head img { width: 56px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(243, 217, 164, .12); }
.shelf-head h2 { margin: 0 0 .2em; font-size: 1.3rem; }
.shelf-head h2 a { text-decoration: none; }
.shelf-head h2 a:hover { color: var(--cream); }
.shelf-head .meta { margin: 0; }

/* Explore: the 3D archive room */
body.explore .site-footer { display: none; }
body.explore::after { z-index: 5; }
.explore-stage { position: relative; height: calc(100svh - 65px); min-height: 480px; overflow: hidden; background: var(--ink); }
.explore-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.explore-loading {
  position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--ink); transition: opacity .7s;
}
.explore-loading img { animation: flicker 1.6s infinite; }
.explore-loading.done { opacity: 0; pointer-events: none; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 50% { opacity: .9; } 55% { opacity: .4; } }
.explore-bar {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; gap: 16px;
  padding: 18px var(--gutter); background: linear-gradient(rgba(11, 9, 8, .85), transparent); pointer-events: none;
}
.explore-bar > * { pointer-events: auto; }
.explore-bar > div:first-child { margin-right: auto; max-width: 420px; }
.explore-title { font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 0 0 .2em; }
.explore-bar p { margin: 0; }
.explore-search { position: relative; display: flex; align-items: center; gap: 8px; }
.explore-search input {
  width: 220px; padding: .7em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(19, 16, 13, .85); color: var(--text); font: .95rem var(--serif);
}
.explore-search span { position: absolute; right: 14px; color: var(--cream); pointer-events: none; }
.dossier {
  position: absolute; z-index: 15; top: 84px; right: var(--gutter); width: min(380px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px;
  background: rgba(19, 16, 13, .94); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 60px -20px #000; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(12px); opacity: 0; transition: transform .25s, opacity .25s;
}
.dossier.open { transform: none; opacity: 1; }
.dossier img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; }
.dossier img.wide { aspect-ratio: 16 / 9; grid-column: 1 / -1; }
.dossier img.wide + .dossier-copy { grid-column: 1 / -1; }
.dossier h2 { font-size: 1.25rem; margin: 0 0 .3em; }
.dossier .meta { margin-bottom: .4em; }
.dossier-headline { font-size: .95rem; color: var(--text); margin-bottom: .8em; }
.dossier .hook { font-size: .92rem; margin-bottom: 1em; }
.dossier .btn { width: 100%; }
.dossier-close {
  position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.dossier-close:hover { color: #fff; }
.explore-nowebgl { position: absolute; inset: 0; display: grid; place-content: center; padding: var(--gutter); text-align: center; z-index: 25; background: var(--ink); }
.explore-nowebgl a { color: var(--cream); }

@media (max-width: 640px) {
  .explore-stage { height: calc(100svh - 92px); }
  .explore-bar { flex-wrap: wrap; gap: 10px; padding-top: 12px; }
  .explore-bar > div:first-child { flex-basis: 100%; }
  .explore-search { flex: 1; }
  .explore-search input { width: 100%; }
  .dossier { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; grid-template-columns: 84px 1fr; padding: 14px; gap: 12px; }
  .dossier .hook { display: none; }
  .dossier h2 { font-size: 1.05rem; }
  .dossier-headline { font-size: .85rem; }
}

/* Fact check */
.factcheck { position: relative; margin: 2em 0; padding: 22px 22px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.factcheck h2 { font-size: 1.25rem; margin-bottom: .8em; }
.factcheck h3 { font: 700 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin: 1.2em 0 .6em; }
.facts-list { margin: 0; padding: 0; list-style: none; }
.facts-list li { position: relative; padding-left: 1.6em; margin-bottom: .7em; font-size: .95rem; line-height: 1.55; }
.facts-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.facts-list.uncertain li::before { content: "?"; color: var(--cream); font-family: var(--display); }
.facts-list.sources li { color: var(--muted); font-size: .88rem; }
.facts-list.sources li::before { content: "§"; color: var(--muted); }
.factcheck a { color: var(--cream); }
.stamp-sm {
  position: absolute; top: 14px; right: 16px; margin: 0; padding: .3em .6em; font: 900 .7rem/1 var(--display);
  letter-spacing: .18em; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); border-radius: 3px; transform: rotate(6deg); opacity: .8;
}

/* Legal pages */
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p { color: var(--text); }
.footer-bottom a { color: inherit; }

/* ---- Cinematic page transitions (cross-document View Transitions; ignored by older browsers) ---- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.poster img { view-transition-name: poster; }
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .7, .2, 1) .08s both; }
::view-transition-group(poster) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(poster), ::view-transition-new(poster) { height: 100%; object-fit: cover; }
::view-transition-group(site-header) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: brightness(.5); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: brightness(1.6) sepia(.4); } }

/* ---- Scroll reveal (only below-the-fold elements get .reveal, added by site.js) ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.section-head.reveal h2 { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1) .1s; }
.section-head.reveal.in h2 { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .reveal, .section-head.reveal h2 { opacity: 1; transform: none; clip-path: none; }
}

/* ---- Hero bulb (hero-bulb.js adds .has-bulb once WebGL is running) ---- */
.bulb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.hero-stack.has-bulb { height: clamp(520px, 50vw, 640px); cursor: default; }
.hero-stack.has-bulb::before {
  content: ""; position: absolute; left: 50%; top: 38%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 196, 120, .22), rgba(255, 51, 70, .07) 55%, transparent);
  opacity: var(--lit, 0); pointer-events: none; z-index: 0;
}
.has-bulb .stack-item { top: 68%; width: 40%; }
.has-bulb .stack-item img { filter: brightness(calc(.28 + .72 * var(--lit, 0))); transition: none; }
@media (max-width: 900px) { .hero-stack.has-bulb { height: 560px; } }
@media (max-width: 640px) { .hero-stack.has-bulb { height: 480px; } .has-bulb .stack-item { width: 46%; top: 70%; } }
.sound-toggle span::before { content: "♪ "; }
.sound-toggle[aria-pressed="true"] { border-color: var(--cream); color: var(--cream); }

/* ---- Media kit ---- */
.kit-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 12px; }
.kit-stats div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); margin: 0; }
.kit-stats dt { font: 900 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); color: var(--cream); }
.kit-stats dd { margin: .5em 0 0; font: 600 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kit-offers { margin: 0 0 1.5em; }
.kit-offers h3 { margin: 0 0 .5em; color: var(--cream); }
@media (max-width: 640px) { .kit-stats { grid-template-columns: 1fr; } }
