:root {
  --ink: #060606;
  --ink-soft: #0c0c0c;
  --stone: #151411;
  --stone-2: #24211b;
  --bone: #d7d0c0;
  --bone-dim: #9f988b;
  --ash: #716d66;
  --blood: #60251f;
  --rust: #8a4a31;
  --brass: #a48a5d;
  --line: rgba(215, 208, 192, .18);
  --comic: min(760px, 100vw);
  --ease-heavy: cubic-bezier(.16, .72, .18, 1);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background: var(--ink);
  color-scheme: dark;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  color: var(--bone);
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 106, 87, .08), transparent 30rem),
    var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0 1px, transparent 1.4px);
  background-size: auto, 7px 7px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blood); color: #fff; }
.title-line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem; top: 1rem;
  z-index: 200;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  color: #111; background: var(--bone);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.reading-progress {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 2px;
  z-index: 110;
  background: rgba(255,255,255,.04);
}
.reading-progress span {
  display: block; width: 100%; height: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #635c4d, #b6a070, #7b3029);
}

.sound-console {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 105;
  display: flex; align-items: center; gap: .8rem;
  width: min(330px, calc(100vw - 28px));
  min-height: 58px;
  padding: .72rem .9rem;
  color: #dbd3c3;
  text-align: left;
  border: 1px solid rgba(200,187,155,.36);
  border-radius: 0;
  background: rgba(8,8,7,.92);
  box-shadow: 0 10px 50px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .5s, background .5s;
}
.sound-console:hover,
.sound-console:focus-visible { border-color: rgba(210,188,135,.72); background: rgba(17,15,12,.96); outline: none; }
.sound-console__sig { display: flex; align-items: flex-end; gap: 3px; width: 30px; height: 28px; padding: 3px 0; }
.sound-console__sig i { display: block; width: 3px; height: 36%; background: var(--brass); opacity: .55; }
.sound-console__sig i:nth-child(2) { height: 75%; }
.sound-console__sig i:nth-child(3) { height: 100%; }
.sound-console__sig i:nth-child(4) { height: 58%; }
.sound-console.is-playing .sound-console__sig i { animation: soundBars 1.1s ease-in-out infinite alternate; opacity: 1; }
.sound-console.is-playing .sound-console__sig i:nth-child(2) { animation-delay: -.25s; }
.sound-console.is-playing .sound-console__sig i:nth-child(3) { animation-delay: -.5s; }
.sound-console.is-playing .sound-console__sig i:nth-child(4) { animation-delay: -.72s; }
.sound-console__copy { display: grid; gap: .18rem; min-width: 0; }
.sound-console__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Georgia, serif; font-size: .76rem; letter-spacing: .13em; }
.sound-console__copy small { color: var(--bone-dim); font-size: .68rem; letter-spacing: .12em; }
@keyframes soundBars { to { height: 18%; } }

.prologue-gate { height: 180svh; background: #000; }
.gate-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.gate-sticky picture, .gate-sticky picture img { width: 100%; height: 100%; }
.gate-sticky picture img { object-fit: cover; object-position: 50% 50%; transform: scale(calc(1 + var(--gate-progress, 0) * .055)); will-change: transform; }
.gate-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.2) 50%, #000 106%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.38) 100%);
}
.official-logo {
  position: absolute;
  left: 50%; top: 45%; z-index: 2;
  width: min(910px, 75vw); height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 42px rgba(0,0,0,.9));
  mix-blend-mode: screen;
}
.gate-caption {
  position: absolute; left: clamp(24px, 6vw, 110px); bottom: clamp(44px, 9vh, 110px); z-index: 3;
  max-width: 35rem;
  padding-left: 1.3rem; border-left: 1px solid rgba(215,208,192,.5);
}
.gate-caption span, .eyebrow { font-family: Georgia, serif; font-size: .7rem; letter-spacing: .25em; color: #b7aa90; }
.gate-caption p { margin: .7rem 0 0; color: #d6d0c4; font-size: clamp(.9rem, 1.15vw, 1.08rem); line-height: 1.8; }
.scroll-mark { position: absolute; right: clamp(18px, 3vw, 50px); bottom: 42px; z-index: 3; display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.64); font: 600 .58rem/1 Arial, sans-serif; letter-spacing: .22em; writing-mode: vertical-rl; }
.scroll-mark span { width: 1px; height: 48px; background: linear-gradient(#aaa, transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 50% { transform: scaleY(.48); opacity: .4; } }

.webtoon {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent calc(50% - 500px), rgba(255,255,255,.013) 50%, transparent calc(50% + 500px)),
    #000;
  padding-bottom: 0;
}
.story-act { position: relative; padding: 20svh 0 28svh; }
.story-act::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.028), transparent); }
.comic-frame {
  position: relative;
  width: min(var(--frame-w, 620px), calc(100vw - 32px));
  margin: var(--space-before, 22svh) auto 0;
  overflow: hidden;
  background: #090909;
  box-shadow: 0 35px 95px rgba(0,0,0,.62);
  isolation: isolate;
}
.comic-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(225,215,197,.05); background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.12)); }
.comic-frame picture, .comic-frame picture img, .comic-frame > img { width: 100%; height: auto; }
.comic-frame > img, .comic-frame picture img { will-change: transform; }
.frame--edge { --frame-w: 880px; }
.frame--wide { --frame-w: 760px; }
.frame--mid { --frame-w: 620px; }
.frame--detail { --frame-w: 460px; }
.frame--small { --frame-w: 360px; }
.frame--left { margin-left: max(16px, calc(50% - 480px)); margin-right: auto; }
.frame--right { margin-left: auto; margin-right: max(16px, calc(50% - 480px)); }
.frame--tall { --space-before: 36svh; }

.crop { aspect-ratio: var(--crop-ratio, 4 / 3); }
.crop > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--crop-pos, 50% 50%); transform: scale(var(--crop-scale, 1)); }
.crop--p01-land { --crop-ratio: 16 / 10; --crop-pos: 50% 76%; --crop-scale: 1.05; }
.crop--p02-face { --crop-ratio: 5 / 4; --crop-pos: 50% 30%; --crop-scale: 1.2; }
.crop--p03-relic { --crop-ratio: 4 / 3; --crop-pos: 45% 57%; --crop-scale: 1.15; }
.crop--p05-altar { --crop-ratio: 4 / 5; --crop-pos: 50% 66%; --crop-scale: 1.05; }
.crop--p06-altar { --crop-ratio: 4 / 5; --crop-pos: 50% 48%; --crop-scale: 1.03; }
.crop--p07-bread { --crop-ratio: 4 / 3; --crop-pos: 18% 78%; --crop-scale: 1.3; }
.crop--p07-cart { --crop-ratio: 4 / 3; --crop-pos: 68% 59%; --crop-scale: 1.28; }
.crop--p09-hands { --crop-ratio: 3 / 2; --crop-pos: 50% 75%; --crop-scale: 1.18; }
.crop--p10-hands { --crop-ratio: 3 / 2; --crop-pos: 52% 75%; --crop-scale: 1.2; }
.crop--p11-blindfold { --crop-ratio: 5 / 4; --crop-pos: 50% 29%; --crop-scale: 1.26; }
.crop--p11-body { --crop-ratio: 4 / 5; --crop-pos: 50% 44%; --crop-scale: 1.05; }
.crop--p13-sanctuary { --crop-ratio: 16 / 9; --crop-pos: 50% 0%; }
.crop--p13-sanctuary::after { background: rgba(0,0,0,.22); }
.crop--p13-face { --crop-ratio: 4 / 5; --crop-pos: 50% 72%; --crop-scale: 1.06; }
.crop--p14-eyes { --crop-ratio: 3 / 2; --crop-pos: 50% 26%; --crop-scale: 1.25; }
.crop--p20-sprout { --crop-ratio: 1 / 1; --crop-pos: 50% 75%; --crop-scale: 1.62; }
.crop--p21-sign { --crop-ratio: 4 / 3; --crop-pos: 55% 82%; --crop-scale: 1.22; }

.void { height: 44svh; }
.void--large { height: 70svh; }
.void--abyss { height: 112svh; }
.archive-threshold {
  width: min(760px, calc(100vw - 40px));
  min-height: 38svh;
  margin: 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  color: #8f887b;
  text-align: center;
}
.archive-threshold span { color: var(--brass); font: .64rem Georgia, serif; letter-spacing: .24em; }
.archive-threshold i { display: block; width: 1px; height: 54px; background: linear-gradient(transparent, var(--brass), transparent); }
.archive-threshold p { margin: 0; font-size: .78rem; letter-spacing: .08em; }
.narration {
  position: relative; z-index: 2;
  width: min(720px, calc(100vw - 40px));
  min-height: 35svh;
  margin: 38svh auto 0;
  display: flex; flex-direction: column; justify-content: center;
  color: #ddd8ce;
  font-weight: 750;
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  line-height: 1.55;
  letter-spacing: -.04em;
}
.narration p { margin: .1em 0; }
.narration p:nth-child(even) { margin-left: auto; text-align: right; }
.narration--opening { min-height: 70svh; margin-top: 10svh; justify-content: flex-end; }
.narration--end { min-height: 55svh; }
.narration--brief, .narration--short { min-height: 22svh; margin-top: 20svh; }
.narration--whisper { width: min(580px, calc(100vw - 40px)); min-height: 50svh; font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 500; color: #a7a198; }
.narration--stack { min-height: 80svh; align-items: center; text-align: center; }
.narration--stack p:nth-child(even) { margin-left: 0; text-align: center; }
.narration .accent-word { margin: .4em 0; color: #9e4438; font-family: Georgia, serif; font-size: clamp(4.5rem, 12vw, 9rem); line-height: .9; letter-spacing: -.08em; }
.narration--unfinished { min-height: 70svh; align-items: center; text-align: center; }
.narration--final { min-height: 92svh; align-items: center; text-align: center; font-size: clamp(2rem, 5vw, 4.4rem); }

.sanctuary-dissolve { height: 170svh; margin-top: 15svh; }
.sanctuary-sticky { position: sticky; top: 0; height: 100svh; width: min(760px, 100vw); margin: 0 auto; overflow: hidden; }
.sanctuary-sticky picture { position: absolute; inset: 0; }
.sanctuary-sticky img { width: 100%; height: 100%; object-fit: cover; }
.sanctuary-after { opacity: var(--dissolve, 0); }
.sanctuary-sticky::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 100px rgba(0,0,0,.6); pointer-events: none; }

.street-beats { width: min(860px, 100%); margin: 0 auto; display: flex; gap: clamp(1rem, 4vw, 4rem); align-items: flex-start; }
.street-beats .comic-frame:nth-child(2) { margin-top: 12svh; }
.comic-frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 3rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); color: #e4ded2; font-weight: 700; letter-spacing: .02em; }

.cast-entrances { padding-top: 8svh; }
.character-entrance { position: relative; padding: 35svh 0 45svh; }
.character-title { position: relative; width: min(720px, calc(100vw - 40px)); margin: 10svh auto 0; }
.character-title--right { text-align: right; }
.character-title span { color: var(--brass); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.character-title h2 { margin: .1em 0 .24em; color: #eee8dd; font-size: clamp(4rem, 12vw, 9rem); line-height: .9; letter-spacing: -.09em; }
.character-title p { margin: .3rem 0; color: #aba49a; font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.9; }
.character-title .second-beat { margin-top: 10svh; }
.character-entrance--morna { background: radial-gradient(ellipse at 50% 35%, rgba(201,210,215,.06), transparent 37%); }
.character-entrance--dravia { background: radial-gradient(ellipse at 55% 45%, rgba(72,43,80,.14), transparent 32%); }

.story-act--depths .comic-frame { --space-before: 28svh; }
.story-act--depths .comic-frame:nth-of-type(4) { --frame-w: 800px; }
.story-act--garden { background: radial-gradient(circle at 50% 60%, rgba(87,111,76,.055), transparent 20%); }

.reveal { opacity: 0; filter: blur(8px); clip-path: inset(5% 0 5% 0); transition: opacity 1.4s var(--ease-heavy), filter 1.8s var(--ease-heavy), clip-path 1.8s var(--ease-heavy); }
.reveal.is-visible { opacity: 1; filter: none; clip-path: inset(0); }

/* Main archive */
.archive {
  position: relative;
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px) 0 0 / 7.5vw 100%,
    linear-gradient(180deg, #090909, #11100e 22%, #090909);
}
.archive-hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.archive-hero__art, .archive-hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.archive-hero__art img { object-fit: cover; object-position: 54% 50%; transform: scale(var(--archive-scale, 1.03)); }
.archive-hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.5) 48%, rgba(5,5,5,.1) 74%), linear-gradient(0deg, #090909 0%, transparent 35%); }
.archive-hero__content { position: relative; z-index: 2; min-height: 100svh; width: min(1500px, calc(100% - 10vw)); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.archive-hero__content > img { width: min(760px, 65vw); height: auto; margin: -6rem 0 -5rem; mix-blend-mode: screen; }
.archive-hero__content p { margin: 0; padding-left: 1.4rem; border-left: 1px solid var(--brass); color: #c6bfb1; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.9; }
.archive-hero__actions { margin-top: 2rem; }
.archive-hero__actions a { display: inline-flex; align-items: center; gap: .8rem; min-height: 50px; padding: .8rem 1.25rem; border: 1px solid rgba(201,185,151,.5); color: #eee7dc; text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .1em; background: rgba(4,4,4,.62); transition: color .3s, background .3s, border-color .3s; }
.archive-hero__actions a:hover, .archive-hero__actions a:focus-visible { color: #0b0a08; background: var(--bone); border-color: var(--bone); outline: none; }
.archive-nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; gap: clamp(1.4rem, 4vw, 4.5rem); min-height: 58px; padding: 0 4vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,7,6,.88); backdrop-filter: blur(14px); }
.archive-nav a { display: grid; place-items: center; color: #a39c90; text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .14em; transition: color .3s; }
.archive-nav a:hover, .archive-nav a:focus-visible { color: #eee8dd; outline: none; }
.archive-nav .archive-nav__prologue { color: #d4bc86; }

.stone-section { position: relative; background: linear-gradient(135deg, rgba(255,255,255,.02), transparent 50%), #11100e; }
.stone-section::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background: repeating-linear-gradient(100deg, transparent 0 9px, rgba(255,255,255,.015) 10px, transparent 11px 25px); }
.section-index { width: min(1500px, calc(100% - 10vw)); margin: 0 auto; padding-top: 8rem; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); color: #8d8678; font-family: Georgia, serif; letter-spacing: .18em; }
.section-index span { font-size: .68rem; }
.section-index b { font-size: .7rem; font-weight: 400; }
.world-record { padding-bottom: 18rem; }
.world-statement { width: min(1400px, calc(100% - 10vw)); margin: 12rem auto 10rem; display: grid; grid-template-columns: minmax(3rem, .35fr) minmax(0, 2.25fr) minmax(16rem, 1fr); gap: 4vw; align-items: end; }
.world-statement .kicker { align-self: start; color: var(--brass); font-family: Georgia, serif; font-size: .76rem; letter-spacing: .12em; writing-mode: vertical-rl; }
.world-statement h2 { margin: 0; color: #e5ded1; font-size: clamp(3.6rem, 7vw, 7.2rem); line-height: .96; letter-spacing: -.085em; word-break: keep-all; overflow-wrap: normal; }
.world-statement > p:last-child { margin: 0 0 .5rem; color: #9d968b; font-size: .98rem; line-height: 2.05; }
.world-monument { position: relative; width: min(1500px, 94vw); margin: 0 0 0 auto; }
.world-monument img { width: 100%; max-height: 78svh; object-fit: cover; filter: saturate(.72) contrast(1.05); }
.world-monument figcaption { position: absolute; left: 5vw; bottom: 4vw; max-width: 22rem; padding: 1.2rem 1.5rem; border-left: 2px solid var(--rust); background: rgba(7,7,6,.75); }
.world-monument figcaption span { color: var(--brass); font-size: .68rem; letter-spacing: .18em; }
.world-monument figcaption p { margin: .6rem 0 0; color: #c5bfb4; line-height: 1.7; }

.regions { padding: 0 0 12rem; overflow: hidden; background: #080808; }
.regions-heading { width: min(1500px, calc(100% - 10vw)); margin: 9rem auto 5rem; display: grid; grid-template-columns: 2fr 1fr; gap: 8vw; align-items: end; }
.regions-heading h2, .people-heading h2, .rites-heading h2, .observations-heading h2 { margin: 0; color: #e4ddd0; font-size: clamp(3rem, 6.1vw, 6.6rem); line-height: .98; letter-spacing: -.075em; word-break: keep-all; overflow-wrap: normal; }
.regions-heading p { color: #9b958a; line-height: 1.9; }
.region-scroll { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-color: var(--rust) #111; padding: 0 5vw 2rem; }
.region-panel { position: relative; flex: 0 0 min(79vw, 1180px); height: min(73svh, 780px); scroll-snap-align: center; overflow: hidden; background: #121212; }
.region-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.64) brightness(.72); transition: transform 1.4s var(--ease-heavy), filter .8s; }
.region-panel:hover img { transform: scale(1.025); filter: saturate(.76) brightness(.82); }
.region-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,3,3,.93), transparent 62%), linear-gradient(90deg, rgba(0,0,0,.28), transparent 50%); }
.region-panel > div { position: absolute; left: clamp(1.5rem, 4vw, 4rem); right: clamp(1.5rem, 4vw, 4rem); bottom: clamp(1.5rem, 4vw, 4rem); z-index: 2; display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 2rem; align-items: end; }
.region-panel span { color: var(--brass); font: .66rem/1.4 Georgia, serif; letter-spacing: .2em; }
.region-panel h3 { margin: 0; color: #f0eadf; font-size: clamp(2.4rem, 4.3vw, 4.8rem); line-height: .9; letter-spacing: -.07em; white-space: nowrap; word-break: keep-all; }
.region-panel p { margin: 0; color: #b5aea2; line-height: 1.75; }

.people { padding-bottom: 12rem; background: linear-gradient(180deg, #11100e, #080808); }
.people-heading { width: min(1500px, calc(100% - 10vw)); margin: 9rem auto 0; display: flex; justify-content: space-between; align-items: end; gap: 4rem; }
.people-heading > span { color: var(--brass); writing-mode: vertical-rl; font: .68rem/1.5 Georgia, serif; letter-spacing: .2em; }
.person-procession { margin-top: 8rem; }
.person { position: relative; min-height: 105svh; display: flex; align-items: center; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.person::before { content: attr(data-name); position: absolute; top: 50%; color: rgba(255,255,255,.018); font: 900 clamp(12rem, 30vw, 32rem)/.7 Arial, sans-serif; letter-spacing: -.12em; white-space: nowrap; transform: translateY(-50%); }
.person--left::before { left: -3vw; }
.person--right::before { right: -3vw; }
.person > img { position: absolute; bottom: 0; width: min(52vw, 720px); height: 92%; object-fit: contain; object-position: 50% 100%; filter: saturate(.72) contrast(1.04); -webkit-mask-image: linear-gradient(#000 75%, transparent 100%); mask-image: linear-gradient(#000 75%, transparent 100%); }
.person--left > img { left: 4vw; }
.person--right > img { right: 4vw; }
.person-copy { position: relative; z-index: 2; width: min(560px, 40vw); }
.person--left .person-copy { margin-left: auto; margin-right: 10vw; }
.person--right .person-copy { margin-left: 10vw; }
.person-copy span { color: var(--brass); font-family: Georgia, serif; font-size: .7rem; letter-spacing: .2em; }
.person-copy h3 { margin: .18em 0; color: #eee7db; font-size: clamp(4rem, 9vw, 8rem); line-height: .9; letter-spacing: -.1em; }
.person-copy p { max-width: 28rem; color: #a8a196; font-size: clamp(.95rem, 1.3vw, 1.14rem); line-height: 1.9; }
.name-archive { width: min(1500px, calc(100% - 10vw)); margin: 12rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.catalog-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.catalog-heading > span { color: var(--brass); font: .65rem Georgia, serif; letter-spacing: .22em; }
.catalog-heading p { margin: 0; color: #858077; font-size: .82rem; line-height: 1.7; }
.catalog-heading--wide { width: min(1500px, calc(100% - 10vw)); margin: 0 auto 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.character-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.character-card { min-width: 0; overflow: hidden; background: #090908; }
.character-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; filter: saturate(.68) contrast(1.04) brightness(.82); transition: filter .6s, transform .9s var(--ease-heavy); }
.character-card:hover img { filter: saturate(.82) contrast(1.02) brightness(.94); transform: scale(1.025); }
.character-card > div { min-height: 10.5rem; padding: 1.25rem 1.35rem 1.5rem; }
.character-card span { color: var(--brass); font: .62rem/1.5 Georgia, serif; letter-spacing: .13em; }
.character-card h3 { margin: .42rem 0 .7rem; color: #ded7cc; font-size: clamp(1.45rem, 2.2vw, 2.15rem); letter-spacing: -.055em; line-height: 1.05; word-break: keep-all; }
.character-card p { margin: 0; color: #8f8980; font-size: .78rem; line-height: 1.72; word-break: keep-all; }
.character-card--hidden { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(17rem, .65fr) 1.35fr; box-shadow: inset 0 0 0 1px rgba(138,74,49,.58); background: linear-gradient(145deg, rgba(96,37,31,.15), #090908 50%); }
.character-card--hidden img { height: 100%; aspect-ratio: 16 / 10; object-position: 50% 18%; }
.character-card--hidden > div { align-self: center; min-height: 0; padding: 2rem clamp(1.5rem, 4vw, 4rem); }

.rites { padding-bottom: 16rem; }
.rites-heading { width: min(1300px, calc(100% - 10vw)); margin: 10rem auto 6rem; display: grid; grid-template-columns: .7fr 2fr; gap: 6vw; align-items: start; }
.rites-heading p { color: var(--brass); font-size: .74rem; letter-spacing: .14em; line-height: 1.8; }
.rite-lines { width: min(1300px, calc(100% - 10vw)); margin: 0 auto 10rem; }
.rite-line { display: grid; grid-template-columns: .35fr .8fr 1.3fr; gap: 3vw; align-items: baseline; padding: 2.8rem 0; border-top: 1px solid var(--line); }
.rite-line:last-child { border-bottom: 1px solid var(--line); }
.rite-line span { color: var(--rust); font: .7rem Georgia, serif; }
.rite-line h3 { margin: 0; color: #e9e2d7; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.08em; }
.rite-line p { margin: 0; color: #a29b90; line-height: 1.9; }
.rite-chamber { position: relative; width: min(1100px, 90vw); margin: 0 auto; }
.rite-chamber img { width: 100%; filter: saturate(.62) brightness(.78); }
.rite-chamber figcaption { position: absolute; right: 0; bottom: 0; max-width: 26rem; padding: 1.4rem 1.8rem; color: #c5beb2; line-height: 1.8; border-top: 1px solid var(--rust); background: rgba(7,7,6,.88); }

.observations { padding-bottom: 16rem; overflow: hidden; background: #070707; }
.observations-heading { width: min(1500px, calc(100% - 10vw)); margin: 10rem auto 6rem; display: grid; grid-template-columns: .55fr 1.7fr .8fr; gap: 4vw; align-items: end; }
.observations-heading > span { color: var(--brass); font: .66rem Georgia, serif; letter-spacing: .14em; writing-mode: vertical-rl; }
.observations-heading p { color: #918b81; line-height: 1.9; }
.specimen-grid { width: min(1500px, calc(100% - 10vw)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.specimen { min-width: 0; margin: 0; background: #080807; }
.specimen-window { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #050505; clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%); }
.specimen-window::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 100px #000; background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 30%); }
.specimen-window img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.12) brightness(.76); transform: scale(1.06); transition: filter .7s, transform 1.2s var(--ease-heavy); }
.specimen:hover img { filter: saturate(.72) contrast(1.08) brightness(.9); transform: scale(1.04); }
.specimen figcaption { min-height: 11.5rem; padding: 1.7rem 1.8rem 2rem; display: grid; align-content: start; gap: .6rem; }
.specimen figcaption span { color: var(--rust); font: .64rem Georgia, serif; letter-spacing: .18em; }
.specimen figcaption b { color: #ded7cc; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.15; word-break: keep-all; overflow-wrap: normal; }
.specimen figcaption small { max-width: 26rem; color: #8f8980; font-size: .84rem; line-height: 1.75; }
.specimen-grid--boss { margin-top: 0; }
.specimen--boss .specimen-window { aspect-ratio: 4 / 5; }
.specimen-window--phases { display: grid; grid-template-columns: repeat(3, 1fr); }
.specimen-window--phases img { min-width: 0; transform: none; }
.specimen-window--phases img:first-child { object-position: 43% 50%; }
.specimen-window--phases img:not(:first-child) { border-left: 1px solid rgba(215,208,192,.28); }
.specimen-window--phases img:nth-child(2) { object-position: 54% 50%; }
.specimen-window--phases img:last-child { object-position: 50% 50%; }
.specimen--phases:hover .specimen-window--phases img { transform: scale(1.02); }
.boss-threshold { width: min(1500px, calc(100% - 10vw)); min-height: 44svh; margin: 8rem auto 3rem; display: grid; place-content: center; text-align: center; background: radial-gradient(ellipse at center, rgba(91,36,31,.16), transparent 48%); }
.boss-threshold span { color: var(--rust); font: .7rem Georgia, serif; letter-spacing: .24em; }
.boss-threshold h3 { margin: 1.1rem 0 .3rem; color: #ddd6ca; font-size: clamp(2.4rem, 5vw, 5.5rem); line-height: 1; letter-spacing: -.07em; word-break: keep-all; }
.boss-threshold p { margin: 1.2rem 0; color: #918b81; font-size: clamp(.9rem, 1.2vw, 1.05rem); line-height: 1.8; word-break: keep-all; }

.enter { position: relative; min-height: 110svh; display: grid; align-items: center; overflow: hidden; background: #050505; }
.enter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.58) brightness(.55); }
.enter-veil { position: absolute; inset: 0; background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.78) 38%, rgba(5,5,5,.1) 75%), linear-gradient(0deg, #050505, transparent 40%, rgba(0,0,0,.25)); }
.enter-content { position: relative; z-index: 2; width: min(1500px, calc(100% - 10vw)); margin: 0 auto; }
.enter-content > span { color: var(--brass); font: .68rem Georgia, serif; letter-spacing: .22em; }
.enter-content h2 { margin: .35em 0; color: #eee7dc; font-size: clamp(4rem, 8vw, 8rem); line-height: .9; letter-spacing: -.085em; word-break: keep-all; }
.enter-content p { color: #a9a297; line-height: 1.9; }
.enter-actions { display: flex; gap: 1px; margin-top: 3rem; }
.enter-actions a { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; min-height: 52px; padding: .85rem 1.4rem; border: 1px solid rgba(201,185,151,.38); color: #ddd6c9; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; background: rgba(4,4,4,.6); transition: color .3s, background .3s, border-color .3s; }
.enter-actions a:hover, .enter-actions a:focus-visible { color: #0b0a08; background: var(--bone); border-color: var(--bone); outline: none; }
.site-footer { min-height: 42svh; padding: 7rem 5vw 5rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: end; border-top: 1px solid var(--line); background: #050505; }
.site-footer img { width: min(420px, 36vw); height: auto; margin: -4rem 0 -3rem; mix-blend-mode: screen; }
.site-footer p { margin: 0; color: #767168; font: .62rem Georgia, serif; letter-spacing: .16em; text-align: center; }
.site-footer a { justify-self: end; color: #9c9588; text-decoration: none; font-size: .7rem; letter-spacing: .12em; }

/* Click-open archive records */
body.has-record-modal { overflow: hidden; }
.archive-entry { cursor: pointer; }
.archive-entry:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 5px;
}
.archive-entry .record-open-cue {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  color: #b8a47a;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.archive-entry .record-open-cue::after { content: "↗"; font-size: .8rem; }
.person.archive-entry .record-open-cue { color: #d2bd8e; }
.specimen.archive-entry:hover,
.character-card.archive-entry:hover { box-shadow: inset 0 0 0 1px rgba(184, 156, 104, .52); }

.record-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 44px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease, visibility .34s;
}
.record-modal[hidden] { display: none; }
.record-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.record-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(13px);
}
.record-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .75fr);
  width: min(1240px, 100%);
  height: min(88svh, 900px);
  overflow: hidden;
  border: 1px solid rgba(190, 170, 128, .36);
  color: var(--bone);
  background: #090908;
  box-shadow: 0 32px 120px rgba(0, 0, 0, .78), inset 0 1px rgba(255, 255, 255, .035);
  transform: translateY(18px) scale(.985);
  transition: transform .42s var(--ease-heavy);
}
.record-modal.is-open .record-modal__panel { transform: none; }
.record-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(215, 208, 192, .34);
  border-radius: 50%;
  color: var(--bone);
  background: rgba(7, 7, 7, .78);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s, transform .25s;
}
.record-modal__close:hover,
.record-modal__close:focus-visible { border-color: var(--brass); background: #17140f; outline: none; transform: rotate(5deg); }
.record-modal__close span::before,
.record-modal__close span::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 22px;
  width: 20px;
  height: 1px;
  background: currentColor;
}
.record-modal__close span::before { transform: rotate(45deg); }
.record-modal__close span::after { transform: rotate(-45deg); }
.record-modal__media {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #030303;
}
.record-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset -1px 0 rgba(215, 208, 192, .12), inset 0 -60px 90px rgba(0, 0, 0, .18);
}
.record-modal__media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  background: #030303;
}
.record-modal__media--multi { gap: 1px; overflow-x: auto; scroll-snap-type: x mandatory; }
.record-modal__media--multi img { flex: 0 0 100%; scroll-snap-align: center; }
.record-modal__gallery-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: .58rem .72rem;
  color: #d8cfbd;
  border: 1px solid rgba(215, 208, 192, .28);
  background: rgba(5, 5, 5, .76);
  font-size: .62rem;
  letter-spacing: .08em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.record-modal__body {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(3rem, 5vw, 6rem) clamp(2rem, 4.5vw, 5rem) 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rust) transparent;
  background:
    linear-gradient(145deg, rgba(96, 37, 31, .1), transparent 36%),
    #090908;
}
.record-modal__eyebrow {
  display: block;
  padding-right: 2.5rem;
  color: var(--brass);
  font: .67rem/1.55 Georgia, serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  word-break: keep-all;
}
.record-modal__body h2 {
  margin: .55rem 0 1.25rem;
  color: #eee7da;
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.075em;
  word-break: keep-all;
}
.record-modal__summary {
  margin: 0;
  color: #c2baad;
  font-size: clamp(.95rem, 1.35vw, 1.13rem);
  line-height: 1.9;
  word-break: keep-all;
}
.record-modal__divider { width: 100%; height: 1px; margin: 2rem 0; background: linear-gradient(90deg, var(--rust), var(--line), transparent); }
.record-modal__details { display: grid; gap: 1.6rem; }
.record-modal__section span {
  display: block;
  margin-bottom: .55rem;
  color: #8e6b4f;
  font: .62rem/1.4 Georgia, serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.record-modal__section p { margin: 0; color: #989188; font-size: .88rem; line-height: 1.85; word-break: keep-all; }
.record-modal__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .25rem; }
.record-modal__tags em { padding: .45rem .65rem; border: 1px solid rgba(164, 138, 93, .25); color: #a9a094; font-size: .68rem; font-style: normal; line-height: 1.2; }

@media (min-width: 901px) {
  .specimen-grid--boss .specimen--phases { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(22rem, .8fr); }
  .specimen-grid--boss .specimen--phases .specimen-window { aspect-ratio: 16 / 9; }
  .specimen-grid--boss .specimen--phases figcaption { align-content: center; min-height: 0; padding: clamp(2rem, 4vw, 4rem); }
}

@media (max-width: 900px) {
  .official-logo { width: min(880px, 92vw); }
  .gate-caption { left: 5vw; }
  .frame--left { margin-left: 3vw; }
  .frame--right { margin-right: 3vw; }
  .world-statement { grid-template-columns: 1fr; }
  .world-statement .kicker { writing-mode: initial; }
  .regions-heading { grid-template-columns: 1fr; }
  .region-panel { flex-basis: 88vw; }
  .region-panel > div { grid-template-columns: 1fr; gap: .7rem; }
  .people-heading { display: block; }
  .people-heading > span { display: block; margin-bottom: 1rem; writing-mode: initial; }
  .person-copy { width: 46vw; }
  .character-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rites-heading { grid-template-columns: 1fr; }
  .observations-heading { grid-template-columns: 1fr; }
  .observations-heading > span { writing-mode: initial; }
  .specimen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-modal__panel { grid-template-columns: minmax(0, 1fr) minmax(19rem, .82fr); }
}

@media (max-width: 760px) {
  :root { --comic: 100vw; }
  body::before { opacity: .1; }
  .sound-console { width: min(260px, calc(100vw - 20px)); min-height: 52px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: .6rem .68rem; }
  .sound-console__copy strong { font-size: .65rem; }
  .gate-sticky picture img { object-position: 51% 48%; }
  .official-logo { top: 43%; width: 100vw; }
  .gate-caption { left: 6vw; right: 18vw; bottom: 10vh; padding-left: 1rem; }
  .gate-caption p { font-size: .83rem; }
  .scroll-mark { right: 12px; bottom: 72px; }
  .webtoon { background: #000; }
  .story-act { padding: 14svh 0 22svh; }
  .comic-frame { width: min(var(--frame-w, 100vw), 100vw); margin-top: var(--space-before, 16svh); }
  .frame--edge, .frame--wide, .frame--mid { --frame-w: 100vw; }
  .frame--detail { --frame-w: 78vw; }
  .frame--small { --frame-w: 72vw; }
  .frame--left { margin-left: 0; }
  .frame--right { margin-right: 0; }
  .frame--tall { --space-before: 28svh; }
  .narration { width: calc(100vw - 44px); min-height: 30svh; margin-top: 28svh; font-size: clamp(1.25rem, 6.4vw, 1.7rem); line-height: 1.62; }
  .narration--opening { min-height: 58svh; margin-top: 5svh; }
  .narration--whisper { min-height: 42svh; font-size: .98rem; }
  .narration--final { min-height: 76svh; font-size: 2rem; }
  .narration .accent-word { font-size: 5.4rem; }
  .void--large { height: 52svh; }
  .void--abyss { height: 86svh; }
  .archive-threshold { min-height: 30svh; }
  .sanctuary-dissolve { height: 150svh; }
  .sanctuary-sticky { width: 100vw; }
  .street-beats { display: block; }
  .street-beats .comic-frame { width: 72vw; }
  .street-beats .comic-frame:nth-child(2) { margin-top: 10svh; margin-left: auto; }
  .character-entrance { padding: 25svh 0 35svh; }
  .character-title { width: calc(100vw - 36px); margin-top: 8svh; }
  .character-title h2 { font-size: clamp(4rem, 25vw, 7rem); }
  .character-title p { font-size: .98rem; }
  .archive-hero { min-height: 92svh; display: grid; align-items: center; background: #090909; }
  .archive-hero__art { inset: auto 0 12vh; height: auto; aspect-ratio: 16/9; }
  .archive-hero__art img { object-fit: contain; object-position: 50% 50%; }
  .archive-hero__veil { background: linear-gradient(180deg, #090909 0%, rgba(9,9,9,.1) 36%, rgba(9,9,9,.35) 72%, #090909 100%); }
  .archive-hero__content { min-height: 92svh; width: calc(100% - 36px); justify-content: flex-start; padding-top: 13vh; }
  .archive-hero__content > img { width: 100%; margin: -3rem 0 -3.2rem; }
  .archive-hero__content p { font-size: .9rem; }
  .archive-hero__actions { margin-top: 1.4rem; }
  .archive-hero__actions a { min-height: 46px; padding: .72rem 1rem; }
  .archive-nav { justify-content: flex-start; gap: 1.5rem; overflow-x: auto; padding: 0 1.2rem; }
  .archive-nav a { flex: none; }
  .section-index { width: calc(100% - 36px); padding-top: 5rem; }
  .world-record { padding-bottom: 8rem; }
  .world-statement { width: calc(100% - 36px); margin: 6rem auto 5rem; gap: 2rem; }
  .world-statement h2 { font-size: 3.5rem; }
  .world-monument { width: 100vw; }
  .world-monument img { min-height: 62svh; object-fit: cover; }
  .world-monument figcaption { left: 18px; right: 18px; bottom: 18px; }
  .regions { padding-bottom: 7rem; }
  .regions-heading { width: calc(100% - 36px); margin: 5rem auto 3rem; }
  .title-line { width: auto; white-space: normal; word-break: keep-all; }
  .regions-heading h2, .people-heading h2, .rites-heading h2, .observations-heading h2 { font-size: clamp(2.75rem, 13vw, 3.45rem); }
  .region-scroll { padding-inline: 18px; }
  .region-panel { flex-basis: calc(100vw - 36px); height: 70svh; }
  .region-panel h3 { font-size: 3.4rem; }
  .region-panel p { font-size: .86rem; }
  .people { padding-bottom: 7rem; }
  .people-heading { width: calc(100% - 36px); margin: 5rem auto 0; }
  .person-procession { margin-top: 5rem; }
  .person { min-height: 92svh; align-items: end; padding-bottom: 8vh; }
  .person::before { top: 24%; font-size: 44vw; }
  .person > img { width: 84vw; height: 79%; object-position: 50% 100%; opacity: .8; }
  .person--left > img { left: -8vw; }
  .person--right > img { right: -8vw; }
  .person-copy, .person--left .person-copy, .person--right .person-copy { width: calc(100% - 36px); margin: 0 18px; padding: 1.2rem 1.1rem; background: linear-gradient(90deg, rgba(6,6,6,.92), rgba(6,6,6,.56)); border-left: 1px solid var(--rust); }
  .person--right .person-copy { text-align: right; border-left: 0; border-right: 1px solid var(--rust); }
  .person-copy h3 { font-size: 4.8rem; }
  .person-copy p { font-size: .82rem; letter-spacing: -.035em; }
  .name-archive { width: calc(100% - 36px); margin-top: 6rem; }
  .catalog-heading { display: grid; gap: .65rem; }
  .character-index { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
  .character-card > div { min-height: 10rem; padding: 1rem .9rem 1.2rem; }
  .character-card span { font-size: .55rem; letter-spacing: .08em; }
  .character-card h3 { font-size: 1.45rem; }
  .character-card p { font-size: .72rem; }
  .character-card--hidden { grid-template-columns: 1fr 1fr; }
  .character-card--hidden > div { padding: 1.2rem; }
  .rites { padding-bottom: 8rem; }
  .rites-heading, .rite-lines { width: calc(100% - 36px); }
  .rites-heading { margin: 5rem auto 3rem; }
  .rite-line { grid-template-columns: 3rem 1fr; padding: 2rem 0; }
  .rite-line p { grid-column: 2; font-size: .88rem; }
  .rite-chamber { width: 100%; }
  .rite-chamber figcaption { position: relative; max-width: none; }
  .observations { padding-bottom: 8rem; }
  .observations-heading { width: calc(100% - 36px); margin: 5rem auto 3rem; }
  .catalog-heading--wide { width: calc(100% - 36px); margin-bottom: 1.5rem; }
  .specimen-grid { width: calc(100% - 36px); grid-template-columns: 1fr; }
  .specimen figcaption { min-height: 0; padding: 1.35rem 1.25rem 1.65rem; }
  .boss-threshold { width: calc(100% - 36px); min-height: 50svh; margin-top: 4rem; }
  .enter { min-height: 100svh; }
  .enter > img { object-position: 58% 50%; }
  .enter-veil { background: linear-gradient(0deg, #050505 0%, rgba(5,5,5,.62) 45%, rgba(5,5,5,.2)); }
  .enter-content { width: calc(100% - 36px); align-self: end; padding-bottom: 16vh; }
  .enter-content h2 { font-size: clamp(3.1rem, 15vw, 4.3rem); }
  .enter-actions { flex-direction: column; width: 100%; }
  .enter-actions a { width: 100%; }
  .site-footer {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo top" "copy copy";
    gap: 1.5rem;
    padding: 5rem 18px 7rem;
  }
  .site-footer img { grid-area: logo; width: 65vw; margin: -3rem 0; }
  .site-footer p { grid-area: copy; display: block; text-align: left; line-height: 1.7; }
  .site-footer a { grid-area: top; }
  .record-modal { padding: 0; place-items: end center; }
  .record-modal__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(16rem, 43svh) minmax(0, 1fr);
    width: 100%;
    height: 94svh;
    border-width: 1px 0 0;
    transform: translateY(4%);
  }
  .record-modal__close { top: 12px; right: 12px; width: 44px; height: 44px; }
  .record-modal__close span::before, .record-modal__close span::after { left: 12px; top: 21px; }
  .record-modal__media::after { box-shadow: inset 0 -1px rgba(215, 208, 192, .12), inset 0 -40px 70px rgba(0, 0, 0, .2); }
  .record-modal__body { padding: 2.1rem 18px calc(2.5rem + env(safe-area-inset-bottom)); }
  .record-modal__body h2 { padding-right: 2.2rem; font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .record-modal__summary { font-size: .92rem; line-height: 1.78; }
  .record-modal__divider { margin: 1.5rem 0; }
  .record-modal__details { gap: 1.35rem; }
  .record-modal__section p { font-size: .84rem; }
}

@media (max-width: 520px) {
  .character-card--hidden { display: block; }
  .character-card--hidden img { height: auto; aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .gate-sticky picture img, .archive-hero__art img { transform: none !important; }
  .reveal { opacity: 1; filter: none; clip-path: none; }
}
