:root {
  --paper: #E9E6E1; --card: #FAF8F6; --ink: #2F2921; --red: #AD0C11; --navy: #1A1B3A; --out: #2B1B6B;
  --sheet: #D9D1C5;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.35; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .16 0 0 0 0 .13 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--card); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* fixed furniture */
.seal { position: fixed; top: -16px; left: -12px; width: 122px; z-index: 60; transform: rotate(-14deg); color: #9A7B4F; opacity: .85; transition: opacity .3s; }
.seal:hover { opacity: 1; }
.orb { position: fixed; top: 16px; left: 50%; width: 78px; margin-left: -39px; z-index: 60; }
.stamp { position: fixed; top: -8px; right: -6px; width: 94px; z-index: 60; transform: rotate(14deg); transition: transform .3s; }
.stamp:hover { transform: rotate(8deg) translateY(4px); }
.toc-nav { position: fixed; left: 28px; top: 168px; width: 168px; z-index: 60; font-size: 15.5px; transition: color .4s; }
.toc-nav a { display: flex; align-items: baseline; gap: 5px; text-decoration: none; opacity: .5; line-height: 1.42; white-space: nowrap; transition: opacity .3s; }
.toc-nav a i { flex: 1; min-width: 12px; border-bottom: 2px dotted currentColor; transform: translateY(-4px); }
.toc-nav a:hover { opacity: .85; }
.toc-nav a.on { opacity: 1; font-weight: 500; }
.toc-nav .mini { margin-top: 18px; font-size: 13px; display: flex; gap: 12px; }
.toc-nav .mini a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
body.dark .toc-nav { color: var(--card); }
body.dark .seal { color: #6E6FA8; }

.chip { display: none; position: fixed; top: 80px; left: 0; right: 0; z-index: 60; text-align: center; font-size: 12px; letter-spacing: .06em; pointer-events: none; transition: color .4s, opacity .3s; }
body.dark .chip { color: var(--card); }
.cue { display: none; position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: calc(1 - var(--p) * 10); }
.cue::after { content: ""; display: block; width: 1px; height: 30px; margin: 8px auto 0; background: currentColor; }
.scrolly .cue { display: block; }

/* story */
.story { position: relative; }
.scene { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--paper); --p: .5; --in: 1; }
.scene--hero { --p: 0; }
.scene--dark { background: var(--navy); color: var(--card); }
.scrolly .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrolly .scene { position: absolute; inset: 0; height: auto; min-height: 0; visibility: hidden; }
.enter-circle { clip-path: circle(calc(var(--in) * 78vmax) at 50% 47%); }
.enter-up { transform: translateY(calc((1 - var(--in)) * 100%)); }
.enter-diag { clip-path: polygon(100% calc((1 - var(--in) * 2) * 100%), 100% 100%, calc((1 - var(--in) * 2) * 100%) 100%); }
.art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.art .tb { transform-box: fill-box; transform-origin: center; }

/* chapter cards */
.cards { position: absolute; right: 16px; bottom: 16px; width: 292px; display: grid; gap: 10px; z-index: 5; }
.card { background: var(--card); padding: 9px; }
.card .inr { border: 1px dashed var(--ink); padding: 18px 14px 14px; position: relative; }
.card .lab { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--card); padding: 0 6px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.card h3 { font-size: 28px; line-height: 1.05; margin-bottom: 8px; }
.card p { font-size: 15.5px; line-height: 1.2; text-indent: 2.8em; }
.card p + p { margin-top: .5em; }
.card small { display: block; margin-top: 10px; font-size: 11px; opacity: .6; }
.scene--dark .card { background: #2A2A2C; color: var(--card); }
.scene--dark .card .inr { border-color: var(--card); }
.scene--dark .card .lab { background: #2A2A2C; }
.scrolly .card { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(40px) rotate(5deg); transition: opacity .5s, transform .7s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.scrolly .card.on { opacity: 1; transform: none; pointer-events: auto; }
.scrolly .card.past { opacity: 0; transform: translate(70px, -110px) rotate(15deg); }

/* newspaper */
.sheet {
  background-color: var(--sheet);
  background-image: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 55%), radial-gradient(ellipse at 85% 80%, rgba(120,96,70,.22), transparent 60%), radial-gradient(ellipse at 60% 30%, rgba(140,120,95,.12), transparent 50%);
  padding: clamp(16px, 2.8vw, 46px); box-shadow: inset 0 0 90px rgba(110,90,70,.22);
}
.dateline { display: flex; justify-content: space-between; gap: 12px; font-size: clamp(11px, 1.1vw, 16px); padding-bottom: 12px; border-bottom: 3px solid var(--ink); position: relative; }
.dateline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; border-bottom: 1px dotted var(--ink); }
.dateline span:nth-child(2) { text-transform: uppercase; }
.headline { font-size: clamp(34px, 6.7vw, 104px); line-height: .95; text-transform: uppercase; text-align: center; margin: .28em 0 .22em; }
.headline em { font-style: normal; color: var(--red); }
.cols3 { display: grid; grid-template-columns: 1fr 2.1fr 1fr; gap: clamp(12px, 1.6vw, 24px); font-size: clamp(12px, 1.02vw, 15px); line-height: 1.28; }
.cols3 p { text-align: justify; hyphens: auto; }
.photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #6a6a6a, #151515 80%); }
.photo svg { position: absolute; bottom: 0; height: 100%; width: auto; filter: grayscale(1); }
.photo svg:first-of-type { left: 3%; }
.photo svg:last-of-type { right: 3%; }
.photo::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .14;
  background: radial-gradient(circle, rgba(255,255,255,.8) 0 .7px, transparent 1px) 0 0 / 3px 3px, radial-gradient(circle, rgba(0,0,0,.65) 0 .7px, transparent 1px) 1.5px 1.5px / 3px 3px;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(14px, 2vw, 28px); padding-top: 14px; border-top: 1px solid var(--ink); }
.facts div { display: flex; gap: 10px; align-items: center; padding: 0 clamp(8px, 1.4vw, 20px); }
.facts div + div { border-left: 1px solid var(--ink); }
.facts b { font-size: clamp(30px, 3.6vw, 52px); color: var(--red); font-weight: 400; line-height: 1; }
.facts span { font-size: clamp(9px, .9vw, 13px); text-transform: uppercase; line-height: 1.15; }
.scene--hero .sheet { position: absolute; left: 50%; top: 13vh; width: min(62vw, 900px); margin-left: calc(min(62vw, 900px) / -2); transform: scale(calc(1 + var(--p) * 5.5)); transform-origin: 50% 55%; will-change: transform; }
html:not(.scrolly) .scene--hero { height: auto; padding: 13vh 0 60px; }
html:not(.scrolly) .scene--hero .sheet { position: relative; left: auto; top: auto; margin: 0 auto; transform: none; }

/* cast */
.cast { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 9vw, 170px); padding: max(110px, 21vh) 24px 24px; }
.char { width: min(300px, 40vw); }
.polaroid { position: relative; background: var(--card); padding: 10px; transform: rotate(-1.5deg); box-shadow: 0 2px 8px rgba(47,41,33,.14); }
.polaroid::before { content: ""; position: absolute; inset: 0; background: var(--card); transform: rotate(5deg); z-index: -1; box-shadow: 0 2px 8px rgba(47,41,33,.12); }
.char:nth-child(2) .polaroid { transform: rotate(1.5deg); }
.polaroid .shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #777, #121212 85%); }
.polaroid .shot svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.polaroid .clip { position: absolute; top: -18px; left: 62%; width: 16px; z-index: 2; }
.char h3 { font-size: clamp(26px, 2.6vw, 34px); margin: 24px 0 6px; }
.char p { font-size: clamp(14px, 1.2vw, 16.5px); line-height: 1.2; text-indent: 2.8em; }
.cast-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; opacity: .55; }

/* readout */
.readout { position: absolute; left: 28px; bottom: 28px; width: 236px; list-style: none; padding: 0; display: grid; gap: 8px; z-index: 5; font-size: 15px; opacity: calc((var(--p) - .45) * 6); }
.readout li { display: flex; justify-content: space-between; align-items: center; background: var(--card); padding: 8px 8px 8px 14px; }
.readout b { font-weight: 400; background: #E7E3DE; padding: 3px 12px; border: 1px dashed transparent; }
.readout li.flag b { border-color: var(--red); }

/* back page */
.backpage { position: relative; padding: 14vh 16px 0; overflow: hidden; }
.backpage .sheet { position: relative; width: min(62vw, 900px); margin: 0 auto; z-index: 2; padding-bottom: 60px; }
.backpage .headline { text-align: left; font-size: clamp(30px, 4.6vw, 72px); }
.lead { display: grid; grid-template-columns: 2.6fr 1fr; gap: clamp(16px, 2.4vw, 36px); }
.lead aside { border-left: 1px dashed var(--ink); padding-left: clamp(12px, 1.6vw, 24px); font-size: clamp(13px, 1.1vw, 16px); line-height: 1.3; text-align: justify; }
.lead aside svg { width: 70%; margin: 0 auto 18px; }
.lead .cols3 { grid-template-columns: 1fr 1.9fr; }
.sub { text-align: center; font-size: clamp(22px, 2.2vw, 30px); margin: clamp(28px, 4vw, 54px) 0 16px; }
.cols2 { columns: 2; column-gap: 24px; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.3; text-align: justify; }
.backpage .photo.wide { aspect-ratio: 22 / 10; margin-top: 28px; }
.backpage .photo.wide svg:first-of-type { left: 16%; }
.backpage .photo.wide svg:last-of-type { right: 16%; }
.produced { text-align: center; margin-top: clamp(32px, 4.4vw, 60px); }
.produced h3 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 18px; }
.produced dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; }
.produced dl div { display: flex; align-items: baseline; gap: 8px; }
.produced dt { font-size: 12px; opacity: .55; }
.produced dd { font-size: clamp(16px, 1.5vw, 20px); }
.peek { position: absolute; bottom: -30px; width: clamp(200px, 21vw, 300px); z-index: 3; }
.peek.l { left: 4vw; } .peek.r { right: 4vw; }

.foot { position: relative; z-index: 4; padding: 30px 28px 34px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; font-size: 13.5px; border-top: 1px dashed var(--ink); background: var(--paper); }
.foot nav { display: flex; gap: 20px; }

/* legal */
.legal-page { padding: 14vh 16px 80px; }
.legal-page .sheet { width: min(980px, 100%); margin: 0 auto; }
.legal-page .headline { font-size: clamp(32px, 5.6vw, 84px); }
.legal-page .eff { text-align: center; font-size: 14px; opacity: .65; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.legal { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 36px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 14.5px; }
.toc .lab { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.toc ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--red); }
.doc h2 { font-size: 27px; line-height: 1.15; margin: 44px 0 12px; scroll-margin-top: 110px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.5; }
.doc p + p { margin-top: .9em; }
.doc ul { margin: .9em 0 0; padding-left: 1.2em; display: grid; gap: .45em; }
.doc strong { font-weight: 500; }
.doc a { color: var(--red); }
.doc .caps { text-transform: uppercase; font-size: 14px; }

@media (max-width: 1100px) { .toc-nav { display: none; } .peek { display: none; } .scrolly .chip { display: block; } }
@media (max-width: 760px) {
  .seal { width: 92px; } .orb { width: 58px; margin-left: -29px; } .stamp { width: 70px; }
  .scene--hero .sheet, .backpage .sheet { width: 92vw; }
  .scene--hero .sheet { margin-left: -46vw; top: 112px; transform-origin: 50% 46%; }
  .scene--hero .photo { aspect-ratio: 16 / 11; }
  .scene--hero .cols3 { font-size: 15px; }
  .scene--dark { --cx0: 330px; --cxr: 210px; }
  .chip { top: 80px; }
  .cols3, .lead, .lead .cols3 { grid-template-columns: 1fr; }
  .scene--hero .cols3 p:last-child { display: none; }
  .scene--hero .cols3 .photo { order: -1; }
  .lead aside { border-left: 0; padding-left: 0; border-top: 1px dashed var(--ink); padding-top: 16px; }
  .lead aside svg { width: 40%; }
  .cols2 { columns: 1; }
  .cards { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
  .card h3 { font-size: 24px; } .card p { font-size: 15px; }
  .art { height: 62%; top: 9%; width: 150%; left: -25%; }
  .scene--dark .art { height: 100%; top: 0; width: 100%; left: 0; }
  .cast { align-items: center; gap: 14px; padding: 96px 14px 24px; }
  .char { width: 46vw; align-self: center; } .char h3 { margin-top: 18px; font-size: 28px; } .char p { text-indent: 0; font-size: 15px; min-height: 5.2em; }
  .foot { padding: 24px 18px calc(28px + env(safe-area-inset-bottom)); } .foot nav { flex-wrap: wrap; gap: 10px 20px; }
  .foot a, .toc a { padding: 6px 0; display: inline-block; }
  .readout { display: none; }
  .legal { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; }
  .facts span { font-size: 8.5px; } .facts div { gap: 6px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
