/* ═══════════════════════════════════════════════════════════════════
   Yadunandana Reddy M — Tetsuya / Spinicle
   One person, three names.

   TOKENS
   colour    ink #14110f · paper #e9e4d9 · newsprint #d8d2c4 · bone #efe9dd
             crimson #a11226 · signal #e02b1d · racing-yellow #f0c31b
             racing-green #4d7a4f · char #12100e
   type      display   Anton (condensed, tracking -0.02em, leading .82)
             system    Space Mono (labels, readouts, 10–14px, tracking .18em caps)
             editorial Playfair Display (body + italic voice)
             signature Pinyon Script (the Tetsuya hand — sparingly)
   scale     10 · 12 · 14 · 18 · 22 · 30 · 44 · 68 · clamp(52,13vw,208)
   space     4 · 8 · 14 · 22 · 36 · 58 · 94 · 152
   texture   grain fractalNoise .9 / multiply · halftone dots · scanline 3px
             aberration text-shadow ±2px signal/cyan · torn clip-path polygon
             overprint mix-blend multiply · redaction solid ink bar
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* colour */
  --ink: #14110f;
  --ink-soft: #4a443d;
  --paper: #e9e4d9;
  --newsprint: #d8d2c4;
  --bone: #efe9dd;
  --char: #12100e;
  --crimson: #a11226;
  --signal: #e02b1d;
  --yellow: #f0c31b;
  --green: #4d7a4f;
  --cyan: rgba(30, 150, 170, 1);

  /* dark-panel greys (case files) */
  --panel: #171412;
  --panel-edge: #46403a;
  --panel-line: #34302b;
  --panel-gap: #2a2622;
  --dim: #8a8377;
  --dot-idle: #6b635a;

  /* type */
  --font-display: Anton, "Arial Narrow", sans-serif;
  --font-mono: "Space Mono", monospace;
  --font-editorial: "Playfair Display", serif;
  --font-script: "Pinyon Script", cursive;

  /* motion + rhythm */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(14px, 3vw, 36px);
  --nav-h: 46px;

  /* runtime knobs — see CONFIG in main.js */
  --grain-opacity: 0.5;
  --art-filter: none;
}

/* ── base ───────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono), monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; }

a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection { background: var(--yellow); color: var(--ink); }

.page {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

/* colour utilities — used sparingly for one-off accents in copy */
.is-yellow { color: var(--yellow); }
.is-crimson { color: var(--crimson); }
.is-green { color: var(--green); }
.is-dim { opacity: 0.5; }

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}
.wrap--wide { max-width: 1560px; }

/* ── texture overlays ───────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.62'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 79;
  pointer-events: none;
  opacity: 0.09;
  background: repeating-linear-gradient(to bottom, rgba(20, 17, 15, 0.5) 0 1px, transparent 1px 4px);
}

/* ── nav ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(233, 228, 217, 0.86);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav__mark { font-weight: 700; }
.nav__rule {
  display: inline-block;
  width: 26px;
  height: 8px;
  background: var(--crimson);
}
.nav__muted { opacity: 0.55; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
}
.nav__links a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav__links a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* ── hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(86px, 11vh, 130px) var(--gutter) 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__field {
  position: absolute;
  top: 0;
  right: -4vw;
  width: min(46vw, 620px);
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(var(--ink) 0.9px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.hero__top {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  /* Stretch, so the scan bay can run down to meet the bottom of the text
     column and the two resolve together. Once the columns stack each one is
     alone on its flex line, so this costs nothing there. */
  align-items: stretch;
  gap: clamp(18px, 4vw, 64px);
}

.hero__lede {
  position: relative;
  z-index: 5;
  flex: 1 1 560px;
  min-width: min(100%, 320px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vh, 34px);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.tag {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 9px;
}
.meta-row__muted { opacity: 0.6; }
.meta-row__rule {
  display: inline-block;
  width: 64px;
  height: 9px;
  background: var(--yellow);
}

/* the name, overprinted */
.nameblock { position: relative; }

.nameblock__ghost,
.nameblock__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 13vw, 208px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nameblock__ghost {
  position: absolute;
  left: -2px;
  top: 8px;
  z-index: 0;
  color: var(--crimson);
  mix-blend-mode: multiply;
  opacity: 0.42;
  transform: translate(6px, 4px) rotate(-0.5deg);
  pointer-events: none;
  user-select: none;
}
.nameblock__ghost span { display: inline-block; }

.nameblock__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
  text-shadow: 2px 0 rgba(224, 43, 29, 0.28), -2px 0 rgba(30, 150, 170, 0.22);
}

.hl { position: relative; display: inline-block; }
.hl__bar {
  position: absolute;
  left: -0.04em;
  right: -0.16em;
  top: 0.2em;
  bottom: 0.16em;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-0.6deg);
}

/* role swap */
.role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: clamp(22px, 4vh, 46px);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.role__label { color: var(--ink-soft); }
.role__swap {
  display: inline-grid;
  width: 16em;
  color: var(--crimson);
  font-weight: 700;
}
.role__swap > span { grid-area: 1 / 1; }
.role__a { animation: roleA 13s ease-in-out infinite; }
.role__b { animation: roleB 13s ease-in-out infinite; }

/* the three names, as an ID card */
.idcard {
  margin-top: clamp(26px, 5vh, 58px);
  display: grid;
  gap: 0;
  max-width: 640px;
  border-top: 1px solid var(--ink);
}
.idcard__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.25);
}
.idcard__key {
  flex: 0 0 112px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.idcard__val--name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.1vw, 25px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.idcard__val--script {
  font-family: var(--font-script);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  color: var(--crimson);
}
.idcard__val--code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 24px);
  letter-spacing: 0.06em;
  color: var(--green);
}
.idcard__note {
  margin: 18px 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 46ch;
  text-wrap: pretty;
}

/* scan bay — rotating plates */
.scanbay {
  position: relative;
  z-index: 1;
  flex: 1 1 300px;
  min-width: min(100%, 260px);
  margin-top: clamp(34px, 7vh, 96px);
  margin-right: clamp(-36px, -4vw, 0px);
  /* Column, so the frame below the label can absorb the leftover height. */
  display: flex;
  flex-direction: column;
}
.scanbay__label {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(min(4vw, 36px) + 12px);
  margin-bottom: 11px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
}
.scanbay__frame {
  position: relative;
  /* Grows into whatever height the text column sets. The clamp is the floor —
     and the whole story once the columns stack and there is nothing to meet. */
  flex: 1 1 auto;
  min-height: clamp(340px, 56vh, 640px);
  background: var(--newsprint);
  overflow: hidden;
  filter: contrast(1.05) saturate(0.92);
  transform: rotate(-1deg);
  clip-path: polygon(2% 0, 38% 1%, 64% 0, 99% 1%, 100% 26%, 98% 52%, 100% 78%, 97% 99%, 58% 97%, 26% 100%, 1% 98%, 3% 62%, 0 34%);
}
.plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: plate 40s ease-in-out infinite both;
}
.plate:nth-of-type(1) { animation-delay: 0s; }
.plate:nth-of-type(2) { animation-delay: 10s; }
.plate:nth-of-type(3) { animation-delay: 20s; }
.plate:nth-of-type(4) { animation-delay: 30s; }

.scanbay__halftone {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.2;
  background-image: radial-gradient(var(--ink) 0.9px, transparent 1px);
  background-size: 9px 9px;
}
.scanbay__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(161, 18, 38, 0.3), rgba(20, 17, 15, 0) 62%);
}
.scanbay__caption {
  position: absolute;
  left: -8px;
  bottom: 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 5px 9px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── ticker ─────────────────────────────────────────────────────── */

.ticker {
  margin: clamp(26px, 5vh, 60px) calc(-1 * var(--gutter)) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: flex;
  width: max-content;
  padding: 9px 0;
  animation: drift 130s linear infinite;
  will-change: transform;
}
.ticker__group {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── case files ─────────────────────────────────────────────────── */

.casefiles {
  position: relative;
  scroll-margin-top: var(--nav-h);
  background: var(--char);
  color: var(--bone);
  padding: clamp(52px, 9vh, 120px) var(--gutter) clamp(56px, 10vh, 130px);
  overflow: hidden;
}
.casefiles__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(to bottom, rgba(239, 233, 221, 0.05) 0 1px, transparent 1px 4px);
}
.casefiles__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23m)'/%3E%3C/svg%3E");
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vh, 50px);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5.6vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-meta {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
  text-align: right;
}

/* stacked file deck — grid keeps the frame as tall as the tallest file */
.files {
  position: relative;
  display: grid;
  min-height: clamp(560px, 72vh, 880px);
}

.file {
  position: relative;
  grid-area: 1 / 1;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  padding: clamp(18px, 3.4vw, 46px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

/* Baseline — the first file is the one on show. This is the whole story when
   there is a single file, and the no-JS fallback when there are several. */
.file:not(:first-of-type) {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
}

/* main.js promotes the frame to a deck only once there are two or more. */
.files.is-deck .file {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
}
.files.is-deck .file.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.file__corner {
  position: absolute;
  width: 16px;
  height: 16px;
}
.file__corner--tl { left: -1px; top: -1px; border-left: 2px solid var(--yellow); border-top: 2px solid var(--yellow); }
.file__corner--tr { right: -1px; top: -1px; border-right: 2px solid var(--yellow); border-top: 2px solid var(--yellow); }
.file__corner--bl { left: -1px; bottom: -1px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); }
.file__corner--br { right: -1px; bottom: -1px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); }

.file__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--panel-line);
  opacity: 0.85;
}

.file__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 44px);
  padding-top: clamp(18px, 3vh, 34px);
}
.file__main {
  flex: 1 1 440px;
  min-width: min(100%, 280px);
}
.file__side {
  flex: 1 1 300px;
  min-width: min(100%, 250px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.file__titlewrap { position: relative; display: inline-block; }
.file__ghost,
.file__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9.6vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.file__ghost {
  position: absolute;
  left: 5px;
  top: 5px;
  color: var(--crimson);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
.file__title {
  position: relative;
  margin: 0;
  font-weight: 400;
  text-shadow: 1.5px 0 rgba(224, 43, 29, 0.35), -1.5px 0 rgba(30, 150, 170, 0.25);
}
.file__title--placeholder {
  font-size: clamp(38px, 8vw, 110px);
  color: var(--dim);
  text-shadow: 5px 5px 0 rgba(161, 18, 38, 0.5), 1.5px 0 rgba(224, 43, 29, 0.25), -1.5px 0 rgba(30, 150, 170, 0.18);
}

.file__lede {
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.5;
  max-width: 52ch;
  text-wrap: pretty;
}
.file__lede em { font-style: italic; color: var(--yellow); }
.file__lede--muted { opacity: 0.62; }
.file__lede--muted em { color: inherit; }

.file__note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  max-width: 56ch;
  opacity: 0.72;
}
.file__note strong { color: var(--bone); font-weight: 700; }
.file__note--muted { opacity: 0.5; }

.badge {
  display: inline-block;
  margin-bottom: 14px;
  background: var(--yellow);
  color: var(--char);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.file__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 3vh, 32px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bone);
  color: var(--char);
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--bone);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover {
  background: var(--crimson);
  color: var(--bone);
  border-color: var(--crimson);
}
.btn__arrow { font-family: var(--font-display); }
.btn--pending {
  background: none;
  color: var(--dim);
  border: 1px dashed var(--panel-edge);
}
.file__repo { font-size: 10px; letter-spacing: 0.18em; opacity: 0.55; }
.file__repo--muted { opacity: 0.42; }

.stamp {
  align-self: flex-end;
  margin-bottom: 18px;
  border: 2px solid rgba(224, 43, 29, 0.75);
  color: var(--signal);
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-6.5deg);
  opacity: 0.92;
}
.stamp--draft {
  border-color: rgba(240, 195, 27, 0.7);
  color: var(--yellow);
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--panel-gap);
}
.specs--muted { opacity: 0.62; }
.spec {
  flex: 1 1 var(--spec-w, 100%);
  background: var(--panel);
  padding: 10px 12px;
}
.spec__key {
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 5px;
}
.spec__val { font-size: 12px; letter-spacing: 0.04em; }
.spec__val--redacted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: normal;
}
.redact {
  display: inline-block;
  width: var(--redact-w, 96px);
  height: 11px;
  background: var(--panel-edge);
}

.file__foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* file selector */
.filenav {
  position: absolute;
  right: clamp(10px, 1.4vw, 18px);
  bottom: clamp(10px, 1.4vw, 18px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 16, 14, 0.82);
  border: 1px solid var(--panel-line);
  padding: 7px 10px;
}
/* .filenav sets display, so the hidden attribute needs to win explicitly. */
.filenav[hidden] { display: none; }
.filenav__label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.filenav__dot {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--dot-idle);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.45s ease, border-color 0.45s ease;
}
.filenav__dot.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
}
.filenav__tip {
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  background: rgba(18, 16, 14, 0.92);
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.filenav__dot:hover .filenav__tip,
.filenav__dot:focus-visible .filenav__tip {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ── artwork wall ───────────────────────────────────────────────── */

.artwork {
  position: relative;
  scroll-margin-top: var(--nav-h);
  background: var(--paper);
  padding: clamp(52px, 9vh, 120px) var(--gutter) clamp(46px, 8vh, 100px);
  overflow: hidden;
}

.artwork__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(26px, 5vh, 64px);
}
.artwork__titlewrap { position: relative; }
.artwork__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 10vw, 148px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 2px 0 rgba(224, 43, 29, 0.24), -2px 0 rgba(30, 150, 170, 0.18);
}
.artwork__script {
  position: absolute;
  left: 6%;
  bottom: -0.52em;
  font-family: var(--font-script);
  font-size: clamp(28px, 5.2vw, 74px);
  color: var(--crimson);
  transform: rotate(-3deg);
}
.artwork__intro {
  flex: 0 1 320px;
  margin: 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.5;
  max-width: 38ch;
}

.wall {
  columns: clamp(230px, 25vw, 330px) 3;
  column-gap: clamp(18px, 2.4vw, 34px);
}

.plate-link {
  break-inside: avoid;
  display: block;
  margin: 0 0 clamp(18px, 2.4vw, 34px);
  color: inherit;
}
.plate-link:hover { color: inherit; }

.plate-link__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
}

.plate-link__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--newsprint);
}
.plate-link__img {
  width: 100%;
  height: auto;
  transition: transform 1.4s var(--ease), filter 1.1s var(--ease);
}
.plate-link:hover .plate-link__img { transform: scale(1.025); }

.plate-link__halftone {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.13;
  background-image: radial-gradient(var(--ink) 0.8px, transparent 1px);
  background-size: 9px 9px;
  pointer-events: none;
}

.plate-link__cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(12px, 1.8vw, 24px);
  background: linear-gradient(to top, rgba(20, 17, 15, 0.94), rgba(20, 17, 15, 0.25) 52%, rgba(20, 17, 15, 0) 80%);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.plate-link:hover .plate-link__cap,
.plate-link:focus-visible .plate-link__cap { opacity: 1; }

.cap-title { color: var(--bone); }
.cap-title--display {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 40px);
  line-height: 0.94;
  text-transform: uppercase;
}
.cap-title--ab {
  text-shadow: 2px 0 rgba(224, 43, 29, 0.5), -2px 0 rgba(30, 150, 170, 0.4);
}
.cap-title--serif {
  font-family: var(--font-editorial);
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1;
}
.cap-title--sm { font-size: clamp(18px, 2.1vw, 30px); }
.cap-title--script {
  font-family: var(--font-script);
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 0.9;
  color: var(--signal);
}
.cap-title--italic { font-style: italic; }
.cap-title__script {
  font-family: var(--font-script);
  text-transform: none;
  font-size: 0.72em;
  color: var(--paper);
}

.cap-sub { color: var(--bone); }
.cap-sub--serif {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  opacity: 0.88;
}
.cap-sub--mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.84;
}

.artwork__foot {
  margin-top: clamp(28px, 5vh, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.artwork__foot-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 30px);
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.social a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}
.social svg { flex: 0 0 auto; }

/* ── contact ────────────────────────────────────────────────────── */

.contact {
  position: relative;
  scroll-margin-top: var(--nav-h);
  background: var(--crimson);
  color: var(--bone);
  padding: clamp(58px, 10vh, 132px) var(--gutter) clamp(28px, 4vh, 54px);
  clip-path: polygon(0 1.4%, 14% 0, 32% 1.1%, 55% 0.2%, 74% 1.3%, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.contact__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.12;
  background-image: radial-gradient(var(--ink) 1px, transparent 1.1px);
  background-size: 11px 11px;
}

.contact__eyebrow {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: clamp(16px, 3vh, 30px);
}
.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 8.4vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.contact__lede {
  margin: clamp(14px, 2.4vh, 24px) 0 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1.4;
  max-width: 34ch;
}

.contact__cols {
  margin-top: clamp(26px, 5vh, 58px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 70px);
  align-items: flex-start;
}
.contact__primary {
  flex: 1 1 380px;
  min-width: min(100%, 280px);
}
.contact__key {
  display: block;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}
.contact__mail {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(15px, 2.3vw, 32px);
  letter-spacing: -0.01em;
  color: var(--bone);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 4px;
  word-break: break-all;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.contact__mail:hover {
  color: var(--yellow);
  border-bottom-color: var(--bone);
}
.contact__where {
  margin: 22px 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 42ch;
  opacity: 0.92;
  text-wrap: pretty;
}

.links {
  flex: 1 1 300px;
  min-width: min(100%, 260px);
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(239, 233, 221, 0.35);
}
.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(239, 233, 221, 0.35);
  color: var(--bone);
  transition: padding-left 0.6s var(--ease), color 0.5s ease;
}
.links a:hover {
  padding-left: 12px;
  color: var(--yellow);
}
.links__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  text-transform: uppercase;
}
.links__handle {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.8;
}
.links__handle--solid { opacity: 1; }

.colophon {
  margin-top: clamp(36px, 7vh, 90px);
  padding-top: 16px;
  border-top: 1px solid rgba(239, 233, 221, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}
.colophon__names {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── art treatment (CONFIG.artTreatment) ────────────────────────── */

[data-art] { filter: var(--art-filter); }

:root[data-art-treatment="ink-duotone"] {
  --art-filter: grayscale(1) sepia(0.32) saturate(2.6) hue-rotate(-14deg) contrast(1.08);
}
:root[data-art-treatment="desaturated"] {
  --art-filter: saturate(0.45) contrast(1.06);
}

/* ── scroll reveal (CONFIG.revealMotion) ────────────────────────── */

[data-reveal] {
  transition:
    opacity 1.45s var(--ease) var(--reveal-delay, 0ms),
    transform 1.75s var(--ease) var(--reveal-delay, 0ms);
}
[data-reveal].is-pending {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 30px), 0);
}

/* ── keyframes ──────────────────────────────────────────────────── */

@keyframes roleA {
  0%, 38% { opacity: 1; transform: translateY(0); filter: blur(0); }
  48%, 88% { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
  98%, 100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes roleB {
  0%, 38% { opacity: 0; transform: translateY(8px); filter: blur(3px); }
  48%, 88% { opacity: 1; transform: translateY(0); filter: blur(0); }
  98%, 100% { opacity: 0; transform: translateY(8px); filter: blur(3px); }
}
@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes plate {
  0% { opacity: 0; }
  5% { opacity: 1; }
  22% { opacity: 1; }
  27% { opacity: 0; }
  100% { opacity: 0; }
}

/* ── reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ticker__track,
  .role__a,
  .role__b,
  .plate {
    animation: none;
  }

  /* hold the first plate and the first role rather than fading to blank */
  .plate { opacity: 0; }
  .plate:nth-of-type(1) { opacity: 1; }
  .role__b { opacity: 0; }

  [data-reveal],
  .file,
  .plate-link__img,
  .plate-link__cap,
  .filenav__tip {
    transition-duration: 0.01ms;
  }
}
