/* HARD POUR, iteration 1 (round 8). Type: Redaction (display, a newsprint serif with progressively degraded cuts;
   the stage word moves to a rougher cut as the beans roast) + Schibsted Grotesk (text, a news grotesk built for
   small sizes). Scale (desktop / phone): 13, 15, 19, 28, 44, 76, 136 / 12, 14, 16, 22, 30, 52, 76. */
@font-face { font-family: 'Redaction'; src: url(fonts/redaction-l.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Redaction'; font-style: italic; src: url(fonts/redaction-i-l.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Redaction 20'; src: url(fonts/redaction20s.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Redaction 50'; src: url(fonts/redaction50s.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Redaction 100'; src: url(fonts/redaction100s.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Schibsted'; src: url(fonts/schibsted-l.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #0d0a08; --bone: #efe7d8; --bone2: rgba(239, 231, 216, .72); --red: #d8341f; --ember: #ff8a3a;
  --t13: 13px; --t15: 15px; --t19: 19px; --t28: 28px; --t44: 44px; --t76: 76px; --t136: 136px;
  --pad: 32px; --head: 64px;
}
@media (max-width: 760px) {
  :root { --t13: 12px; --t15: 14px; --t19: 16px; --t28: 22px; --t44: 30px; --t76: 52px; --t136: 76px; --pad: 18px; --head: 56px; }
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--t15)/1.55 'Schibsted', system-ui, sans-serif; font-feature-settings: 'tnum' 0; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 2px; }

/* ---------- header: a normal readable menu ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--head); display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad); background: linear-gradient(rgba(13, 10, 8, .62), rgba(13, 10, 8, 0)); transition: background .3s; }
.top.solid { background: var(--ink); }
.brand { font: 400 28px/1 'Redaction', Georgia, serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: var(--t15); font-weight: 500; text-decoration: none; padding: 12px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav .nav-order { border: 1px solid var(--bone); border-radius: 999px; padding: 10px 18px; margin-left: 4px; }
.nav .nav-order::after { display: none; }
.nav .nav-order:hover { background: var(--bone); color: var(--ink); }
.ctl { display: flex; align-items: center; gap: 8px; }
.sound { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 4px 0 14px; background: none; border: 0; cursor: pointer; font-size: var(--t15); font-weight: 500; }
.sound svg { width: 22px; height: 14px; overflow: visible; }
.sound path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sound[aria-pressed='true'] path { stroke: var(--ember); }
.sound:hover span { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; min-height: 44px; min-width: 64px; padding: 0 16px; border: 1px solid var(--bone); border-radius: 999px; background: none; font-weight: 500; cursor: pointer; }
.menu-btn:active, .sound:active { transform: translateY(1px); }
@media (max-width: 900px) {
  .top { gap: 10px; }
  .brand { font-size: 24px; }
  .menu-btn { display: inline-block; }
  .sound { padding-left: 6px; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; margin: 0;
    padding: 0 var(--pad); background: var(--ink); visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
  .nav a { font: 400 var(--t76)/1.08 'Redaction', Georgia, serif; letter-spacing: -.02em; padding: 6px 0; }
  .nav a::after { display: none; }
  .nav .nav-order { border: 0; padding: 6px 0; margin: 0; font-style: italic; color: var(--ember); }
  .nav .nav-order:hover { background: none; color: var(--ember); }
  body.menu-open .nav { visibility: visible; opacity: 1; transition: opacity .2s; }
}

/* ---------- the film ---------- */
.film { position: relative; height: 500vh; height: 500svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0a0806 url(frames/d/f0001.webp) center / cover no-repeat; }
@media (max-aspect-ratio: 1/1) { .stage { background-image: url(frames/p/f0001.webp); } }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 8, 6, .72) 0%, rgba(10, 8, 6, .0) 38%), linear-gradient(to right, rgba(10, 8, 6, .35), rgba(10, 8, 6, 0) 40%); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.flash { position: absolute; inset: 0; background: #fff3e2; opacity: 0; display: none; pointer-events: none; }

.intro h1 { position: absolute; left: var(--pad); top: calc(var(--head) + 28px); margin: 0; max-width: 9.5em; font: 400 var(--t44)/1.04 'Redaction', Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
.intro p { position: absolute; right: var(--pad); bottom: 120px; margin: 0; max-width: 24ch; color: var(--bone2); font-size: var(--t19); line-height: 1.45; text-wrap: pretty; }
.intro { transition: opacity .35s; text-shadow: 0 1px 18px rgba(10, 8, 6, .5); }
.intro, .intro * { pointer-events: none; }

/* one chapter at a time, each placed where its frame leaves room (not one slot for all) */
.chap { position: absolute; opacity: 0; max-width: 30ch; text-shadow: 0 1px 18px rgba(10, 8, 6, .55); }
.chap h2 { margin: 0 0 8px; font: italic 400 var(--t28)/1.1 'Redaction', Georgia, serif; letter-spacing: -.01em; }
.chap p { margin: 0; font-size: var(--t19); line-height: 1.45; text-wrap: pretty; }
.c0 { right: calc(var(--pad) + 2vw); top: 34%; }
.c1 { left: var(--pad); top: calc(var(--head) + 40px); }
.c2 { right: var(--pad); bottom: 130px; text-align: right; }
.c3 { left: 50%; bottom: 130px; transform: translateX(-50%); text-align: center; max-width: 34ch; }

/* the roast log: one ember line across the whole frame, the reading rides the dot */
.curve { position: absolute; left: 0; right: 0; bottom: 34px; height: 76px; margin: 0; transition: opacity .3s; pointer-events: none; }
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve .rt0 { fill: none; stroke: rgba(239, 231, 216, .18); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 5; }
.curve .rt { fill: none; stroke: var(--ember); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.rd { position: absolute; left: 0; top: 0; margin: 0; transform: translate(-50%, -130%); white-space: nowrap; font-size: var(--t13); color: var(--bone2); }
.rd .fig { font: 400 var(--t28)/1 'Redaction', Georgia, serif; color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }
.rd .clk { margin-left: 6px; font-variant-numeric: tabular-nums; }

.stamp { position: absolute; right: calc(var(--pad) + 4vw); top: calc(var(--head) + 40px); width: 140px; opacity: 0; transform: rotate(-11deg); mix-blend-mode: screen; }
.stamp svg { width: 100%; height: auto; overflow: visible; }
.stamp circle { fill: none; stroke: var(--red); stroke-width: 5; }
.stamp text { fill: var(--red); font: 400 17px 'Schibsted', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.stamp .d { font: 400 38px 'Redaction 50', 'Redaction', serif; letter-spacing: 0; text-transform: none; }
.stamp .t { font: 600 18px 'Schibsted', sans-serif; letter-spacing: .1em; }

.hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; font-size: var(--t13); color: var(--bone2); letter-spacing: .02em; transition: opacity .3s; }
.concept { position: absolute; left: var(--pad); bottom: 8px; margin: 0; font-size: 12px; color: var(--bone2); display: none; }
.cut .concept { display: block; }
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transition: opacity .6s; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--ember); }

@media (max-width: 760px) {
  .intro h1 { top: calc(var(--head) + 18px); }
  .intro p { left: var(--pad); right: auto; bottom: 120px; max-width: 26ch; font-size: var(--t15); }
  .c0, .c1, .c2, .c3 { left: var(--pad); right: var(--pad); max-width: none; transform: none; text-align: left; }
  .c0 { top: auto; bottom: 128px; }
  .c1 { top: calc(var(--head) + 22px); }
  .c2 { top: auto; bottom: 128px; }
  .c3 { top: calc(var(--head) + 22px); bottom: auto; }
  .curve { bottom: 22px; height: 60px; }
  .stamp { right: var(--pad); left: auto; bottom: auto; top: 30%; width: 104px; }
  .hint { display: none; }
  .shade { background: linear-gradient(to top, rgba(10, 8, 6, .9) 0%, rgba(10, 8, 6, .55) 26%, rgba(10, 8, 6, 0) 46%), linear-gradient(rgba(10, 8, 6, .55), rgba(10, 8, 6, 0) 24%); }
}

/* ---------- menu and visit: the heap stays under them, dimmed (one continuous world, no new section sliding in) ---------- */
.order { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; min-height: 100vh; min-height: 100svh; padding: calc(var(--head) + 72px) var(--pad) 96px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end;
  background: linear-gradient(rgba(13, 10, 8, 0), rgba(13, 10, 8, .86) 30%, var(--ink) 70%); }
.order h2 { margin: 0 0 22px; font: 400 var(--t76)/.98 'Redaction', Georgia, serif; letter-spacing: -.03em; max-width: 11ch; text-wrap: balance; }
.lead { max-width: 52ch; margin: 0 0 40px; font-size: var(--t19); line-height: 1.5; color: var(--bone2); text-wrap: pretty; }
.menu { list-style: none; margin: 0 0 40px; padding: 0; max-width: 680px; }
.menu li { display: flex; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid rgba(239, 231, 216, .22); }
.menu li:last-child { border-bottom: 1px solid rgba(239, 231, 216, .22); }
.it { font: 400 var(--t28)/1.15 'Redaction', Georgia, serif; letter-spacing: -.01em; }
.it small { display: block; margin-top: 4px; font: 400 var(--t15)/1.4 'Schibsted', sans-serif; letter-spacing: 0; color: var(--bone2); }
.pr { margin-left: auto; font: 400 var(--t28)/1 'Redaction', Georgia, serif; font-variant-numeric: lining-nums; }
.cta { min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--bone); color: var(--ink); font-size: var(--t15); font-weight: 600; cursor: pointer; transition: background .2s, transform .1s; }
.cta:hover { background: #fff; }
.cta:active { transform: translateY(1px) scale(.99); }
.cta-note { margin: 14px 0 0; font-size: var(--t13); color: var(--bone2); opacity: 0; transition: opacity .3s; }
.cta-note.on { opacity: 1; }
.visit { padding-bottom: 6px; }
.visit h3 { margin: 0 0 14px; font: italic 400 var(--t28)/1 'Redaction', Georgia, serif; }
.visit p { margin: 0 0 18px; font-size: var(--t19); line-height: 1.5; }
.visit .small { font-size: var(--t15); color: var(--bone2); max-width: 36ch; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--pad) 28px; font-size: var(--t13); color: var(--bone2); border-top: 1px solid rgba(239, 231, 216, .14); }
@media (max-width: 760px) {
  .order { grid-template-columns: 1fr; gap: 48px; padding-top: calc(var(--head) + 40px); }
  .menu li { gap: 14px; }
  .foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) { .intro, .nav, .nav a::after { transition: none; } }

/* cut mode (capture of the motion cut): no chrome */
.cut .intro .go, .cut .top, .cut .hint, .cut .loadbar, .cut .order, .cut .foot { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================= iteration 3: bone paper, ink type, the bean composited over a giant stage word ================= */
:root { --paper: #ece4d3; --ink2: #14100c; --ink2s: rgba(20, 16, 12, .68); }
html, body { background: var(--paper); color: var(--ink2); }
.top { background: linear-gradient(rgba(236, 228, 211, .92), rgba(236, 228, 211, 0)); color: var(--ink2); }
.top.solid { background: var(--paper); }
.nav .nav-order { border-color: var(--ink2); }
.nav .nav-order:hover { background: var(--ink2); color: var(--paper); }
.menu-btn { border-color: var(--ink2); }
.sound[aria-pressed='true'] path { stroke: var(--red); }
:focus-visible { outline-color: var(--ink2); }
@media (max-width: 900px) { .nav { background: var(--paper); } .nav .nav-order { color: var(--red); } .nav .nav-order:hover { color: var(--red); } }
.stage { background-color: var(--paper); }
.shade { display: none; }
.grain { opacity: .22; mix-blend-mode: multiply; }
.flash { background: #fffaf0; }
/* the giant word: one per stage, in the Redaction cut of that stage, cropped by the frame, behind the bean */
.giant { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -54%); white-space: nowrap; pointer-events: none;
  font-size: min(31vw, 52svh); line-height: .8; letter-spacing: -.045em; color: var(--ink2); opacity: 0; }
.g0 { font-family: 'Redaction', Georgia, serif; font-size: min(21vw, 40svh); }
.g1 { font-family: 'Redaction', Georgia, serif; }
.g2 { font-family: 'Redaction 20', 'Redaction', Georgia, serif; }
.g3 { font-family: 'Redaction 50', 'Redaction', Georgia, serif; }
.g4 { font-family: 'Redaction 100', 'Redaction', Georgia, serif; }
#cv { z-index: 1; }
.intro, .chap, .curve, .stamp, .hint, .concept, .flash, .grain { z-index: 2; }
/* one baseline: the line of copy sits bottom left, the roast reading bottom right, every chapter the same axis */
.intro h1 { top: auto; bottom: 64px; left: var(--pad); max-width: 9em; font-size: var(--t28); line-height: 1.12; }
.intro p { bottom: 64px; right: var(--pad); max-width: 26ch; font-size: var(--t15); color: var(--ink2s); text-align: right; }
.intro { text-shadow: none; }
.chap { text-shadow: none; left: var(--pad) !important; right: auto !important; top: auto !important; bottom: 64px !important; transform: none !important; text-align: left !important; max-width: 34ch; }
.chap h2 { font-size: var(--t28); }
.chap p { font-size: var(--t15); color: var(--ink2s); }
.curve { bottom: 18px; height: 36px; }
.curve .rt0 { stroke: rgba(20, 16, 12, .22); }
.curve .rt { stroke: var(--red); }
.rd { color: var(--ink2s); }
.rd .fig { color: var(--ink2); }
.stamp { mix-blend-mode: multiply; }
.hint { color: var(--ink2s); bottom: 8px; }
.loadbar i { background: var(--red); }
.order { background: linear-gradient(rgba(236, 228, 211, 0), rgba(236, 228, 211, .9) 30%, var(--paper) 70%); }
.lead, .it small, .visit .small, .cta-note { color: var(--ink2s); }
.menu li, .menu li:last-child { border-color: rgba(20, 16, 12, .2); }
.cta { background: var(--ink2); color: var(--paper); }
.cta:hover { background: #000; }
.foot { color: var(--ink2s); border-color: rgba(20, 16, 12, .14); }
@media (max-width: 760px) {
  .giant { font-size: 40vw; transform: translate(-50%, -62%); }
  .g0 { font-size: 26vw; white-space: normal; width: 100%; text-align: center; line-height: .82; }
  .intro h1 { bottom: 96px; }
  .intro p { left: var(--pad); right: auto; text-align: left; bottom: 40px; max-width: 30ch; }
  .chap { bottom: 58px !important; right: var(--pad) !important; max-width: none; }
  .c3 { top: calc(var(--head) + 16px) !important; bottom: auto !important; }
  .curve { bottom: 14px; height: 28px; }
}
/* the drop chapter: the heap owns the bottom of the frame, so its text hangs from the top */
.c3 { top: calc(var(--head) + 24px) !important; bottom: auto !important; }

/* ================= iteration 4: the giant type flanks the bean (word left, live bean temperature right) ================= */
.giant { left: 0; right: 0; top: 50%; width: auto; transform: none; display: flex; justify-content: space-between; align-items: center;
  margin-top: calc(min(13vw, 25svh) * -.5); padding: 0 calc(var(--pad) - .02em); font-size: min(13vw, 25svh); line-height: 1; }
.giant span { display: block; }
.g0 { font-size: min(13vw, 25svh); white-space: nowrap; width: auto; text-align: left; }
.gr { font-variant-numeric: lining-nums tabular-nums; }
.rd { display: none; }
.curve { height: 2px; bottom: 0; }
.curve .rt0 { display: none; }
.order { background: linear-gradient(rgba(236, 228, 211, 0), var(--paper) 14%); }
@media (max-width: 760px) {
  .giant, .g0 { top: calc(var(--head) + 6px); margin-top: 0; font-size: 21vw; flex-direction: column; align-items: flex-start; line-height: .86; transform: none; width: auto; text-align: left; }
  .giant .gr { align-self: flex-end; font-size: .62em; }
  .g0 .gr { align-self: flex-start; font-size: 1em; }
  .intro h1 { bottom: 104px; }
}
@media (max-width: 760px) {
  .c1 { top: auto !important; bottom: 58px !important; }
  .c3 { top: calc(var(--head) + 40vw) !important; bottom: auto !important; }
}

/* ================= iteration 5: the roaster-drum world again (opaque frames), bone type on black ================= */
:root { --paper: #0d0a08; --ink2: #efe7d8; --ink2s: rgba(239, 231, 216, .74); }
html, body { background: var(--paper); color: var(--ink2); }
.top { background: linear-gradient(rgba(13, 10, 8, .7), rgba(13, 10, 8, 0)); }
.grain { mix-blend-mode: overlay; opacity: .14; }
.flash { background: #fff3e2; }
.stamp { mix-blend-mode: screen; }
.giant { color: var(--ink2); text-shadow: 0 2px 40px rgba(10, 8, 6, .45); }
.shade { display: block; background: linear-gradient(to top, rgba(10, 8, 6, .6) 0%, rgba(10, 8, 6, 0) 30%); z-index: 1; }
.cta:hover { background: #fff; }
.giant { z-index: 2; }
.intro { z-index: 3; }
.intro { position: absolute; inset: 0; pointer-events: none; }

/* ================= mobile pass: beats, safe areas, light tier ================= */
.snapm { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: normal; }
html.snapy { scroll-snap-type: y proximity; }
.top { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); padding-top: env(safe-area-inset-top); height: calc(var(--head) + env(safe-area-inset-top)); }
.foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
html.light .grain { display: none; }
/* header: the controls sit right when the links fold into Menu (they bunched up next to the logo) */
@media (max-width: 900px) { .ctl { margin-left: auto; } }
/* iPad portrait (761 to 1100 wide, portrait): its own composition. The stage word stacks above the bean, the live
   temperature hangs bottom right of it, the copy steps up a size so it reads at arm's length. */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  :root { --t15: 17px; --t19: 20px; --t28: 34px; --t44: 52px; --t76: 84px; --pad: 40px; --head: 72px; }
  .giant, .g0 { top: calc(var(--head) + 24px); margin-top: 0; font-size: 19vw; flex-direction: column; align-items: flex-start; line-height: .86; }
  .giant .gr { align-self: flex-end; font-size: .6em; }
  .g0 .gr { align-self: flex-end; font-size: 1em; }
  .intro h1 { bottom: 120px; max-width: 11em; }
  .intro p { left: var(--pad); right: auto; text-align: left; bottom: 56px; max-width: 34ch; }
  .chap { bottom: 64px !important; max-width: 36ch; }
  .c3 { top: auto !important; bottom: 64px !important; }
  .stamp { width: 150px; top: 46%; }
  .shade { background: linear-gradient(to top, rgba(10, 8, 6, .78) 0%, rgba(10, 8, 6, 0) 34%), linear-gradient(rgba(10, 8, 6, .5), rgba(10, 8, 6, 0) 22%); }
  .order { grid-template-columns: 1fr; gap: 56px; }
}
/* phone landscape (short and wide): smaller stage word, one line of copy, a darker floor so it reads over the beans */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --head: 52px; --t28: 22px; --t15: 14px; --t76: 48px; }
  .giant, .g0 { font-size: min(11vw, 30svh); margin-top: calc(min(11vw, 30svh) * -.6); }
  .intro h1 { bottom: 40px; max-width: 14em; }
  .intro p { bottom: 40px; max-width: 30ch; }
  .chap { bottom: 36px !important; }
  .c3 { top: auto !important; bottom: 36px !important; }
  .stamp { width: 96px; top: calc(var(--head) + 8px); }
  .hint { display: none; }
  .shade { background: linear-gradient(to top, rgba(10, 8, 6, .85) 0%, rgba(10, 8, 6, 0) 45%); }
  .order { padding-top: calc(var(--head) + 28px); }
}
/* taps: the logo and the short links get a full 44 px target */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav a { min-width: 44px; text-align: center; }
@media (max-width: 900px) { .nav a { text-align: left; } }

/* mobile pass r5: the brand word paints with the first frame of HTML (it was hidden until the script ran, so phones and iPads painted their largest text late); the script takes over from here */
#g0 { opacity: 1; }
/* mobile pass r5: phone and iPad landscape, the small intro and chapter lines sit on a deeper floor with a soft shadow so they read over the beans */
@media (orientation: landscape) and (max-width: 1380px) and (min-aspect-ratio: 1/1) {
  .shade { background: linear-gradient(to top, rgba(10, 8, 6, .88) 0%, rgba(10, 8, 6, .5) 22%, rgba(10, 8, 6, 0) 42%); }
  .intro p, .chap p { text-shadow: 0 1px 2px rgba(10, 8, 6, .9), 0 0 14px rgba(10, 8, 6, .8); }
}

/* ================= smooth pass (2026-11-22): touch screens drop the costly paint over the moving film ================= */
@media (pointer: coarse), (max-width: 820px) {
  .grain { mix-blend-mode: normal; opacity: .05; inset: 0; }
  .stamp { mix-blend-mode: normal; }
}
