@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F7EFDA; --ink: #1C1A1E; --navy: #2D4A77; --gold: #D7C297; --bone: #E9E7E2; --cyan: #5fe1ee;
  --fg: var(--ink); --accent: var(--navy);
  --u: min(.625vw, 1.1111vh);       /* one unit of a 160 x 90 design grid that always fits */
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; color: var(--fg); font-family: "Plex", ui-monospace, monospace; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ---------- chrome ---------- */
.chrome { position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 2.2vw, 30px) clamp(16px, 2.6vw, 40px); pointer-events: none; color: var(--fg); transition: color .5s; }
.chrome a { pointer-events: auto; text-decoration: none; }
.mark { font-family: "Fraunces", serif; font-weight: 800; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: -.01em; display: flex; flex-direction: column; line-height: 1; }
.mark span { font-family: "Plex", monospace; font-weight: 400; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; margin-top: 6px; opacity: .7; }
.chrome nav { display: flex; gap: clamp(12px, 2.2vw, 34px); align-items: center; font-size: clamp(10px, .78vw, 12px); letter-spacing: .26em; text-transform: uppercase; }
.chrome nav a { position: relative; padding: 6px 0; }
.chrome nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s cubic-bezier(.2,.8,.2,1); }
.chrome nav a:not(.pill):hover::after { right: 0; }
.pill { border: 1.5px solid currentColor; border-radius: 99px; padding: 10px 18px !important; transition: background .3s, color .3s; }
.pill:hover { background: var(--fg); color: var(--bg, var(--paper)); }
body.is-night { --fg: var(--bone); --accent: var(--gold); --bg: var(--ink); }
body.is-gold { --fg: #2a1c05; }

.thread { position: fixed; z-index: 49; left: 0; right: 0; top: 0; height: 3px; background: rgba(128,128,128,.14); }
.thread b { position: absolute; top: -5px; left: 0; width: 15px; height: 15px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9f56a, #b9d32c 62%, #8aa51c); box-shadow: 0 2px 6px rgba(0,0,0,.35); will-change: transform; }
.thread b::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); clip-path: inset(0 58% 0 0); transform: scale(1.25) translateX(-12%); }
.thread b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); clip-path: inset(0 0 0 58%); transform: scale(1.25) translateX(12%); }
.thread i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #a8842f, #f3dc9a 40%, #c79f45 70%, #f6e7b4); box-shadow: 0 0 12px rgba(215,194,151,.7); }

/* ---------- stage ---------- */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.spacer { height: 1176vh; }
.layer { position: absolute; inset: 0; }

.label, .hint { position: absolute; z-index: 20; bottom: clamp(16px, 2.6vw, 38px); font-size: clamp(10px, .8vw, 12px); letter-spacing: .3em; text-transform: uppercase; color: var(--fg); transition: color .5s; }
.label { left: clamp(16px, 2.6vw, 40px); }
.label b { font-weight: 500; }
.hint { right: clamp(16px, 2.6vw, 40px); }
.hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* ---------- world 1: hero ---------- */
.hero { z-index: 6; }
.paper { z-index: 5; background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .24  0 0 0 0 .1  0 0 0 .16 0'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>"); }

/* everything in the hero is placed on a 160 x 90 unit design grid, centred */
.hero > * { position: absolute; left: 50%; top: 50%; }

.scrap { width: calc(24 * var(--u)); margin-left: calc(-20 * var(--u)); margin-top: calc(-43 * var(--u)); transform: rotate(-7deg);
  filter: drop-shadow(calc(.3 * var(--u)) calc(.6 * var(--u)) calc(.8 * var(--u)) rgba(30,20,5,.3)); }

/* The title is three separate pieces. MAT is woven and soft, up top. MACHINE is gunmetal, runs the
   full width along the bottom, and is the plinth Peter and Huck stand on. */
.title { margin: 0; width: 0; height: 0; font-family: "Fraunces", serif; font-weight: 900; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  color: var(--ink); line-height: .8; letter-spacing: -.055em; text-transform: uppercase; }
.title .line { position: absolute; left: 0; top: 0; display: block; white-space: nowrap; will-change: transform; }
.title .l1 { font-size: calc(38 * var(--u)); margin-left: calc(-77.5 * var(--u)); margin-top: calc(-41.5 * var(--u)); }
.title .l2 { font-size: calc(19 * var(--u)); margin-left: calc(-72 * var(--u)); margin-top: calc(-13.5 * var(--u)); }
.title .l3 { font-size: calc(32.3 * var(--u)); margin-left: calc(-78 * var(--u)); margin-top: calc(13.2 * var(--u)); }
.title .l2 em { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; text-transform: lowercase; color: var(--navy); letter-spacing: -.02em; }
.title .ch { display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-repeat: no-repeat; }
.title .l1 .ch { background-color: #b9a47c; background-image: url("assets/tex-mat.webp"); }
.title .l3 .ch { background-color: #2b2d31; background-image: url("assets/tex-machine.webp"); }
.title .l1 { filter: drop-shadow(0 calc(.35 * var(--u)) calc(.5 * var(--u)) rgba(60,40,10,.35)); }
.title .l3 { overflow: hidden; padding: 0 .06em .14em; margin-bottom: -.14em; }
.title .l3 { filter: drop-shadow(0 -1px 0 rgba(255,255,255,.22)) drop-shadow(0 calc(.5 * var(--u)) calc(.9 * var(--u)) rgba(0,0,0,.5)); }

.mat { display: none !important; width: calc(66 * var(--u)); height: calc(4.2 * var(--u)); margin-left: calc(-4 * var(--u)); margin-top: calc(11.2 * var(--u));
  border-radius: calc(.5 * var(--u));
  background:
    repeating-linear-gradient(90deg, rgba(90,70,40,.16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(90,70,40,.18) 0 1px, transparent 1px 3px),
    linear-gradient(#cdbb98, #b8a37c);
  box-shadow: 0 calc(.8 * var(--u)) calc(1.6 * var(--u)) rgba(40,30,10,.3); transform: perspective(900px) rotateX(64deg); transform-origin: 50% 100%; }

.peter { height: calc(56 * var(--u)); margin-left: calc(12 * var(--u)); margin-top: calc(-41.6 * var(--u));
  filter: drop-shadow(calc(.5 * var(--u)) calc(.9 * var(--u)) calc(1.1 * var(--u)) rgba(30,20,5,.34)); transform-origin: 50% 100%; }
.huck { height: calc(25 * var(--u)); margin-left: calc(-8 * var(--u)); margin-top: calc(-10.4 * var(--u));
  filter: drop-shadow(calc(.4 * var(--u)) calc(.8 * var(--u)) calc(.9 * var(--u)) rgba(30,20,5,.36)); transform-origin: 50% 100%; }

.string { width: calc(160 * var(--u)); height: calc(90 * var(--u)); margin-left: calc(-80 * var(--u)); margin-top: calc(-45 * var(--u)); overflow: visible; pointer-events: none; }
.string path { fill: none; stroke: #b98f35; stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 2px 1px rgba(60,40,0,.35)); }

.lede { width: calc(44 * var(--u)); margin: 0; margin-left: calc(-49 * var(--u)); margin-top: calc(-7.5 * var(--u));
  font-family: "Fraunces", serif; font-weight: 400; font-size: calc(1.75 * var(--u)); line-height: 1.3; color: var(--ink); }
.lede em { font-weight: 300; }

/* ---------- the gold sheet ---------- */
.gold { z-index: 5; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 calc(.7 * var(--u)) calc(1.4 * var(--u)) rgba(60,40,0,.3)); }

/* ---------- the practice: ink on gold ---------- */
.practice { z-index: 6; display: none; color: #2a1c05; }
.practice > * { position: absolute; left: 50%; top: 50%; }
.prHead { width: calc(60 * var(--u)); margin-left: calc(-76 * var(--u)); margin-top: calc(-12 * var(--u)); display: flex; flex-direction: column; gap: calc(1.2 * var(--u)); }
.prHead > span { font-size: calc(1.05 * var(--u)); letter-spacing: .42em; text-transform: uppercase; }
.prHead b { font-family: "Fraunces", serif; font-weight: 900; font-size: calc(9.5 * var(--u)); line-height: .86; letter-spacing: -.04em; }
.prInk { width: calc(124 * var(--u)); aspect-ratio: 540 / 610; margin-left: calc(-40 * var(--u)); margin-top: calc(-70 * var(--u)); background: #23180a; will-change: transform; filter: drop-shadow(0 1px 0 rgba(255,240,190,.5));
  -webkit-mask: url("assets/tattoo-sweep.webp") center / contain no-repeat, radial-gradient(circle at 22% 42%, #000 calc(var(--r, 0%) - 14%), transparent var(--r, 0%)), linear-gradient(90deg, transparent var(--fl, 13%), #000 var(--fl2, 36%)), linear-gradient(0deg, transparent 3%, #000 20%), linear-gradient(180deg, transparent var(--ft, 18%), #000 var(--ft2, 31%));
          mask: url("assets/tattoo-sweep.webp") center / contain no-repeat, radial-gradient(circle at 22% 42%, #000 calc(var(--r, 0%) - 14%), transparent var(--r, 0%)), linear-gradient(90deg, transparent var(--fl, 13%), #000 var(--fl2, 36%)), linear-gradient(0deg, transparent 3%, #000 20%), linear-gradient(180deg, transparent var(--ft, 18%), #000 var(--ft2, 31%));
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.prShelf { width: calc(34 * var(--u)); margin-left: calc(46 * var(--u)); margin-top: calc(-17 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; gap: calc(3 * var(--u)); }
.vols { display: flex; align-items: flex-end; gap: calc(.9 * var(--u)); border-bottom: calc(.6 * var(--u)) solid #23180a; padding: 0 calc(1 * var(--u)); }
.volSlot { display: block; overflow: hidden; padding-top: calc(1 * var(--u)); }
.vol { display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; width: calc(6 * var(--u)); height: calc(27 * var(--u)); background: var(--cloth); color: var(--foil); will-change: transform;
  font-family: "Fraunces", serif; font-weight: 700; font-size: calc(2.3 * var(--u)); letter-spacing: .01em; border-radius: calc(.3 * var(--u)) calc(.3 * var(--u)) 0 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 20%, transparent 50%, rgba(0,0,0,.3)), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 calc(1.5 * var(--u)) 0 calc(-1.25 * var(--u)) var(--foil), inset 0 calc(-1.5 * var(--u)) 0 calc(-1.25 * var(--u)) var(--foil); }
.volSlot:nth-child(2) .vol { height: calc(24 * var(--u)); } .volSlot:nth-child(3) .vol { height: calc(29 * var(--u)); } .volSlot:nth-child(4) .vol { height: calc(25 * var(--u)); }
.prGo { display: inline-flex; gap: 1.2em; padding: 1.15em 1.6em; background: #23180a; color: #f6e7b4; text-decoration: none; font-size: clamp(10px, calc(1.05 * var(--u)), 15px); letter-spacing: .26em; text-transform: uppercase; font-weight: 500; transition: transform .25s; }
.prGo:hover { transform: translateY(-3px); }
.credit { margin: 0; max-width: 34em; font-size: 11px; letter-spacing: .08em; line-height: 1.6; opacity: .85; } .credit a { text-underline-offset: 3px; }

/* ---------- world 2: the sea, as cut-outs on the same 160 x 90 grid ---------- */
.world { background: radial-gradient(120% 90% at 70% 60%, #24212a, var(--ink) 70%); }
.sea { z-index: 4; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cut { position: absolute; left: 50%; top: 50%; will-change: transform; transform-origin: 50% 50%;
  filter: drop-shadow(calc(.5 * var(--u)) calc(.9 * var(--u)) calc(1.2 * var(--u)) rgba(0,0,0,.5)); }
.earth  { width: calc(118 * var(--u)); margin-left: calc(2 * var(--u));   margin-top: calc(2 * var(--u)); filter: drop-shadow(0 0 calc(2.4 * var(--u)) rgba(95,225,238,.35)); }
.waves  { width: calc(124 * var(--u)); margin-left: calc(-84 * var(--u)); margin-top: calc(-48 * var(--u)); }
.falls  { width: calc(27 * var(--u));  margin-left: calc(-37 * var(--u)); margin-top: calc(-13 * var(--u)); filter: none; transform-origin: 50% 0; }
.ribbon { width: calc(76 * var(--u));  margin-left: calc(-12 * var(--u)); margin-top: calc(-17 * var(--u)); }
.leap   { width: calc(50 * var(--u));  margin-left: calc(2 * var(--u));   margin-top: calc(-22 * var(--u)); }
.ball   { width: calc(7.5 * var(--u)); margin-left: calc(60 * var(--u));  margin-top: calc(-34 * var(--u)); }

/* ---------- world 4: the workbench. Symmetrical: pitch, niche, ways. ---------- */
.night { z-index: 3; color: var(--bone);
  background:
    radial-gradient(60% 70% at 50% 46%, rgba(215,194,151,.10), transparent 70%),
    repeating-radial-gradient(circle at 50% 120%, transparent 0 calc(5.6 * var(--u)), rgba(215,194,151,.045) calc(5.6 * var(--u)) calc(5.7 * var(--u))),
    #131214; }
.night > * { position: absolute; left: 50%; top: 50%; }
.niche { margin: 0; width: calc(52 * var(--u)); height: calc(80 * var(--u)); margin-left: calc(-26 * var(--u)); margin-top: calc(-36 * var(--u));
  border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0; overflow: hidden; background: #0c0b0d;
  box-shadow: 0 0 0 1px rgba(215,194,151,.55), 0 0 0 calc(1.1 * var(--u)) #131214, 0 0 0 calc(1.1 * var(--u) + 1px) rgba(215,194,151,.3), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.6); }
.niche .seq { mix-blend-mode: normal; filter: none; }
.niche::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 calc(6 * var(--u)) calc(1 * var(--u)) #0c0b0d; pointer-events: none; }
.bench { width: calc(46 * var(--u)); margin-left: calc(-77 * var(--u)); margin-top: calc(-20 * var(--u)); }
.pitch { margin: 0; font-family: "Cormorant", serif; font-weight: 300; font-size: calc(7.6 * var(--u)); line-height: .98; letter-spacing: -.01em; }
.pitch em { color: var(--gold); }
.book { display: inline-flex; gap: 1.2em; align-items: center; margin-top: calc(4 * var(--u)); padding: 1.15em 1.6em; background: var(--gold); color: #17140c; text-decoration: none;
  font-size: clamp(10px, calc(1.05 * var(--u)), 15px); letter-spacing: .26em; text-transform: uppercase; font-weight: 500; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s; }
.book:hover { transform: translateY(-3px); background: #f0dfb4; } .book span { transition: transform .25s; } .book:hover span { transform: translateX(6px); }
.ways { list-style: none; padding: 0; margin: 0; width: calc(38 * var(--u)); margin-left: calc(40 * var(--u)); margin-top: calc(-16 * var(--u));
  font-family: "Cormorant", serif; font-weight: 300; font-size: calc(4 * var(--u)); line-height: 1; }
.ways li { display: flex; align-items: baseline; gap: calc(2 * var(--u)); padding: calc(2 * var(--u)) 0; border-top: 1px solid rgba(215,194,151,.35); }
.ways li:last-child { border-bottom: 1px solid rgba(215,194,151,.35); }
.ways li { align-items: center; }
.flaps { display: flex; gap: calc(.26 * var(--u)); }
.fl { position: relative; display: inline-flex; align-items: center; justify-content: center; width: calc(1.95 * var(--u)); height: calc(3.2 * var(--u)); border-radius: calc(.22 * var(--u)); outline: 1px solid rgba(215,194,151,.28);
  font-family: "Plex", monospace; font-weight: 500; font-size: calc(1.8 * var(--u)); line-height: 1; color: #f3ead2; background: linear-gradient(#45413a 0 48%, #0b0a0b 48% 53%, #36332d 53%); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 calc(.2 * var(--u)) calc(.4 * var(--u)) rgba(0,0,0,.6); }
.fl.sp { background: none; box-shadow: none; outline: 0; width: calc(.7 * var(--u)); } .fl.tick { transform: scaleY(.9); color: #cdbb8f; }
.ways b { font-family: "Plex", monospace; font-weight: 400; font-size: calc(1 * var(--u)); letter-spacing: .26em; color: var(--gold); }

/* ---------- world 5: the library. One long shelf; the camera tracks along it. ---------- */
.shelf { display: flex; align-items: flex-end; gap: calc(7 * var(--u)); margin: 0; margin-top: calc(-26 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(6 * var(--u)); will-change: transform; white-space: nowrap; }
.shelfHead { display: flex; flex-direction: column; gap: calc(1.2 * var(--u)); align-self: center; padding-right: calc(4 * var(--u)); }
.shelfHead > span { font-size: calc(1 * var(--u)); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.shelfHead b { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: calc(10 * var(--u)); line-height: .9; letter-spacing: -.02em; }
.shelfHead i { font-family: "Cormorant", serif; font-weight: 300; font-size: calc(3 * var(--u)); color: var(--gold); }
.books { position: relative; display: flex; align-items: flex-end; gap: calc(1.1 * var(--u)); }
.plank { display: none; }
.books::after { content: ""; position: absolute; left: calc(-5 * var(--u)); right: calc(-5 * var(--u)); bottom: calc(-2.2 * var(--u)); height: calc(2.2 * var(--u));
  background: linear-gradient(#5a4428, #2c2013 55%, #17110a); box-shadow: 0 -1px 0 rgba(215,194,151,.7), 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0,0,0,.7); }
.books::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(9 * var(--u)); background: linear-gradient(rgba(0,0,0,.5), transparent); }
.bk { position: relative; flex: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--foil); background: var(--cloth); transform-origin: 50% 100%;
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); border-radius: calc(.35 * var(--u)) calc(.35 * var(--u)) 0 0;
  transition: transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .45s; 
  background-image: linear-gradient(90deg, rgba(0,0,0,.38), rgba(255,255,255,.10) 18%, rgba(255,255,255,.03) 45%, rgba(0,0,0,.32)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 calc(1.6 * var(--u)) 0 calc(-1.3 * var(--u)) var(--foil), inset 0 calc(-1.6 * var(--u)) 0 calc(-1.3 * var(--u)) var(--foil), calc(.6 * var(--u)) 0 calc(1.2 * var(--u)) rgba(0,0,0,.45); }
.bk:nth-child(3n) { transform: rotate(-1.2deg); } .bk:nth-child(5n) { transform: rotate(1deg); }
.bk:hover, .bk:focus-visible { transform: translateY(calc(-3.2 * var(--u))) rotate(-2.5deg); outline: none; box-shadow: inset 0 calc(1.6 * var(--u)) 0 calc(-1.3 * var(--u)) var(--foil), inset 0 calc(-1.6 * var(--u)) 0 calc(-1.3 * var(--u)) var(--foil), calc(1 * var(--u)) calc(2 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.6), 0 0 calc(4 * var(--u)) rgba(215,194,151,.25); }
.bk .ttl { position: absolute; inset: calc(2.6 * var(--u)) 0; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; 
  font-family: var(--face, "Fraunces"), serif; font-style: var(--slant, normal); font-weight: var(--wt, 600); font-size: calc(var(--fs, 2.5) * var(--u)); letter-spacing: var(--ls, .02em); text-transform: var(--tt, none);
  text-shadow: 0 1px 0 rgba(255,255,255,.25), 0 -1px 0 rgba(0,0,0,.4); }
.bk .dot { position: absolute; left: 50%; bottom: calc(3.4 * var(--u)); width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u)); margin-left: calc(-.65 * var(--u)); border-radius: 50%; background: var(--dot, var(--foil)); }
/* the three on stands face out, with a plate tipped onto the cloth */
.bk.face { margin: 0 calc(2.2 * var(--u)); background-image: linear-gradient(100deg, rgba(0,0,0,.45) 0, rgba(255,255,255,.12) 5%, rgba(0,0,0,.12) 8%, transparent 14%, rgba(0,0,0,.18)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 calc(.9 * var(--u)) var(--cloth), inset 0 0 0 calc(1 * var(--u)) var(--foil), calc(1 * var(--u)) calc(.6 * var(--u)) calc(2.4 * var(--u)) rgba(0,0,0,.6); transform: rotate(0deg) !important; }
.bk.face:hover, .bk.face:focus-visible { transform: translateY(calc(-2 * var(--u))) scale(1.03) !important; }
.bk.face .ttl { writing-mode: horizontal-tb; inset: 0 calc(3 * var(--u)); white-space: normal; text-align: center; line-height: .98; }
.bk.face .ttl { inset: auto calc(2.6 * var(--u)) calc(4.2 * var(--u)); }
.art { position: absolute; left: calc(3 * var(--u)); right: calc(3 * var(--u)); top: calc(3.4 * var(--u)); height: calc(15.5 * var(--u)); display: block; }
/* Agents for Agents: dusk over water, the last light laid down in foil lines */
.art-agents { background: linear-gradient(#0e1627 0, #22355c 46%, #c98a4b 57%, #e9c27c 60%, #1a2540 61%, #101a2e); box-shadow: 0 0 0 1px var(--foil); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: calc(.75 * var(--u)); padding-bottom: calc(1.3 * var(--u)); }
.art-agents i { height: 1px; background: var(--foil); width: calc((6 - var(--n)) * 15%); opacity: calc(1 - var(--n) * .15); }
.art-agents i:nth-child(1) { --n: 1; } .art-agents i:nth-child(2) { --n: 2; } .art-agents i:nth-child(3) { --n: 3; } .art-agents i:nth-child(4) { --n: 4; } .art-agents i:nth-child(5) { --n: 5; }
/* Hanuman Chalisa: a shrine arch with a rising sun, and the count */
.art-chalisa { left: calc(5.5 * var(--u)); right: calc(5.5 * var(--u)); border-radius: 50% 50% 0 0 / 46% 46% 0 0; box-shadow: 0 0 0 1px var(--foil), 0 0 0 calc(.5 * var(--u)) var(--cloth), 0 0 0 calc(.56 * var(--u)) var(--foil); overflow: hidden;
  background: repeating-conic-gradient(from -7.5deg at 50% 100%, var(--foil) 0 5deg, transparent 5deg 15deg), radial-gradient(circle at 50% 100%, #f6c66a, #c9461f 70%); display: flex; align-items: flex-end; justify-content: center; }
.art-chalisa b { width: calc(8.4 * var(--u)); height: calc(4.4 * var(--u)); border-radius: calc(4.4 * var(--u)) calc(4.4 * var(--u)) 0 0; background: var(--cloth); box-shadow: 0 0 0 1px var(--foil); display: flex; align-items: flex-end; justify-content: center;
  font-family: "Fraunces", serif; font-weight: 800; font-size: calc(2.5 * var(--u)); line-height: 1.25; letter-spacing: 0; }
/* StudioText: a conversation, debossed */
.art-studiotext { display: flex; flex-direction: column; justify-content: center; gap: calc(1.3 * var(--u)); }
.art-studiotext i { height: calc(3.3 * var(--u)); width: 62%; border-radius: calc(1.6 * var(--u)); border: 1px solid var(--foil); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08); }
.art-studiotext i:nth-child(2) { align-self: flex-end; width: 48%; background: var(--foil); opacity: .85; } .art-studiotext i:nth-child(3) { width: 34%;
  background: radial-gradient(circle, var(--foil) 0 calc(.32 * var(--u)), transparent calc(.36 * var(--u))) 50% 50% / calc(1.5 * var(--u)) 100% repeat-x; background-clip: content-box; padding: 0 calc(1.2 * var(--u)); }
.bk.face { box-shadow: inset 0 0 0 calc(.9 * var(--u)) var(--cloth), inset 0 0 0 calc(1 * var(--u)) var(--foil), inset 0 0 0 calc(1.5 * var(--u)) var(--cloth), inset 0 0 0 calc(1.56 * var(--u)) var(--foil), calc(1 * var(--u)) calc(.6 * var(--u)) calc(2.4 * var(--u)) rgba(0,0,0,.6); }
.bk.face::after { content: ""; position: absolute; left: 12%; right: 12%; top: 100%; height: calc(1.1 * var(--u)); background: linear-gradient(#e6cf96, #8a6c2c); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.shelfNote { margin: 0; width: calc(120 * var(--u)); margin-left: calc(-60 * var(--u)); margin-top: calc(27 * var(--u)); text-align: center; opacity: 0; pointer-events: none;
  font-family: "Cormorant", serif; font-style: italic; font-weight: 300; font-size: calc(3.6 * var(--u)); line-height: 1.1; color: var(--bone); }

/* an opened book */
.tome { position: fixed; z-index: 80; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 5vh 4vw;
  background: rgba(10,9,11,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; perspective: 2200px; }
.tome[hidden] { display: none; } .tome.open { opacity: 1; }
.tomeBook { position: relative; display: flex; width: min(1040px, 92vw); aspect-ratio: 2 / 1.06; transform-style: preserve-3d; transform: translateX(-25%) rotateX(8deg); transition: transform .9s cubic-bezier(.3,.7,.1,1);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)); }
.tome.open .tomeBook { transform: none; }
.leaf { flex: 1; background-color: var(--paper); color: var(--ink); position: relative; overflow: hidden;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .24  0 0 0 0 .1  0 0 0 .16 0'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>"); }
.leaf.left { display: flex; flex-direction: column; justify-content: center; gap: 1.1em; padding: 7% 6%; opacity: 0; transition: opacity .2s .45s; box-shadow: inset -40px 0 50px -30px rgba(60,40,10,.45); border-radius: 4px 0 0 4px; }
.tome.open .leaf.left { opacity: 1; }
.leaf.right { box-shadow: inset 40px 0 50px -30px rgba(60,40,10,.45); border-radius: 0 4px 4px 0; display: flex; align-items: center; justify-content: center; padding: 3.5%; }
.leaf.right img, .leaf.right video { width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(28,26,30,.5), 0 6px 18px rgba(40,25,5,.3); filter: saturate(.9); transform: rotate(-.6deg); }
.tomeNo { font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--navy); }
.tome h3 { margin: 0; font-family: "Fraunces", serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 54px); line-height: .95; letter-spacing: -.03em; }
.tome p { margin: 0; font-family: "Cormorant", serif; font-style: italic; font-weight: 300; font-size: clamp(18px, 1.9vw, 28px); line-height: 1.2; }
.tome a { align-self: flex-start; margin-top: .6em; padding: 1em 1.5em; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; transition: transform .25s; }
.tome a:hover { transform: translateY(-3px); }
.cover { position: absolute; left: 50%; top: -1.2%; bottom: -1.2%; width: 51%; transform-origin: 0 50%; transform: rotateY(0deg); transition: transform .9s cubic-bezier(.3,.7,.1,1); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--cloth); color: var(--foil); border-radius: 0 6px 6px 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8%;
  background-image: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.1) 6%, transparent 12%, rgba(0,0,0,.2)), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 14px var(--cloth), inset 0 0 0 15px var(--foil); }
.cover b { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(24px, 3.4vw, 52px); line-height: 1; letter-spacing: -.02em; }
.tome.open .cover { transform: rotateY(-178deg); }
.tomeClose { border: 1px solid rgba(233,231,226,.5); background: none; color: var(--bone); font: inherit; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; padding: 12px 20px; cursor: pointer; }
.tomeClose:hover { background: var(--bone); color: var(--ink); }
@media (max-aspect-ratio: 4/5) {
  .tomeBook { flex-direction: column-reverse; aspect-ratio: auto; transform: translateY(30px); } .cover { display: none; }
  .leaf.left { padding: 26px 22px; opacity: 1; box-shadow: none; border-radius: 0 0 4px 4px; } .leaf.right { box-shadow: none; border-radius: 4px 4px 0 0; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tomeBook, .cover, .bk { transition: none; } }

/* the pitch arrives a line at a time, out of a slot */
.pitch .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; } .pitch .ln > span { display: block; will-change: transform; }

/* ---------- the nave of lamps: we fly a colonnade of arches toward the niche; the lamps unhook and rise ---------- */
.nave { z-index: 8; display: none; color: var(--bone); pointer-events: none; }
.nave > * { position: absolute; left: 50%; top: 50%; }
.naveText { width: calc(50 * var(--u)); margin-left: calc(-76 * var(--u)); margin-top: calc(10 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; gap: calc(1.4 * var(--u)); pointer-events: auto; text-shadow: 0 2px 20px #000; }
.naveText > span { font-size: calc(1.05 * var(--u)); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.naveText b { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: calc(8 * var(--u)); line-height: .9; letter-spacing: -.02em; }
.naveText a { margin-top: calc(1.6 * var(--u)); display: inline-flex; gap: 1.2em; padding: 1.15em 1.6em; background: var(--gold); color: #17140c; text-decoration: none; text-shadow: none; font-size: clamp(10px, calc(1.05 * var(--u)), 15px); letter-spacing: .26em; text-transform: uppercase; font-weight: 500; transition: transform .25s; }
.naveText a:hover { transform: translateY(-3px); }

/* ---------- inside the machine: through the chest, past the gears, down onto a chip that is a city ---------- */
.niche { transform-origin: 50% 58%; }
.fx { z-index: 6; display: none; width: 100%; height: 100%; pointer-events: none; }
.mach { z-index: 6; display: none; pointer-events: none; color: var(--bone); }
.mach > * { position: absolute; left: 50%; top: 50%; }
.machText { z-index: 2; width: calc(60 * var(--u)); margin-left: calc(-30 * var(--u)); margin-top: calc(-34 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: calc(1.4 * var(--u)); text-shadow: 0 2px 24px #000, 0 0 60px #000; }
.machText > span { font-size: calc(1.05 * var(--u)); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.machText b { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: calc(8 * var(--u)); line-height: .9; letter-spacing: -.02em; }
.machText a { margin-top: calc(1.4 * var(--u)); display: inline-flex; gap: 1.2em; padding: 1.15em 1.6em; border: 1px solid var(--gold); color: var(--gold); background: rgba(10,9,11,.7); text-decoration: none; text-shadow: none; font-size: clamp(10px, calc(1.05 * var(--u)), 15px); letter-spacing: .26em; text-transform: uppercase; transition: background .25s, color .25s; }
.machText a:hover { background: var(--gold); color: #17140c; }

/* ---------- the overlook ---------- */
.over { z-index: 9; display: none; color: var(--bone); overflow: hidden; background: linear-gradient(#0b0d18 0, #131a2e 38%, #2a2440 49%, #0a090b 50%); }
.over > * { position: absolute; left: 50%; top: 50%; }
.overCv { left: 0 !important; top: 0 !important; width: 100%; height: 100%; }
.overSun { width: calc(3 * var(--u)); height: calc(3 * var(--u)); margin-left: calc(-1.5 * var(--u)); margin-top: calc(-2.4 * var(--u)); border-radius: 50%; background: #fff3c9; will-change: transform;
  box-shadow: 0 0 calc(4 * var(--u)) calc(2 * var(--u)) rgba(246,214,130,.9), 0 0 calc(26 * var(--u)) calc(10 * var(--u)) rgba(240,180,80,.35); }
.door { width: calc(40 * var(--u)); aspect-ratio: 1744 / 2336; margin-top: calc(-38.5 * var(--u)); text-decoration: none; color: inherit; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; transform-origin: 50% 100%;
  filter: drop-shadow(0 0 calc(5 * var(--u)) rgba(var(--glow), .35)) drop-shadow(0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.6)); }
.door.warm { margin-left: calc(-74 * var(--u)); --glow: 246,206,120; } .door.cool { margin-left: calc(34 * var(--u)); --glow: 140,228,240; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; }
.door:hover, .door:focus-visible { transform: scale(1.04); outline: none; filter: drop-shadow(0 0 calc(9 * var(--u)) rgba(var(--glow), .7)) drop-shadow(0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.6)); }
/* the signs are live type set onto the blank band each building was drawn with */
.door b { position: absolute; display: flex; align-items: center; justify-content: center; font-family: "Fraunces", serif; font-weight: 800; text-transform: uppercase; letter-spacing: .3em; padding-left: .3em; font-size: calc(1.75 * var(--u)); line-height: 1; }
.door.warm b { left: 23%; width: 55%; top: 47.2%; height: 5.6%; color: #2D4A77; } .door.cool b { left: 20%; width: 60%; top: 46.8%; height: 5.3%; color: #f3ead2; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.door span { position: absolute; left: 0; right: 0; top: 101.5%; text-align: center; font-size: clamp(9px, calc(.95 * var(--u)), 13px); letter-spacing: .24em; text-transform: uppercase; color: rgb(var(--glow)); }
.overPair { width: calc(40 * var(--u)); margin-left: calc(-20 * var(--u)); margin-top: calc(-14 * var(--u)); height: calc(32 * var(--u)); display: flex; align-items: flex-end; justify-content: center; gap: calc(1 * var(--u)); border-bottom: calc(.5 * var(--u)) solid #2b2630; will-change: transform; }
.overPair img { height: calc(13 * var(--u)); filter: drop-shadow(0 0 calc(1.4 * var(--u)) rgba(0,0,0,.6)); } .overPair img + img { height: calc(30 * var(--u)); }
.overText { width: calc(110 * var(--u)); margin-left: calc(-55 * var(--u)); margin-top: calc(23 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(1.6 * var(--u)); text-align: center; text-shadow: 0 2px 18px #000; }
.overText .endline { font-size: calc(5.4 * var(--u)); }
.overLinks { margin: 0; display: flex; gap: 2em; flex-wrap: wrap; justify-content: center; font-size: clamp(10px, calc(1 * var(--u)), 13px); letter-spacing: .2em; text-transform: uppercase; } .overLinks a { text-underline-offset: 4px; } .overLinks span { opacity: .6; }

/* ---------- the crossing: a brass porthole onto the real ship ---------- */
.cross { z-index: 8; display: none; pointer-events: none; color: var(--bone); }
.cross > * { position: absolute; left: 50%; top: 50%; }
.crossCv { left: 0 !important; top: 0 !important; width: 100%; height: 100%; }
.iris { border-radius: 50%; transform: translate(-50%, -50%); box-sizing: content-box; border: calc(1.6 * var(--u)) solid #b98f35; margin: 0;
  box-shadow: 0 0 0 calc(.35 * var(--u)) #6b4f1c, inset 0 0 0 calc(.35 * var(--u)) #3a2a12, inset 0 0 calc(5 * var(--u)) rgba(0,0,0,.55), 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.6); }
.crossText { z-index: 2; width: calc(50 * var(--u)); margin-left: calc(-76 * var(--u)); margin-top: calc(22 * var(--u)); display: flex; flex-direction: column; gap: calc(1.2 * var(--u)); text-shadow: 0 2px 20px #000; }
.crossText > span { font-size: calc(1.05 * var(--u)); letter-spacing: .42em; text-transform: uppercase; }
.crossText > span { color: var(--gold); }
.crossText b { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: calc(8 * var(--u)); line-height: .9; letter-spacing: -.02em; }

/* ---------- the goodbye: a laptop on black ---------- */
.bye { z-index: 10; display: none; background: #060607; color: var(--bone); overflow: hidden; }
.byeLine { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; margin: -.6em 0 0; text-align: center; opacity: 0; color: #f5f5f7; will-change: transform, opacity;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", system-ui, sans-serif; font-weight: 600; font-size: clamp(34px, calc(8 * var(--u)), 120px); letter-spacing: -.035em; line-height: 1.05; }
.byeCv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.byeEnd { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 8vw; text-align: center; opacity: 0; }
.byeLinks { margin: 0; display: flex; gap: clamp(22px, 5vw, 60px); font-family: "Fraunces", serif; font-weight: 800; font-size: clamp(24px, calc(4 * var(--u)), 54px); letter-spacing: -.02em; }
.byeLinks a { text-decoration: none; color: var(--bone); transition: color .3s; } .byeLinks a:hover { color: var(--gold); } .byeLinks span { font-size: .5em; vertical-align: .5em; color: var(--gold); }

.sparks { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }
.kt { display: inline-block; }
.prHead b { word-spacing: .14em; }
.rp { overflow: hidden; -webkit-tap-highlight-color: transparent; }
.rp::after { content: ""; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(0);
  background: radial-gradient(circle, #fffbe6 0, #f6dc86 35%, rgba(233,196,95,.7) 60%, rgba(185,143,53,0) 72%); mix-blend-mode: screen; }
.rp.on::after { animation: press .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes press { 0% { opacity: .95; transform: scale(0); } 60% { opacity: .6; } 100% { opacity: 0; transform: scale(70); } }
@media (prefers-reduced-motion: reduce) { .rp.on::after { animation: none; } }

/* ---------- chapter cards: centred, framed, deadpan ---------- */
.card { position: absolute; z-index: 21; left: 50%; top: 13%; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; gap: .55em;
  padding: 1.1em 2.4em 1.2em; color: var(--fg); opacity: 0; pointer-events: none; text-align: center; white-space: nowrap;
  border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: 5px; background: color-mix(in srgb, var(--bg, var(--paper)) 82%, transparent); backdrop-filter: blur(6px); }
.card span { font-size: clamp(9px, .72vw, 11px); letter-spacing: .42em; text-transform: uppercase; }
.card b { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; font-size: clamp(20px, 2.1vw, 34px); letter-spacing: -.01em; }

/* ---------- hero tags, like labels on a specimen ---------- */
.tag { display: none !important; font-size: calc(1.05 * var(--u)); letter-spacing: .22em; text-transform: uppercase; color: var(--navy); white-space: nowrap; display: flex; gap: .9em; align-items: center; }
.tag b { font-weight: 500; color: var(--ink); }
.tag::before { content: ""; width: calc(7 * var(--u)); height: 1px; background: currentColor; order: 2; }
.tagHuck { margin-left: calc(-36 * var(--u)); margin-top: calc(4 * var(--u)); }
.tagHuck::before { order: 2; }
.tagPeter { margin-left: calc(45 * var(--u)); margin-top: calc(-34 * var(--u)); }

/* ---------- the entrance: one choreographed second and a half, once ---------- */
body:not(.in) .hero > *, body:not(.in) .chrome, body:not(.in) .label, body:not(.in) .hint, body:not(.in) .card { opacity: 0; }
@keyframes stamp { 0% { opacity: 0; transform: translateY(-.12em) scale(1.9) rotate(var(--r, 0deg)); filter: blur(8px); } 55% { opacity: 1; filter: blur(0); } 78% { transform: translateY(.012em) scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes swoosh { from { opacity: 0; transform: translateX(-1.2em) skewX(-18deg); } to { opacity: 1; transform: none; } }
@keyframes swing { 0% { opacity: 0; transform: translate3d(calc(70 * var(--u)), calc(-6 * var(--u)), 0) rotate(16deg); } 30% { opacity: 1; } 72% { transform: translate3d(calc(-2 * var(--u)), 0, 0) rotate(-2.5deg); } 100% { opacity: 1; transform: none; } }
@keyframes hop { 0% { opacity: 1; transform: translate3d(0, calc(52 * var(--u)), 0); } 58% { transform: translate3d(0, calc(-3.2 * var(--u)), 0) rotate(-2deg); } 80% { transform: translate3d(0, calc(.8 * var(--u)), 0); } 100% { opacity: 1; transform: none; } }
@keyframes flutter { 0% { opacity: 0; transform: translate3d(calc(-14 * var(--u)), calc(-44 * var(--u)), 0) rotate(-70deg); } 25% { opacity: 1; } 70% { transform: translate3d(calc(.6 * var(--u)), calc(.4 * var(--u)), 0) rotate(-3deg); } 100% { opacity: 1; transform: rotate(-7deg); } }
@keyframes unroll { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes settle { 0% { opacity: 0; transform: translateY(-.1em) scale(1.25); filter: blur(10px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes piston { 0% { opacity: 1; transform: translateY(105%); } 62% { transform: translateY(-3.5%); } 80% { transform: translateY(1.2%); } 100% { opacity: 1; transform: none; } }
@keyframes drop { 0% { opacity: 1; transform: translate3d(0, calc(-80 * var(--u)), 0) rotate(-6deg); } 62% { transform: translate3d(0, calc(.9 * var(--u)), 0) scale(1.03, .97); } 80% { transform: translate3d(0, calc(-.7 * var(--u)), 0); } 100% { opacity: 1; transform: none; } }
.in .title .l1 .ch { animation: settle .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.3s + var(--i) * .09s); }
.in .title .l3 .ch { animation: piston .5s cubic-bezier(.3,.9,.3,1) both; animation-delay: calc(.55s + var(--i) * .055s); }
.in .title .l2 em { display: inline-block; animation: swoosh .5s cubic-bezier(.2,.8,.2,1) .8s both; }
.in .mat { animation: unroll .6s cubic-bezier(.3,.8,.2,1) 1.0s both; }
.in .peter { animation: drop .7s cubic-bezier(.4,0,.6,1) 1.2s backwards; }
.in .huck { animation: hop .7s cubic-bezier(.2,.8,.2,1) 1.6s backwards; }
.in .scrap { animation: flutter .85s cubic-bezier(.2,.8,.2,1) 1.7s backwards; }
.in .lede, .in .tag { animation: rise .6s ease-out 2.2s backwards; }
.in .chrome, .in .label, .in .hint { animation: rise .6s ease-out 2.3s backwards; }
body:not(.in) .peter, body:not(.in) .huck, body:not(.in) .scrap { opacity: 0; }
.in .string { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .in * { animation: none !important; } }

/* ---------- Peter's tattoos as background texture ----------
   Three patterns lifted from photos of his sleeve. Each is a mask, so it takes whatever colour the world needs,
   and each fades out toward one side so it reads as texture, never as wallpaper. */
.paper::after, .sea::before, .night::before, .page::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in; mask-composite: intersect; }
.paper::after { background: var(--ink); opacity: .055;
  -webkit-mask-image: url("assets/tattoo-bands.webp"), radial-gradient(70% 80% at 0% 100%, #000 10%, transparent 70%);
          mask-image: url("assets/tattoo-bands.webp"), radial-gradient(70% 80% at 0% 100%, #000 10%, transparent 70%);
  -webkit-mask-size: calc(64 * var(--u)) auto, 100% 100%; mask-size: calc(64 * var(--u)) auto, 100% 100%; }
.sea::before { background: #6f8fc4; opacity: .11;
  -webkit-mask-image: url("assets/tattoo.webp"), radial-gradient(80% 90% at 0% 100%, #000 5%, transparent 65%);
          mask-image: url("assets/tattoo.webp"), radial-gradient(80% 90% at 0% 100%, #000 5%, transparent 65%);
  -webkit-mask-size: calc(40 * var(--u)) auto, 100% 100%; mask-size: calc(40 * var(--u)) auto, 100% 100%; }
.night::before { background: var(--gold); opacity: .085; left: 0; top: 0; margin: 0; width: 100%; height: 100%;
  -webkit-mask-image: url("assets/tattoo-lattice.webp"), radial-gradient(90% 90% at 50% 45%, transparent 22%, #000 62%);
          mask-image: url("assets/tattoo-lattice.webp"), radial-gradient(90% 90% at 50% 45%, transparent 22%, #000 62%);
  -webkit-mask-size: calc(58 * var(--u)) auto, 100% 100%; mask-size: calc(58 * var(--u)) auto, 100% 100%; }
.page::before { background: var(--ink); opacity: .04;
  -webkit-mask-image: url("assets/tattoo-lattice.webp"), linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
          mask-image: url("assets/tattoo-lattice.webp"), linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
  -webkit-mask-size: calc(50 * var(--u)) auto, 100% 100%; mask-size: calc(50 * var(--u)) auto, 100% 100%; }
#fetch::before { display: none; }
/* the wrist: square spirals, on the ride page */
#ride::before { opacity: .05;
  -webkit-mask-image: url("assets/tattoo-keys.webp"), linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
          mask-image: url("assets/tattoo-keys.webp"), linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
  -webkit-mask-size: calc(46 * var(--u)) auto, 100% 100%; mask-size: calc(46 * var(--u)) auto, 100% 100%; }


/* the curl of a turning page: the cream back of the sheet, lit along the roll, with its shadow on the page beneath */
.curl { position: absolute; z-index: 9; left: 0; top: 0; transform-origin: 0 0; visibility: hidden; pointer-events: none; will-change: transform, width;
  background: linear-gradient(90deg, #8f8468 0, #d9cfb2 8%, #fbf5e4 30%, #fffdf4 46%, #efe6cd 72%, #cbbf9f 92%, #a99d7e 100%);
  box-shadow: calc(2.5 * var(--u)) 0 calc(5 * var(--u)) rgba(20,12,0,.42), calc(.4 * var(--u)) 0 calc(.8 * var(--u)) rgba(20,12,0,.4), calc(-1.2 * var(--u)) 0 calc(2.4 * var(--u)) rgba(0,0,0,.35); }
.curl::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .07; -webkit-mask: url("assets/tattoo-bands.webp") 0 0 / calc(40 * var(--u)) auto; mask: url("assets/tattoo-bands.webp") 0 0 / calc(40 * var(--u)) auto; }

/* ---------- pages that slide up carrying a moving picture ---------- */
.page { background-color: var(--paper); visibility: hidden; will-change: transform;
  clip-path: polygon(0 2.2%, 6% .6%, 13% 2.6%, 21% .9%, 30% 2.9%, 38% 1.1%, 47% 2.4%, 55% .5%, 64% 2.7%, 72% 1%, 81% 2.8%, 90% .8%, 100% 2.3%, 100% 100%, 0 100%); }
#ride { z-index: 7; } #fetch { z-index: 8; }
.seq { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.seq { filter: brightness(1.13) contrast(1.06); }
.seq.mono { filter: grayscale(1) brightness(1.16) contrast(1.14); }
.end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(4 * var(--u)); opacity: 0; color: var(--paper); text-align: center; padding: 0 6vw; }
.endline { margin: 0; font-family: "Cormorant", serif; font-style: italic; font-weight: 300; font-size: clamp(34px, calc(7 * var(--u)), 120px); line-height: 1; text-shadow: 0 2px 30px rgba(40,10,0,.5); }
.doors { display: flex; gap: clamp(14px, 3vw, 44px); flex-wrap: wrap; justify-content: center; }
.doors a { display: flex; flex-direction: column; gap: 8px; align-items: center; text-decoration: none; padding: 18px 30px; min-width: 210px;
  font-family: "Fraunces", serif; font-weight: 800; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.01em;
  background: var(--paper); color: var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s; }
.doors a + a { background: var(--ink); color: var(--bone); }
.doors a:hover { transform: translateY(-4px) rotate(-1deg); }
.doors a span { font-family: "Plex", monospace; font-weight: 400; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .75; }

/* ---------- phone ---------- */
@media (max-aspect-ratio: 4/5) {
  :root { --u: min(1.9vw, .909svh); }      /* 52 units wide, and never taller than 110 */
  .chrome nav a:not(.pill) { display: none; }
  .title .l1 { font-size: calc(22 * var(--u)); margin-left: calc(-25.6 * var(--u)); margin-top: calc(-46.5 * var(--u)); }
  .title .l2 { font-size: calc(10 * var(--u)); margin-left: calc(-23 * var(--u)); margin-top: calc(-31 * var(--u)); }
  .title .l3 { font-size: calc(11.1 * var(--u)); margin-left: calc(-26 * var(--u)); margin-top: calc(34 * var(--u)); }
  .peter { height: calc(58 * var(--u)); margin-left: calc(-21 * var(--u)); margin-top: calc(-23.4 * var(--u)); }
  .huck { height: calc(22 * var(--u)); margin-left: calc(-25 * var(--u)); margin-top: calc(12.6 * var(--u)); }
  .mat { width: calc(48 * var(--u)); height: calc(3 * var(--u)); margin-left: calc(-22 * var(--u)); margin-top: calc(33.6 * var(--u)); }
  .scrap { display: none; }
  .crossText { width: calc(46 * var(--u)); margin-left: calc(-23 * var(--u)); margin-top: calc(28 * var(--u)); align-items: center; text-align: center; } .crossText b { font-size: calc(6.4 * var(--u)); }
  .door { width: calc(25 * var(--u)); margin-top: calc(-49 * var(--u)); } .door.warm { margin-left: calc(-25.5 * var(--u)); } .door.cool { margin-left: calc(.5 * var(--u)); } .door b { font-size: calc(1.15 * var(--u)); letter-spacing: .22em; }
  .overPair { margin-top: calc(-9 * var(--u)); height: calc(30 * var(--u)); } .overText { width: calc(46 * var(--u)); margin-left: calc(-23 * var(--u)); margin-top: calc(23 * var(--u)); gap: calc(1.2 * var(--u)); } .overText .endline { font-size: calc(5 * var(--u)); } .overLinks { gap: .6em 2em; }
  .machText { width: calc(48 * var(--u)); margin-left: calc(-24 * var(--u)); margin-top: calc(-40 * var(--u)); } .machText b { font-size: calc(6.4 * var(--u)); }
  .naveText { width: calc(46 * var(--u)); margin-left: calc(-23 * var(--u)); margin-top: calc(-46 * var(--u)); gap: calc(1 * var(--u)); align-items: center; text-align: center; } .naveText b { font-size: calc(6.4 * var(--u)); }
  .prHead { width: calc(48 * var(--u)); margin-left: calc(-24 * var(--u)); margin-top: calc(-47 * var(--u)); align-items: center; text-align: center; gap: calc(.8 * var(--u)); } .prHead b { font-size: calc(7 * var(--u)); }
  .prInk { --fl: 0%; --fl2: 8%; --ft: 9%; --ft2: 27%; width: calc(92 * var(--u)); margin-left: calc(-46 * var(--u)); margin-top: calc(-52 * var(--u)); }
  .prShelf { width: calc(44 * var(--u)); margin-left: calc(-22 * var(--u)); margin-top: calc(11 * var(--u)); align-items: center; gap: calc(2.4 * var(--u)); }
  .vol { height: calc(25 * var(--u)) !important; }
  .vol { width: calc(8 * var(--u)); } .prGo { font-size: 11px; }
  .lede { width: calc(25 * var(--u)); margin-left: calc(-1 * var(--u)); margin-top: calc(-28.6 * var(--u)); font-size: calc(2.2 * var(--u)); }
  .string { display: none; }
  .tag { display: none; }
  .card { top: 10%; }
  .niche { width: calc(40 * var(--u)); height: calc(58 * var(--u)); margin-left: calc(-20 * var(--u)); margin-top: calc(-9 * var(--u)); border-radius: calc(20 * var(--u)) calc(20 * var(--u)) 0 0; }
  .bench { width: calc(46 * var(--u)); margin-left: calc(-23 * var(--u)); margin-top: calc(-45 * var(--u)); text-align: center; }
  .pitch { font-size: calc(6.4 * var(--u)); } .book { margin-top: calc(2.4 * var(--u)); }
  .ways { display: none; }
  .earth  { width: calc(80 * var(--u)); margin-left: calc(-18 * var(--u)); margin-top: calc(18 * var(--u)); }
  .waves  { width: calc(74 * var(--u)); margin-left: calc(-30 * var(--u)); margin-top: calc(-56 * var(--u)); }
  .falls  { width: calc(17 * var(--u)); margin-left: calc(-16 * var(--u)); margin-top: calc(-32 * var(--u)); }
  .ribbon { width: calc(52 * var(--u)); margin-left: calc(-21 * var(--u)); margin-top: calc(-21 * var(--u)); }
  .leap   { width: calc(34 * var(--u)); margin-left: calc(-12 * var(--u)); margin-top: calc(-24 * var(--u)); }
  .ball   { width: calc(5.5 * var(--u)); margin-left: calc(17 * var(--u)); margin-top: calc(-30 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) { .hint span { animation: none; } }

@media (max-aspect-ratio: 4/5) { .shelfNote { width: calc(46 * var(--u)); margin-left: calc(-23 * var(--u)); line-height: 1.25; } }
@media (max-aspect-ratio: 4/5) { .byeLine { font-size: calc(6.2 * var(--u)); } }
.overText::before { content: ""; position: absolute; inset: -22% -14%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(7,7,11,.9) 0, rgba(7,7,11,.72) 45%, rgba(7,7,11,0) 72%); }
.overText { isolation: isolate; }

/* ---- review round one ---- */
.machText b { white-space: nowrap; }
.prHead > span, .shelfHead > span, .naveText > span, .machText > span, .crossText > span { font-size: max(calc(1.05 * var(--u)), 10px); }
.tome { overflow-y: auto; }
.chrome { text-shadow: 0 0 10px rgba(246,239,222,.95), 0 0 3px rgba(246,239,222,.9); }
.is-gold .chrome { text-shadow: 0 0 10px rgba(255,232,160,.95), 0 0 3px rgba(255,232,160,.9); }
.is-night .chrome { text-shadow: 0 0 10px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.8); }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: url("assets/grain.png"); background-size: 110px 110px; opacity: .28; }
@media (max-width: 420px) { .hint { display: none; } }
@media (max-aspect-ratio: 4/5) {
  .machText b { font-size: calc(5.4 * var(--u)); }
  .prGo, .naveText a, .machText a, .book, .tomeClose, .tome a, .pill, .byeLinks a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .7em; }
}

.byeMark { margin: 0; font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(34px, calc(9 * var(--u)), 130px); line-height: .9; letter-spacing: -.04em; color: transparent; background: url("assets/gold.webp") center / 140% auto; -webkit-background-clip: text; background-clip: text; }
.byeMark i { font-weight: 300; font-size: .62em; letter-spacing: -.02em; }
.byeAsk { color: var(--bone); border-color: rgba(215,194,151,.6); text-decoration: none; font-family: "Plex", monospace; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.byeFoot { margin: 0; font-family: "Plex", monospace; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(236,226,205,.45); }

/* ---- the ride has a world: the gold thread is the road, paper streaks past, Huck is after the ball ---- */
.rideWorld { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rideWorld > * { position: absolute; left: 50%; top: 50%; }
.rdThread { left: 0; width: 100%; height: calc(14 * var(--u)); margin-top: calc(9 * var(--u)); overflow: visible; }
.rdThread path { fill: none; stroke: #b98f35; stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rdScrap { display: block; width: calc(13 * var(--u)); height: calc(3.2 * var(--u)); margin: calc(-1.6 * var(--u)) 0 0 calc(-6.5 * var(--u)); background: repeating-linear-gradient(90deg, #1d2d5c 0 14%, #c98a2b 14% 22%, #efe3c6 22% 30%, #1d2d5c 30% 48%); box-shadow: 0 2px 5px rgba(40,28,10,.25);
  clip-path: polygon(2% 12%, 30% 0, 62% 9%, 98% 2%, 100% 78%, 71% 100%, 38% 90%, 0 96%); }
.rdScrap.s2, .rdScrap.s5 { width: calc(7 * var(--u)); height: calc(2 * var(--u)); background: url("assets/gold.webp") center / 400% auto; }
.rdScrap.s3, .rdScrap.s6 { width: calc(9 * var(--u)); height: calc(4.4 * var(--u)); background: #1d2d5c url("assets/tattoo-keys.webp") center / 220% auto; }
.rdBall { width: calc(5 * var(--u)); margin: calc(-2.5 * var(--u)) 0 0 calc(-2.5 * var(--u)); }
.rdHuck { width: calc(30 * var(--u)); margin: calc(-10 * var(--u)) 0 0 calc(-15 * var(--u)); }
@media (max-aspect-ratio: 4/5) { .rdHuck { width: calc(24 * var(--u)); margin: calc(-8 * var(--u)) 0 0 calc(-12 * var(--u)); } }

/* ---- the overlook stands on one floor split in two: inlaid marble for the practice, riveted steel for the build, the gold thread between them ---- */
.over { background: #141a3c; }
.overCv { display: none; }
.overFloor { --fw: max(100vw, 177.78svh); --fh: calc(var(--fw) * .5625); left: 50% !important; top: calc(50% - .458 * var(--fh)) !important; width: var(--fw); height: var(--fh); margin-left: calc(var(--fw) / -2); background: url("assets/floor.webp") center / 100% 100% no-repeat; }
.overText { background: #f3ead2 url("assets/grain.png"); color: #1e1a14; text-shadow: none; padding: calc(2.2 * var(--u)) calc(4 * var(--u)); width: auto; max-width: calc(78 * var(--u)); margin-left: 0; transform: translateX(-50%) rotate(-.6deg); box-shadow: 0 calc(.6 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.45); clip-path: polygon(0 3%, 12% 0, 31% 2%, 55% 0, 78% 2.5%, 100% 0, 99% 97%, 84% 100%, 60% 98%, 37% 100%, 15% 97.5%, 1% 100%); }
.overText::before { display: none; }
.overText *, .overText a { color: inherit !important; text-shadow: none !important; opacity: 1 !important; }
.door span { background: rgba(14,16,34,.86); padding: .55em 1em; border-radius: 2px; }
.is-night .label { text-shadow: 0 0 8px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9); }
@media (max-aspect-ratio: 4/5) { .overText { max-width: calc(46 * var(--u)); padding: calc(2 * var(--u)) calc(2.6 * var(--u)); } }

/* ---- review round two ---- */
.byeLine { pointer-events: none; }
.mark { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
.overLinks a, .credit a { padding: 12px 2px; margin: -12px -2px; }
@media (max-aspect-ratio: 4/5) {
  .byeLinks { flex-direction: column; gap: 4px; font-size: calc(5.4 * var(--u)); }
  .overText { margin-top: calc(19 * var(--u)); gap: calc(.8 * var(--u)); padding: calc(1.4 * var(--u)) calc(2.4 * var(--u)); } .overText .endline { font-size: calc(3.6 * var(--u)); }
  .door span, .door b { font-size: max(10px, calc(1.5 * var(--u))); }
}

#rideCv { transform-origin: 50% 60%; }

/* ---- the ride is the crossing from one word to the other ---- */
.rdWord { display: block; white-space: nowrap; font-family: "Fraunces", serif; font-weight: 900; line-height: .8; letter-spacing: -.045em; font-size: calc(46 * var(--u)); margin-top: calc(-22 * var(--u)); color: transparent; -webkit-background-clip: text; background-clip: text; background-size: calc(120 * var(--u)) auto; background-position: center; filter: drop-shadow(0 .5px 0 rgba(60,40,10,.35)); }
.rdMat { background-color: #b9a47c; background-image: url("assets/tex-mat.webp"); }
.rdMach { background-color: #2b2d31; background-image: url("assets/tex-machine.webp"); background-size: calc(170 * var(--u)) auto; }
@media (max-aspect-ratio: 4/5) { .rdWord { font-size: calc(30 * var(--u)); margin-top: calc(-34 * var(--u)); } }

.rdMach { background: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; filter: none; }
.rdL { display: inline-block; font-style: normal; color: transparent; background: #2b2d31 url("assets/tex-machine.webp") center / calc(60 * var(--u)) auto; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 calc(.3 * var(--u)) calc(.5 * var(--u)) rgba(30,20,5,.4)); }

.rideFront { z-index: 2; }
.rdL { filter: drop-shadow(0 calc(.5 * var(--u)) calc(1.2 * var(--u)) rgba(30,20,5,.5)); }

.rideFront .rdMach { left: 0; width: 100%; text-align: center; font-size: calc(33 * var(--u)); margin-top: calc(-17 * var(--u)); }
.rideFront .rdL { background-size: calc(46 * var(--u)) auto; }
@media (max-aspect-ratio: 4/5) { .rideFront .rdMach { font-size: calc(10.6 * var(--u)); margin-top: calc(-9 * var(--u)); } .rideFront .rdL { background-size: calc(16 * var(--u)) auto; } }

@media (max-aspect-ratio: 4/5) { #rideCv { inset: auto; left: 0; top: 50%; width: 100%; height: 56.25vw; margin-top: -28.125vw; transform-origin: 50% 50%; -webkit-mask: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(transparent, #000 7%, #000 93%, transparent); } }

/* ---- review pass ---- */
.bye { pointer-events: none; }   /* the dimmed overlook's doors stay live until the end card takes over */
.menuBtn { display: none; }
@media (max-aspect-ratio: 4/5) {
  .lede { margin-top: calc(-30.6 * var(--u)); }   /* clear of his raised hand */
  .menuBtn { display: inline-block; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: calc(1.2 * var(--u)) calc(1.6 * var(--u)); cursor: pointer; }
  .chrome nav.open a:not(.pill) { display: block; position: absolute; right: calc(3 * var(--u)); padding: calc(1.5 * var(--u)) calc(2.4 * var(--u)); background: rgba(12,11,14,.94); color: #f3e9d2; min-width: calc(26 * var(--u)); text-align: right; }
  .chrome nav.open a:nth-of-type(1) { top: calc(9 * var(--u)); } .chrome nav.open a:nth-of-type(2) { top: calc(14.4 * var(--u)); } .chrome nav.open a:nth-of-type(3) { top: calc(19.8 * var(--u)); } .chrome nav.open a:nth-of-type(4) { top: calc(25.2 * var(--u)); }
  .ways { display: block; position: absolute; left: calc(7 * var(--u)); right: calc(7 * var(--u)); top: auto; bottom: calc(8 * var(--u)); height: auto; min-height: 0; width: auto; margin: 0; background: rgba(10,9,11,.78); padding: 0 calc(2 * var(--u)); }
  .ways li { padding: calc(1.3 * var(--u)) 0; }
}

/* ---- the overlook, photographed: the walk began as paper and ends as a real place ---- */
.over.real { background: #0b0d18; }
.over.real .overCv, .over.real .overFloor, .over.real .overSun, .over.real .overPair, .over.real .door img, .over.real .door b { display: none; }
.over.real .overPlate { width: max(100vw, calc(100vh * 16 / 9)); height: max(100vh, calc(100vw * 9 / 16)); transform: translate(-50%, -50%) scale(var(--ps, 1)); background: url("assets/over.webp") center / cover; }
.over.real .door { aspect-ratio: auto; margin: 0; transform-origin: 50% 50%; left: calc(50% + var(--dx) * max(100vw, calc(100vh * 16 / 9))); top: calc(50% + var(--dy) * max(100vh, calc(100vw * 9 / 16))); width: calc(var(--dw) * max(100vw, calc(100vh * 16 / 9))); height: calc(var(--dh) * max(100vh, calc(100vw * 9 / 16))); border-radius: 4px; }
.over.real .door.warm { --dx: -.311; --dy: -.36; --dw: .228; --dh: .447; } .over.real .door.cool { --dx: .104; --dy: -.25; --dw: .193; --dh: .34; }
.over.real .door:hover, .over.real .door:focus-visible { transform: none; filter: none; box-shadow: 0 0 0 1px rgba(var(--glow), .7), 0 0 calc(6 * var(--u)) rgba(var(--glow), .45); }
.over.real .door span { top: auto; bottom: -2.6em; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
.over.real .overText { top: auto; bottom: 4vh; margin-top: 0; }
@media (max-aspect-ratio: 4/5) {
  .over.real .overPlate { width: max(100vw, calc(100vh * 9 / 16)); height: max(100vh, calc(100vw * 16 / 9)); background-image: url("assets/over-p.webp"); }
  .over.real .door { left: calc(50% + var(--dx) * max(100vw, calc(100vh * 9 / 16))); top: calc(50% + var(--dy) * max(100vh, calc(100vw * 16 / 9))); width: calc(var(--dw) * max(100vw, calc(100vh * 9 / 16))); height: calc(var(--dh) * max(100vh, calc(100vw * 16 / 9))); }
  .over.real .door.warm { --dx: -.47; --dy: -.39; --dw: .5; --dh: .35; } .over.real .door.cool { --dx: .06; --dy: -.31; --dw: .41; --dh: .27; }
  .over.real .overText { bottom: 3vh; }
  .over.real .door span { font-size: 9px; letter-spacing: .1em; padding: .5em .6em; bottom: -2.4em; }
  .over.real .door.warm span { left: 4vw; transform: none; } .over.real .door.cool span { left: auto; right: 2vw; transform: none; }
}

/* the narrator's line, beside the chapter label */
.say { margin-left: 2.2em; font-family: "Cormorant", serif; font-style: italic; font-weight: 400; font-size: clamp(15px, 1.35vw, 21px); letter-spacing: .01em; text-transform: none; white-space: nowrap; vertical-align: -.08em; opacity: 0; }
@media (max-aspect-ratio: 4/5) { .label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; max-width: 86vw; } .say { order: -1; flex-basis: 100%; margin: 0 0 .45em; white-space: normal; font-size: 16px; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.35); } }
.say { font-weight: 500; font-size: clamp(16px, 1.5vw, 23px); }
.is-night .say { text-shadow: 0 0 10px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.9); }
@media (max-aspect-ratio: 4/5) { .say { font-size: 17px; } .ways { bottom: calc(13 * var(--u)); } }
.say { white-space: normal; }
@media (max-aspect-ratio: 4/5) { .hint { max-width: 46vw; text-align: right; line-height: 1.6; } }
/* the narrator's line rides on a strip of the site's own paper, so it reads over anything */
.say:not(:empty) { display: inline-block; background: #f3ead2 url("assets/grain.png"); color: #1e1a14 !important; text-shadow: none !important; padding: .28em .8em .34em; box-shadow: 0 2px 10px rgba(0,0,0,.35); transform: rotate(-.5deg); max-width: min(62vw, 46em); line-height: 1.2; }
@media (max-aspect-ratio: 4/5) { .say:not(:empty) { max-width: 84vw; flex-basis: auto; margin-bottom: .7em; } }
@media (max-aspect-ratio: 4/5) { .say:not(:empty) { order: -2; } .label::before { content: ""; flex-basis: 100%; order: -1; height: 0; } }
.prSay { font-family: "Cormorant", serif; font-style: italic; font-weight: 500; font-size: calc(2.5 * var(--u)); line-height: 1.15; max-width: 22em; }
@media (max-aspect-ratio: 4/5) { .prSay { font-size: calc(3.4 * var(--u)); max-width: 15em; }
  .over.real .door.warm span { left: 9vw; } .over.real .door.cool span { right: 7vw; } }
.prSay { align-self: flex-start; background: #f3ead2 url("assets/grain.png"); color: #1e1a14; padding: .3em .8em .36em; box-shadow: 0 2px 10px rgba(0,0,0,.3); transform: rotate(-.5deg); }
@media (max-aspect-ratio: 4/5) { .prSay { align-self: center; } }

/* ---- council round three ---- */
.chrome button { pointer-events: auto; }                       /* the phone Menu button was unclickable */
.prGo, .naveText a, .machText a, .bench a, .door span, .overLinks, .byeFoot { font-size: max(12px, calc(1.05 * var(--u))) !important; }
@media (max-aspect-ratio: 4/5) { .prSay { background-color: #f3ead2; opacity: 1; } .over.real .door span { font-size: 10px !important; } }
@media (max-aspect-ratio: 4/5) { .chrome nav.open a:not(.pill) { height: calc(5.4 * var(--u)); line-height: calc(5.4 * var(--u)); padding: 0 calc(2.6 * var(--u)); text-shadow: none; background: #0c0b0e; font-size: 12px; }
  .chrome nav.open a:nth-of-type(1) { top: calc(9 * var(--u)); } .chrome nav.open a:nth-of-type(2) { top: calc(14.4 * var(--u)); } .chrome nav.open a:nth-of-type(3) { top: calc(19.8 * var(--u)); } .chrome nav.open a:nth-of-type(4) { top: calc(25.2 * var(--u)); } }

/* Huck's nose print, left on the glass: it fogs and smears what is behind it, lingers into the next scene and fades */
.smudge { position: fixed; z-index: 19; left: 50%; top: 56%; width: 38vmin; height: 32vmin; margin: -16vmin 0 0 -19vmin; pointer-events: none; opacity: 0; transform: rotate(-6deg); }
.smudge::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.2), rgba(255,255,255,.07) 45%, rgba(255,255,255,0) 70%); filter: blur(8px); }
.smudge i { position: absolute; inset: 0; -webkit-backdrop-filter: blur(5px) brightness(1.12) saturate(.9); backdrop-filter: blur(5px) brightness(1.12) saturate(.9); background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.06) 60%, rgba(255,255,255,.16));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 170'%3E%3Cpath fill-rule='evenodd' d='M100 12c34 0 78 10 84 40 5 26-18 52-44 66-12 7-22 18-26 34-2 8-26 8-28 0-4-16-14-27-26-34C34 104 11 78 16 52 22 22 66 12 100 12zM62 58c-12 0-20 10-18 22s14 18 26 14 16-14 12-24-10-12-20-12zm76 0c-10 0-16 2-20 12s0 20 12 24 24-2 26-14-6-22-18-22z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 170'%3E%3Cpath fill-rule='evenodd' d='M100 12c34 0 78 10 84 40 5 26-18 52-44 66-12 7-22 18-26 34-2 8-26 8-28 0-4-16-14-27-26-34C34 104 11 78 16 52 22 22 66 12 100 12zM62 58c-12 0-20 10-18 22s14 18 26 14 16-14 12-24-10-12-20-12zm76 0c-10 0-16 2-20 12s0 20 12 24 24-2 26-14-6-22-18-22z'/%3E%3C/svg%3E") center / contain no-repeat; }
#fetch { background: #fff url("assets/room.webp") center / cover; }
@media (max-aspect-ratio: 4/5) { #fetch { background-image: url("assets/room-p.webp"); } }
/* the print is a soft wet patch and a little fog, not a drawn nose */
.smudge i { -webkit-mask: radial-gradient(ellipse 46% 40% at 50% 42%, #000 30%, transparent 70%), radial-gradient(ellipse 16% 30% at 50% 78%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 46% 40% at 50% 42%, #000 30%, transparent 70%), radial-gradient(ellipse 16% 30% at 50% 78%, #000 20%, transparent 75%);
  -webkit-backdrop-filter: blur(7px) brightness(1.1); backdrop-filter: blur(7px) brightness(1.1); background: radial-gradient(ellipse at 40% 35%, rgba(255,255,255,.2), rgba(255,255,255,.05) 70%); }
.smudge::before { background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.13), rgba(255,255,255,.04) 45%, rgba(255,255,255,0) 70%); }
@media (max-aspect-ratio: 4/5) { .prSay { margin-top: calc(1.6 * var(--u)); } }

/* ---- the title card: up while the type and first pictures arrive, then it lifts ---- */
.curtain { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; background: #f3ead2 url("assets/grain.png"); color: #1e1a14; transition: opacity .6s ease, transform .8s cubic-bezier(.6,0,.2,1); }
.curtain b { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.02em; }
.curtain span { font-family: "Plex", ui-monospace, monospace; font-size: clamp(10px, .9vw, 13px); letter-spacing: .34em; text-transform: uppercase; opacity: .7; }
.curtain i { width: 14px; height: 14px; margin-top: 1.6em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f1fb7c, #b9d32c 65%, #7f9a18); animation: bounce .62s cubic-bezier(.3,0,.7,1) infinite alternate; }
@keyframes bounce { from { transform: translateY(-22px); } to { transform: translateY(0) scale(1.12, .86); } }
body.in .curtain { opacity: 0; transform: translateY(-3%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .curtain i { animation: none; } }
.scrap { display: none !important; }   /* the pinned anatomy scrap on the T read as a stray; the hero is stronger without it */

/* ---- the sound switch ---- */
.sndBtn { display: inline-flex; align-items: center; gap: .7em; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: .6em 0; cursor: pointer; white-space: nowrap; }
.sndBtn i { width: .6em; height: .6em; border-radius: 50%; border: 1px solid currentColor; }
.sndBtn.on i { background: var(--gold); border-color: var(--gold); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 .45em rgba(215,194,151,.0); } 0% { box-shadow: 0 0 0 0 rgba(215,194,151,.55); } }
@media (max-aspect-ratio: 4/5) { .sndBtn { display: none; }
  .chrome nav.open .sndBtn { display: flex; justify-content: flex-end; position: absolute; right: calc(3 * var(--u)); top: calc(30.6 * var(--u)); height: calc(5.4 * var(--u)); min-width: calc(26 * var(--u)); padding: 0 calc(2.6 * var(--u)); background: #0c0b0e; color: #f3e9d2; font-size: 12px; } }

/* ---- the practice, rethought: one quiet page of type on the gold. The second bookshelf and the tattoo band are gone; the four kinds of class are just named ---- */
.prInk, .vols { display: none !important; }
.prHead { width: calc(96 * var(--u)); }
.prKinds { margin: calc(1.4 * var(--u)) 0 0; display: flex; flex-wrap: wrap; gap: .5em 1.6em; font-family: "Fraunces", serif; font-weight: 600; font-size: calc(2.6 * var(--u)); color: #23180a; }
.prKinds span + span::before { content: "·"; margin-right: 1.6em; opacity: .5; }
.prShelf { width: auto; margin-left: calc(-76 * var(--u)); margin-top: calc(17 * var(--u)); }
@media (max-aspect-ratio: 4/5) { .prHead { width: calc(48 * var(--u)); } .prKinds { justify-content: center; font-size: calc(3.2 * var(--u)); gap: .3em 1em; } .prKinds span + span::before { margin-right: 1em; }
  .prShelf { margin-left: calc(-22 * var(--u)); margin-top: calc(2 * var(--u)); } }

#fetch { background: radial-gradient(ellipse var(--hw, 11%) var(--hh, 26%) at 50% 56%, #fff 62%, rgba(255,255,255,0) 100%), #fff url("assets/room.webp") center / cover; }
@media (max-aspect-ratio: 4/5) { #fetch { background: radial-gradient(ellipse calc(var(--hw, 11%) * 2.2) calc(var(--hh, 26%) * .8) at 50% 56%, #fff 62%, rgba(255,255,255,0) 100%), #fff url("assets/room-p.webp") center / cover; } }
/* the header reads over anything: the links sit in one smoked-glass capsule, whatever is behind them */
@media (min-aspect-ratio: 4/5) {
  .chrome nav { background: rgba(14,12,16,.62); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); padding: 6px 6px 6px 22px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
  .chrome nav, .chrome nav a, .chrome nav button { color: #f3ead2 !important; text-shadow: none !important; }
  .chrome nav .pill { border-color: rgba(243,234,210,.55) !important; }
}
.chrome .mark { padding: 6px 14px 7px; margin-left: -14px; border-radius: 999px; background: rgba(243,234,210,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #1e1a14 !important; text-shadow: none !important; }
.chrome .mark span { color: #1e1a14 !important; opacity: .65; }
@media (max-aspect-ratio: 4/5) { .chrome .menuBtn, .chrome .pill { background: rgba(14,12,16,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #f3ead2 !important; text-shadow: none !important; border-radius: 999px; } .chrome .menuBtn { padding: .7em 1.1em; } }

/* the hero sits on raw linen, the cloth a mat bag is made of */
.paper { background: radial-gradient(120% 90% at 30% 20%, rgba(255,250,236,.32), transparent 60%), #e9dfca url("assets/linen.webp") center / cover !important; }
.lede { background: rgba(243,234,210,.82); padding: .35em .6em .45em; box-shadow: 0 2px 10px rgba(60,40,10,.12); }

/* ---- the end card, recomposed: the overlook photograph is the last frame, the title sits in its sky, the ways out sit on glass along the floor ---- */
.byeEnd { top: 0; bottom: 0; transform: none; justify-content: space-between; padding: 13vh 6vw 6vh; gap: 0; }
.byeMark { font-size: clamp(44px, calc(11 * var(--u)), 168px); filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.byeBar { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 40px 18px; border-radius: 22px; background: rgba(12,11,16,.58); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.byeFoot { color: rgba(236,226,205,.7); font-size: 12px !important; }
@media (max-aspect-ratio: 4/5) { .byeEnd { padding: 14vh 5vw 11vh; } .byeBar { padding: 18px 26px 14px; width: 100%; } }
.over.real .door span { opacity: var(--lab, 1); }
.byeQuote { margin: 0 0 4px; font-family: "Cormorant", serif; font-style: italic; font-size: clamp(17px, 1.5vw, 24px); color: #f3ead2; max-width: 30em; }
.byeEnd { padding-bottom: 9vh; }
@media (max-aspect-ratio: 4/5) { .byeQuote { font-size: 16px; } .byeEnd { padding-bottom: 8vh; } }

/* Peter on the gold: a white studio printed onto the leaf (multiply), so only he and his shadow land on it */
.prFlow { position: absolute; left: auto; top: 0; right: 0; width: 64vw; height: 100vh; margin: 0; mix-blend-mode: multiply; opacity: 0; pointer-events: none; display: none; }
.flowOn .prFlow { display: block; }
@media (max-aspect-ratio: 4/5) { .prFlow { left: 0; right: 0; top: auto; bottom: 0; width: 100vw; height: 56vh; } }

/* the opening line, set as type rather than a label: large italic serif pressed into the linen, with a scroll cue that shows how the walk starts */
.lede { background: none !important; box-shadow: none !important; padding: 0 !important; font-family: "Cormorant", Georgia, serif; font-weight: 500; font-size: calc(3.3 * var(--u)); line-height: 1.02; letter-spacing: -.01em; color: #1e1a14;
  text-shadow: 0 1px 0 rgba(255,250,236,.55), 0 -1px 0 rgba(60,40,15,.18); }
.lede em { font-style: italic; font-weight: 400; color: #2D4A77; }
.cue { display: block; width: calc(1.9 * var(--u)); height: calc(3 * var(--u)); margin-top: calc(1.4 * var(--u)); border: 1.5px solid rgba(30,26,20,.7); border-radius: 999px; position: relative; }
.cue i { position: absolute; left: 50%; top: 18%; width: 3px; height: 22%; margin-left: -1.5px; border-radius: 2px; background: #1e1a14; animation: cue 1.6s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(130%); opacity: 1; } 100% { transform: translateY(130%); opacity: 0; } }
@media (max-aspect-ratio: 4/5) { .lede { font-size: calc(4.4 * var(--u)); } }
.prFlow { mix-blend-mode: normal; }
.prFlow { width: 58vw; height: 74vh; top: auto; bottom: 2vh; right: 1vw; filter: drop-shadow(0 10px 18px rgba(60,35,0,.25)); }
@media (max-aspect-ratio: 4/5) { .prFlow { width: 100vw; height: 40vh; right: 0; bottom: 4vh; } }
.lede { font-weight: 700; font-size: calc(3.9 * var(--u)); } .lede em { font-weight: 600; }
@media (max-aspect-ratio: 4/5) { .lede { font-size: calc(5 * var(--u)); } }

/* the two email addresses on the end card: yoga and build, as in the brief */
.byeMail { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .35em .7em; font-family: "Plex", monospace; font-size: 13px; letter-spacing: .06em; color: rgba(243,234,210,.75); pointer-events: auto; }
.byeMail span { width: 100%; text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.byeMail a { color: #f3ead2; text-decoration: underline; text-decoration-color: rgba(215,194,151,.6); text-underline-offset: 4px; padding: 8px 0; }
.byeMail a:hover { color: var(--gold); }
.byeMail i { font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: 1.2em; }
@media (max-aspect-ratio: 4/5) { .byeMail { flex-direction: column; align-items: center; gap: 0; } .byeMail i { margin: 0 0 6px; } }
.prFlow { bottom: 0 !important; filter: none !important; }
@media (max-aspect-ratio: 4/5) { .prFlow { bottom: 0 !important; height: 44vh; } }

/* council round four */
@media (max-aspect-ratio: 4/5) {
  .lede { background: rgba(243,234,210,.9) !important; padding: .35em .55em .45em !important; box-shadow: 0 2px 10px rgba(60,40,10,.15) !important; margin-top: calc(-34 * var(--u)); margin-left: calc(-2 * var(--u)); width: calc(30 * var(--u)); }

}
.prFlow { height: 90vh !important; width: 60vw !important; right: 0 !important; }
@media (max-aspect-ratio: 4/5) { .prFlow { width: 100vw !important; height: 50vh !important; } }
@media (min-aspect-ratio: 4/5) { .byeBar { align-self: flex-end; margin-right: 3vw; max-width: 46vw; } }   /* the glass sits to the right, so Huck stays in the last frame */
/* speed: no live blur behind the header (it re-blurred the moving scene on every frame); a denser solid capsule reads the same */
.chrome nav, .chrome .mark, .chrome .menuBtn, .chrome .pill { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@media (min-aspect-ratio: 4/5) { .chrome nav { background: rgba(18,15,20,.8); } }
.chrome .mark { background: rgba(243,234,210,.9); }
@media (max-aspect-ratio: 4/5) { .chrome .menuBtn, .chrome .pill { background: rgba(18,15,20,.78); } }
/* phone hero, re-set from Peter's iPhone: the opening line leaves the figure alone and sits in the open linen beside 'to' */
@media (max-aspect-ratio: 4/5) {
  .lede { background: none !important; box-shadow: none !important; padding: 0 !important; width: calc(36 * var(--u)) !important; margin-left: calc(-11 * var(--u)) !important; margin-top: calc(-29.5 * var(--u)) !important;
    text-align: left; font-size: calc(3.1 * var(--u)) !important; line-height: 1.08; }
  .lede br { display: none; } .lede em { display: block; }
  .cue { margin: calc(.8 * var(--u)) 0 0; width: calc(1.6 * var(--u)); height: calc(2.5 * var(--u)); }
}
/* phone workbench: the offers sit in the gap between the button and the niche, small, instead of over his chest */
@media (max-aspect-ratio: 4/5) {
  .niche { margin-top: calc(-6 * var(--u)) !important; }
  .ways { left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; width: calc(40 * var(--u)) !important; margin-left: calc(-20 * var(--u)) !important; margin-top: calc(-16.4 * var(--u)) !important; background: none !important; padding: 0 !important; }
  .ways li { padding: calc(.45 * var(--u)) 0 !important; justify-content: center; gap: calc(1.2 * var(--u)); border-color: rgba(215,194,151,.18) !important; }
  .ways .fl { width: calc(1.45 * var(--u)); height: calc(2.3 * var(--u)); font-size: calc(1.3 * var(--u)); }
  .ways .fl.sp { width: calc(.5 * var(--u)); }
}
/* overlook door tags: one line on desktop; on phones each is a two-line tag under its own door, clear of Peter's back */
.door span i, .door span em { font-style: normal; }
@media (max-aspect-ratio: 4/5) {
  .over.real .door span { white-space: normal !important; width: 30vw; text-align: center; line-height: 1.35; font-size: 10px !important; letter-spacing: .14em !important; padding: .6em .5em !important; bottom: auto !important; top: calc(100% + 1.2vh) !important; }
  .over.real .door span i { display: none; } .over.real .door span em { display: block; font-size: 9px; letter-spacing: .06em; text-transform: none; opacity: .85; }
  .over.real .door.warm span { left: calc(-47vw + .47 * max(100vw, calc(100vh * 9 / 16))) !important; right: auto !important; transform: none !important; }   /* 3vw from the screen edge, whatever the door's box does */
  .over.real .door.cool span { left: calc(17vw - .06 * max(100vw, calc(100vh * 9 / 16))) !important; right: auto !important; transform: none !important; }
}
