/* Advait Bhandarkar. Palette comes from his own titles: black, blood red, bone. */
:root {
  --ink: #0a0908;
  --ink-2: #16130f;
  --bone: #f2eadb;
  --bone-2: #b9b1a2;
  --paper: #efe7d6;
  --red: #e3122d;
  --g: clamp(16px, 2vw, 32px);
  --hud: 38px;
  --b: calc(var(--hud) + 18px);
  --display: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --hand: "Covered By Your Grace", "Segoe Print", cursive;
  --expo: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 16px/1.45 var(--display); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
kbd { font: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hand { font-family: var(--hand); color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--g); top: -80px; z-index: 200; background: var(--red); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── overlays ─────────────────────────────────────────── */
#lid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
#grain { position: fixed; inset: -100px; z-index: 80; pointer-events: none; opacity: .075; background-size: 180px 180px; animation: grain .9s steps(7) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 14% { transform: translate(-47px, 22px); } 28% { transform: translate(31px, -58px); }
  42% { transform: translate(-71px, -18px); } 57% { transform: translate(64px, 41px); } 71% { transform: translate(-19px, 76px); }
  85% { transform: translate(52px, -33px); } 100% { transform: translate(0, 0); }
}

#leader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; }
.leader__win { width: min(30vw, 62vw * .9, 460px); min-width: 180px; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.leader__win img { width: 100%; height: 100%; object-fit: cover; }
.leader__win img:not([src]) { visibility: hidden; }
.leader__line { position: absolute; left: 50%; top: calc(50% + min(15vw, 130px)); transform: translateX(-50%); font: italic 400 clamp(20px, 2.2vw, 34px)/1.1 var(--serif); white-space: nowrap; }
.leader__tc { position: absolute; left: var(--g); bottom: var(--g); color: var(--red); font-size: 13px; }
.leader__skip { position: absolute; right: var(--g); bottom: var(--g); color: var(--bone-2); }
.is-loaded #leader { display: none; }

#cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; will-change: transform; }
#cursor span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); min-width: 10px; height: 10px; border-radius: 99px; background: var(--red); color: var(--ink); font: 500 12px/1 var(--mono); white-space: nowrap; display: grid; place-items: center; overflow: hidden; transition: height .35s var(--expo), min-width .35s var(--expo), padding .35s var(--expo); }
#cursor.has-label span { height: 34px; min-width: 64px; padding: 0 14px; }
#cursor.is-hidden span { height: 0; min-width: 0; }
.has-cursor #cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ── header ───────────────────────────────────────────── */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--g); color: var(--bone); transition: color .12s linear; pointer-events: none; }
.top > * { pointer-events: auto; }
.top[data-tone="dark"] { text-shadow: 0 0 14px rgba(0, 0, 0, .55); }
.top[data-tone="light"], .top[data-tone="red"] { color: var(--ink); }
.top__logo { font: 800 16px/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .02em; text-decoration: none; }
.top__logo i { color: var(--red); font-style: normal; }
.top[data-tone="red"] .top__logo i { color: var(--bone); }
.top__nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.top__link { font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; position: relative; }
.top__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--expo); }
.top__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── pills ────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px; background: var(--bone); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .3s, color .3s, transform .3s var(--expo); }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill--red { background: var(--red); }
.pill--red:hover { background: var(--bone); }

/* ── splices: the page is one strip of film, these are its joins ─── */
.splice { position: relative; z-index: 2; height: 44px; background: #0a0908; color: #cbb98f; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--g); font: 500 10px/1 var(--mono); letter-spacing: .12em; }
.splice::before, .splice::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background-image: linear-gradient(90deg, #2d2822 0 12px, transparent 12px); background-size: 24px 9px; }
.splice::before { top: 4px; }
.splice::after { bottom: 4px; }

/* ── 00 open ──────────────────────────────────────────── */
.open { position: relative; height: 100svh; background: #000; overflow: hidden; isolation: isolate; }
.open__film { position: absolute; inset: 0; }
.open__film video, .open__film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.open__film canvas { display: none; }
.has-gl .open__film canvas { display: block; }
.has-gl .open__film video { visibility: hidden; }
.open__dim { position: absolute; inset: 0; background: #000; opacity: 0; }
.open__mask, .open__outline { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: calc(var(--hud) + 44px); }
.open__mask { background: #000; color: #fff; mix-blend-mode: multiply; }
.open__outline { color: transparent; -webkit-text-stroke: 1px rgba(242, 234, 219, .42); pointer-events: none; }
.word { font-family: var(--display); font-weight: 900; line-height: .74; display: flex; flex-direction: column; align-items: center; white-space: nowrap; user-select: none; }
.word__row { display: flex; transform-origin: 50% 50%; }
.word__row + .word__row { margin-top: .22em; }
.word .l { display: inline-block; font-variation-settings: "wdth" 80, "wght" 900; }

.open__meta { position: absolute; left: var(--g); right: var(--g); bottom: var(--b); display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: end; font-size: 14px; line-height: 1.25; z-index: 3; }
.open__meta > :nth-child(1) { grid-column: 1 / span 3; }
.open__meta > :nth-child(2) { grid-column: 4 / span 4; }
.open__hint { grid-column: 8 / span 2; display: flex; align-items: center; gap: 10px; color: var(--bone); }
.open__hint-tick { width: 1px; height: 22px; background: var(--red); animation: tick 1.6s var(--expo) infinite; transform-origin: top; }
@keyframes tick { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.open__play { position: absolute; right: var(--g); bottom: var(--b); z-index: 4; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.open__play .mono { color: var(--bone-2); }
.open__play-disc { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--expo); }
.open__play-disc svg { width: 16px; height: 16px; }
.open__play:hover .open__play-disc { transform: scale(1.14); }

.open__line { position: absolute; left: var(--g); top: 50%; transform: translateY(-50%); z-index: 3; font: 400 clamp(52px, 11.2vw, 190px)/.96 var(--serif); letter-spacing: -.025em; color: var(--bone); visibility: hidden; }
.open__line > span { display: block; }
.open__line > span > span { display: block; overflow: clip; overflow-clip-margin: .12em; padding-bottom: .1em; margin-bottom: -.1em; }
.open__line > span > span > span { display: block; }

/* ── 01 rough cut ─────────────────────────────────────── */
.rough { position: relative; height: 100svh; background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; padding: 64px var(--g) var(--b); }
.rough__head { display: flex; gap: clamp(16px, 4vw, 56px); font-size: 13px; }
.rough__state { color: var(--red); font-weight: 500; }
.rough__count b { font-weight: 500; }
.rough__tc { margin-left: auto; }
.rough__text { flex: 1; display: flex; flex-wrap: wrap; align-content: center; font: 400 clamp(34px, 6.1vw, 108px)/1.1 var(--serif); letter-spacing: -.02em; }
.rw { position: relative; display: block; flex: none; margin-right: .24em; }
.rw--x { overflow: clip; overflow-clip-margin: .2em; white-space: nowrap; }
.rw__mark { position: absolute; left: -.04em; right: -.04em; top: 22%; height: 62%; width: calc(100% + .08em); overflow: visible; pointer-events: none; filter: url(#wax); }
.rw__mark path { fill: none; stroke: var(--red); stroke-width: .075em; }
.rw--ring { white-space: nowrap; }
.rw--ring em { font-style: italic; }
.rw__ring { position: absolute; left: -7%; top: -13%; width: 114%; height: 130%; overflow: visible; pointer-events: none; filter: url(#wax); }
.rw__ring path { fill: none; stroke: var(--red); stroke-width: 2; }
.rough__foot { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rough__track { display: flex; height: 22px; width: 100%; }
.rough__track i { display: block; height: 100%; background: var(--ink); margin-right: 2px; flex: 0 0 auto; }
.rough__track i.is-x { background: var(--red); }
.rough__after { position: absolute; right: var(--g); top: 90px; font: italic 400 clamp(16px, 1.6vw, 24px)/1.2 var(--serif); opacity: 0; max-width: 16em; text-align: right; }

/* ── 02 devil ─────────────────────────────────────────── */
.devil { position: relative; height: 100svh; background: #000; overflow: hidden; }
.devil__screen, .devil__still { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--b) - 58px); object-fit: cover; }
.devil__still { z-index: 0; }
.devil__screen { z-index: 1; opacity: 0; }
.devil__screen[data-ready] { opacity: 1; }
.devil__meta { position: absolute; left: var(--g); right: var(--g); top: 58px; display: flex; justify-content: space-between; z-index: 2; color: var(--bone); line-height: 1.35; }
.devil__tc { color: var(--red); font-size: 14px; }
.devil__hint { position: absolute; right: var(--g); bottom: calc(var(--b) + 76px); z-index: 2; font: 400 clamp(20px, 2.4vw, 34px)/1.1 var(--serif); text-align: right; }
.devil__end { position: absolute; left: 50%; bottom: calc(var(--b) + 74px); transform: translateX(-50%); z-index: 3; opacity: 0; visibility: hidden; white-space: nowrap; }
.devil__wave { position: absolute; left: var(--g); right: var(--g); bottom: calc(var(--hud) + 10px); height: 46px; z-index: 2; }
.wave { width: 100%; height: 100%; }
.wave rect { fill: currentColor; }
.devil__wave .wave { color: rgba(242, 234, 219, .46); }
.devil__head { position: absolute; left: 0; top: -6px; bottom: -6px; width: 2px; background: var(--red); }

/* ── 03 ramp ──────────────────────────────────────────── */
.ramp { position: relative; height: 100svh; background: var(--red); color: var(--ink); overflow: hidden; }
.ramp__word { position: absolute; left: var(--g); right: var(--g); font: 900 var(--ramp-size, 22vw)/.78 var(--display); margin: 0; white-space: nowrap; }
.ramp__word span { display: inline-block; font-variation-settings: "wdth" 62, "wght" 900; }
.ramp__word--a { top: 60px; text-align: left; }
.ramp__word--b { bottom: calc(var(--b) + 14px); text-align: right; }
.ramp__stage { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin-top: -26px; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 28px); z-index: 2; pointer-events: none; }
.ramp__clip { position: relative; display: block; height: min(64svh, 112vw); aspect-ratio: 9/16; background: #000; pointer-events: auto; transition: transform .6s var(--expo); }
.ramp__clip:hover { transform: translateY(-4px); }
.ramp__clip video { width: 100%; height: 100%; object-fit: cover; }
.ramp__cap { position: absolute; left: 10px; bottom: 10px; color: var(--bone); text-shadow: 0 0 6px #000; }
.ramp__read { width: clamp(84px, 16vw, 240px); text-align: center; font: 900 clamp(40px, 7vw, 110px)/1 var(--display); font-variation-settings: "wdth" 62, "wght" 900; font-variant-numeric: tabular-nums; color: var(--ink); display: flex; justify-content: center; align-items: baseline; }
.ramp__read i { font-style: normal; font-size: .45em; }
.ramp__note { position: absolute; left: var(--g); bottom: var(--b); z-index: 3; width: min(21vw, 300px); font: 400 clamp(15px, 1.3vw, 19px)/1.25 var(--serif); }
.ramp__graph { position: absolute; left: 0; right: 0; bottom: var(--hud); width: 100%; height: 34%; z-index: 1; pointer-events: none; }

/* ── 04 grade ─────────────────────────────────────────── */
.grade { position: relative; height: 100svh; background: #000; overflow: hidden; touch-action: pan-y; }
.grade__screen, .grade__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grade__screen { z-index: 1; opacity: 0; }
.grade__screen[data-ready] { opacity: 1; }
.grade__title { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.grade__t { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--b) + 5svh); }
.grade__t span { display: block; white-space: nowrap; font: italic 400 clamp(48px, 11.4vw, 200px)/1 var(--serif); letter-spacing: -.03em; color: var(--bone); text-shadow: 0 0 34px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .25); }
.grade__t--before span { font: 500 clamp(36px, 8.6vw, 150px)/1 var(--mono); letter-spacing: -.07em; font-style: normal; }
.grade__handle { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 3; pointer-events: none; will-change: transform; }
.grade__handle i { position: absolute; top: 44%; left: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--bone); }
.grade__handle i::before, .grade__handle i::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.grade__handle i::before { left: 9px; transform: rotate(45deg); }
.grade__handle i::after { right: 9px; transform: rotate(-135deg); }
.grade__tag { position: absolute; top: 76px; color: var(--bone); white-space: nowrap; text-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.grade__tag--l { right: 12px; }
.grade__tag--r { left: 12px; }
.grade__hint { position: absolute; left: var(--g); bottom: var(--b); z-index: 3; color: var(--bone); text-shadow: 0 0 8px rgba(0, 0, 0, .7); }
.grade__play { position: absolute; right: var(--g); bottom: var(--b); z-index: 4; }

/* ── 05 bin ───────────────────────────────────────────── */
.bin { --fh: min(48svh, 560px); position: relative; height: 100svh; overflow: hidden; color: var(--ink); background: radial-gradient(90% 90% at 50% 45%, #fbf6ea 0, var(--paper) 60%, #dfd5c0 100%); }
.bin__track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; width: max-content; padding: 0 12vw 0 var(--g); will-change: transform; }
.bin__intro { width: clamp(300px, 38vw, 620px); flex: none; padding-right: 4vw; }
.bin__intro h2 { font: 400 clamp(84px, 15.5vw, 260px)/.86 var(--serif); letter-spacing: -.04em; }
.bin__intro p { margin-top: 26px; font: 400 clamp(17px, 1.6vw, 22px)/1.3 var(--serif); max-width: 22em; }

.strip { display: flex; flex: none; position: relative; }
.cell { position: relative; flex: none; display: grid; grid-template-rows: auto auto auto auto auto; }
.cell__note { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.05; height: 44px; display: flex; align-items: flex-end; padding: 0 0 8px 2px; transform: rotate(-1.4deg); transform-origin: left bottom; white-space: nowrap; }
.cell__film { position: relative; background: #0c0a08; padding: 34px 0; }
.cell__film::before, .cell__film::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background-image: linear-gradient(90deg, var(--perf, #efe7d6) 0 11px, transparent 11px); background-size: 24px 14px; background-position: 6px 0; }
.cell__film::before { top: 10px; }
.cell__film::after { bottom: 10px; }
.cell + .cell .cell__film { border-left: 3px solid #0c0a08; }
.frame { display: block; position: relative; height: var(--fh); overflow: hidden; background: #000; margin: 0 4px; }
.cell--w .frame { width: min(calc(var(--fh) * 16 / 9), 84vw); }
.cell--v .frame { width: calc(var(--fh) * 9 / 16); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--expo); }
.frame:hover img { transform: scale(1.025); }
.frame__sheet { position: absolute; inset: 0; background-size: 600% 600%; background-repeat: no-repeat; opacity: 0; }
.frame.is-skim .frame__sheet { opacity: 1; }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--red); opacity: 0; pointer-events: none; }
.frame__tc { position: absolute; top: 8px; left: 0; background: var(--red); color: var(--ink); font: 500 11px/1 var(--mono); padding: 4px 6px; opacity: 0; pointer-events: none; font-variant-numeric: tabular-nums; }
.frame.is-skim .frame__head, .frame.is-skim .frame__tc { opacity: 1; }
.cell__wave { height: 30px; margin: 8px 4px 0; color: var(--red); }
.cell h3 { font: 400 clamp(22px, 2.2vw, 32px)/1.05 var(--serif); letter-spacing: -.015em; margin: 10px 0 0 4px; white-space: nowrap; }
.cell__sub { margin: 4px 0 0 4px; color: #5d564a; }

.prints { position: relative; display: flex; align-items: center; gap: 4vw; margin-left: 9vw; flex: none; }
.prints__note { position: absolute; left: 0; top: -14px; font-size: clamp(22px, 2vw, 30px); transform: translateY(-100%) rotate(-3deg); }
.print { display: block; position: relative; height: min(62svh, 620px); aspect-ratio: 1539/2100; box-shadow: 0 2px 2px rgba(50, 35, 15, .18), 0 26px 50px -18px rgba(50, 35, 15, .5); transition: transform .9s var(--expo), box-shadow .9s var(--expo); }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print::before { content: ""; position: absolute; left: 50%; top: -11px; width: 92px; height: 24px; margin-left: -46px; background: rgba(233, 222, 190, .75); box-shadow: 0 1px 1px rgba(60, 40, 10, .15); z-index: 1; transform: rotate(-2deg); }
.print--a { transform: rotate(-2.4deg); }
.print--b { transform: rotate(1.8deg) translateY(10px); }
.print:hover { transform: rotate(0) scale(1.03); box-shadow: 0 4px 4px rgba(50, 35, 15, .18), 0 46px 70px -22px rgba(50, 35, 15, .6); }
.print__cap { position: absolute; left: 0; bottom: -22px; color: #5d564a; white-space: nowrap; }

/* ── 06 credits ───────────────────────────────────────── */
.credits { position: relative; height: 100svh; background: #000; overflow: hidden; }
.credits__eye { position: absolute; inset: 0; will-change: clip-path; }
.credits__eye img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; filter: brightness(.62) saturate(1.06); }
.credits::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(#000 20%, transparent); z-index: 2; pointer-events: none; }
.credits__roll { position: absolute; left: 0; right: 0; top: 0; padding: 0 var(--g); text-align: center; will-change: transform; }
.credits__roll h2 { font: italic 400 clamp(64px, 12vw, 200px)/1 var(--serif); letter-spacing: -.03em; }
.credits__lede { margin: 26px auto 18svh; max-width: 25em; font: 400 clamp(20px, 2.3vw, 36px)/1.22 var(--serif); }
.credits__roll h3 { margin: 12svh 0 30px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.roll > div { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 32px); padding: 9px 0; align-items: baseline; }
.roll dt { text-align: right; font: 400 clamp(12px, 1vw, 14px)/1.25 var(--mono); color: var(--bone); opacity: .82; }
.roll dd { text-align: left; font: 400 clamp(20px, 2.15vw, 34px)/1.12 var(--serif); }
.roll + .roll { margin-top: 12svh; }

/* ── 07 cut to ────────────────────────────────────────── */
.cut { position: relative; height: 100svh; background: var(--red); color: var(--ink); overflow: hidden; }
.cut__in { position: absolute; inset: 0; padding: 62px var(--g) var(--b); display: flex; flex-direction: column; }
.cut__to { font-size: 14px; font-weight: 500; }
.cut__word { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .04em; font: 900 var(--cut-size, 28vw)/.8 var(--display); }
.cut__word span { display: block; width: max-content; white-space: nowrap; font-variation-settings: "wdth" 62, "wght" 900; }
.cut__word span + span { align-self: flex-end; }
.cut__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cut__mail a { font: italic 400 clamp(26px, 4.6vw, 76px)/1.05 var(--serif); letter-spacing: -.02em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .7s var(--expo); word-break: break-word; }
.cut__mail a:hover { background-size: 0 2px; background-position: 100% 100%; }
.cut__mail p { margin-top: 12px; font-size: 15px; max-width: 30em; }
.cut__links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; }
.cut__links a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .3s; }
.cut__links a:hover { opacity: .55; }
.cut__lid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; visibility: hidden; }
.cut__end { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--bone); opacity: 0; visibility: hidden; text-align: center; padding: 0 var(--g); }
.cut__blink { font: italic 400 clamp(52px, 8vw, 130px)/1 var(--serif); }
.cut__endlinks { display: flex; gap: 22px; margin-top: 10px; }
.cut__endlinks a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ── the timeline ─────────────────────────────────────── */
.tl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; height: var(--hud); display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: #0d0b09; color: var(--bone); border-top: 1px solid #2a2520; transition: height .55s var(--expo); padding-bottom: env(safe-area-inset-bottom); }
.tl.is-open { height: 104px; }
.tl__left, .tl__right { display: flex; align-items: center; gap: 12px; padding: 0 14px; white-space: nowrap; }
.tl__tc { color: var(--red); font-size: 13px; }
.tl__shuttle { color: var(--bone); min-width: 0; font-size: 12px; }
.tl__track { position: relative; min-width: 0; cursor: ew-resize; touch-action: none; }
.has-cursor .tl__track { cursor: none; }
.tl__clips { display: flex; height: 100%; }
.tl__clips li { position: relative; height: 100%; flex: var(--w, 1) 1 0; min-width: 0; border-left: 1px solid #000; }
.tl__clips a { position: absolute; inset: 7px 0; display: block; overflow: hidden; background: #1f1b16; color: var(--bone); text-decoration: none; transition: inset .55s var(--expo), background .3s; }
.tl.is-open .tl__clips a { inset: 10px 0 34px; }
.tl__clips a::before { content: ""; position: absolute; inset: 0; background-image: var(--thumb); background-size: auto 100%; background-repeat: repeat-x; opacity: 0; transition: opacity .4s; }
.tl.is-open .tl__clips a::before { opacity: .86; }
.tl__clips li[data-tint="light"] a { background: var(--paper); color: var(--ink); }
.tl__clips li[data-tint="red"] a { background: var(--red); color: var(--ink); }
.tl__clips li.is-on a { box-shadow: inset 0 -2px 0 var(--red); }
.tl__clips li[data-tint="red"].is-on a { box-shadow: inset 0 -2px 0 var(--ink); }
.tl__label { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--mono); white-space: nowrap; opacity: 0; transition: opacity .3s; text-shadow: 0 0 3px rgba(0, 0, 0, .75); }
li[data-tint] .tl__label { text-shadow: none; }
.tl.is-open .tl__label { opacity: 1; }
.tl__clips .tl__a1 { position: absolute; left: 0; right: 0; bottom: 8px; height: 20px; opacity: 0; color: #6d645a; transition: opacity .4s; pointer-events: none; }
.tl.is-open .tl__a1 { opacity: 1; }
.tl__head { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); will-change: transform; pointer-events: none; }
.tl__head::before { content: ""; position: absolute; left: -4px; top: 0; border: 5px solid transparent; border-top-color: var(--red); }
.tl__right { color: var(--bone-2); }
.tl__keys kbd { display: inline-block; min-width: 18px; padding: 2px 3px; text-align: center; border: 1px solid #3d362e; margin-right: 2px; color: var(--bone); }
.tl__sound { font: inherit; color: var(--bone); }
.tl__sound span { color: var(--bone-2); }
.tl__sound[aria-pressed="true"] span { color: var(--red); }

/* ── player ───────────────────────────────────────────── */
.player { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--bone); overflow: hidden; }
.player::backdrop { background: #000; }
.player__stage { position: absolute; inset: 0 0 72px; }
.player__stage video, .player__stage img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.player__stage img[hidden], .player__stage video[hidden] { display: none; }
.player__top { position: absolute; left: var(--g); right: var(--g); top: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; transition: opacity .3s; }
.player__title { font: italic 400 clamp(20px, 2vw, 30px)/1 var(--serif); text-shadow: 0 0 10px rgba(0, 0, 0, .7); }
.player__close kbd { color: var(--bone-2); margin-left: 6px; }
.player__close:hover { color: var(--red); }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; padding: 0 var(--g); display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 16px; align-items: center; background: #0d0b09; border-top: 1px solid #2a2520; }
.player__tc { color: var(--red); font-size: 13px; }
.player__scrub { position: relative; height: 44px; cursor: ew-resize; touch-action: none; }
.player__wave { height: 100%; color: #6d645a; }
.player__head { position: absolute; left: 0; top: -4px; bottom: -4px; width: 2px; background: var(--red); }
.player__toggle, .player__mute { min-width: 56px; text-align: left; }
.player__toggle:hover, .player__mute:hover { color: var(--red); }
.player__lid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.player.is-image .player__bar { display: none; }
.player.is-image .player__stage { inset: 56px var(--g) var(--g); }
.player, .player * { cursor: auto !important; }
.player button { cursor: pointer !important; }
.player .player__scrub { cursor: ew-resize !important; }

/* ── phones ───────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --hud: 34px; }
  .top { padding: 12px var(--g); }
  .top__link .mono { display: none; }
  .tl__keys { display: none; }
  .tl__left, .tl__right { padding: 0 8px; }
  .tl__sound span { display: inline; }
  .tl__sound { font-size: 0; }
  .tl__sound span { font-size: 11px; }
  .tl__sound::before { content: "♪ "; font-size: 12px; }
  .tl.is-open { height: var(--hud); }
  .tl.is-open .tl__clips a { inset: 7px 0; }
  .tl.is-open .tl__clips a::before, .tl.is-open .tl__label, .tl.is-open .tl__a1 { opacity: 0; }

  .open__mask, .open__outline { padding-bottom: calc(var(--hud) + 110px); }
  .open__meta { display: block; bottom: calc(var(--b) + 54px); right: var(--g); }
  .open__meta > :nth-child(2) { margin-top: 4px; color: var(--bone-2); }
  .open__hint { display: none; }
  .open__play { left: var(--g); right: auto; bottom: var(--b); }
  .open__play-disc { width: 40px; height: 40px; }
  .open__line { font-size: clamp(56px, 19vw, 110px); }

  .rough { padding-top: 56px; }
  .rough__text { font-size: clamp(33px, 9.4vw, 60px); line-height: 1.14; }
  .rough__after { position: static; text-align: left; order: -1; font-size: 18px; }

  .devil__screen, .devil__still { top: 20svh; height: 44svh; }
  .devil__hint { bottom: calc(var(--b) + 48px); font-size: 18px; }
  .devil__wave { height: 34px; }
  .devil__end { bottom: calc(var(--b) + 48px); }

  .ramp__stage { gap: 8px; margin-top: -30px; }
  .ramp__clip { height: min(56svh, 72vw); }
  .ramp__read { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; width: auto; font-size: 44px; }
  .ramp__note { position: absolute; width: auto; right: var(--g); bottom: 60px; display: none; }

  .grade__screen, .grade__still { top: 16svh; height: 38svh; }
  .grade__handle { top: 16svh; bottom: auto; height: 38svh; }
  .grade__tag { top: 10px; }
  .grade__t { align-items: flex-start; padding: calc(54svh + 26px) 0 0; }
  .grade__t span { font-size: 15.4vw; }
  .grade__t--before span { font-size: 12vw; }
  .grade__play { bottom: calc(var(--b) + 28px); left: var(--g); right: auto; }
  .grade__hint { right: var(--g); line-height: 1.3; }

  .bin { --fh: 42svh; }
  .bin__intro { width: 76vw; }
  .bin__intro h2 { font-size: 26vw; }
  .cell--w .frame { width: 84vw; }
  .prints { margin-left: 16vw; gap: 8vw; }
  .print { height: 58svh; }

  .roll > div { grid-template-columns: 1fr; gap: 3px; text-align: center; padding: 12px 0; }
  .roll dt, .roll dd { text-align: center; }
  .credits__lede { font-size: 22px; }

  .cut__row { flex-direction: column; align-items: flex-start; }
  .cut__mail a { font-size: 6.6vw; }

  .player__bar { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; height: 92px; padding-top: 8px; padding-bottom: 8px; gap: 4px 12px; }
  .player__stage { inset: 0 0 92px; }
  .player__scrub { grid-column: 1 / -1; grid-row: 1; height: 34px; }
  .player__dur { display: none; }
  .player__tc { text-align: center; }
}

/* ── reduced motion: everything rests, nothing is hidden ──────── */
.rm #grain, .rm #leader, .rm #lid, .rm .open__hint-tick { display: none; }
.rm .open__line { display: none; }
.rm .open__mask { background: #000; }
.rm .devil__hint { display: none; }
.rm .devil__end { opacity: 1; visibility: visible; }
.rm .devil__screen { display: none; }
.rm .bin { height: auto; padding: 80px 0 60px; }
.rm .bin__track { position: relative; width: auto; overflow-x: auto; padding-bottom: 40px; }
.rm .credits { height: auto; padding: 80px 0; }
.rm .credits__eye { position: absolute; opacity: .5; }
.rm .credits__roll { position: relative; }
.rm .cut__end { position: relative; opacity: 1; visibility: visible; background: #000; padding: 40px var(--g); inset: auto; }
.rm .cut { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
.rm .cut__in { position: relative; flex: 1; min-height: 88svh; }
.rm .rough__after { opacity: 1; }
.no-js #leader, .no-js #lid { display: none; }
.no-js .open__line { display: none; }
.no-js .bin { height: auto; padding: 60px 0; }
.no-js .bin__track { position: relative; width: auto; overflow-x: auto; }
.no-js .credits { height: auto; }
.no-js .credits__roll { position: relative; }
.no-js .cut__end { display: none; }
.no-js .devil__end { opacity: 1; visibility: visible; }
