:root {
  color-scheme: dark;
  --ink: #f4efe2;
  --muted: #aeb7ae;
  --night: #06100e;
  --deep: #0b1714;
  --panel: #10211c;
  --line: rgba(183, 207, 190, .2);
  --gold: #e8c56f;
  --gold-bright: #ffe5a1;
  --green: #6ce1b2;
  --cream: #efe7d4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(232, 197, 111, .12), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(52, 185, 141, .12), transparent 32rem),
    linear-gradient(180deg, #07120f 0%, #081411 60%, #050c0a 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: #101714;
  font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.library-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 14, 12, .86);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .22em;
  text-decoration: none;
}
.wordmark i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(232, 197, 111, .65);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  font-style: normal;
}
.nav-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}
.library-nav nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.library-nav nav a, footer nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.library-nav nav a:hover, footer nav a:hover { color: var(--ink); }

main {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.library-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .86fr) minmax(360px, 1.14fr);
  gap: clamp(38px, 8vw, 120px);
  align-items: center;
  width: min(1380px, calc(100% - 40px));
  min-height: min(850px, calc(100svh - 76px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) 0;
}
.library-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -20% auto 36%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(64, 196, 148, .12), transparent 65%);
  filter: blur(20px);
}

.book-stage {
  position: relative;
  display: grid;
  min-height: 600px;
  margin: 0;
  place-items: center;
  perspective: 1200px;
}
.book-shadow {
  position: absolute;
  bottom: 11%;
  width: 74%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .64);
  filter: blur(25px);
  transform: rotate(-8deg);
}
.book-cover {
  position: relative;
  display: block;
  width: min(360px, 80vw);
  height: auto;
  border: 1px solid rgba(255, 229, 161, .5);
  border-radius: 4px 18px 18px 4px;
  box-shadow: -28px 28px 55px rgba(0, 0, 0, .5), inset 2px 0 rgba(255, 255, 255, .08);
  transform: rotateY(-10deg) rotateZ(-1.5deg);
}
.book-object {
  position: relative;
  display: flex;
  width: min(360px, 80vw);
  aspect-ratio: 5 / 8;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 30px 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 161, .5);
  border-radius: 4px 18px 18px 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 8%, transparent 94%, rgba(255, 255, 255, .08)),
    radial-gradient(circle at 50% 30%, rgba(255, 218, 130, .12), transparent 32%),
    linear-gradient(150deg, #10261f, #07120f 62%, #0d1f19);
  box-shadow: -28px 28px 55px rgba(0, 0, 0, .5), inset 2px 0 rgba(255, 255, 255, .08);
  transform: rotateY(-13deg) rotateZ(-2deg);
}
.book-object::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(232, 197, 111, .28);
  pointer-events: none;
}
.book-object::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(232, 197, 111, .35);
  box-shadow: 4px 0 rgba(0, 0, 0, .3);
}
.book-overline {
  position: relative;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.book-object strong {
  position: relative;
  text-align: center;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 400;
  line-height: .92;
}
.book-object small {
  position: relative;
  text-align: center;
  color: #c9c6b9;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
}
.book-sigil {
  position: relative;
  width: 120px;
  height: 112px;
  filter: drop-shadow(0 0 18px rgba(232, 197, 111, .28));
}
.book-sigil::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 86px;
  height: 86px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.book-sigil::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}
.book-sigil span {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 2px;
  height: 70px;
  background: var(--gold);
  transform: translateX(-50%);
}
.volume-mark {
  position: absolute;
  right: 1%;
  bottom: 6%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-copy { max-width: 710px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.hero-copy h1, .theater-heading h2, .chapter-map-heading h2, .book-callout h2, .journey-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .91;
}
.hero-copy h1 { font-size: clamp(58px, 7.4vw, 108px); }
.hero-copy h1 em { color: var(--gold); font-style: normal; }
.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: #bec7bf;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.primary-action, .merchant-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
}
.primary-action { background: var(--gold); color: #13170f; }
.primary-action:hover { background: var(--gold-bright); }
.merchant-action { border-color: rgba(232, 197, 111, .42); color: var(--ink); }
.merchant-action:hover { border-color: var(--gold); background: rgba(232, 197, 111, .08); }
.merchant-boundary {
  margin: 13px 0 0;
  color: #7f8d84;
  font-size: 11px;
}

.library-boundary {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(30px, 8vw, 120px);
  align-items: end;
  padding: clamp(36px, 6vw, 72px) max(20px, calc((100% - 1380px) / 2));
  border-top: 1px solid rgba(232, 197, 111, .3);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(232, 197, 111, .1), rgba(14, 37, 30, .6));
}
.library-boundary span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.library-boundary h2 {
  max-width: 520px;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.06;
}
.library-boundary p {
  max-width: 750px;
  margin: 0;
  color: #c1c9c1;
  font-size: 14px;
  line-height: 1.7;
}

.chapter-theater {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 140px) 0;
}
.theater-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px;
}
.theater-heading h2 { font-size: clamp(48px, 6vw, 82px); }
.theater-heading > p {
  max-width: 440px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.theater-status { max-width: 440px; }
.theater-status p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.theater-status strong { color: var(--gold); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.resume-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 24px;
  width: 100%;
  min-height: 76px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 1px solid rgba(108, 225, 178, .35);
  border-radius: 10px;
  background: rgba(27, 78, 60, .3);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.resume-card[hidden] { display: none; }
.resume-card span { grid-row: 1 / 3; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }
.resume-card strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.resume-card small { grid-column: 2; color: var(--muted); }
.resume-card::after { content: "→"; grid-column: 3; grid-row: 1 / 3; color: var(--green); font-size: 24px; }

.theater-layout {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  gap: clamp(26px, 5vw, 74px);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: start;
}
.theater-layout > *, .theater-heading > * { min-width: 0; }
.player-column {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.library-player {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  aspect-ratio: 528 / 960;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 111, .34);
  border-radius: 26px;
  background: #030705;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .5);
}
.library-player::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  pointer-events: none;
}
.library-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #030705;
  object-fit: cover;
}
.player-start {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(180deg, rgba(3, 8, 6, .08), rgba(3, 8, 6, .76));
  color: var(--ink);
  cursor: pointer;
}
.player-start[hidden] { display: none; }
.player-start > span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  padding-left: 5px;
  border: 1px solid rgba(255, 229, 161, .75);
  border-radius: 50%;
  background: rgba(10, 25, 20, .72);
  color: var(--gold-bright);
  font-size: 24px;
  box-shadow: 0 0 40px rgba(232, 197, 111, .22);
}
.player-start b { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.player-start small { color: #c8d0c8; font-size: 11px; }
.player-chapter {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 229, 161, .5);
  border-radius: 50%;
  background: rgba(7, 16, 14, .76);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
}

.now-reading {
  width: min(100%, 520px);
  margin: 24px auto 0;
  padding: 0 4px;
  overflow-wrap: anywhere;
}
.now-reading span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.now-reading h3 { margin: 8px 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.05; }
.now-reading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.chapter-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 520px);
  margin: 20px auto 0;
}
.chapter-navigation button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 33, 28, .6);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.chapter-navigation button:hover:not(:disabled) { border-color: var(--gold); background: rgba(232, 197, 111, .08); }
.chapter-navigation button:disabled { color: #657069; cursor: not-allowed; }

.chapter-notes {
  width: min(100%, 520px);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.chapter-notes article[hidden] { display: none; }
.chapter-notes details { border-bottom: 1px solid var(--line); }
.chapter-notes summary {
  min-height: 48px;
  padding: 13px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.chapter-notes details p, .visual-description {
  margin: 0 0 17px;
  color: #aeb8b0;
  font-size: 12px;
  line-height: 1.7;
}
.visual-description { margin-top: 18px; }
.visual-description strong { color: var(--gold); }

.chapter-rail {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 1040px;
  overflow: auto;
  padding-right: 8px;
  scrollbar-color: rgba(232, 197, 111, .45) transparent;
}
.chapter-group, .chapter-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.chapter-group + .chapter-group { margin-top: 24px; }
.chapter-group > h3 {
  position: sticky;
  z-index: 2;
  top: 0;
  margin: 0 0 10px;
  padding: 10px 4px;
  background: rgba(6, 16, 14, .94);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.chapter-list { display: grid; gap: 10px; }
.chapter-choice {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  min-width: 0;
  min-height: 148px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 33, 28, .6);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.chapter-choice:hover { border-color: rgba(232, 197, 111, .45); transform: translateX(-3px); }
.chapter-choice.active {
  border-color: rgba(232, 197, 111, .75);
  background: linear-gradient(100deg, rgba(232, 197, 111, .12), rgba(24, 49, 40, .72));
}
.chapter-choice.chapter-missing {
  border-style: dashed;
  background: rgba(9, 19, 16, .66);
  cursor: not-allowed;
  opacity: .72;
}
.chapter-choice.chapter-missing:hover { border-color: var(--line); transform: none; }
.chapter-choice.chapter-missing img { filter: grayscale(.45) saturate(.55); }
.chapter-choice.chapter-missing small { color: var(--gold); }
.chapter-choice img {
  width: 88px;
  height: 128px;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(.9);
}
.chapter-choice span { display: grid; min-width: 0; gap: 7px; }
.chapter-choice small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.chapter-choice strong { overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); font-weight: 400; line-height: 1.05; }
.chapter-choice em { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; font-style: normal; }
.chapter-choice > b { color: rgba(232, 197, 111, .32); font-family: var(--serif); font-size: 32px; font-weight: 400; }
.chapter-choice.active > b { color: var(--gold); }
.chapter-choice::after {
  content: attr(data-progress);
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chapter-progress { display: none; }

.playback-status { min-height: 20px; margin: 24px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.chapter-map {
  padding: clamp(76px, 10vw, 140px) max(20px, calc((100% - 1380px) / 2));
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 12%, rgba(108, 225, 178, .1), transparent 30rem),
    linear-gradient(180deg, rgba(8, 22, 18, .94), #07110e);
}
.chapter-map-heading {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, .8fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: end;
  margin-bottom: 34px;
}
.chapter-map-heading h2 { font-size: clamp(48px, 6vw, 82px); }
.chapter-map-heading h2 em { color: var(--gold); font-style: normal; }
.chapter-map-heading > p { max-width: 580px; margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.chapter-map-disclosure {
  overflow: hidden;
  border: 1px solid rgba(232, 197, 111, .32);
  border-radius: 18px;
  background: rgba(10, 25, 20, .74);
}
.chapter-map-disclosure > summary {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 40px);
  cursor: pointer;
  list-style: none;
}
.chapter-map-disclosure > summary::-webkit-details-marker { display: none; }
.chapter-map-disclosure > summary::after { content: "+"; color: var(--gold); font-family: var(--serif); font-size: 34px; }
.chapter-map-disclosure[open] > summary::after { content: "−"; }
.chapter-map-disclosure > summary span { display: grid; gap: 7px; }
.chapter-map-disclosure > summary small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.chapter-map-disclosure > summary strong { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 32px); font-weight: 400; }
.chapter-map-disclosure > summary > b { margin-left: auto; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.chapter-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px clamp(12px, 2vw, 24px) 28px;
  list-style: none;
}
.chapter-map-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(5, 14, 12, .82);
}
.chapter-map-card img, .chapter-map-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; }
.chapter-map-card img { display: block; filter: saturate(.82) contrast(1.02); }
.chapter-map-card > span { display: grid; gap: 8px; padding: 16px 16px 12px; }
.chapter-map-card > span small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.chapter-map-card.has-film > span small { color: var(--green); }
.chapter-map-card.source-missing > span small { color: var(--gold); }
.chapter-map-card > span strong { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 23px); font-weight: 400; line-height: 1.08; }
.chapter-map-card > button, .chapter-map-card > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 16px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}
.chapter-map-card > button::after, .chapter-map-card > a::after { content: "→"; font-size: 15px; }
.chapter-map-placeholder {
  display: grid;
  place-content: center;
  gap: 10px;
  background: radial-gradient(circle, rgba(232, 197, 111, .12), transparent 62%), #0b1714;
  color: var(--gold);
  text-align: center;
}
.chapter-map-placeholder b { font-family: var(--serif); font-size: 54px; font-weight: 400; }
.chapter-map-placeholder small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.chapter-map-boundary { margin: 0; padding: 0 24px 28px; color: #78877e; font-size: 10px; line-height: 1.6; text-align: center; }

.book-callout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(300px, .8fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  padding: clamp(74px, 10vw, 140px) max(20px, calc((100% - 1380px) / 2));
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(232, 197, 111, .12), transparent 42%),
    #0a1612;
}
.book-callout h2 { font-size: clamp(46px, 6vw, 82px); }
.book-callout > div > p:not(.eyebrow) { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.purchase-card {
  display: grid;
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(232, 197, 111, .4);
  border-radius: 18px;
  background: rgba(10, 25, 20, .8);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}
.purchase-card > span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.purchase-card > strong { margin-bottom: 10px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.purchase-card .primary-action { width: 100%; }
.purchase-card small { color: var(--muted); font-size: 10px; text-align: center; }

.journey-bridge {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding: clamp(76px, 10vw, 140px) max(20px, calc((100% - 1380px) / 2));
  border-top: 1px solid var(--line);
  background: linear-gradient(120deg, #07110e, rgba(18, 61, 46, .48));
}
.journey-copy h2 { font-size: clamp(48px, 6vw, 82px); }
.journey-copy > p:not(.eyebrow) { max-width: 640px; margin: 26px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.journey-routes { display: grid; gap: 12px; }
.journey-routes a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  min-height: 140px;
  align-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 22, 18, .78);
  text-decoration: none;
}
.journey-routes a:hover { border-color: rgba(232, 197, 111, .62); background: rgba(18, 45, 36, .84); }
.journey-routes a > span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.journey-routes a > strong { grid-column: 1; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); font-weight: 400; line-height: 1.05; }
.journey-routes a > small { grid-column: 1; color: var(--muted); font-size: 10px; line-height: 1.5; }
.journey-routes a > b { grid-column: 2; grid-row: 1 / 4; align-self: center; color: var(--gold); font-size: 26px; }
.journey-routes .journey-launch { border-color: rgba(108, 225, 178, .38); background: linear-gradient(120deg, rgba(34, 109, 81, .32), rgba(8, 22, 18, .8)); }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 32px;
  align-items: center;
  padding: 34px max(20px, calc((100% - 1380px) / 2));
  border-top: 1px solid var(--line);
  background: #050c0a;
}
footer p { margin: 0; color: var(--muted); font-size: 12px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
footer > small { grid-column: 1 / -1; color: #718078; font-size: 10px; line-height: 1.5; }

@media (max-width: 980px) {
  .library-nav { grid-template-columns: 1fr auto; }
  .nav-state { display: none; }
  .library-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { order: -1; margin: 0 auto; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .book-stage { min-height: 540px; }
  .volume-mark { display: none; }
  .theater-layout { grid-template-columns: minmax(320px, .9fr) minmax(350px, 1.1fr); gap: 28px; }
  .chapter-choice { grid-template-columns: 72px 1fr; }
  .chapter-choice img { width: 72px; height: 112px; }
  .chapter-choice > b { display: none; }
  .chapter-map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .library-nav { min-height: 66px; padding-inline: 18px; }
  .library-nav nav { gap: 13px; }
  .library-nav nav a:nth-child(2) { display: none; }
  .library-hero { width: min(100% - 28px, 680px); min-height: auto; padding: 64px 0 78px; }
  .hero-copy h1 { font-size: clamp(52px, 16vw, 78px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions a { width: 100%; }
  .book-stage { min-height: 500px; }
  .book-object { width: min(320px, 78vw); }
  .library-boundary, .chapter-map-heading, .book-callout, .journey-bridge { grid-template-columns: 1fr; }
  .chapter-theater { width: min(100% - 28px, 680px); padding: 78px 0; }
  .theater-heading { display: grid; gap: 16px; }
  .theater-layout { grid-template-columns: minmax(0, 1fr); }
  .chapter-rail {
    contain: inline-size;
    max-height: none;
    margin-top: 34px;
    overflow: visible;
    padding: 0;
  }
  .chapter-group + .chapter-group { margin-top: 30px; }
  .chapter-group > h3 { position: static; padding-inline: 0; background: transparent; }
  .chapter-list {
    display: flex;
    margin-inline: 0;
    padding: 0 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .chapter-choice {
    flex: 0 0 min(88%, 330px);
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 132px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .library-player { width: min(100%, 430px); }
  .resume-card { grid-template-columns: auto 1fr; }
  .resume-card::after { display: none; }
  .chapter-map { padding-inline: 14px; }
  .chapter-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-map-disclosure > summary > b { display: none; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .wordmark { margin: 0 auto; }
  footer nav { justify-content: center; }
}

@media (max-width: 430px) {
  .wordmark span { display: none; }
  .library-nav nav a { font-size: 11px; }
  .book-stage { min-height: 450px; }
  .book-object, .book-cover { width: 270px; }
  .book-object strong { font-size: 42px; }
  .library-boundary { padding-inline: 18px; }
  .chapter-choice { flex-basis: min(90%, 330px); }
  .book-callout { padding-inline: 18px; }
  .purchase-card { padding: 24px 18px; }
  .journey-bridge { padding-inline: 18px; }
  .chapter-map-grid { grid-template-columns: 1fr; }
}

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