:root {
  color-scheme: dark;
  --bg-primary: #0B0A09;
  --bg-secondary: #151310;
  --bg-elevated: #25221D;
  --gold-primary: #A8874C;
  --gold-muted: #74603D;
  --crimson: #641D29;
  --bone: #D3C6A7;
  --ash: #77716B;
  --flame: #F3A33B;
  --relic-green: #42A84A;
  --ink: #E4D7BA;
  --muted: #B6AA96;
  --label: #C2A473;
  --rule: rgba(168, 135, 76, .29);
  --rule-strong: rgba(168, 135, 76, .59);
  --display: "Baskerville", "Baskerville Old Face", "Palatino Linotype", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(2.375rem, 7.4vw, 9rem);
  --max-layout: 86rem;
  --header-height: 4.75rem;
  --section-space: clamp(5.5rem, 9vw, 9rem);
  scroll-padding-top: var(--header-height);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

body:has(.lightbox[open]) { overflow: hidden; }
main:focus { outline: none; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
::selection { background: var(--crimson); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 5px;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: .8rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--bg-elevated);
  color: var(--ink);
}

.layout {
  width: min(calc(100% - var(--gutter) * 2), var(--max-layout));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.diamond {
  flex: none;
  display: inline-block;
  width: .39rem;
  height: .39rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .6rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}

.button:active { transform: scale(.97); }
.button--brass {
  padding-inline: 1.4rem;
  border-color: var(--rule-strong);
  background: rgba(168, 135, 76, .09);
}
.button--brass .diamond { color: var(--label); }
.button[aria-disabled="true"] { opacity: .48; cursor: default; }
.button[aria-disabled="true"]:active { transform: none; }

/* Masthead and chapter navigation */
.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  inset-inline: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  width: min(calc(100% - clamp(3.5rem, 8.4vw, 10rem)), 102rem);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  flex: none;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: .9rem;
  letter-spacing: .2em;
  line-height: 1.25;
  text-transform: uppercase;
}

.wordmark img { width: 2.4rem; height: 2.4rem; }
.top-nav { display: flex; height: 100%; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.top-nav > a, .chapters-menu summary, .sound-toggle {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 150ms ease;
}

.chapters-menu { position: relative; }
.chapters-menu summary, .process-step summary { list-style: none; cursor: pointer; }
.chapters-menu summary::marker, .process-step summary::marker { content: ""; }
.chapters-menu summary::-webkit-details-marker, .process-step summary::-webkit-details-marker { display: none; }

.menu-cross, .step-cross {
  position: relative;
  width: .68rem;
  height: .68rem;
  color: var(--label);
}

.menu-cross::before, .menu-cross::after, .step-cross::before, .step-cross::after {
  content: "";
  position: absolute;
  top: calc(50% - .5px);
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.menu-cross::after, .step-cross::after { transform: rotate(90deg); }
[open] > summary .menu-cross::after, [open] > summary .step-cross::after { opacity: 0; }

.chapter-menu-list {
  position: absolute;
  top: calc(100% + .65rem);
  right: -.65rem;
  width: min(18rem, 80vw);
  max-height: calc(100vh - var(--header-height) - 1rem);
  max-height: calc(100dvh - var(--header-height) - 1rem);
  overflow: auto;
  padding: .45rem .9rem;
  border: 1px solid var(--rule-strong);
  background: var(--bg-secondary);
  box-shadow: 0 1rem 3rem #0009;
  list-style: none;
}

.chapter-menu-list li + li { border-top: 1px solid var(--rule); }
.chapter-menu-list a { display: flex; min-height: 2.75rem; align-items: center; gap: .9rem; padding: .45rem .4rem; }
.chapter-menu-list a span { color: var(--label); font: .78rem var(--mono); }
.chapter-menu-list a[aria-current] { color: var(--ink); background: #a8874c16; }
.sound-toggle {
  position: relative;
  min-width: 2.75rem;
  padding-left: 1.2rem;
}
.sound-toggle::before {
  content: "";
  position: absolute;
  top: 32%;
  left: -.35rem;
  height: 36%;
  border-left: 1px solid var(--rule);
}
.sound-toggle svg { color: var(--label); flex: none; }
.sound-toggle[aria-pressed="true"] .sound-slash { opacity: 0; }

.chapter-strip { display: none; }
.chapter-rail {
  position: fixed;
  z-index: 4;
  top: 50%;
  right: clamp(.75rem, 2.15vw, 2.75rem);
  transform: translateY(-43%);
  padding-left: .48rem;
}
.chapter-rail ol { padding: 0; list-style: none; }
.chapter-rail a {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.4rem;
  place-items: center;
  color: var(--muted);
  font: .77rem var(--mono);
  letter-spacing: .05em;
  text-shadow: 0 1px 6px #000;
}

.chapter-rail a[aria-current] { color: #f0dbb5; }
.chapter-rail a[aria-current]::after {
  content: "";
  position: absolute;
  left: -.68rem;
  top: calc(50% - .21rem);
  width: .42rem;
  height: .42rem;
  transform: rotate(45deg);
  background: var(--label);
  box-shadow: 0 0 0 3px var(--bg-primary);
}

.rail-progress {
  position: absolute;
  top: .66rem;
  bottom: .66rem;
  left: 0;
  width: 1px;
  background: rgba(194, 164, 115, .32);
}
.rail-progress span, .strip-progress span, .gallery-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--label);
  transform: scaleX(0);
  transform-origin: left center;
}
.rail-progress span { transform: scaleY(0); transform-origin: center top; }
.rail-label {
  position: absolute;
  right: calc(100% + .85rem);
  top: 50%;
  padding: .42rem .6rem;
  border: 1px solid var(--rule);
  transform: translateY(-50%);
  color: var(--ink);
  background: var(--bg-primary);
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 150ms ease;
}
.chapter-rail a:focus-visible .rail-label { opacity: 1; }

/* 00 — The Fall */
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  background: var(--bg-primary);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  overflow: clip;
}
.hero-vault {
  position: absolute;
  width: 100%;
  height: 107%;
  inset: 0;
  object-fit: cover;
  object-position: 67% 50%;
  transform-origin: 73% 44%;
}
.hero-aureole {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 74% 40%, rgba(196, 151, 94, .19), transparent 45%);
}
.hero-figure {
  position: absolute;
  right: 3.5%;
  bottom: -31%;
  width: clamp(40rem, 60vw, 70rem);
  max-width: none;
  transform-origin: 53% 42%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b0a09 0%, #0b0a09f5 10%, #0b0a09cc 30%, #0b0a094a 54%, #0b0a0910 75%, #0b0a096a 100%),
    linear-gradient(0deg, #0b0a09 0%, #0b0a09e4 8%, #0b0a098a 24%, transparent 51%, #0b0a090b 72%, #0b0a09bb 100%);
}

.hero-fire {
  position: absolute;
  z-index: 3;
  left: var(--fire-x);
  top: clamp(8rem, var(--fire-y), calc(100svh - 6rem));
  width: clamp(2rem, 3.3vw, 3.25rem);
  aspect-ratio: 48 / 72;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-fire--edge { --fire-x: 91%; --fire-y: 73svh; }
.hero-fire--near { --fire-x: 66%; --fire-y: 80svh; }
.hero-fire--far { --fire-x: 82%; --fire-y: 57svh; }
.hero-fire-canvas {
  position: absolute;
  left: 50%;
  bottom: -13.333%;
  width: 320%;
  height: auto;
  aspect-ratio: 128 / 176;
  transform: translateX(-50%);
  visibility: hidden;
}
.hero-art.has-fire-motion .hero-fire-canvas { visibility: visible; }
.hero-art.has-fire-motion .hero-fire .fire-shape,
.hero-art.has-fire-motion .hero-fire .fire-light { visibility: hidden; }
.hero-fire::after {
  content: "";
  position: absolute;
  bottom: -.19rem;
  left: 5%;
  width: 90%;
  height: .48rem;
  background: linear-gradient(180deg, #62412b, #281c16 60%, #15100e);
  clip-path: polygon(12% 0, 77% 6%, 100% 57%, 84% 91%, 19% 100%, 0 74%);
  opacity: var(--fire-intensity, 0);
}
.hero-art:not(.has-fire-motion) .hero-fire--edge::after { opacity: 1; }
.fire-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 95%;
}
.fire-light {
  position: absolute;
  width: 420%;
  height: 170%;
  left: -160%;
  bottom: -18%;
  background: radial-gradient(ellipse at 50% 64%, #ce722b58, #b3552526 36%, transparent 72%);
  opacity: .68;
  pointer-events: none;
}
.fire-sparks { position: absolute; inset: 0; pointer-events: none; }
.fire-sparks i {
  --ember-x: -.75rem;
  --ember-y: -2.6rem;
  --ember-delay: .15s;
  position: absolute;
  bottom: 36%;
  left: 52%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffc071;
  box-shadow: 0 0 .32rem #ea883baa;
  opacity: 0;
}
.fire-sparks i:nth-child(2) { --ember-x: .9rem; --ember-y: -3.2rem; --ember-delay: .62s; left: 66%; }
.fire-sparks i:nth-child(3) { --ember-x: .35rem; --ember-y: -2.15rem; --ember-delay: 1.03s; left: 43%; }

.hero-composition {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-height) + 2.4rem) 7.3rem;
}

.hero-copy { width: fit-content; max-width: 100%; padding-block: 1.75rem; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.55rem;
  color: var(--label);
  letter-spacing: .22em;
}

.hero-title {
  margin-left: -.045em;
  color: #e7d7b7;
  font: 400 clamp(5.1rem, 9.25vw, 10.5rem)/.97 var(--display);
  letter-spacing: .065em;
  text-transform: uppercase;
  text-shadow: 0 .06em .34em #0b0a0966;
}

.hero-title > span { display: block; overflow: hidden; padding: .06em .06em .09em; }
.hero-title > span + span { margin-top: -.03em; }
.hero-title > span > span { display: block; }

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.55rem;
  color: var(--label);
  font-size: .81rem;
  font-weight: 625;
  letter-spacing: .18em;
  line-height: 1.45;
  text-transform: uppercase;
}
.hero-subtitle::before {
  content: "";
  flex: none;
  width: 1.85rem;
  border-top: 1px solid var(--gold-muted);
}
.hero-intro { width: min(24rem, 100%); margin-top: .9rem; color: var(--bone); font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.25rem; margin-top: 1.8rem; }
.title-replay {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--label);
  font: .76rem var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: .35em;
  transition: color 150ms ease;
}

.type-word, .type-fragment { display: inline-block; }
.type-word { white-space: nowrap; }
.type-mask { clip-path: inset(-.11em -.14em -.19em); }
[data-type-entrance="cascade"] .type-fragment { transform-origin: center 91%; }

.hero-footer {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 0;
  display: grid;
  min-height: 2.75rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  line-height: 1.35;
}
.hero-chapter span { margin-right: .43rem; color: var(--label); }
.record-id { justify-self: end; }
.hero-scroll { display: inline-flex; min-height: 1.45rem; align-items: center; gap: .5rem; }
.scroll-mark { position: relative; width: .6rem; height: 1.15rem; border: 1px solid var(--gold-muted); border-radius: 1rem; }
.scroll-mark::before {
  content: "";
  position: absolute;
  top: .2rem;
  left: calc(50% - .5px);
  width: 1px;
  height: .29rem;
  background: var(--label);
}

.ash-field {
  position: absolute;
  z-index: 4;
  inset: -3.5rem 0 0;
  opacity: .52;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, #cdad7e 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 46%, #b29783 0 .8px, transparent 1.4px),
    radial-gradient(circle at 40% 73%, #dcac6e 0 1px, transparent 1.8px);
  background-size: 263px 218px, 393px 278px, 313px 356px;
  mask-image: radial-gradient(ellipse at 72% 52%, black 10%, transparent 81%);
}
.ash-field--hero { opacity: .45; }

/* Archive typography and print rules */
.section, .storyboard {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}
.section-heading { margin-bottom: clamp(2rem, 4.4vw, 4rem); }
.section-index {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .7rem;
  color: var(--label);
  line-height: 1.4;
}
.section-index span {
  display: inline-flex;
  min-width: 1.8rem;
  justify-content: center;
  border-bottom: 1px solid var(--gold-muted);
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: .05em;
}
.section-title {
  color: var(--ink);
  font: 400 clamp(3.25rem, 6.3vw, 6.5rem)/.99 var(--display);
  letter-spacing: -.035em;
}
.section-intro {
  max-width: 35rem;
  margin-top: 1rem;
  color: var(--bone);
  font-size: clamp(1.075rem, 1.42vw, 1.32rem);
  line-height: 1.48;
}
.body-copy { max-width: 36rem; color: var(--muted); }
.subsection-title {
  color: var(--ink);
  font: 400 clamp(2.1rem, 3.4vw, 3.2rem)/1.05 var(--display);
}
.archive-plate figcaption, .character-board figcaption, .relic-stage figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .78rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--label);
}

/* 01 — The Archive */
.section--archive { background: var(--bg-secondary); }
.archive-spread, .process-spread, .prop-exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2rem, 7.5vw, 8rem);
}
.archive-copy .body-copy { margin-top: 1rem; }
.catalog { margin-top: 1.9rem; border-top: 1px solid var(--rule); }
.catalog div {
  display: grid;
  grid-template-columns: minmax(6.5rem, .35fr) 1fr;
  align-items: baseline;
  gap: .55rem;
  padding: .61rem 0;
  border-bottom: 1px solid var(--rule);
}
.catalog dt { color: var(--label); font: .75rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.catalog dd { color: var(--bone); font-size: .96rem; }
.archive-plate { border: 1px solid var(--rule); background: #100e0c; }
.archive-plate img { width: 100%; }

/* 02 — The Last Watcher */
.character-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6.3vw, 6.5rem);
}
.character-board { border: 1px solid var(--rule); background: #110f0d; }
.character-plate {
  --plate-height: min(64vh, 36rem);
  position: relative;
  display: grid;
  height: var(--plate-height);
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 51% 45%, #392c20 0%, #211a15 49%, #100e0d 100%);
}
.plate-grid {
  position: absolute;
  z-index: -1;
  inset: .8rem;
  border: 1px solid #a8874c30;
  background:
    linear-gradient(90deg, transparent 49.85%, #a8874c3c 50%, transparent 50.15%),
    repeating-linear-gradient(0deg, transparent 0 28px, #a8874c1b 28px 29px);
}
.plate-ruler {
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--label);
  font-size: .68rem;
  opacity: .77;
}
.board-id { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--muted); }
.character-art { position: relative; width: min(100%, calc(var(--plate-height) * .7826)); aspect-ratio: 720 / 920; }
.character-art img { width: 100%; }
.character-marker {
  display: none;
  position: absolute;
  left: var(--mark-x, 10%);
  top: var(--mark-y, 10%);
  width: var(--mark-w, 82%);
  height: var(--mark-h, 89%);
  pointer-events: none;
  color: #dec08b;
}
.is-enhanced .character-marker { display: block; }
.character-marker[data-part="helmet"] { --mark-x: 37%; --mark-y: 11%; --mark-w: 29%; --mark-h: 28%; }
.character-marker[data-part="armor"] { --mark-x: 31%; --mark-y: 36%; --mark-w: 39%; --mark-h: 31%; }
.character-marker[data-part="shoulder"] { --mark-x: 58%; --mark-y: 31%; --mark-w: 30%; --mark-h: 22%; }
.character-marker[data-part="sword"] { --mark-x: 8.5%; --mark-y: 56%; --mark-w: 21.5%; --mark-h: 43%; }
.character-marker[data-part="cape"] { --mark-x: 67%; --mark-y: 49%; --mark-w: 24%; --mark-h: 34%; }
.character-marker[data-part="insignia"] { --mark-x: 45%; --mark-y: 46%; --mark-w: 9%; --mark-h: 8%; }
.character-marker i { position: absolute; width: .77rem; height: .77rem; border: 0 solid currentColor; }
.character-marker i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.character-marker i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.character-marker i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.character-marker i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.character-details { border-top: 1px solid var(--rule); }
.detail-row {
  display: grid;
  min-height: clamp(10.25rem, 22vh, 13rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.65rem);
  padding: 1.4rem .7rem 1.4rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid transparent;
}
.is-enhanced .detail-row.is-current {
  border-left-color: var(--gold-primary);
  background: linear-gradient(90deg, #a8874c12, transparent 78%);
}
.detail-index { color: var(--label); }
.detail-copy h3 {
  margin-top: .22rem;
  color: var(--ink);
  font: 400 clamp(1.58rem, 2.35vw, 2.45rem)/1.08 var(--display);
}
.detail-copy p:not(.detail-index) { margin-top: .38rem; color: var(--muted); font-size: .98rem; }
.detail-image {
  position: relative;
  display: grid;
  width: clamp(4.25rem, 7.2vw, 6.4rem);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: radial-gradient(ellipse at center, #35281d, #191510);
  transition: border-color 160ms ease;
}
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-image > span {
  position: absolute;
  right: .38rem;
  bottom: .38rem;
  width: .7rem;
  height: .7rem;
  border: solid var(--label);
  border-width: 0 1px 1px 0;
}

@media (min-width: 62.5rem) and (min-height: 41.25rem) {
  .character-board { position: sticky; top: calc(var(--header-height) + 1.35rem); }
}

/* 03 — The Empire */
.section--world { padding-top: 0; background: #100e0c; }
.world-gallery { padding-top: var(--section-space); }
.world-heading .section-title { font-size: clamp(3rem, min(7.5vw, 8.6vh), 5.6rem); }
.world-heading .section-intro { margin-top: .62rem; }
.world-track {
  display: grid;
  width: max-content;
  grid-auto-flow: column;
  grid-auto-columns: calc(min(100vw - var(--gutter) * 2, var(--max-layout)) * .86);
  gap: clamp(.65rem, 1.35vw, 1.2rem);
}
.world-panel {
  position: relative;
  height: clamp(19rem, 51vh, 39rem);
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  scroll-snap-align: start;
  border: 1px solid var(--rule);
  background: var(--bg-secondary);
}
.world-panel::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(0deg, #0b0a09f0, #0b0a0982 20%, transparent 62%, #0b0a0935);
  pointer-events: none;
}
.world-back, .world-front {
  position: absolute;
  width: 118%;
  height: 100%;
  max-width: none;
  left: -9%;
  object-position: center;
}
.world-back { z-index: 0; top: 0; object-fit: cover; }
.world-front { z-index: 2; bottom: 0; object-fit: fill; }
.world-panel--causeway .world-back { object-position: center 59%; }
.world-haze {
  position: absolute;
  z-index: 1;
  inset: -10% -9%;
  background:
    radial-gradient(ellipse 75% 22% at 62% 63%, #c2a08136, transparent),
    radial-gradient(ellipse 70% 27% at 33% 76%, #b3937429, transparent);
}
.world-caption {
  position: absolute;
  z-index: 5;
  right: clamp(1rem, 3.3vw, 3rem);
  bottom: clamp(1.35rem, 4.2vh, 3.4rem);
  left: clamp(1rem, 3.3vw, 3rem);
  transition: opacity 180ms ease;
}
.is-enhanced .world-panel:not(.is-current) .world-caption { opacity: 0; }
.world-caption p { color: #d4b687; }
.world-caption h3 {
  margin-top: .3rem;
  color: var(--ink);
  font: 400 clamp(2.35rem, 5vw, 5.3rem)/.97 var(--display);
  letter-spacing: -.04em;
  text-shadow: 0 .055em .26em #0b0a09;
}
.props-section { margin-top: clamp(3rem, 7.3vw, 7rem); }
.props-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 1.75vw, 1.5rem);
  margin-top: 1.2rem;
}
.prop {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: radial-gradient(ellipse at 51% 43%, #30241b, #16120f 67%, #110e0d);
  transition: border-color 160ms ease;
}
.prop > img { width: 100%; height: clamp(8rem, 15vw, 15rem); padding: 1rem; object-fit: contain; }
.prop-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  background: var(--bg-secondary);
}
.prop-caption .mono { color: var(--label); white-space: nowrap; }

/* Relic exhibits */
.prop-exhibit {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  margin-top: clamp(4.5rem, 9vw, 8rem);
  scroll-margin-top: 1.25rem;
}
.relic-stage { border: 1px solid var(--rule); background: #120e0b; }
.relic-display {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 20rem;
  aspect-ratio: 1.27;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 49%, #463121 0%, #241a13 51%, #120e0c 87%);
}
.relic-display::before, .relic-display::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border: solid var(--rule-strong);
}
.relic-display::before { left: 1rem; top: 1rem; border-width: 1px 0 0 1px; }
.relic-display::after { right: 1rem; bottom: 1rem; border-width: 0 1px 1px 0; }
.orbit-stage {
  perspective: 900px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}
.orbit-stage:active { cursor: grabbing; }
.orbit-stage:focus-visible { outline-offset: -4px; }
.orbit-stage img { pointer-events: none; }
.specimen-ring {
  position: absolute;
  width: 71%;
  max-height: 88%;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.specimen-ring::before, .specimen-ring::after {
  content: "";
  position: absolute;
  inset: -3%;
  border: 1px solid #a8874c85;
  border-radius: 50%;
  transform: rotateZ(-28deg) rotateX(58deg) translateZ(12px);
}
.specimen-ring::after {
  inset: -9%;
  border-style: dashed;
  border-color: #a8874c6d;
  transform: rotateZ(37deg) rotateX(65deg) translateZ(24px);
}
.sword-media {
  position: relative;
  height: 95%;
  max-width: 92%;
  aspect-ratio: 360 / 400;
}
.sword-media img { width: 100%; height: 100%; object-fit: contain; }
.sword-image-link { margin-top: 1.25rem; }
.relic-media {
  position: relative;
  height: 88%;
  max-width: 94%;
  aspect-ratio: 360 / 420;
}
.relic-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.relic-disposable, .relic-flame { opacity: 0; visibility: hidden; }
.relic-media > img, .relic-flame { transition: opacity 230ms var(--ease-out), visibility 230ms; }
.relic[data-state="lit"] .relic-imperial { opacity: 0; visibility: hidden; }
.relic[data-state="lit"] .relic-disposable, .relic[data-state="lit"] .relic-flame { opacity: 1; visibility: visible; }
.relic-flame {
  --fire-tempo: 1.15s;
  --ember-flight: 1.65s;
  --ember-repeat: 2;
  --ember-distance: .68;
  position: absolute;
  left: 51.5%;
  bottom: 78%;
  width: 9.5%;
  height: 14.7%;
}
.relic-spark {
  position: absolute;
  left: 52%;
  top: 19.2%;
  width: 3px;
  height: 3px;
  opacity: 0;
  background: #ffd395;
  border-radius: 50%;
  box-shadow: -.45rem -.45rem 0 #ef963b, .21rem -.68rem 0 #c57b38, .66rem -.18rem 0 #f5bb67, 0 0 .75rem var(--flame);
}
.relic-copy .section-title { font-size: clamp(2.8rem, 4.85vw, 5.25rem); }
.relic-copy .body-copy { margin-top: 1rem; }
.relic-copy .orbit-help { font-size: .89rem; line-height: 1.6; }
.relic-console { margin-top: 1.45rem; padding-top: .95rem; border-top: 1px solid var(--rule); }
.relic-status { min-height: 1.5em; margin-bottom: .85rem; color: var(--label); }
.relic:not(.is-interactive) .relic-console { display: none; }

/* 04 — The Chronicles */
.storyboard { background: var(--bg-secondary); }
.story-heading, .world-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.world-heading { margin-bottom: clamp(1rem, 2.6vh, 2rem); }
.gallery-note { flex: none; max-width: 100%; padding-bottom: .35rem; color: var(--label); }
.gallery-note--vertical { display: none; }
.gallery-window {
  flex: none;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-muted) var(--bg-secondary);
}
.gallery-window:focus-visible { outline-offset: 3px; }
.story-track {
  display: grid;
  width: max-content;
  grid-auto-columns: clamp(19.5rem, 36vw, 34.75rem);
  grid-auto-flow: column;
  gap: clamp(.65rem, 1.35vw, 1.2rem);
}
.storyboard:not(.is-pinned) .story-track { grid-auto-columns: min(77vw, 63rem); }
.story-shot {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #100e0c;
  scroll-snap-align: start;
}
.story-shot.is-current { border-color: var(--rule-strong); }
.shot-image {
  position: relative;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  overflow: hidden;
  background: #171310;
}
.shot-image img {
  position: absolute;
  top: -9%;
  left: -9%;
  width: 118%;
  height: 118%;
  max-width: none;
  object-fit: cover;
}
.shot-image .shot-back {
  left: -20%;
  width: 140%;
}
.shot-haze {
  position: absolute;
  inset: -9%;
  background: radial-gradient(ellipse 65% 18% at 65% 69%, #b98c6440, transparent 90%);
}
.shot-number {
  position: absolute;
  z-index: 1;
  top: .6rem;
  left: .6rem;
  display: inline-grid;
  min-width: 2.1rem;
  min-height: 1.85rem;
  place-content: center;
  border: 1px solid var(--rule-strong);
  background: #0b0a09d9;
  color: var(--ink);
}
.story-shot figcaption { min-height: 7.3rem; padding: .7rem .95rem .85rem; border-top: 1px solid var(--rule); }
.shot-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--label); }
.story-shot h3 { margin-top: .22rem; color: var(--ink); font: 400 clamp(1.47rem, 2.35vw, 2.35rem)/1.08 var(--display); }
.story-shot figcaption > p:last-child { margin-top: .3rem; color: var(--muted); font-size: .94rem; }
.gallery-controls { display: flex; min-height: 2.75rem; align-items: center; gap: 1rem; margin-top: 1rem; }
.gallery-position { flex: none; color: var(--ink); white-space: nowrap; }
.gallery-position span { color: var(--muted); }
.gallery-progress { width: 100%; height: 1px; background: var(--rule-strong); }
.gallery-buttons { display: flex; flex: none; gap: .45rem; }
.gallery-buttons .button { min-height: 2.75rem; padding-inline: .9rem; }
[data-gallery].is-pinned {
  min-height: calc(100vh - var(--header-height) + var(--gallery-runway, 0px));
  padding-block: 0;
}
.is-pinned .gallery-inner {
  position: sticky;
  top: var(--header-height);
  display: flex;
  min-height: calc(100vh - var(--header-height));
  flex-direction: column;
  justify-content: center;
  padding-block: 1.25rem;
}
.is-pinned .gallery-window { overflow: hidden; scroll-snap-type: none; }
.is-pinned .gallery-note--vertical { display: inline; }
.is-pinned .gallery-note--horizontal { display: none; }

/* 05 — The Last Flame */
.section--film { background: #0f0d0c; }
.film-layout { max-width: 72rem; }
.film-heading { margin-bottom: clamp(1.45rem, 3vw, 2.6rem); }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  background: #0a0909;
}
.film-poster, .film-frame video { position: absolute; width: 100%; height: 100%; inset: 0; }
.film-frame video { background: #080707; object-fit: contain; }
.film-poster { display: grid; isolation: isolate; place-items: center; }
.film-poster img { position: absolute; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.film-poster::before { content: ""; position: absolute; z-index: 0; inset: 0; background: radial-gradient(ellipse, #0b0a0940, #0b0a09b9); }
.film-play {
  z-index: 1;
  display: grid;
  width: clamp(3.4rem, 8.4vw, 6.4rem);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid #d7bd8b;
  border-radius: 50%;
  background: #0b0a09be;
  color: var(--ink);
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.film-play svg { width: 34%; height: auto; }
.film-play:active { transform: scale(.97); }
.film-play[aria-disabled="true"] { cursor: wait; opacity: .65; }
.film-frame.is-playing .film-poster { visibility: hidden; }
.film-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: start;
  gap: .6rem;
  padding: .78rem .9rem;
  border: 1px solid var(--rule);
  border-top: 0;
  color: var(--label);
}
.film-meta p { text-align: center; color: var(--bone); }

/* 06 — The Making */
.section--process { background: var(--bg-secondary); }
.process-spread { grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); align-items: start; }
.process-timeline { border-top: 1px solid var(--rule); }
.process-step { border-bottom: 1px solid var(--rule); }
.process-step summary {
  display: grid;
  min-height: 4.25rem;
  grid-template-columns: 2.15rem 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem .6rem;
  color: var(--ink);
  font: 400 clamp(1.3rem, 2.05vw, 2.15rem)/1.15 var(--display);
  transition: background-color 160ms ease;
}
.process-step[open] summary { background: #a8874c0f; }
.step-number, .tool-labels { color: var(--label); }
.step-content { padding: .6rem .65rem 1.4rem 3.4rem; }
.step-content img { width: 100%; max-height: 18rem; border: 1px solid var(--rule); object-fit: cover; }
.step-content p { margin-top: .72rem; color: var(--muted); }
.tool-labels { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin-top: .7rem; list-style: none; }
.tool-labels li { padding: .23rem .42rem; border: 1px solid var(--rule); }

/* 07 — Epilogue */
.epilogue {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  place-items: center;
  padding: 4.6rem var(--gutter) 6.4rem;
  border-top: 1px solid var(--rule);
  background: radial-gradient(ellipse 22rem 19rem at 50% 39%, #1d130d 0%, #100c09 52%, #080707 100%);
  text-align: center;
}
.epilogue-center { max-width: 100%; }
.flame-vessel { position: relative; display: grid; justify-items: center; margin-bottom: 2.45rem; }
.sacred-flame { transform-origin: center 77%; }
.flame-plinth { width: 4rem; height: .25rem; margin-top: -1.035rem; background: #9c744b; box-shadow: 0 .3rem 0 -.065rem #4d3526, 0 -.55rem 2.5rem .18rem #b667373d; }
.epilogue-seal { width: 2rem; height: 2rem; margin: 0 auto 1rem; }
.epilogue-title {
  color: var(--ink);
  font: 400 clamp(2.75rem, 6.3vw, 7rem)/.97 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.epilogue-wordmark {
  margin-top: 1.35rem;
  color: var(--label);
  font-family: var(--display);
  font-size: .91rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.epilogue-footer {
  position: absolute;
  bottom: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding-block: .55rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  text-align: left;
}
.epilogue-footer > a:last-child { grid-column: 3; justify-self: end; text-align: right; }
.epilogue-footer a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.epilogue-egg { grid-column: 2; width: 2.75rem; justify-content: center; opacity: .82; }

/* Enlarged studies */
.lightbox {
  width: min(65rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--rule-strong);
  background: var(--bg-primary);
  color: var(--bone);
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: #090807f0; }
.lightbox-inner { position: relative; padding: 1rem; }
.lightbox-close {
  position: absolute;
  z-index: 1;
  top: .65rem;
  right: .65rem;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: var(--bg-primary);
  font: 1.4rem var(--sans);
}
.lightbox figure img { width: 100%; height: min(74vh, 56rem); height: min(74svh, 56rem); object-fit: contain; background: #17130f; }
.lightbox figure figcaption { padding: .75rem .2rem 0; color: var(--label); }
.lightbox [role="status"] { margin-block: .75rem; }

@media (hover: hover) and (pointer: fine) {
  .button:not([aria-disabled="true"]):hover, .film-play:not([aria-disabled="true"]):hover {
    border-color: var(--label);
    background-color: #a8874c2c;
  }
  .top-nav > a:hover, .chapters-menu summary:hover, .sound-toggle:hover,
  .hero-scroll:hover, .epilogue-footer a:hover { color: var(--label); }
  .title-replay:hover { color: var(--ink); }
  .chapter-rail a:hover { color: var(--ink); }
  .chapter-rail a:hover .rail-label { opacity: 1; }
  .chapter-menu-list a:hover, .process-step summary:hover { background-color: #a8874c1a; }
  .detail-image:hover, .prop:hover { border-color: var(--label); }
}

/* Motion enhances presentation without changing where the content lives. */
@media (prefers-reduced-motion: no-preference) {
  :root.is-ready { scroll-behavior: smooth; }
  .type-pending .type-fragment { opacity: 0; }
  .hero-kicker, .hero-subtitle, .hero-intro, .hero-actions { animation: gold-in 810ms var(--ease-out) both; }
  .hero-subtitle { animation-delay: 120ms; }
  .hero-intro, .hero-actions { animation-delay: 195ms; }
  .hero .ash-field, .world-panel.is-in-view .ash-field { animation: ash-drift 19s linear 2 alternate; }
  .scroll-mark::before { animation: scroll-cue 3.2s var(--ease-in-out) 3; }
  .epilogue.is-in-view .sacred-flame { animation: flame-breathe 3.5s var(--ease-in-out) 5 alternate; }
  .relic[data-state="lit"] .relic-flame .fire-shape {
    animation: fire-flicker var(--fire-tempo) ease-in-out 6;
  }
  .relic[data-state="lit"] .relic-flame .fire-light {
    animation: fire-light var(--fire-tempo) ease-in-out 6;
  }
  .relic[data-state="lit"] .relic-flame .fire-sparks i {
    animation: ember-rise var(--ember-flight) var(--ease-out) var(--ember-delay) var(--ember-repeat);
  }
  .relic[data-state="spark"] .relic-spark { animation: spark 280ms var(--ease-out) 1; }
  .film-frame.is-playing video { animation: gold-in 250ms var(--ease-out) both; }
  .lightbox[open] .lightbox-inner { animation: lightbox-in 220ms var(--ease-out) both; }
}
@keyframes gold-in { from { opacity: .24; } to { opacity: 1; } }
@keyframes ash-drift { to { transform: translate3d(14px, 36px, 0); opacity: .74; } }
@keyframes scroll-cue { 60%, 100% { transform: translateY(.32rem); opacity: .32; } }
@keyframes flame-breathe {
  0%, 100% { transform: scale(1); }
  43% { transform: translateX(.5px) scale(.91, 1.07); opacity: .84; }
  72% { transform: translateX(-.5px) scale(1.05, .93); }
}
@keyframes fire-flicker {
  0%, 100% { transform: rotate(0) scale(1); }
  26% { transform: rotate(-3deg) scale(.93, 1.07); }
  48% { transform: rotate(3deg) scale(1.02, .93); opacity: .9; }
  71% { transform: rotate(-1deg) scale(.96, 1.035); }
}
@keyframes fire-light {
  0%, 100% { opacity: .68; }
  34% { opacity: .92; }
  53% { opacity: .52; }
  78% { opacity: .79; }
}
@keyframes ember-rise {
  0% { opacity: 0; transform: translate3d(0, .18rem, 0) scale(.92); }
  16% { opacity: .76; }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--ember-x) * var(--ember-distance, 1)), calc(var(--ember-y) * var(--ember-distance, 1)), 0) scale(.44);
  }
}
@keyframes spark {
  0% { opacity: 1; transform: translateY(0) scale(.91); }
  42% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-.5rem) scale(1.18); }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

@supports (animation-timeline: view()) and (animation-range: entry 0% exit 100%) and (view-timeline-name: --hero) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline-name: --hero; }
    .hero-vault {
      animation: vault-depth linear both;
      animation-duration: auto;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
    .hero-figure {
      animation: figure-depth linear both;
      animation-duration: auto;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width: 47.99rem) {
    .hero-vault { animation-name: vault-depth-compact; }
    .hero-figure { animation-name: figure-depth-compact; }
  }
}
@keyframes vault-depth { to { transform: scale(1.13) translate3d(0, 2%, 0); } }
@keyframes figure-depth { to { transform: translate3d(0, 8%, 0) scale(1.035); } }
@keyframes vault-depth-compact { to { transform: scale(1.065) translate3d(0, 1%, 0); } }
@keyframes figure-depth-compact { to { transform: translate3d(0, 4%, 0) scale(1.0175); } }

@media (max-width: 65rem) {
  :root { --gutter: clamp(1.4rem, 6vw, 4rem); --header-height: 6.375rem; }
  .header-inner { width: calc(100% - 2 * var(--gutter)); height: 3.625rem; }
  .chapter-rail { display: none; }
  .chapter-strip {
    position: relative;
    display: grid;
    height: 2.75rem;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    padding-inline: max(0px, calc(var(--gutter) - .3rem));
    border-top: 1px solid var(--rule);
    background: var(--bg-primary);
  }
  .chapter-strip a {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 2.75rem;
    color: var(--muted);
    font: .78rem var(--mono);
  }
  .chapter-strip a:focus-visible { outline-offset: -3px; }
  .chapter-strip a[aria-current] { color: var(--ink); background: #a8874c17; }
  .chapter-strip a[aria-current]::after { content: ""; position: absolute; right: 25%; bottom: 1px; left: 25%; height: 2px; background: var(--label); }
  .strip-progress { position: absolute; bottom: 0; inset-inline: 0; height: 1px; pointer-events: none; }
  .chapter-menu-list { top: calc(100% + 2.93rem); }
  .hero-vault { object-position: 69% 50%; }
  .hero-figure { right: -4%; bottom: -22%; }
  .hero-title { font-size: clamp(5.05rem, 10.2vw, 8.15rem); }
  .story-heading, .world-heading { align-items: start; flex-direction: column; gap: .6rem; }
}

@media (max-width: 47.99rem) {
  :root { --gutter: clamp(1.15rem, 5vw, 2.35rem); --section-space: clamp(3.65rem, 10vw, 5rem); }
  .wordmark { gap: .4rem; font-size: .81rem; letter-spacing: .13em; }
  .wordmark img { width: 1.9rem; height: 1.9rem; }
  .hero-composition { justify-content: end; padding-block: calc(var(--header-height) + 13.5rem) 4.75rem; }
  .hero-figure { top: clamp(4.1rem, 10vh, 6.25rem); bottom: auto; right: -22%; width: max(30rem, 112%); }
  .hero-vault { object-position: 68% 10%; }
  .hero-shade {
    background:
      linear-gradient(90deg, #0b0a0952, transparent 46%, #0b0a0922),
      linear-gradient(0deg, #0b0a09 0%, #0b0a09f6 13%, #0b0a09cc 31%, #0b0a0948 54%, transparent 77%, #0b0a09a7);
  }
  .hero-fire { width: clamp(1.85rem, 6.8vw, 2.65rem); }
  .hero-fire--edge { --fire-x: 89%; --fire-y: 76svh; }
  .hero-fire--near { --fire-x: 76%; --fire-y: 62svh; }
  .hero-fire--far { --fire-x: 93%; --fire-y: 48svh; }
  .hero-copy { padding-block: .8rem; }
  .hero-title { font-size: clamp(3.45rem, 15.4vw, 6rem); }
  .hero-kicker { margin-bottom: .95rem; font-size: .69rem; letter-spacing: .145em; }
  .hero-subtitle { margin-top: 1rem; gap: .45rem; font-size: .71rem; letter-spacing: .11em; }
  .hero-subtitle::before { width: .9rem; }
  .hero-intro { max-width: 17.5rem; margin-top: .75rem; }
  .hero-actions { margin-top: 1.25rem; column-gap: .85rem; }
  .hero-footer { min-height: 2.3rem; bottom: .95rem; grid-template-columns: 1fr 1fr; padding-top: .6rem; font-size: .69rem; }
  .hero-scroll { display: none; }
  .archive-spread, .process-spread, .character-spread, .prop-exhibit { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .section-heading { margin-bottom: 1.85rem; }
  .section-title { font-size: clamp(2.95rem, 8.2vw, 4.65rem); }
  .section-intro { margin-top: .8rem; }
  .archive-plate { max-width: 35rem; }
  .character-plate { --plate-height: min(59svh, 30rem); }
  .character-marker, .is-enhanced .character-marker { display: none; }
  .is-enhanced .detail-row.is-current {
    border-left-color: transparent;
    background: none;
  }
  .detail-row { min-height: 8.7rem; padding: .95rem .25rem; }
  .detail-image { width: 4.65rem; }
  .world-panel { height: clamp(16.5rem, 79vw, 27rem); }
  .world-back { object-position: 54% center; }
  .relic-copy { grid-row: 1; }
  .relic-display { min-height: 16rem; }
  .storyboard:not(.is-pinned) .story-track { grid-auto-columns: min(77vw, 29rem); }
  .story-shot figcaption { min-height: 9.1rem; }
  .gallery-controls { margin-top: .8rem; gap: .7rem; }
  .process-spread .section-heading { margin-bottom: 0; }
}

@media (max-width: 36rem) {
  .top-archive { display: none !important; }
  .header-inner { gap: .5rem; }
  .wordmark { flex: 0 1 auto; min-width: 0; }
  .top-nav { flex: none; gap: .55rem; }
  .chapters-menu { position: static; }
  .chapters-menu summary { font-size: .7rem; letter-spacing: .095em; }
  .sound-toggle { justify-content: center; min-width: 2.75rem; padding-left: 0; }
  .sound-toggle::before, .sound-toggle > span { display: none; }
  .chapter-strip { padding-inline: 0; }
  .chapter-menu-list { top: calc(100% + .45rem); right: var(--gutter); }
  .props-gallery { grid-template-columns: minmax(0, 1fr); }
  .prop { min-height: 6rem; grid-template-columns: 6.65rem minmax(0, 1fr); grid-template-rows: 1fr; }
  .prop > img { height: 6rem; padding: .24rem; }
  .prop-caption { border-top: 0; border-left: 1px solid var(--rule); }
  .film-meta { padding: .52rem; letter-spacing: .055em; font-size: .7rem; }
  .film-meta > span:first-child { display: none; }
  .film-meta { grid-template-columns: 1fr max-content; }
  .film-meta p { text-align: left; }
  .step-content { padding-left: .65rem; }
  .epilogue-footer { letter-spacing: .045em; font-size: .68rem; }
}

@media (max-width: 23.5rem) {
  .wordmark { font-size: .75rem; letter-spacing: .105em; }
  .wordmark img { width: 1.55rem; height: 1.55rem; }
  .hero-actions .hero-enter { gap: .55rem; padding-inline: .8rem; letter-spacing: .085em; }
  .title-replay { font-size: .7rem; letter-spacing: .035em; }
}

@media (max-height: 36rem) and (min-width: 48rem) {
  .hero-composition { padding-block: calc(var(--header-height) + 1rem) 5rem; }
  .hero-title { font-size: clamp(4rem, 8vw, 6rem); }
  .hero-figure { bottom: -72%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-depth] { transform: none !important; }
  .relic[data-state="spark"] .relic-spark { opacity: 1; }
  .button:active, .film-play:active { transform: none; }
}
