/* ==========================================================================
   Nectar of Time — night library lit by honey
   ========================================================================== */
:root {
  --night: #0f0611;
  --night-2: #160a1a;
  --night-3: #1f1024;
  --night-4: #2a1531;
  --honey: #f4a640;
  --honey-hi: #ffcf7a;
  --honey-lo: #b8701f;
  --ember: #e0782f;
  --cream: #f3ebdf;
  --paper: #efe5d4;
  --paper-2: #e6d9c3;
  --ink: #2a1820;
  --ink-2: #5e4651;
  --ink-3: #8a7380;
  --mist: rgba(243, 235, 223, 0.78);
  --mist-2: rgba(243, 235, 223, 0.55);
  --mist-3: rgba(243, 235, 223, 0.32);
  --line: rgba(243, 235, 223, 0.12);
  --line-2: rgba(244, 166, 64, 0.28);

  /* hall colours, on night */
  --c-theme: #ffcf7a;
  --c-book: #9fd3a8;
  --c-person: #8fb7ff;
  --c-concept: #f08a6b;
  --c-quote: #f2a6c4;
  --c-insight: #7fd6cc;
  --c-anecdote: #dcb68a;
  --c-practice: #c6dc7a;
  --c-work: #c49cf0;
  --c-place: #a9b6c4;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --inscription: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

.paper {
  --c-theme: #a8670c;
  --c-book: #2f7a4a;
  --c-person: #2f5fa3;
  --c-concept: #b24b33;
  --c-quote: #a3456d;
  --c-insight: #1f7f77;
  --c-anecdote: #8a6034;
  --c-practice: #5b7a14;
  --c-work: #7a4aa8;
  --c-place: #586878;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--honey); color: var(--night); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--honey); color: var(--night); padding: 8px 14px; border-radius: 99px; }

/* ---------- type ---------- */
.eyebrow {
  font: 500 12px/1.2 var(--inscription);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 18px;
}
.eyebrow .dot { opacity: .5; margin-inline: .4em; }
.eyebrow .nw { white-space: nowrap; }
.inscription { letter-spacing: .42em; }
.h1, .h2 { font-family: var(--display); font-weight: 300; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.4vw, 92px); }
.h2 { font-size: clamp(32px, 4.2vw, 58px); }
.h1 em, .h2 em, .hero-title em { font-style: italic; color: var(--honey-hi); }
.lede { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.45; color: var(--mist); max-width: 36ch; margin: 24px 0 0; }

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .005em;
  color: var(--honey);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(244, 166, 64, .55), 0 0 42px rgba(224, 120, 47, .35);
  white-space: nowrap;
}
.wordmark i { font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 28px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s, border-color .3s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-honey { background: linear-gradient(180deg, var(--honey-hi), var(--honey)); color: #2a1206; box-shadow: 0 0 0 1px rgba(255, 207, 122, .4), 0 10px 40px -8px rgba(244, 166, 64, .6); }
.btn-honey:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 207, 122, .6), 0 16px 50px -6px rgba(244, 166, 64, .8); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--honey-hi); }
.btn-ghost:hover { border-color: var(--honey); background: rgba(244, 166, 64, .08); transform: translateY(-2px); }
.btn-ghost svg { fill: currentColor; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #3d2430; transform: translateY(-2px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--mist); transition: border-color .3s, color .3s, background .3s; flex: none; }
.icon-btn:hover { border-color: var(--honey); color: var(--honey-hi); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(15, 6, 17, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); padding-block: 12px; border-color: var(--line); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); }
.nav-links a { font-size: 15px; color: var(--mist); text-decoration: none; position: relative; transition: color .3s; }
.nav-links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--honey); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--cream); }
.pill { border: 1px solid var(--line-2); padding: 10px 22px; border-radius: 999px; color: var(--honey-hi) !important; }
.pill:hover { background: rgba(244, 166, 64, .1); border-color: var(--honey); }
/* backdrop-filter would make the nav the containing block for the fixed menu overlay */
.nav .wordmark { position: relative; z-index: 2; }
.nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 72% 42%, rgba(224, 120, 47, .20), transparent 70%),
    radial-gradient(40% 40% at 70% 42%, rgba(255, 207, 122, .12), transparent 70%),
    radial-gradient(80% 60% at 10% 100%, rgba(86, 28, 96, .45), transparent 70%),
    var(--night);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--night)); z-index: -1; }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.astrolabe {
  position: absolute; z-index: -2;
  width: min(760px, 110vw); aspect-ratio: 1;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  opacity: .5;
  pointer-events: none;
}
.astrolabe svg { width: 100%; height: 100%; overflow: visible; }
.astrolabe .ring { fill: none; stroke: var(--honey); stroke-width: .6; opacity: .5; }
.astrolabe .ring.faint { opacity: .22; }
.astrolabe .tick { stroke: var(--honey); stroke-width: .7; opacity: .45; }
.astrolabe .glyph { fill: var(--honey); font: 400 13px var(--inscription); opacity: .55; }
.astrolabe .spin { transform-origin: 500px 500px; animation: spin 240s linear infinite; }
.astrolabe .spin.rev { animation-duration: 360s; animation-direction: reverse; }
.astrolabe .spin.slow { animation-duration: 520s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* centred: the flask and its altar above, the words beneath */
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: max(56svh, 440px); padding-bottom: 72px; }

/* 3D nectar: drawn on black and screen-blended, so only its light lands on the page */
.nectar3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; mix-blend-mode: screen; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero.has-3d .nectar3d { opacity: 1; }
.hero.has-3d .astrolabe { display: none; }
/* With the 3D scene the potion is the only light: true black, a vignette, nothing else glowing. */
.hero.has-3d { background: #030104; }
.hero.has-3d .motes { display: none; }
.hero.has-3d::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, transparent 40%, rgba(3, 1, 4, .55) 75%, #030104 100%),
    linear-gradient(to bottom, rgba(3, 1, 4, .6), transparent 18%);
}
.hero.has-3d .hero-inner, .hero.has-3d .scroll-cue { position: relative; z-index: 1; }
.hero.has-3d .scroll-cue { position: absolute; }
.hero.has-3d .eyebrow { color: rgba(244, 166, 64, .72); letter-spacing: .34em; }
.hero.has-3d .hero-title { color: rgba(243, 235, 223, .86); text-shadow: 0 0 60px rgba(0, 0, 0, .9); }
.hero.has-3d .hero-title em { color: #e9a85a; text-shadow: 0 0 34px rgba(224, 120, 47, .28); }
.hero.has-3d .hero-lede { color: var(--mist-2); }
.hero.has-3d .hero-lede a { color: var(--mist); text-decoration-color: rgba(244, 166, 64, .35); }
.hero.has-3d .btn-honey { background: rgba(244, 166, 64, .1); color: var(--honey-hi); box-shadow: inset 0 0 0 1px rgba(255, 207, 122, .45), 0 0 40px -10px rgba(244, 166, 64, .45); }
.hero.has-3d .btn-honey:hover { background: rgba(244, 166, 64, .18); box-shadow: inset 0 0 0 1px rgba(255, 207, 122, .7), 0 0 50px -8px rgba(244, 166, 64, .6); }
.hero.has-3d .btn-ghost { color: var(--mist); border-color: var(--line); }
.hero.has-3d .btn-ghost:hover { color: var(--cream); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.hero.has-3d::after { background: linear-gradient(transparent, var(--night)); height: 22%; }
.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0;
}
.hero-title .line { display: block; }
.hero-title em { font-weight: 300; text-shadow: 0 0 40px rgba(244, 166, 64, .45); }
.hero-lede { font-family: var(--display); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--mist); max-width: 32em; margin: 24px auto 0; }
.hero-lede a { color: var(--honey-hi); text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--honey); animation: drip 2.6s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- ledger ---------- */
.ledger { padding-block: 24px 40px; }
.ledger dl { margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); }
.ledger div { padding: 26px 8px; text-align: center; position: relative; }
.ledger div + div::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line); }
.ledger dt { font: 500 11px/1 var(--inscription); letter-spacing: .24em; text-transform: uppercase; color: var(--mist-2); margin-top: 10px; }
.ledger dd { margin: 0; font: 300 clamp(34px, 3.6vw, 52px)/1 var(--display); color: var(--honey-hi); font-variant-numeric: lining-nums; }
.ledger div { display: flex; flex-direction: column-reverse; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.episodes { padding-block: clamp(60px, 9vw, 120px) clamp(80px, 10vw, 140px); }
.section-head { margin-bottom: 28px; }
.archive-head { margin-top: clamp(90px, 11vw, 150px); margin-bottom: 44px; display: flex; flex-direction: column; }

/* ---------- feature ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.arch {
  position: relative;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--night-3);
  isolation: isolate;
  box-shadow: 0 40px 120px -30px rgba(224, 120, 47, .45), 0 0 0 1px rgba(255, 207, 122, .18);
}
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(255, 207, 122, .35); pointer-events: none; z-index: 2; }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.feature .arch { cursor: pointer; }
.arch.wide { aspect-ratio: 16 / 9.6; border-radius: 50% 50% 18px 18px / 26% 26% 18px 18px; }
.arch.wide .play { left: 28px; top: auto; bottom: 28px; margin: 0; width: 68px; height: 68px; }
.arch.wide .play svg { width: 22px; height: 22px; }
.feature .arch:hover img { transform: scale(1.07); }
.arch .play {
  position: absolute; z-index: 3; left: 50%; top: 56%;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 6, 17, .5);
  border: 1px solid rgba(255, 207, 122, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .5s var(--ease), background .3s;
}
.arch .play svg { width: 28px; height: 28px; fill: var(--honey-hi); margin-left: 4px; }
.arch:hover .play { transform: scale(1.1); background: rgba(244, 166, 64, .3); }
.feat-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 400 13px/1.4 var(--mono); color: var(--mist-2); margin-bottom: 18px; }
.feat-meta b { color: var(--honey); font-weight: 500; }
.feat-title { font: 300 clamp(44px, 5.6vw, 84px)/.98 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.feat-guest { font: italic 400 clamp(22px, 2vw, 28px)/1.3 var(--display); color: var(--honey-hi); margin: 14px 0 0; }
.feat-summary { color: var(--mist); font-size: 17px; line-height: 1.7; margin: 26px 0 0; max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px; color: var(--mist);
  transition: border-color .3s, color .3s, background .3s;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--c-theme)); flex: none; }
.chip:hover { border-color: var(--dot, var(--honey)); color: var(--cream); background: rgba(255, 255, 255, .03); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- episode grid ---------- */
.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px); }
.ep-card { text-align: left; display: block; width: 100%; color: inherit; }
.ep-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--night-3); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .5s, transform .6s var(--ease); }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.ep-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 6, 17, .55)); opacity: .9; transition: opacity .5s; }
.ep-num { position: absolute; z-index: 2; left: 14px; bottom: 12px; font: 500 11px/1 var(--inscription); letter-spacing: .24em; color: var(--honey-hi); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.ep-dur { position: absolute; z-index: 2; right: 12px; bottom: 10px; font: 400 12px/1 var(--mono); color: var(--cream); background: rgba(15, 6, 17, .6); padding: 5px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.ep-card:hover .ep-cover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 207, 122, .45), 0 30px 70px -26px rgba(244, 166, 64, .55); }
.ep-card:hover .ep-cover img { transform: scale(1.06); filter: saturate(1.08); }
.ep-title { font: 400 clamp(24px, 2.1vw, 30px)/1.12 var(--display); margin: 18px 0 6px; transition: color .3s; text-wrap: balance; }
.ep-card:hover .ep-title { color: var(--honey-hi); }
.ep-guest { font-size: 14px; color: var(--mist-2); margin: 0; }
.ep-guest span { color: var(--mist-3); }

/* ---------- scrolls ---------- */
.scrolls { padding-block: clamp(90px, 12vw, 170px); overflow: hidden; text-align: center; background: radial-gradient(50% 70% at 50% 50%, rgba(224, 120, 47, .14), transparent 75%); border-block: 1px solid var(--line); }
.scrolls::before { content: "\201C"; position: absolute; left: 50%; top: 4%; transform: translateX(-50%); font: 400 clamp(220px, 30vw, 420px)/1 var(--display); color: var(--honey); opacity: .07; pointer-events: none; }
.scrolls-inner { display: flex; flex-direction: column; align-items: center; }
.scroll-quote { margin: 0; min-height: 280px; display: flex; flex-direction: column; justify-content: center; max-width: 980px; transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; }
.scroll-quote.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.scroll-quote blockquote { margin: 0; font: italic 300 clamp(28px, 3.7vw, 54px)/1.22 var(--display); color: var(--cream); text-wrap: balance; }
.scroll-quote figcaption { margin-top: 32px; font-size: 15px; color: var(--mist-2); }
.scroll-quote figcaption b { display: block; font: 500 13px/1 var(--inscription); letter-spacing: .24em; text-transform: uppercase; color: var(--honey); margin-bottom: 10px; }
.scroll-quote figcaption button { color: var(--mist); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.scroll-quote figcaption button:hover { color: var(--honey-hi); }
.scroll-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 44px; }

/* ---------- nectarium ---------- */
.nectarium { padding-top: clamp(90px, 12vw, 160px); padding-bottom: clamp(70px, 9vw, 120px); background: radial-gradient(70% 50% at 50% 46%, rgba(86, 28, 96, .5), transparent 70%), var(--night); }
.nect-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.nect-head .lede { max-width: 40ch; }
.constellation-wrap { position: relative; margin-top: clamp(24px, 4vw, 48px); }
#sky { display: block; width: 100%; height: clamp(460px, 74vh, 820px); cursor: crosshair; }
.sky-caption { text-align: center; color: var(--mist-2); font: italic 400 18px/1.5 var(--display); margin: 8px 0 0; padding-inline: var(--gutter); }
.sky-caption .hint { color: var(--mist-3); }
.sky-tip {
  position: absolute; z-index: 3; pointer-events: none;
  min-width: 180px; max-width: 280px;
  padding: 14px 16px;
  background: rgba(22, 10, 26, .92);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transform: translate(-50%, calc(-100% - 18px));
}
.sky-tip b { display: block; font: 400 24px/1.1 var(--display); color: var(--honey-hi); }
.sky-tip span { display: block; font: 400 12px/1.5 var(--mono); color: var(--mist-2); margin-top: 6px; }

.halls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(60px, 8vw, 110px); }
.hall {
  position: relative;
  text-align: left;
  padding: 44px 30px 30px;
  border-radius: 220px 220px 20px 20px;
  background: linear-gradient(180deg, rgba(255, 207, 122, .06), rgba(255, 207, 122, 0) 60%), var(--night-2);
  border: 1px solid var(--line);
  min-height: 360px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s;
}
.hall::before { content: ""; position: absolute; inset: 8px 8px auto; height: 70%; border-radius: 212px 212px 0 0; border: 1px solid rgba(255, 207, 122, .1); border-bottom: 0; pointer-events: none; transition: border-color .4s; }
.hall::after { content: ""; position: absolute; left: 50%; top: -30%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, var(--hc), transparent); opacity: 0; transition: opacity .6s; pointer-events: none; }
.hall:hover { transform: translateY(-6px); border-color: rgba(255, 207, 122, .35); box-shadow: 0 30px 80px -40px var(--hc); }
.hall:hover::after { opacity: .16; }
.hall:hover::before { border-color: rgba(255, 207, 122, .3); }
.hall-num { font: 500 13px/1 var(--inscription); letter-spacing: .3em; color: var(--hc); text-align: center; }
.hall-name { font: 500 clamp(17px, 1.5vw, 20px)/1.3 var(--inscription); letter-spacing: .16em; text-transform: uppercase; text-align: center; margin: 18px 0 6px; color: var(--cream); }
.hall-sub { font: italic 400 19px/1.35 var(--display); text-align: center; color: var(--mist-2); margin: 0; }
.hall-count { font: 300 64px/1 var(--display); text-align: center; color: var(--hc); margin: 26px 0 0; }
.hall-sample { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font: italic 400 17px/1.4 var(--display); color: var(--mist); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- waves ---------- */
.wave { line-height: 0; position: relative; z-index: 1; margin: -1px 0; }
.wave svg { width: 100%; height: clamp(50px, 8vw, 120px); display: block; }
.wave-down { background: var(--paper); }
.wave-down .fill { fill: var(--night); }
.wave-up { background: var(--paper); }
.wave-up .fill { fill: var(--night); }
.wave .edge { fill: none; stroke: var(--honey); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* ---------- catalogue (paper) ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--honey-lo); }
.paper .h1 em { color: var(--honey-lo); }
.catalogue { padding-block: clamp(40px, 6vw, 80px) clamp(70px, 9vw, 120px); }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.search { position: relative; margin-top: 40px; }
.search svg { position: absolute; left: 24px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; }
.search input {
  width: 100%; height: 72px;
  padding: 0 70px 0 62px;
  border-radius: 999px;
  border: 1px solid rgba(42, 24, 32, .16);
  background: var(--cream);
  font: 400 clamp(19px, 1.8vw, 24px) var(--display);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 50px -30px rgba(42, 24, 32, .35);
  transition: border-color .3s, box-shadow .3s;
}
.search input::placeholder { color: var(--ink-3); font-style: italic; }
.search input:focus { outline: none; border-color: var(--honey-lo); box-shadow: 0 0 0 4px rgba(244, 166, 64, .2), 0 20px 50px -30px rgba(42, 24, 32, .35); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--mono); color: var(--ink-3); border: 1px solid rgba(42, 24, 32, .2); border-radius: 6px; padding: 5px 8px; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 24px; margin-top: 24px; align-items: center; }
.filters > * { min-width: 0; max-width: 100%; }
.hall-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hall-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(42, 24, 32, .14);
  font-size: 14px; color: var(--ink-2);
  transition: all .3s;
}
.hall-pill i { font-style: normal; font: 400 12px var(--mono); color: var(--ink-3); }
.hall-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--ink)); }
.hall-pill:hover { border-color: rgba(42, 24, 32, .4); color: var(--ink); }
.hall-pill[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hall-pill[aria-selected="true"] i { color: rgba(243, 235, 223, .6); }
.selects { display: flex; flex-wrap: wrap; gap: 10px; }
.selects label { position: relative; display: flex; align-items: center; height: 38px; border-radius: 999px; border: 1px solid rgba(42, 24, 32, .14); padding-left: 15px; font-size: 14px; }
.selects label span { color: var(--ink-3); margin-right: 4px; font-size: 13px; }
.selects select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 32px 0 4px; height: 100%; color: var(--ink); max-width: 210px; text-overflow: ellipsis; cursor: pointer; }
.selects label::after { content: ""; position: absolute; right: 15px; top: 50%; width: 6px; height: 6px; border-right: 1.4px solid var(--ink-2); border-bottom: 1.4px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.selects select:focus { outline: none; }
.selects label:focus-within { border-color: var(--honey-lo); }
.result-count { font: 400 13px/1 var(--mono); color: var(--ink-3); margin: 34px 0 18px; }

.cards { display: flex; gap: 18px; align-items: flex-start; }
.cards .col { flex: 1 1 0; min-width: 0; }
.card {
  display: block; width: 100%;
  text-align: left;
  margin-bottom: 18px;
  padding: 22px 22px 18px;
  background: var(--cream);
  border-radius: 6px;
  border: 1px solid rgba(42, 24, 32, .09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 30px -24px rgba(42, 24, 32, .5);
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .3s;
  animation: cardIn .6s var(--ease) both;
}
.card::before { /* punched hole of an old index card */
  content: ""; position: absolute; left: 50%; bottom: 8px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(42, 24, 32, .2); opacity: .8;
}
.card:hover { transform: translateY(-3px) rotate(-.25deg); border-color: var(--dot); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 26px 50px -30px rgba(42, 24, 32, .55); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px dashed rgba(42, 24, 32, .16); }
.card-hall { display: inline-flex; align-items: center; gap: 6px; color: var(--dot); font-family: var(--inscription); letter-spacing: .18em; text-transform: uppercase; font-size: 10px; }
.card-hall::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.card h3 { font: 500 24px/1.15 var(--display); margin: 14px 0 0; color: var(--ink); text-wrap: balance; }
.card .by { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.card .quote-text { font: italic 400 21px/1.35 var(--display); color: var(--ink); margin: 14px 0 0; }
.card .desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .eps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-bottom: 12px; }
.card .eps span { font: 400 11px/1 var(--mono); color: var(--ink-2); background: var(--paper); padding: 5px 7px; border-radius: 4px; }
.card mark { background: rgba(244, 166, 64, .35); color: inherit; border-radius: 2px; padding: 0 1px; }
.more { display: flex; justify-content: center; margin-top: 28px; }
.empty { text-align: center; padding: 60px 0; font: italic 400 24px/1.4 var(--display); color: var(--ink-2); }

/* ---------- about ---------- */
.about { padding-block: clamp(90px, 11vw, 160px); background: radial-gradient(60% 60% at 25% 50%, rgba(224, 120, 47, .12), transparent 70%), var(--night); }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.portrait { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 608 / 876; position: relative; box-shadow: 0 40px 120px -40px rgba(224, 120, 47, .5), 0 0 0 1px rgba(255, 207, 122, .2); }
.portrait::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(255, 207, 122, .4); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p:not(.eyebrow):not(.lede) { color: var(--mist); font-size: 17px; line-height: 1.75; max-width: 56ch; }
.musing { margin: 30px 0; padding-left: 24px; border-left: 1px solid var(--honey); font: italic 300 clamp(22px, 2.2vw, 30px)/1.4 var(--display); color: var(--cream); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; }
.about-links a, .foot-cols a { color: var(--honey-hi); text-decoration: none; position: relative; }
.about-links a::after, .foot-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; opacity: .35; transition: opacity .3s; }
.about-links a:hover::after, .foot-cols a:hover::after { opacity: 1; }

/* ---------- footer ---------- */
.footer { padding-block: clamp(80px, 10vw, 140px) 40px; background: linear-gradient(180deg, var(--night), #08030a); border-top: 1px solid var(--line); }
.foot-mark { text-align: center; }
.wordmark.big { font-size: clamp(64px, 12vw, 180px); line-height: 1; margin: 0; text-shadow: 0 0 30px rgba(244, 166, 64, .55), 0 0 90px rgba(224, 120, 47, .45); }
.foot-tag { font: italic 400 clamp(20px, 2vw, 28px)/1.3 var(--display); color: var(--mist); margin: 18px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 40px clamp(48px, 10vw, 160px); margin-top: clamp(60px, 8vw, 100px); }
.foot-cols div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-cols h3 { font: 500 12px/1 var(--inscription); letter-spacing: .26em; text-transform: uppercase; color: var(--mist-2); margin: 0 0 6px; }
.colophon { text-align: center; font: 400 12px/1 var(--mono); color: var(--mist-3); margin: clamp(60px, 8vw, 100px) 0 0; }

/* ---------- drawer (the reading room) ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(8, 3, 10, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0;
  width: min(620px, 100%);
  background: radial-gradient(90% 40% at 100% 0%, rgba(224, 120, 47, .14), transparent 70%), var(--night-2);
  border-left: 1px solid var(--line-2);
  transform: translateX(102%);
  transition: transform .6s var(--ease);
  display: flex; flex-direction: column;
  visibility: hidden;
}
.drawer.on { transform: none; visibility: visible; }
.drawer-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-crumb { flex: 1; font: 500 11px/1.2 var(--inscription); letter-spacing: .24em; text-transform: uppercase; color: var(--mist-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 30px clamp(20px, 4vw, 40px) 60px; }
.drawer-body.swap { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateX(16px); } }
.d-hall { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--inscription); letter-spacing: .24em; text-transform: uppercase; color: var(--dot); }
.d-hall::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 12px var(--dot); }
.d-call { font: 400 12px/1 var(--mono); color: var(--mist-3); margin-left: 12px; letter-spacing: .06em; }
.d-title { font: 400 clamp(36px, 5vw, 52px)/1.04 var(--display); margin: 16px 0 0; letter-spacing: -.01em; text-wrap: balance; }
.d-by { color: var(--honey-hi); font: italic 400 21px/1.3 var(--display); margin: 10px 0 0; }
.d-quote { font: italic 300 clamp(26px, 3.4vw, 34px)/1.3 var(--display); margin: 22px 0 0; color: var(--cream); padding-left: 20px; border-left: 1px solid var(--honey); }
.d-desc { color: var(--mist); font-size: 16px; line-height: 1.75; margin: 20px 0 0; }
.d-sec { margin-top: 38px; }
.d-sec h4 { font: 500 11px/1 var(--inscription); letter-spacing: .26em; text-transform: uppercase; color: var(--mist-2); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.d-sec h4 i { font: 400 11px var(--mono); letter-spacing: 0; font-style: normal; color: var(--mist-3); text-transform: none; }
.appear { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.appear:last-child { border-bottom: 0; }
.appear img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.appear b { display: block; font: 400 20px/1.2 var(--display); color: var(--cream); }
.appear p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--mist-2); }
.appear .ts { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 400 12px/1 var(--mono); color: var(--honey); text-decoration: none; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 999px; }
.appear .ts:hover { background: rgba(244, 166, 64, .12); }
.appear .ts svg { width: 10px; height: 10px; fill: currentColor; }
.appear .open { cursor: pointer; }
.appear .open:hover b { color: var(--honey-hi); }
.links-list { display: flex; flex-wrap: wrap; gap: 8px; }
.links-group + .links-group { margin-top: 18px; }
.links-group > span { display: block; font: italic 400 16px/1 var(--display); color: var(--mist-3); margin-bottom: 10px; }
.mini-quote { display: block; text-align: left; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-quote:last-child { border-bottom: 0; }
.mini-quote q { font: italic 400 21px/1.4 var(--display); color: var(--cream); quotes: "\201C" "\201D"; }
.mini-quote span { display: block; font-size: 13px; color: var(--mist-3); margin-top: 6px; }
.mini-quote:hover q { color: var(--honey-hi); }
.mini-item { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; }
.mini-item b { font: 500 19px/1.25 var(--display); color: var(--cream); }
.mini-item span { display: block; font-size: 14px; line-height: 1.55; color: var(--mist-2); margin-top: 4px; }
.mini-item:hover b { color: var(--honey-hi); }
.player { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(224, 120, 47, .5); }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 6, 17, .55); border: 1px solid rgba(255, 207, 122, .7); backdrop-filter: blur(8px); transition: transform .4s var(--ease), background .3s; }
.player .play svg { width: 26px; height: 26px; fill: var(--honey-hi); margin-left: 4px; }
.player:hover .play { transform: scale(1.08); background: rgba(244, 166, 64, .3); }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tab { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--mist-2); border: 1px solid transparent; }
.tab[aria-selected="true"] { color: var(--cream); border-color: var(--line-2); background: rgba(244, 166, 64, .08); }
.tab i { font-style: normal; font: 400 11px var(--mono); color: var(--mist-3); margin-left: 4px; }

/* ---------- links that used to be buttons ---------- */
a.ep-card, a.card, a.mini-quote, a.mini-item, .appear a.open { text-decoration: none; color: inherit; }
.more-link { display: flex; justify-content: center; margin: clamp(40px, 5vw, 64px) 0 0; }

/* ==========================================================================
   Static pages: episodes and the Nectarium wiki
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(120px, 14vw, 170px) 0 clamp(30px, 4vw, 50px);
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(224, 120, 47, .2), transparent 70%),
    radial-gradient(60% 70% at 0% 100%, rgba(86, 28, 96, .45), transparent 70%),
    var(--night);
  overflow: hidden;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--mist-3); margin-bottom: 30px; }
.crumbs a { color: var(--mist-2); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--honey-hi); }
.crumbs [aria-current] { color: var(--mist-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero .d-hall { margin: 0; }
.page-title { font: 300 clamp(44px, 7vw, 100px)/.98 var(--display); letter-spacing: -.02em; margin: 18px 0 0; max-width: 20ch; text-wrap: balance; }
.page-title em { color: var(--honey-hi); font-style: italic; }
.page-by { font: italic 400 clamp(21px, 2vw, 28px)/1.3 var(--display); color: var(--honey-hi); margin: 16px 0 0; }
.page-by a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.page-quote { margin: 34px 0 0; padding-left: 26px; border-left: 1px solid var(--honey); font: italic 300 clamp(26px, 3.4vw, 46px)/1.25 var(--display); color: var(--cream); max-width: 32ch; text-wrap: balance; }
.page-hero .hero-lede { max-width: 44em; }
.ep-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 70px); align-items: end; }
.ep-hero .page-title { font-size: clamp(42px, 5.6vw, 80px); }
a.player { display: block; }
.hero-search { margin-top: 34px; max-width: 760px; }

.page-body { padding: clamp(20px, 3vw, 40px) 0 clamp(70px, 9vw, 120px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 90px); align-items: start; }
.page-main { max-width: 760px; }
.page-main.wide { max-width: none; columns: 2 380px; column-gap: 56px; }
.page-main.wide .letter { break-after: avoid; }
.page-main.wide .entries { break-before: avoid; }
.page-main.wide .entry { break-inside: avoid; }
.page-main h2, .section-title { font: 400 clamp(30px, 3vw, 42px)/1.1 var(--display); color: var(--ink); margin: 60px 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(42, 24, 32, .14); }
.page-main h2.first, .page-main > h2:first-child { margin-top: 20px; }
.page-main h2 i { font: 400 13px var(--mono); font-style: normal; color: var(--ink-3); vertical-align: middle; margin-left: 6px; }
.page-main h3 { font: 500 11px/1.2 var(--inscription); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin: 34px 0 10px; }
.page-main h3 i { font: 400 11px var(--mono); font-style: normal; letter-spacing: 0; margin-left: 4px; }
.page-main p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.page-main .lead { font: 400 clamp(21px, 2vw, 25px)/1.6 var(--display); color: var(--ink); margin-top: 24px; }
.page-main .note { font-size: 14px; color: var(--ink-3); }
.page-main a, .infobox a { color: var(--ink); text-decoration-color: rgba(184, 112, 31, .45); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.page-main a:hover, .infobox a:hover { color: var(--honey-lo); text-decoration-color: var(--honey-lo); }
.page-main .threads { padding-left: 1.1em; }
.page-main .threads li { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
.page-main strong { color: var(--ink); font-weight: 600; }

.entries { list-style: none; margin: 0; padding: 0; }
.entry { padding: 16px 0; border-bottom: 1px solid rgba(42, 24, 32, .09); }
.entry:last-child { border-bottom: 0; }
.entry > a:first-child { font: 500 22px/1.25 var(--display); text-decoration: none !important; }
.entry.quote > a:first-child { font: italic 400 22px/1.4 var(--display); display: block; }
.entry.quote q { quotes: "\201C" "\201D"; }
.entry-meta { display: block; font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin-top: 6px; }
.entry p { margin: 6px 0 0; font-size: 15px !important; line-height: 1.6 !important; }
.ts-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.entry > .ts-link { margin-top: 10px; }
.ts-link { display: inline-flex; width: max-content; align-items: center; gap: 6px; margin-top: 10px; font: 400 12px/1 var(--mono); color: var(--honey-lo) !important; text-decoration: none !important; padding: 7px 10px; border: 1px solid rgba(184, 112, 31, .35); border-radius: 999px; transition: background .2s; }
.ts-row .ts-link { margin-top: 0; }
.ts-link:hover { background: rgba(244, 166, 64, .14); }
.ts-link svg { width: 10px; height: 10px; fill: currentColor; }
.ts-link.quiet { color: var(--ink-2) !important; border-color: rgba(42, 24, 32, .18); }

.appears { list-style: none; margin: 0; padding: 0; }
.appears li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(42, 24, 32, .09); }
.appears li:last-child { border-bottom: 0; }
.appears img { width: 112px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.appears li > div > a { font: 500 22px/1.2 var(--display); text-decoration: none; }
.appears p { margin: 8px 0 0; font-size: 15px; line-height: 1.65; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.link-list a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(42, 24, 32, .15); background: rgba(255, 255, 255, .25); font-size: 14px; text-decoration: none !important; color: var(--ink-2) !important; transition: border-color .2s, color .2s, background .2s; }
.link-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--honey-lo)); flex: none; }
.link-list a:hover { border-color: var(--dot, var(--honey-lo)); color: var(--ink) !important; background: var(--cream); }

.infobox { position: sticky; top: 96px; background: var(--cream); border: 1px solid rgba(42, 24, 32, .1); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 50px -36px rgba(42, 24, 32, .5); }
.infobox > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.infobox-title { font: 500 24px/1.2 var(--display); color: var(--ink); margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(42, 24, 32, .12); }
.infobox dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.infobox dt { font: 500 10px/1.9 var(--inscription); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.infobox dd { margin: 0; color: var(--ink); }
.infobox dd.mono { font: 400 13px var(--mono); }
.infobox h3 { font: 500 10px/1 var(--inscription); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.infobox .link-list a { font-size: 13px; padding: 5px 11px; }
.toc { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.mini-search { margin-top: 20px; }
.mini-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid rgba(42, 24, 32, .16); background: var(--paper); padding: 0 16px; font: italic 400 17px var(--display); color: var(--ink); }
.mini-search input:focus { outline: none; border-color: var(--honey-lo); }
.theme-index { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; font-size: 14px; }
.theme-index li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; break-inside: avoid; }
.theme-index i { font: 400 11px var(--mono); font-style: normal; color: var(--ink-3); }

.transcript { margin-top: 18px; border: 1px solid rgba(42, 24, 32, .12); border-radius: 16px; background: var(--cream); }
.transcript summary { cursor: pointer; padding: 18px 22px; font: 500 20px var(--display); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; font: 300 26px var(--display); color: var(--honey-lo); transition: transform .3s; }
.transcript[open] summary::after { transform: rotate(45deg); }
.transcript > div { padding: 0 22px 18px; max-height: 70vh; overflow-y: auto; }
.transcript p { font-size: 16px !important; margin: 0 0 14px; scroll-margin-top: 120px; border-radius: 8px; transition: background .6s; }
.transcript p.here { background: rgba(244, 166, 64, .22); box-shadow: 0 0 0 8px rgba(244, 166, 64, .22); }
.transcript .ts { font: 400 12px var(--mono); color: var(--honey-lo); text-decoration: none; margin-right: 10px; }

.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.ep-nav a { display: block; padding: 18px 20px; border: 1px solid rgba(42, 24, 32, .12); border-radius: 14px; text-decoration: none !important; font: 400 21px/1.25 var(--display); background: var(--cream); transition: border-color .2s; }
.ep-nav a:hover { border-color: var(--honey-lo); }
.ep-nav a span { display: block; font: 500 10px/1 var(--inscription); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ep-nav .next { text-align: right; }

.az { position: sticky; top: 74px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; margin-bottom: 10px; background: var(--paper); border-bottom: 1px solid rgba(42, 24, 32, .1); }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(42, 24, 32, .14); font: 500 13px var(--inscription); color: var(--ink-2); text-decoration: none; transition: all .2s; }
.az a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.letter { scroll-margin-top: 140px; font-family: var(--inscription) !important; color: var(--honey-lo) !important; }

.hub-halls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.hub-hall { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 120px 120px 16px 16px; background: var(--cream); border: 1px solid rgba(42, 24, 32, .1); text-decoration: none; color: var(--ink); text-align: center; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.hub-hall:hover { transform: translateY(-4px); border-color: var(--dot); box-shadow: 0 24px 50px -34px rgba(42, 24, 32, .6); }
.hub-num { font: 300 52px/1 var(--display); color: var(--dot); margin-top: 18px; }
.hub-hall b { font: 500 15px/1.3 var(--inscription); letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.hub-sub { font: italic 400 17px var(--display); color: var(--ink-3); }
.hub-top { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(42, 24, 32, .16); }
.hub-grid { margin-top: 40px; }

.ep-index { padding-top: 30px; }
.ep-summary { font-size: 14px; line-height: 1.6; color: var(--mist-2); margin: 10px 0 0; }

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .infobox { position: static; }
  .ep-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .appears li { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .appears img { width: 76px; }
  .ep-nav { grid-template-columns: 1fr; }
  .ep-nav .next { text-align: left; }
  .theme-index { columns: 1; }
  .az { top: 64px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .28s; }
.hero .reveal:nth-child(4) { transition-delay: .4s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .halls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger dl { grid-template-columns: repeat(3, 1fr); }
  .ledger div:nth-child(4)::before { display: none; }
  .ledger div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .hero-inner { padding-top: max(46svh, 330px); padding-bottom: 80px; }
  .hero.has-3d .scroll-cue { display: none; }
  .menu-btn { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(15, 6, 17, .97);
    opacity: 0; pointer-events: none;
    transition: opacity .4s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font: 300 40px/1 var(--display); color: var(--cream); }
  .nav-links .pill { font: 500 16px/1 var(--sans); padding: 14px 30px; margin-top: 10px; }
  .feature { grid-template-columns: 1fr; }
  .feature .arch { max-width: 460px; width: 100%; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; width: 100%; }
  .foot-cols { grid-template-columns: repeat(2, auto); }
  .filters { flex-direction: column; align-items: stretch; }
  .hall-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .hall-pills::-webkit-scrollbar { display: none; }
  .hall-pill { flex: none; }
}
@media (max-width: 600px) {
  .wordmark { font-size: 25px; }
  .ep-grid { grid-template-columns: 1fr; }
  .halls { grid-template-columns: 1fr; }
  .hall { min-height: 0; }
  .ledger dl { grid-template-columns: repeat(2, 1fr); }
  .ledger div::before { display: none; }
  .ledger div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ledger div:nth-child(even) { border-left: 1px solid var(--line); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .search input { height: 60px; padding-left: 54px; padding-right: 20px; }
  .search svg { left: 20px; }
  .search kbd { display: none; }
  .selects { display: grid; grid-template-columns: minmax(0, 1fr); }
  .selects label { min-width: 0; }
  .selects select { max-width: none; flex: 1; min-width: 0; width: 100%; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .astrolabe { opacity: .35; }
  .appear { grid-template-columns: 52px 1fr; }
  .appear img { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   The ritual: a pinned, scroll-driven hero. hero3d.js writes the scroll progress (0–1) to --p on .hero.
   html.ritual is set in <head> when WebGL is available; without it the stage dissolves into a static hero.
   ========================================================================== */
.ritual-veil, .ritual-night, .ritual-cue { display: none; }
html:not(.ritual) .hero-stage { display: contents; }

html.ritual .hero { display: block; min-height: 0; height: 440vh; overflow: visible; background: #030104; }
html.ritual .hero::before, html.ritual .hero::after { display: none; }
html.ritual .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
html.ritual .hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 40%, rgba(3, 1, 4, .55) 75%, #030104 100%),
              linear-gradient(to bottom, rgba(3, 1, 4, .6), transparent 18%);
}
html.ritual .ritual-veil, html.ritual .ritual-night, html.ritual .ritual-cue { display: block; }
.ritual-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #ff86cb 0%, #d1218a 28%, #5e0b46 68%, #1c0418 100%);
  opacity: clamp(0, calc((var(--p, 0) - .88) * 9), 1);
}
.ritual-night { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--night); opacity: clamp(0, calc((var(--p, 0) - .97) * 33), 1); }
.ritual-cue {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 8svh; margin: 0; text-align: center;
  font: italic 400 20px/1 var(--display); color: var(--mist-2);
  opacity: clamp(0, calc(1 - var(--p, 0) * 25), 1);
}
.ritual-cue::after { content: ""; display: block; width: 1px; height: 46px; margin: 16px auto 0; background: linear-gradient(var(--honey), transparent); animation: cueDrop 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cueDrop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html.ritual .hero .scroll-cue { display: none; }
html.ritual .hero .hero-inner { position: absolute; inset: 0; z-index: 1; max-width: none; padding: 0; display: block; pointer-events: none; }
html.ritual .hero .hero-inner .reveal { transform: none; transition: none; }
html.ritual .hero .hero-inner > .eyebrow {
  position: absolute; top: 17svh; left: 0; right: 0; text-align: center;
  opacity: min(clamp(0, calc((var(--p, 0) - .13) * 12), 1), clamp(0, calc((.5 - var(--p, 0)) * 14), 1));
}
/* on the way down the inscription carries the tagline; the headline waits inside the nectar */
html.ritual .hero .hero-inner > .hero-title {
  position: absolute; left: 0; right: 0; top: 22svh; padding-inline: var(--gutter);
  color: var(--cream); opacity: clamp(0, calc((var(--p, 0) - .9) * 14), 1);
}
html.ritual .hero .hero-inner > .hero-title em { color: #ffd9a0; }
html.ritual .hero .hero-inner > .hero-lede {
  position: absolute; left: 0; right: 0; top: calc(22svh + clamp(110px, 13vw, 190px)); margin-inline: auto; max-width: 32em; padding-inline: var(--gutter);
  font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: rgba(255, 240, 248, .85);
  opacity: clamp(0, calc((var(--p, 0) - .92) * 16), 1);
}
html.ritual .hero .hero-inner > .hero-cta { position: absolute; left: 0; right: 0; padding-inline: var(--gutter); top: calc(22svh + clamp(250px, 24vw, 330px)); opacity: clamp(0, calc((var(--p, 0) - .93) * 16), 1); }
html.ritual .hero.coda-on .hero-inner > .hero-lede, html.ritual .hero.coda-on .hero-inner > .hero-cta { pointer-events: auto; }
html.ritual .hero .hero-lede a { color: var(--cream); }
