/* ─────────────────────────────────────────────
   KLANGWELT — found tape
   ───────────────────────────────────────────── */

/* CS Hustle Halfpixel — commercially licensed */
@font-face {
  font-family: "CS Hustle Halfpixel";
  src: url("assets/fonts/CSHustleHalfpixel.otf") format("opentype");
  font-display: swap;
}

:root {
  --void: #100e0c;
  --soot: #1a1714;
  --ash: #2a2622;
  --bone: #e9e1cc;
  --paper: #ddd3ba;
  --receipt: #f2eee4;
  --sepia: #8a7a5e;
  --sage: #9aa38f;
  --accent: #ab3328;  /* oxblood — dried blood, old wax seals, burnt film */
  --accent-deep: #6b1d17;
  --ink: #141210;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "Courier Prime", "Courier New", monospace;
  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-script: "Pinyon Script", cursive;
  --f-gothic: "UnifrakturMaguntia", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --stain: radial-gradient(ellipse at 20% 15%, rgba(138,110,60,.22), transparent 40%),
           radial-gradient(ellipse at 85% 80%, rgba(110,80,40,.18), transparent 45%),
           radial-gradient(circle at 70% 30%, rgba(160,130,80,.12), transparent 25%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 17px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;   /* wide glows and italics stay uncut but never cause sideways scroll */
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }

.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }
.gothic { font-family: var(--f-gothic); }
em { font-family: var(--f-display); font-style: italic; font-weight: 400; }

/* ── global texture layers ── */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 90;
  opacity: .09; mix-blend-mode: screen;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 89;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  animation: roll 9s linear infinite;
}
.scanlines::after { /* the tracking band that crawls down a worn tape */
  content: ""; position: absolute; left: 0; right: 0; height: 90px; top: -90px;
  background: linear-gradient(to bottom, transparent, rgba(233,225,204,.05) 45%, rgba(233,225,204,.09) 50%, transparent);
  animation: tracking 11s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes roll { to { background-position: 0 30px; } }
@keyframes tracking { 0%, 55% { top: -90px; } 100% { top: 110%; } }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  font: 700 18px/1 var(--f-mono); color: var(--accent);
  transform: translate(-50%, -50%); mix-blend-mode: difference;
  opacity: 0; transition: opacity .2s;
}
.cursor-trail {
  position: fixed; z-index: 94; pointer-events: none;
  font: 12px/1 var(--f-mono); color: var(--bone);
  animation: trail 900ms steps(6) forwards;
}
@keyframes trail { to { opacity: 0; transform: translateY(14px) rotate(20deg); } }

/* progressive edge blur — four stacked bands, each blurrier toward the edge */
.edge-blur {
  position: fixed; left: 0; right: 0; z-index: 45; pointer-events: none;
  height: 150px;
}
.edge-blur--top { top: 0; background: linear-gradient(to bottom, rgba(16,14,12,.55), transparent); }
.edge-blur--bottom { bottom: 0; height: 120px; background: linear-gradient(to top, rgba(16,14,12,.55), transparent); }
.edge-blur i { position: absolute; inset: 0; }
.edge-blur i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.edge-blur i:nth-child(2) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.edge-blur i:nth-child(3) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.edge-blur i:nth-child(4) { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.edge-blur--top i:nth-child(1) { --m: linear-gradient(to top, transparent 0%, #000 25%, #000 50%, transparent 75%); }
.edge-blur--top i:nth-child(2) { --m: linear-gradient(to top, transparent 25%, #000 50%, #000 75%, transparent 100%); }
.edge-blur--top i:nth-child(3) { --m: linear-gradient(to top, transparent 50%, #000 75%, #000 100%); }
.edge-blur--top i:nth-child(4) { --m: linear-gradient(to top, transparent 75%, #000 100%); }
.edge-blur--bottom i:nth-child(1) { --m: linear-gradient(to bottom, transparent 0%, #000 25%, #000 50%, transparent 75%); }
.edge-blur--bottom i:nth-child(2) { --m: linear-gradient(to bottom, transparent 25%, #000 50%, #000 75%, transparent 100%); }
.edge-blur--bottom i:nth-child(3) { --m: linear-gradient(to bottom, transparent 50%, #000 75%, #000 100%); }
.edge-blur--bottom i:nth-child(4) { --m: linear-gradient(to bottom, transparent 75%, #000 100%); }
.edge-blur i { -webkit-mask: var(--m); mask: var(--m); }
/* only blur an edge when there is content beyond it */
.edge-blur { transition: opacity .3s steps(3); }
.edge-blur--top { opacity: 0; }
html.is-scrolled .edge-blur--top { opacity: 1; }
html.at-end .edge-blur--bottom { opacity: 0; }

/* paper surfaces */
.paper {
  background-color: var(--paper);
  background-image: var(--stain), var(--paper-tex);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 18px 40px rgba(0,0,0,.55);
}
.paper-dark {
  background-color: var(--soot);
  background-image: var(--paper-tex);
  background-blend-mode: soft-light;
}

/* stop‑motion wobble */
.jitter { animation: jitter 1.2s steps(1) infinite; }
.jitter-slow { animation: jitter 2.4s steps(1) infinite; }
@keyframes jitter {
  0%   { transform: rotate(var(--r, -1.2deg)) translate(0, 0); }
  33%  { transform: rotate(calc(var(--r, -1.2deg) + .25deg)) translate(.5px, -.5px); }
  66%  { transform: rotate(calc(var(--r, -1.2deg) - .2deg)) translate(-.5px, .5px); }
}
.boil { filter: url(#boil); }

/* ── header ── */
.tape-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  font: 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--bone);
  background: rgba(16,14,12,.72);
  -webkit-backdrop-filter: blur(10px) saturate(.8);
          backdrop-filter: blur(10px) saturate(.8);
  border-bottom: 1px solid rgba(233,225,204,.08);
}
.tape-bar__mark { font-family: var(--f-sans); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-decoration: none; }
.tape-bar__sub { color: var(--accent); font: italic 400 1.2em/1 var(--f-display); letter-spacing: 0; text-transform: none; margin-left: 2px; }
.tape-bar__mark { white-space: nowrap; }
.tape-bar__rec { display: inline-flex; align-items: center; gap: 8px; opacity: .8; }
.tape-bar__rec i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(1) infinite; }
.tape-bar nav { margin-left: auto; }
.tape-bar ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.tape-bar nav a { text-decoration: none; position: relative; }
.tape-bar nav a::before { content: "["; opacity: 0; margin-right: 2px; }
.tape-bar nav a::after { content: "]"; opacity: 0; margin-left: 2px; }
.tape-bar nav a:hover::before, .tape-bar nav a:hover::after { opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1.4s steps(1) infinite; color: var(--accent); }

/* ── ascii canvases ── */
.ascii { position: relative; overflow: hidden; }
.ascii canvas { display: block; width: 100%; height: 100%; }

/* ── hero ── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 44px;
  padding: 120px var(--gutter) 90px;
  isolation: isolate;
}
.ascii--hero { position: absolute; inset: 0; z-index: -2; opacity: .2; }
.ascii--hero-rust { opacity: .3; }
.hero::before { /* hard vignette */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(10,9,8,.94) 100%);
}
.hero::after { /* splice flash — one bleached frame every few seconds */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--bone); opacity: 0; mix-blend-mode: overlay;
  animation: splice 6s steps(1) infinite;
}
@keyframes splice { 0%, 90.5%, 92% { opacity: 0; } 91% { opacity: .35; } }

/* framing */
.hero__frame { position: absolute; inset: 72px var(--gutter) 22px; z-index: -1; pointer-events: none; }
.reg { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(233,225,204,.45); }
.reg--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.reg--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.reg--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.reg--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hair { position: absolute; background: rgba(233,225,204,.09); }
.hair--h { left: 0; right: 0; top: 46%; height: 1px; }
.hair--v { top: 0; bottom: 0; left: 50%; width: 1px; }
.hero__numeral {
  position: absolute; right: -6vw; bottom: -14vw;
  font: 400 52vw/.8 var(--f-display); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(171,51,40,.5);
}

.hero__entry {
  position: absolute; bottom: 52px; left: calc(var(--gutter) + 26px); z-index: 2;
  width: 240px; margin: 0;
  font-size: 10.5px; line-height: 1.55; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(233,225,204,.55); text-align: justify;
}
.hero__entry b { display: block; color: var(--accent); font-weight: 700; margin-bottom: 6px; letter-spacing: .14em; }

/* the label — photocopied, cut, stapled */
.hero__label {
  --r: -3deg;
  position: relative;
  width: min(680px, 100%);
  padding: 20px 28px 16px 42px;
  transform: rotate(var(--r));
  filter: contrast(1.12) brightness(.96);
  box-shadow: inset 0 0 50px rgba(70,38,16,.45), inset 0 0 6px rgba(20,18,16,.6), 0 34px 70px rgba(0,0,0,.75);
  clip-path: polygon(0 0, 61% 0, 63% 2.5%, 100% 0, 100% 74%, 93% 100%, 0 100%);
  animation: jolt 6s steps(1) infinite;
}
@keyframes jolt {
  0%, 90.5%, 93% { transform: rotate(var(--r)); }
  91%   { transform: rotate(calc(var(--r) + .8deg)) translate(6px, -3px); }
  92%   { transform: rotate(calc(var(--r) - .4deg)) translate(-4px, 2px); }
}
.hero__label::before { /* toner speckle of a bad photocopy */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .55;
  background:
    radial-gradient(circle at 12% 70%, rgba(20,18,16,.35) 0 1px, transparent 1.5px) 0 0 / 23px 31px,
    radial-gradient(circle at 60% 20%, rgba(20,18,16,.3) 0 .8px, transparent 1.2px) 0 0 / 37px 19px,
    linear-gradient(90deg, rgba(20,18,16,.18), transparent 8%, transparent 92%, rgba(20,18,16,.22));
}
.hero__label::after { /* staple */
  content: ""; position: absolute; top: 14px; left: 52%; width: 34px; height: 3px;
  background: linear-gradient(#b9b4aa, #5d5953); box-shadow: 0 1px 1px rgba(0,0,0,.5);
  transform: rotate(4deg);
}
.hero__redact { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--accent); }
.hero__label-top, .hero__label-bottom {
  display: flex; justify-content: space-between; gap: 8px;
  font: 11px/1 var(--f-mono); letter-spacing: .12em; color: rgba(20,18,16,.75);
  border-bottom: 1px solid rgba(20,18,16,.45); padding-bottom: 10px;
}
.hero__label-bottom { border-bottom: 0; border-top: 1px solid rgba(20,18,16,.45); padding: 10px 0 0; align-items: center; }
.star {
  display: inline-block; width: 40px; aspect-ratio: 200 / 310;
  background: currentColor;
  -webkit-mask: url("assets/star.svg") center / contain no-repeat;
          mask: url("assets/star.svg") center / contain no-repeat;
  animation: twinkle 3.2s steps(1) infinite;
}
.star--sm { width: 13px; }
@keyframes twinkle {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(.94) rotate(.6deg); opacity: .85; }
  70%  { transform: scale(1.04) rotate(-.4deg); opacity: 1; }
}
.hero__found { margin: 14px 0 0; font: 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.hero h1 { margin: 4px 0 16px; font-weight: 400; }
.hero__name {
  position: relative; display: block;
  font-family: "CS Hustle Halfpixel", var(--f-gothic);
  font-size: clamp(72px, 16vw, 186px); line-height: .9;
  color: var(--ink);
  filter: url(#boil);
}
/* VHS slice: two copies of the word tear sideways for a few frames */
.hero__name::before, .hero__name::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0;
}
.hero__name::before { color: var(--accent); animation: slice-a 6s steps(1) infinite; }
.hero__name::after  { color: var(--ink); animation: slice-b 6s steps(1) infinite; }
@keyframes slice-a {
  0%, 90.5%, 93.5% { opacity: 0; }
  91%   { opacity: 1; clip-path: inset(14% 0 60% 0); transform: translateX(-14px); }
  92%   { opacity: 1; clip-path: inset(58% 0 22% 0); transform: translateX(9px); }
  93%   { opacity: 1; clip-path: inset(80% 0 4% 0); transform: translateX(-5px); }
}
@keyframes slice-b {
  0%, 91%, 93% { opacity: 0; }
  91.5% { opacity: 1; clip-path: inset(36% 0 40% 0); transform: translateX(18px); }
  92.5% { opacity: 1; clip-path: inset(4% 0 78% 0); transform: translateX(-10px); }
}
.hero__role {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  font: 600 clamp(11px, 1.3vw, 14px)/1 var(--f-sans); letter-spacing: .26em; text-transform: uppercase;
}
.hero__role i { font-style: normal; color: var(--accent); font-weight: 400; font-size: 1.6em; transform: skewX(-10deg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero__lede {
  max-width: 40ch; margin: 0; text-align: center;
  font: 400 clamp(15px, 1.5vw, 18px)/1.55 var(--f-mono);
  color: rgba(233,225,204,.88); min-height: 4.6em;
  text-shadow: 0 0 10px var(--void), 0 0 4px var(--void), 0 0 2px var(--void);
}
.typewriter::after { content: "█"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 3px; }
.hero__scroll {
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .32em; text-decoration: none; color: var(--bone);
}
.hero__scroll-line { width: 1px; height: 56px; background: linear-gradient(transparent, var(--bone)); transform-origin: top; animation: drip 2.4s steps(8) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 70%, 100% { transform: scaleY(1); } }
.hero__scroll:hover { color: var(--accent); }
.hero__corner { position: absolute; font-size: 11px; letter-spacing: .14em; opacity: .55; z-index: 2; }
.hero__corner--tl { top: 92px; left: calc(var(--gutter) + 26px); width: 58px; opacity: .9; }
.hero__corner--br { bottom: 36px; right: calc(var(--gutter) + 26px); }

/* ── contents / receipt ── */
.contents {
  position: relative;
  display: flex; justify-content: flex-end; align-items: flex-start; gap: 28px;
  /* receipt + slip sit right of centre, the drawings own the left; on wide screens it all stays in a 1240px stage */
  padding: 80px max(var(--gutter), calc(50% - 600px)) 120px;
}
.receipt {
  --r: 1.5deg;
  width: min(340px, 100%);
  background: var(--receipt);
  background-image: var(--paper-tex), linear-gradient(to bottom, transparent 92%, rgba(171,51,40,.35) 92% 93%, transparent 93%);
  color: var(--ink);
  font: 13px/1.6 var(--f-mono);
  padding: 30px 24px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  /* torn top & bottom */
  clip-path: polygon(0 1%, 4% 0, 9% 1.2%, 14% .2%, 20% 1%, 27% 0, 33% 1.1%, 40% .3%, 47% 1%, 53% 0, 60% 1.2%, 66% .2%, 73% 1%, 80% 0, 86% 1.1%, 92% .2%, 100% 1%,
                     100% 99%, 95% 100%, 89% 98.9%, 83% 99.8%, 77% 99%, 70% 100%, 64% 98.9%, 57% 99.8%, 50% 99%, 43% 100%, 37% 98.9%, 30% 99.8%, 23% 99%, 16% 100%, 10% 98.9%, 4% 99.8%, 0 99%);
}
.receipt__head { text-align: center; margin: 0 0 12px; }
.receipt__lines { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px dashed rgba(20,18,16,.5); padding-bottom: 12px; }
.receipt__lines a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 2px 4px; margin: 0 -4px; }
.receipt__lines a:hover { background: var(--ink); color: var(--receipt); }
.receipt__total { display: flex; justify-content: space-between; margin: 0; font-weight: 700; font-size: 15px; }
.barcode {
  height: 56px; margin: 20px 0 8px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 11px, var(--ink) 11px 12px, transparent 12px 15px);
}
.receipt__foot { text-align: center; font-size: 11px; margin: 0; }
.contents { overflow: hidden; isolation: isolate; }
.contents > :not(.contents__tex) { position: relative; z-index: 1; }
.contents__tex {
  /* pen drawing on a till receipt, inverted so the ink reads as pale lines on the dark page */
  position: absolute; top: -4%; bottom: -4%; left: max(-4%, calc(50% - 660px)); right: max(-4%, calc(50% - 660px)); z-index: 0;
  pointer-events: none; opacity: .2;
  filter: invert(1) grayscale(1) contrast(1.35);
  mix-blend-mode: screen;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  --r: 0deg; animation: jitter 1.8s steps(1) infinite, tex-flicker 5s steps(1) infinite;
}
@keyframes tex-flicker { 0%, 100% { opacity: .2; } 47% { opacity: .15; } 48% { opacity: .25; } 49% { opacity: .2; } }
.contents__tex i { position: absolute; inset: 0; background: 6% 50% / auto 84% no-repeat; opacity: 0; }
.contents__tex i.is-on { opacity: 1; }
/* the splice: two frames of overexposed, sideways-slipped film between drawings */
.contents__tex.is-splice { filter: invert(1) grayscale(1) contrast(1.35) brightness(2.2); animation: none; opacity: .3; }
.contents__tex.is-splice i.is-on { transform: translate(-14px, 6px) skewX(-3deg); }
.contents__aside { font-size: 40px; color: var(--accent); transform: rotate(-8deg); margin-top: 60px; filter: url(#boil); }

/* ── section titles ── */
.section-title {
  margin: 0 0 56px;
  font: 400 clamp(48px, 8vw, 112px)/.9 var(--f-display);
  letter-spacing: -.02em;
}
.section-title .mono {
  display: block; margin-bottom: 14px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sepia);
}
.section-title em { color: var(--accent); }
.section-title--ink { color: var(--ink); }
.section-title--ink .mono { color: rgba(20,18,16,.55); }

/* ── work reels ── */
.work { padding: 60px var(--gutter) 80px; }
.reel {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: center;
  padding: 60px 0 120px;
  border-top: 1px solid rgba(233,225,204,.15);
}
.reel__num {
  position: absolute; top: 20px; right: 0;
  font: 400 clamp(90px, 16vw, 220px)/1 var(--f-display);
  color: transparent; -webkit-text-stroke: 1px rgba(233,225,204,.35);
  pointer-events: none;
}
.reel__frame { margin: 0; position: relative; }
.reel__frame .ascii { aspect-ratio: 4 / 3; }
.reel__frame figcaption {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 11px; letter-spacing: .1em; color: var(--bone);
  background: var(--void); padding: 3px 6px;
}
.reel--velarium .reel__frame--main { grid-column: 1 / span 7; grid-row: 1; border: 1px solid rgba(233,225,204,.2); }
.reel__plate {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px);
  padding: clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px) 52px;
}
.plate__screen {
  position: relative; aspect-ratio: 349 / 760; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(233,225,204,.18);
  background: var(--void);
}
.plate__screen:nth-child(2) { transform: translateY(18px); }
.plate__screen img, .plate__screen .ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate__screen img { object-fit: cover; opacity: 0; transition: opacity .45s steps(5); filter: grayscale(.35) contrast(1.05); }
.plate__screen .ascii { aspect-ratio: auto; transition: opacity .45s steps(5); }
.plate__screen:hover img, .plate__screen.is-developed img { opacity: 1; }
.plate__screen:hover .ascii, .plate__screen.is-developed .ascii { opacity: 0; }
.plate__screen[data-develop] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plate__screen.is-developed { border-color: var(--accent); }
.touch-only { display: none; }
@media (hover: none) {
  .touch-only { display: inline; color: var(--accent); }
  /* a quiet nudge on touch: the screens breathe until one is developed */
  .reel__plate:not(:has(.is-developed)) .plate__screen { animation: nudge 3.6s steps(1) infinite; }
  .reel__plate .plate__screen:nth-child(2) { animation-delay: .4s; }
  .reel__plate .plate__screen:nth-child(3) { animation-delay: .8s; }
}
@keyframes nudge { 0%, 88%, 100% { border-color: rgba(233,225,204,.18); } 90%, 94% { border-color: var(--accent); } }
.reel--velarium .reel__frame--b {
  --r: 4deg;
  grid-column: 7 / span 2; grid-row: 1; align-self: end;
  padding: 10px 10px 8px; margin: 0 0 -70px -30px; z-index: 2;
  animation: jitter 1.2s steps(1) infinite;
}
.reel--velarium .reel__frame--b img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.reel--velarium .reel__frame--b figcaption {
  position: static; background: none; padding: 6px 0 0; color: var(--ink);
  font-size: 20px; letter-spacing: 0; text-align: center; line-height: 1.1;
}
.reel__note { font-size: 15px; color: rgba(233,225,204,.7); border-left: 2px solid var(--accent); padding-left: 14px; }
.reel--velarium .reel__text { grid-column: 9 / span 4; grid-row: 1; }

.reel__kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sepia); margin: 0 0 14px; }
.reel h3 { margin: 0 0 18px; font: 400 clamp(44px, 6vw, 84px)/.95 var(--f-display); }
.reel__script { display: block; font-size: 1.25em; line-height: .9; margin-bottom: -.1em; color: var(--bone); }
.reel p { max-width: 42ch; }
.reel__meta { margin: 24px 0; font-size: 13px; border-top: 1px dashed rgba(233,225,204,.3); }
.reel__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed rgba(233,225,204,.3); }
.reel__meta dt { color: var(--sepia); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.reel__meta dd { margin: 0; text-align: right; }
.reel__margin {
  position: absolute; left: 4%; bottom: 30px;
  font-size: 30px; color: var(--accent); transform: rotate(-4deg);
}

.reel--loomi .reel__text { grid-column: 1 / span 5; grid-row: 1; }
.reel--loomi .reel__plate { grid-column: 6 / span 7; grid-row: 1; border: 1px solid rgba(201,208,189,.25); }
.reel--loomi .plate__screen.is-developed, .reel--loomi .plate__screen:hover { border-color: var(--sage); }
.reel__soon { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-top: 8px; }
.reel--loomi .reel__script { color: var(--sage); }
.reel--loomi .reel__num { right: auto; left: 22%; }

.btn {
  display: inline-flex; gap: 10px; align-items: center;
  font: 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid currentColor;
  transition: gap .25s, color .25s;
}
.btn:hover { gap: 18px; color: var(--accent); }
.btn--ink { color: var(--ink); }

/* ── creative direction: two columns of film-strip frames ── */
.direction { padding: 60px var(--gutter) 140px; border-top: 1px solid rgba(233,225,204,.12); }
.direction__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.dcard--offset { margin-top: 160px; }
/* an odd last card takes the whole row: frame in the left column, notes beside it */
.dcard--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.dcard--wide .dcard__body { padding-top: 0; }
.dcard__frame {
  position: relative; margin: 0;
  padding: 26px 14px 44px; background: #0b0a09;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.dcard__frame::before, .dcard__frame::after { /* sprocket holes */
  content: ""; position: absolute; left: 10px; right: 10px; height: 10px;
  background: repeating-linear-gradient(90deg, rgba(233,225,204,.16) 0 9px, transparent 9px 22px);
}
.dcard__frame::before { top: 8px; }
.dcard__frame::after { bottom: 26px; }
.dcard__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--void); }
.dcard__screen img, .dcard__screen .ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.dcard__screen img { object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s steps(5); }
.dcard__screen .ascii { transition: opacity .45s steps(5); }
.dcard__screen:hover img, .dcard__screen.is-developed img { opacity: 1; }
.dcard__screen:hover .ascii, .dcard__screen.is-developed .ascii { opacity: 0; }
.dcard__screen[data-develop] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dcard__frame figcaption {
  position: absolute; left: 14px; bottom: 6px; z-index: 1;
  font-size: 10.5px; letter-spacing: .12em; color: rgba(233,225,204,.6);
}
.dcard__body { position: relative; padding: 34px 6px 0; }
.dcard__num {
  position: absolute; right: 0; top: 4px;
  font: 400 clamp(70px, 9vw, 130px)/1 var(--f-display);
  color: transparent; -webkit-text-stroke: 1px rgba(233,225,204,.3); pointer-events: none;
}
.dcard h3 { margin: 0 0 16px; max-width: 12ch; font: 400 clamp(38px, 4.4vw, 64px)/1 var(--f-display); letter-spacing: -.01em; }
.dcard p { max-width: 46ch; color: rgba(233,225,204,.86); }
.dcard i[lang] { font-family: var(--f-display); font-size: 1.12em; color: var(--bone); }

/* ── the archive strip ── */
.astrip { position: relative; isolation: isolate; overflow: hidden; padding: 110px var(--gutter) 90px; border-top: 1px solid rgba(233,225,204,.12); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.astrip__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .15;
  -webkit-mask: radial-gradient(ellipse 75% 70% at 50% 45%, #000 40%, transparent 100%);
          mask: radial-gradient(ellipse 75% 70% at 50% 45%, #000 40%, transparent 100%);
}
.astrip__eyebrow { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.astrip h2 { margin: 0 0 22px; font: 400 clamp(40px, 5vw, 72px)/.98 var(--f-display); letter-spacing: -.02em; }
.astrip h2 .script { color: var(--accent); font-size: 1.08em; }
.astrip__intro p:not(.astrip__eyebrow) { max-width: 46ch; color: rgba(233,225,204,.82); }
.astrip__index { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(233,225,204,.16); }
.astrip__index li { border-bottom: 1px solid rgba(233,225,204,.16); }
.astrip__index a {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 20px; align-items: center;
  padding: 22px 0; text-decoration: none;
}
.astrip__letter { grid-row: span 2; font: 400 64px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--accent); }
.astrip__name { font: 400 clamp(26px, 2.6vw, 38px)/1.05 var(--f-display); }
.astrip__name i { font-style: normal; font-size: 12px; letter-spacing: .1em; color: var(--sepia); vertical-align: super; margin-left: 4px; }
.astrip__line { grid-column: 2; font-size: 14.5px; color: rgba(233,225,204,.65); }
.astrip__thumbs { grid-column: 3; grid-row: 1 / span 2; display: flex; }
.astrip__thumbs img {
  width: 64px; height: 64px; object-fit: cover; margin-left: -14px; border: 3px solid var(--void);
  filter: grayscale(1) contrast(1.15) brightness(.85); transition: filter .4s steps(4), transform .4s steps(4);
}
.astrip__thumbs img:nth-child(odd) { transform: rotate(-3deg); }
.astrip__thumbs img:nth-child(even) { transform: rotate(4deg) translateY(4px); }
.astrip__index a:hover .astrip__name { color: var(--accent); }
.astrip__index a:hover .astrip__thumbs img { filter: none; }
.astrip .credits { grid-column: 1 / -1; margin-top: 24px; }

/* credits roll (shared with the archive page) */
.credits {
  display: flex; overflow: hidden; margin: 56px calc(var(--gutter) * -1) 0;
  border-top: 1px solid rgba(233,225,204,.14); border-bottom: 1px solid rgba(233,225,204,.14);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.credits__roll {
  flex: none; display: flex; list-style: none; margin: 0; padding: 14px 0;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  animation: roll-credits 70s linear infinite;
}
.credits__roll li { padding: 0 22px; color: rgba(233,225,204,.7); }
.credits__roll li::after { content: "✦"; margin-left: 44px; color: var(--accent); }
@keyframes roll-credits { to { transform: translateX(-100%); } }

/* ── klangwelt: the name + side B ── */
.klang {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: start;
  padding: 130px var(--gutter) 120px; border-top: 1px solid rgba(233,225,204,.12);
}
.klang__bg { position: absolute; inset: 0; z-index: -1; opacity: .6; pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.klang::after { /* keep the copy legible over the moving ascii */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,14,12,.7) 0%, rgba(16,14,12,.35) 40%, transparent 60%);
}
.klang__text { grid-column: 1; grid-row: 1; }
.klang__eyebrow { margin: 0 0 18px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.klang__word {
  margin: 0; font: 400 clamp(76px, 12vw, 190px)/.85 "CS Hustle Halfpixel", var(--f-gothic);
  filter: url(#boil);
}
.klang__word span { color: var(--accent); }
.klang__dict { margin: 26px 0 0; display: grid; gap: 6px; font-size: 14px; }
.klang__dict div { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 6px 0; border-bottom: 1px dotted rgba(233,225,204,.25); }
.klang__dict dt { color: var(--bone); font-weight: 700; }
.klang__dict dd { margin: 0; color: rgba(233,225,204,.75); }
.klang__dict i { color: var(--sepia); margin-right: 8px; }
.klang__def { margin: 26px 0 14px; font: italic 400 clamp(28px, 3vw, 40px)/1.1 var(--f-display); }
.klang__text > p:last-child { max-width: 50ch; color: rgba(233,225,204,.85); }
.klang__text em { color: var(--accent); }

/* the window: the footage seen through a lancet arch, framed in stipple */
.chapel {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center;
  position: relative; margin: 0; width: min(350px, 100%); padding: 34px 0 0;
}
.chapel__window {
  position: relative; aspect-ratio: 100 / 170; overflow: hidden; background: #0b0a09;
  -webkit-mask: url("assets/arch.svg") center / 100% 100% no-repeat;
          mask: url("assets/arch.svg") center / 100% 100% no-repeat;
}
.chapel__window video {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover;
  filter: grayscale(1) sepia(.5) contrast(1.4) brightness(1.15);
  animation: gate-weave 3.2s steps(1) infinite, projector 0.18s steps(1) infinite;
}
@keyframes gate-weave { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(1px, -1px); } 60% { transform: translate(-1px, 1px); } 85% { transform: translate(0, 1px); } }
@keyframes projector { 0% { opacity: 1; } 50% { opacity: .94; } }
.chapel__window::after { /* glass: dust, a soft burn at the edges, light falling from the apex */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 8%, rgba(233,225,204,.12), transparent 70%),
    radial-gradient(ellipse at center, transparent 45%, rgba(10,9,8,.75) 100%),
    var(--paper-tex);
  mix-blend-mode: screen; opacity: .9;
}
.chapel__arch { position: relative; }
.chapel__frame {
  position: absolute; left: -12%; top: -7.06%; width: 124%; height: 114.12%;
  overflow: visible; pointer-events: none; fill: none;
  stroke: var(--bone); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0 3.2; vector-effect: non-scaling-stroke;
}
.chapel__outer { stroke: var(--accent); stroke-dasharray: 0 5.5; stroke-width: 1.7; }
.chapel__sill { stroke-dasharray: 0 2.4; }
/* wall sconces either side of the window; --f is the flame's flicker, set by klang.js */
.sconce { --f: .8; position: absolute; top: 34%; width: 19%; pointer-events: none; }
.sconce--l { right: calc(100% + 6%); }
.sconce--r { left: calc(100% + 6%); }
.sconce img {
  display: block; width: 100%; height: auto; position: relative;
  filter: sepia(.25) saturate(.7) contrast(1.08) brightness(calc(.62 + var(--f) * .3)) drop-shadow(0 10px 14px rgba(0,0,0,.6));
}
.sconce::before { /* the warm light the candle throws on the wall */
  content: ""; position: absolute; left: 50%; top: 18%; width: 480%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,196,128, calc(.07 + var(--f) * .1)) 0%, rgba(255,170,100, calc(.03 + var(--f) * .04)) 30%, transparent 62%);
  mix-blend-mode: screen;
}
.sconce__flame {
  position: absolute; left: 50%; top: 18.4%; z-index: 1;
  width: 15%; aspect-ratio: 1 / 2.2; transform: translate(-50%, -100%) scaleY(calc(.88 + var(--f) * .2)) skewX(calc((var(--f) - .8) * 18deg));
  transform-origin: 50% 100%;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse 40% 55% at 50% 72%, #fffaf0 0%, #ffe0a6 35%, rgba(255,170,90,.85) 62%, rgba(255,120,60,0) 100%);
  filter: blur(.4px); mix-blend-mode: screen;
  box-shadow: 0 0 calc(10px + var(--f) * 14px) rgba(255,190,120,.55);
}
.chapel__window video { filter: grayscale(1) sepia(.5) contrast(1.4) brightness(calc(1.08 + var(--glow, .8) * .1)); }
.chapel__star { position: absolute; top: -18px; left: 50%; width: 30px; transform: translateX(-50%); color: var(--bone); }
.chapel__plaque {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 10px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(233,225,204,.65);
}
.chapel__plaque span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; }

/* side B: a tape, a play button, and the chunky bars */
.bside { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; align-items: end; }
.bside__play {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; gap: 14px; align-items: center;
  padding: 12px 18px 12px 14px; border: 1px solid rgba(233,225,204,.25);
}
.bside__play:hover, .bside__play:focus-visible, .bside__play[aria-pressed="true"] { border-color: var(--accent); background: rgba(171,51,40,.1); }
.bside__play:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.bside__tape { width: 42px; height: 28px; fill: none; stroke: var(--bone); stroke-width: 1.6; }
.bside__tape circle { animation: spool 1.6s linear infinite; animation-play-state: paused; transform-box: fill-box; transform-origin: center; stroke-dasharray: 4 3; }
html.is-listening .bside__tape circle { animation-play-state: running; }
@keyframes spool { to { transform: rotate(360deg); } }
.bside__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.cassette__icon { width: 0; height: 0; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
[aria-pressed="true"] .cassette__icon { width: 11px; height: 13px; border: 0; border-left: 4px solid var(--accent); border-right: 4px solid var(--accent); }
.bside__note { grid-column: 1 / -1; margin: 0; max-width: 52ch; font-size: 11.5px; line-height: 1.6; letter-spacing: .06em; color: rgba(233,225,204,.6); }

.meter { --lvl: 0; display: flex; gap: 4px; align-items: flex-end; height: 44px; }
.meter i { flex: 1; max-width: 10px; height: min(100%, calc(4px + var(--lvl) * 180% * var(--h, 1))); background: var(--accent); opacity: .85; }
.meter i:nth-child(3n) { --h: .7; } .meter i:nth-child(4n) { --h: 1.25; } .meter i:nth-child(5n) { --h: .55; } .meter i:nth-child(7n) { --h: 1.4; }
.meter i:nth-child(n+9) { background: var(--bone); opacity: .5; }

.bside-mini {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: none; gap: 12px; align-items: center; padding: 8px 14px 8px 10px;
  background: rgba(16,14,12,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(233,225,204,.18); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
.bside-mini:not([hidden]).is-away { display: flex; }
.bside-mini button { all: unset; cursor: pointer; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(233,225,204,.25); }
.meter--chunky { height: 64px; gap: 5px; }
.meter--chunky i { max-width: 14px; -webkit-mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); }
.meter--mini { height: 16px; gap: 2px; }
.meter--mini i { width: 3px; }

/* today's mark */
.contents__side { display: grid; gap: 30px; justify-items: start; margin-top: 60px; }
.contents__side .contents__aside { margin-top: 0; }
.mark-slip {
  --r: -3deg; margin: 0; width: 210px; padding: 12px 14px 12px; position: relative;
  background-color: var(--receipt); animation: jitter 2.4s steps(1) infinite;
}
.mark-slip__head { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 10px; letter-spacing: .14em; color: rgba(20,18,16,.7); border-bottom: 1px dashed rgba(20,18,16,.35); padding-bottom: 6px; }
.mark-slip canvas { display: block; width: 100%; aspect-ratio: 1; }
.mark-slip figcaption { font-size: 10px; letter-spacing: .06em; color: rgba(20,18,16,.65); text-align: center; }
.mark-slip__save {
  all: unset; cursor: pointer; display: block; margin: 8px auto 0; padding: 4px 10px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
}
.mark-slip__save:hover, .mark-slip__save:focus-visible { background: var(--accent); color: var(--receipt); }

/* stamp pad */
.stamps { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 40; pointer-events: none; }
.stamp {
  position: absolute; mix-blend-mode: screen; transform: rotate(var(--rot)) scale(1);
  animation: stamp-down .18s steps(2) both, stamp-dry 62s linear both;
}
@keyframes stamp-down { from { transform: rotate(var(--rot)) scale(1.35); opacity: 0; } }
@keyframes stamp-dry { 0%, 10% { opacity: .95; filter: none; } 100% { opacity: 0; filter: blur(1.5px); } }
.cursor[data-hint]::after {
  content: attr(data-hint); position: absolute; left: 18px; top: 14px; white-space: nowrap;
  font: 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); mix-blend-mode: normal;
}

/* ── practice ── */
.practice { padding: 100px var(--gutter); background: var(--soot); background-image: var(--paper-tex); background-blend-mode: soft-light; }
.practice__list { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 64px; }
.practice__list li {
  break-inside: avoid;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px;
  padding: 22px 0; border-top: 1px solid rgba(233,225,204,.15);
}
.practice__list .mono { grid-row: span 2; color: var(--accent); padding-top: 6px; }
.practice__list strong { font: 400 30px/1.1 var(--f-display); }
.practice__list li > span:last-child { color: rgba(233,225,204,.72); font-size: 15px; }

/* ── archive stubs ── */
.archive { padding: 110px var(--gutter); }
.stubs { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; }
.stub {
  --r: -2deg;
  position: relative; margin: 0;
  width: min(360px, 100%);
  padding: 26px 30px 22px 48px;
  background: var(--paper); background-image: var(--stain), var(--paper-tex); color: var(--ink);
  /* perforated stub edge */
  -webkit-mask: radial-gradient(circle 6px at 0 12px, transparent 6px, #000 6.5px) 0 0 / 100% 24px repeat-y;
          mask: radial-gradient(circle 6px at 0 12px, transparent 6px, #000 6.5px) 0 0 / 100% 24px repeat-y;
  box-shadow: 0 16px 30px rgba(0,0,0,.5);
}
.stub::before { content: ""; position: absolute; left: 30px; top: 12px; bottom: 12px; border-left: 1px dashed rgba(20,18,16,.4); }
.stub--b { --r: 2.5deg; background-color: #cdd2c2; margin-top: 50px; }
.stub--c { --r: -.5deg; background-color: var(--receipt); }
.stub blockquote { margin: 0 0 16px; font: italic 400 24px/1.2 var(--f-display); }
.stub figcaption { font: 13px/1.4 var(--f-sans); }
.stub figcaption .mono { display: block; font-size: 10px; letter-spacing: .2em; color: rgba(20,18,16,.55); margin-bottom: 4px; }

/* ── liner notes ── */
.notes { position: relative; padding: 100px var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.notes__sheet { --r: -1deg; grid-column: 1 / span 7; padding: clamp(28px, 4vw, 56px); animation: jitter 2.4s steps(1) infinite; }
.notes__sheet p { max-width: 52ch; }
.notes__timeline { list-style: none; padding: 0; margin: 0 0 28px; font-size: 14px; }
.notes__timeline li { padding: 8px 0; border-bottom: 1px dotted rgba(20,18,16,.35); }
.notes__timeline b { display: inline-block; min-width: 70px; }
.notes__sign { font-size: 40px; margin: 0 0 8px; }
.ascii--notes { grid-column: 8 / span 5; aspect-ratio: 3 / 4; opacity: .8; }

/* ── contact ── */
.contact { padding: 140px var(--gutter) 120px; text-align: center; border-top: 1px solid rgba(233,225,204,.15); }
.contact__kicker { font-size: 12px; letter-spacing: .16em; color: var(--sepia); }
.contact__title { margin: 20px 0 40px; font: 400 clamp(46px, 8vw, 120px)/.95 var(--f-display); letter-spacing: -.02em; }
.contact__title em { color: var(--accent); }
.contact__title .script { font-size: 1.1em; }
.contact__mail {
  display: inline-block; font: 400 clamp(22px, 3.4vw, 40px)/1.2 var(--f-mono);
  text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px;
  word-break: break-all;
}
.contact__mail:hover { color: var(--accent); }
.contact__status { margin-top: 28px; font-size: 13px; opacity: .8; }

/* ── footer ── */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px var(--gutter) 34px; font-size: 12px;
  border-top: 1px solid rgba(233,225,204,.12); color: rgba(233,225,204,.6);
}
.footer p { margin: 0; }
.footer .heart { color: var(--accent); }
.footer__social { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); }
.footer__art { font: italic 13px var(--f-display); opacity: .45; }
.footer__art:hover { opacity: 1; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .hero__entry { display: none; }
}
@media (max-width: 900px) {
  .tape-bar__rec { display: none; }
  .direction__grid { grid-template-columns: 1fr; gap: 80px; }
  .dcard--offset { margin-top: 0; }
  .dcard--wide { display: block; }
  .dcard--wide .dcard__body { padding-top: 34px; }
  .astrip { grid-template-columns: 1fr; padding-top: 80px; }
  .astrip__thumbs img { width: 48px; height: 48px; }
  .astrip__index a { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 4px 14px; }
  .astrip__letter { font-size: 40px; }
  .tape-bar ul { gap: 14px; }
  .reel { grid-template-columns: 1fr; gap: 28px; padding-bottom: 80px; }
  .reel > * { grid-column: 1 !important; grid-row: auto !important; }
  .reel--velarium .reel__frame--b { width: 38%; justify-self: end; margin: -24px 4% 0 0; }
  .reel--loomi .reel__num { left: auto; right: 0; }
  .reel__margin { position: static; }
  .notes { grid-template-columns: 1fr; }
  .notes__sheet, .ascii--notes { grid-column: 1; }
  .ascii--notes { aspect-ratio: 16 / 9; }
  .contents { flex-direction: column; align-items: center; }
  .contents { justify-content: flex-start; padding-right: var(--gutter); }
  .contents__tex i { background-position: 50% 30%; }
  .contents__side { margin-top: 10px; justify-items: center; }
  .klang { grid-template-columns: 1fr; padding-top: 100px; }
  .klang::after { background: linear-gradient(rgba(16,14,12,.8), rgba(16,14,12,.5)); }
  .chapel { grid-column: 1; grid-row: auto; width: min(300px, 78%); }
  .sconce { width: 15%; }
  .sconce--l { right: calc(100% + 4%); }
  .sconce--r { left: calc(100% + 4%); }
  .bside { grid-row: auto; }

  .hero__numeral { font-size: 80vw; bottom: -20vw; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .chapel__plaque { flex-direction: column; gap: 4px; }
  .bside-mini span.mono { display: none; }
  .tape-bar { gap: 12px; }
  .tape-bar ul { gap: 12px; font-size: 11px; }
  .tape-bar li:nth-child(2) { display: none; }
  .tape-bar__mark { font-size: 11px; letter-spacing: .1em; }
  .tape-bar__sub { letter-spacing: 0; }
  .hero__label { padding: 16px 16px 14px 30px; }
  .hero__redact { width: 8px; }
  .hero__role { letter-spacing: .16em; gap: 8px; }
  .hero__corner--tl { width: 40px; left: calc(var(--gutter) + 16px); }
  .hero__label-top span:last-child { display: none; }
  .reel h3 { font-size: 44px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero__name, .contents__aside { filter: none; }
}
/* Popcat's footage is vertical: frame the bags, not the table edge */
.dcard__screen--popcat img { object-position: 50% 40%; }
