/* ==========================================================================
   SHANE COKELEY — style.css
   Retune the whole site from the TOKENS block below.
   Textures live in images/textures/ (generated, swap freely).
   ========================================================================== */

/* ---------- TOKENS ---------------------------------------------------------- */
:root {
  /* Palette: black & white only. Photos carry the color. */
  --black:      #0d0c0b;   /* the main color */
  --white:      #efe9dc;   /* aged paper white */
  --paper-dim:  #ddd5c4;   /* older paper */
  --graphite:   #4a4640;   /* secondary text on paper  (AA) */
  --ash:        #aaa49a;   /* secondary text on black  (AA) */
  --card:       #1b1a18;   /* black card stock */
  --tape:       rgba(226, 216, 188, .88); /* masking tape */
  --red:        #7d1416;   /* leads: the only colour in the interface */
  --red-ink:    #8e1b1b;   /* lead text on paper  (7.5:1) */
  --red-pen:    #e5574b;   /* lead text on black  (5.4:1; 4.8:1 on card) — darker reds fail contrast here */

  /* Active color scope. Paper objects flip these (see "PAPER SCOPE"). */
  --bg:     var(--black);
  --fg:     var(--white);
  --muted:  var(--ash);
  --lead-fg:  var(--red-pen); /* on black: red-pen text, no highlight */
  --lead-bg:  transparent;
  --tab-fg:   var(--white);
  --tab-bg:   var(--red);

  /* Textures */
  --tex-desk:  url("images/textures/desk.jpg");
  --tex-card:  url("images/textures/sheetdark.jpg");
  --tex-paper: url("images/textures/paper.jpg");
  --tex-stain: url("images/textures/stain.png");
  --tex-size:  900px;

  /* Type families */
  --font-type:   "Courier Prime", "Courier New", Courier, monospace;                  /* body: typewriter */
  --font-stamp:  "Special Elite", "American Typewriter", "Courier New", monospace;    /* labels, stamps */
  --font-loud:   "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif; /* headlines */
  --font-black:  "Grenze Gotisch", "Old English Text MT", "Engravers Old English", serif; /* the name: gothic, but legible */
  --font-hand:   "Rock Salt", "Bradley Hand", "Marker Felt", cursive;                 /* lyrics */
  --font-pen:    "Reenie Beanie", "Bradley Hand", "Segoe Print", cursive;             /* margin notes, TODOs */

  /* Type scale (fluid, 375px → 1440px) */
  --step--1: clamp(0.8rem, 0.77rem + 0.13vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.38vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.31rem + 0.8vw, 2.1rem);
  --step-3:  clamp(2rem, 1.55rem + 1.9vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.8rem + 3.6vw, 5.4rem);
  --step-5:  clamp(3.2rem, 1.6rem + 7vw, 9rem);

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --gutter:    clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --measure:   62ch;
  --page-max:  78rem;

  /* Shape & motion */
  --shadow:      0 1px 1px rgba(0,0,0,.5), 0 18px 32px -14px rgba(0,0,0,.95);
  --shadow-lift: 0 2px 2px rgba(0,0,0,.5), 0 28px 44px -16px rgba(0,0,0,1);
  --ease:      cubic-bezier(.2,.7,.2,1);
  --dur:       .35s;
  --header-h:  3.75rem;

  /* Hand-made shapes (generated) */
  --ink-rule:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M0,3.54 L10,3.45 L20,3.48 L30,3.86 L40,3.78 L50,3.73 L60,3.28 L70,3.41 L80,3.05 L90,2.54 L100,3.01 L110,2.22 L120,2.47 L130,2.44 L140,2.42 L150,2.45 L160,2.77 L170,2.89 L180,2.90 L190,2.37 L200,2.57 L210,3.15 L220,2.64 L230,2.46 L240,2.42 L250,2.38 L260,2.93 L270,2.97 L280,2.73 L290,2.27 L300,2.41 L310,2.73 L320,2.66 L330,2.60 L340,2.32 L350,3.05 L360,2.99 L370,2.53 L380,2.47 L390,2.89 L400,2.85 L410,2.60 L420,2.61 L430,2.61 L440,2.76 L450,2.84 L460,2.54 L470,2.33 L480,2.41 L490,3.20 L500,2.80 L510,2.50 L520,2.82 L530,3.39 L540,3.48 L550,3.87 L560,3.69 L570,4.16 L580,3.66 L590,4.24 L600,4.02 L610,4.24 L620,3.68 L630,3.96 L640,3.50 L650,3.83 L660,3.84 L670,3.76 L680,3.78 L690,3.52 L700,4.08 L710,3.70 L720,3.04 L730,3.54 L740,3.90 L750,3.48 L760,3.56 L770,3.24 L780,3.44 L790,3.57 L800,3.86 L810,3.41 L820,3.35 L830,3.89 L840,3.67 L850,4.33 L860,4.64 L870,4.02 L880,4.71 L890,4.36 L900,4.55 L910,4.82 L920,5.13 L930,5.16 L940,5.08 L950,5.50 L960,4.87 L970,4.93 L980,4.38 L990,4.59 L1000,4.66 L1000,6.56 L990,6.20 L980,6.74 L970,6.72 L960,7.10 L950,7.08 L940,7.02 L930,6.96 L920,7.18 L910,7.04 L900,6.70 L890,6.41 L880,6.35 L870,6.56 L860,6.12 L850,5.94 L840,6.21 L830,5.81 L820,5.86 L810,5.98 L800,5.47 L790,6.14 L780,5.68 L770,5.30 L760,5.67 L750,5.41 L740,5.38 L730,5.44 L720,5.59 L710,5.50 L700,5.31 L690,5.71 L680,5.13 L670,5.23 L660,5.54 L650,5.69 L640,5.72 L630,5.34 L620,5.69 L610,5.66 L600,5.92 L590,5.55 L580,6.22 L570,6.17 L560,5.95 L550,5.12 L540,4.98 L530,4.60 L520,4.52 L510,4.50 L500,4.20 L490,4.48 L480,4.60 L470,4.67 L460,4.46 L450,4.16 L440,4.36 L430,4.39 L420,4.39 L410,4.40 L400,4.52 L390,4.11 L380,4.74 L370,5.10 L360,4.42 L350,4.50 L340,4.68 L330,4.40 L320,4.34 L310,4.27 L300,4.60 L290,4.73 L280,4.65 L270,4.38 L260,4.83 L250,4.91 L240,4.58 L230,4.73 L220,5.06 L210,4.75 L200,4.79 L190,4.89 L180,4.78 L170,4.18 L160,4.79 L150,4.55 L140,4.58 L130,4.56 L120,4.53 L110,4.81 L100,4.36 L90,5.00 L80,4.62 L70,4.93 L60,5.64 L50,5.62 L40,5.63 L30,5.35 L20,5.03 L10,5.64 L0,6.08Z' fill='black'/%3E%3C/svg%3E");
  --arrow:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 46 C 30 52, 62 50, 104 20' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M88 16 L106 18 L100 35' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ink-mask:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 1 1 1 1 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%2523n)'/%3E%3C/svg%3E");
  --wear-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.12' numOctaves='3' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%2523n)'/%3E%3C/svg%3E");
  --torn-a:    polygon(0.0% 0.44%, 3.7% 0.66%, 6.1% 1.54%, 9.6% 1.20%, 11.7% 1.30%, 14.7% 1.33%, 17.1% 1.25%, 20.6% 0.62%, 23.8% 1.25%, 27.7% 1.47%, 31.2% 0.22%, 34.2% 1.10%, 35.9% 0.74%, 39.6% 1.45%, 43.4% 0.15%, 46.5% 1.38%, 49.6% 0.51%, 51.2% 1.47%, 54.8% 1.05%, 57.2% 1.33%, 60.8% 1.16%, 63.8% 0.51%, 66.0% 0.57%, 68.3% 0.83%, 70.1% 1.15%, 72.5% 0.26%, 74.6% 0.62%, 77.2% 1.25%, 79.0% 0.36%, 81.2% 0.28%, 84.6% 0.17%, 86.2% 0.89%, 89.5% 1.32%, 92.4% 0.52%, 96.1% 1.18%, 98.8% 0.90%, 100% 0.8%, 100.0% 98.20%, 96.2% 99.76%, 93.9% 99.27%, 91.9% 98.63%, 90.3% 98.40%, 87.3% 98.90%, 84.8% 98.31%, 81.8% 98.39%, 78.0% 98.75%, 74.1% 99.12%, 71.7% 98.48%, 68.8% 99.44%, 65.6% 99.14%, 63.8% 98.49%, 61.1% 98.25%, 58.2% 98.31%, 56.0% 99.61%, 53.2% 98.62%, 49.6% 98.83%, 47.8% 99.29%, 46.2% 99.33%, 42.4% 99.38%, 39.1% 98.88%, 37.3% 98.76%, 35.6% 99.67%, 32.6% 99.77%, 28.7% 99.23%, 25.6% 98.26%, 23.9% 98.20%, 22.3% 98.92%, 19.1% 98.23%, 16.7% 98.30%, 13.6% 99.14%, 11.7% 99.58%, 9.3% 99.38%, 6.8% 98.55%, 4.4% 98.87%, 2.8% 99.75%, 0% 99.2%);
  --torn-b:    polygon(0.0% 1.42%, 2.3% 0.05%, 4.4% 0.58%, 6.8% 0.90%, 9.0% 1.04%, 12.5% 1.25%, 15.9% 0.93%, 18.0% 1.35%, 20.2% 1.38%, 22.8% 1.01%, 25.6% 1.05%, 27.9% 0.93%, 31.3% 0.58%, 34.3% 0.73%, 37.0% 0.61%, 39.8% 1.13%, 41.8% 0.23%, 45.3% 0.14%, 48.8% 1.21%, 50.9% 1.02%, 53.0% 1.41%, 55.0% 0.19%, 56.6% 1.15%, 58.6% 0.50%, 62.5% 1.18%, 65.9% 0.92%, 69.0% 0.02%, 72.5% 0.53%, 76.2% 0.66%, 79.9% 0.00%, 83.9% 0.15%, 86.7% 0.77%, 90.6% 1.15%, 94.6% 1.45%, 97.1% 0.24%, 99.0% 1.14%, 100% 0.8%, 100.0% 98.80%, 97.6% 98.92%, 94.5% 99.54%, 91.3% 99.64%, 89.7% 99.88%, 87.0% 98.75%, 84.9% 99.29%, 81.7% 99.53%, 78.9% 98.91%, 76.3% 99.62%, 73.1% 98.74%, 71.1% 98.55%, 68.0% 98.44%, 64.6% 99.11%, 61.3% 99.43%, 58.1% 99.85%, 55.8% 99.09%, 52.1% 98.77%, 48.3% 98.44%, 44.4% 98.89%, 41.3% 99.16%, 39.3% 98.57%, 36.2% 99.71%, 34.1% 99.60%, 30.8% 98.92%, 28.8% 98.76%, 25.9% 99.52%, 23.3% 98.21%, 21.5% 99.57%, 18.5% 98.49%, 14.7% 99.28%, 11.2% 99.79%, 8.8% 98.46%, 5.6% 99.20%, 2.6% 99.12%, 0% 99.2%);
  --torn-c:    polygon(0.0% 1.41%, 3.9% 0.32%, 7.3% 1.51%, 10.3% 0.80%, 12.8% 0.77%, 15.7% 0.98%, 17.5% 1.60%, 19.7% 0.88%, 21.7% 1.01%, 23.4% 0.54%, 25.8% 0.50%, 28.6% 0.25%, 31.3% 1.27%, 34.4% 1.55%, 38.2% 0.76%, 40.9% 1.22%, 44.6% 0.87%, 47.8% 1.11%, 50.6% 0.81%, 53.1% 0.72%, 55.7% 1.28%, 57.6% 0.19%, 61.5% 0.82%, 64.7% 1.47%, 68.0% 0.91%, 71.9% 1.00%, 74.5% 0.29%, 76.4% 1.27%, 80.2% 0.57%, 83.0% 1.09%, 86.0% 0.44%, 89.8% 0.88%, 93.1% 1.10%, 95.7% 1.12%, 97.6% 0.88%, 100% 0.8%, 100.0% 98.87%, 97.8% 99.67%, 96.0% 99.78%, 94.1% 99.13%, 91.1% 98.73%, 88.5% 98.62%, 87.0% 99.37%, 85.2% 99.07%, 82.2% 98.95%, 79.6% 99.34%, 77.3% 99.81%, 75.3% 99.12%, 72.4% 99.82%, 68.8% 99.95%, 67.0% 99.19%, 64.6% 99.06%, 61.4% 98.93%, 58.0% 99.15%, 54.8% 99.25%, 52.9% 99.87%, 51.0% 99.20%, 48.8% 98.99%, 45.6% 98.35%, 43.8% 98.28%, 42.3% 98.40%, 38.3% 99.34%, 34.8% 99.09%, 31.9% 98.46%, 28.0% 99.46%, 26.0% 98.35%, 23.0% 98.38%, 21.0% 98.47%, 19.1% 99.74%, 16.8% 98.33%, 14.4% 99.21%, 12.1% 99.87%, 9.5% 99.11%, 7.2% 98.68%, 4.9% 98.24%, 1.2% 98.96%, 0% 99.2%);
  --tape-cut:  polygon(0% 8%, 2.8% 8%, 3.1% 17%, 3.3% 26%, 2.1% 35%, 3.6% 44%, 5.0% 53%, 3.5% 62%, 0.2% 71%, 3.1% 80%, 3.1% 89%, 2.7% 98%, 2% 100%, 98% 100%, 95.3% 96%, 99.7% 87%, 99.9% 78%, 96.4% 69%, 99.5% 60%, 99.3% 51%, 95.9% 42%, 98.2% 33%, 95.6% 24%, 96.0% 15%, 96.7% 6%, 100% 4%);
  --paperclip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 100'%3E%3Cpath d='M11 22 V78 a8 8 0 0 0 16 0 V14 a11 11 0 0 0 -22 0 V70' fill='none' stroke='%23565656' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M11 22 V78 a8 8 0 0 0 16 0 V14 a11 11 0 0 0 -22 0 V70' fill='none' stroke='%23d9d9d9' stroke-width='1.6' stroke-linecap='round' transform='translate(-.6 -.6)'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- PAPER SCOPE: anything that is a physical paper object ----------- */
.on-paper, .folder, .print, .stub, .card, .essay, .leaf, .notice, .bag__tag,
.case-index__sheet, .mugshot__frame, .clipping, .label-strip, .cfile__folder {
  --bg: var(--white);
  --fg: var(--black);
  --muted: var(--graphite);
  --lead-fg: var(--red-ink);  /* on paper: dark-red ink */
  --lead-bg: transparent;
  --tab-fg:  var(--white);
  --tab-bg:  var(--red);
  color-scheme: light;
  color: var(--fg);
  background-color: var(--bg);
  background-image: var(--tex-paper);
  background-size: var(--tex-size);
}
/* each sheet of paper is cut from a different part of the roll */
:is(.cards, .stubs, .board, .table, .essay-stack) > :nth-child(3n+2) { background-position: 310px 140px; }
:is(.cards, .stubs, .board, .table, .essay-stack) > :nth-child(3n)   { background-position: 620px 470px; }
.notebook__book > .leaf:nth-child(3n+2) { background-position: 0 0, 0 0, 310px 140px; }
.notebook__book > .leaf:nth-child(3n)   { background-position: 0 0, 0 0, 620px 470px; }

/* ---------- RESET / BASE ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-s)); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black) var(--tex-desk);
  background-size: var(--tex-size);
  color: var(--fg);
  font-family: var(--font-type);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}
html { overflow-x: clip; }
/* scan vignette + film grain (decorative, never blocks clicks) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: var(--noise); opacity: .07;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
cite { font-style: italic; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-s); top: -10rem; z-index: 1000;
  background: var(--white); color: var(--black); padding: var(--space-xs) var(--space-s);
  font-family: var(--font-stamp);
}
.skip-link:focus { top: var(--space-s); }

/* Ink on paper: typewriter text sits slightly into the page */
.on-paper, .stub, .card, .essay, .notice, .clipping, .bag__tag { text-shadow: 0 0 .6px rgba(13,12,11,.55); }

/* TODO placeholders: a handwritten note on a strip of masking tape.
   Visible on purpose so nothing ships unfilled. */
.todo {
  font-family: var(--font-pen); font-weight: 400; font-style: normal;
  font-size: 1.3em; line-height: 1.15; letter-spacing: .01em; text-transform: none;
  color: #1d1b18; text-shadow: none;
  background: var(--tape) var(--tex-paper);
  background-size: 400px; background-blend-mode: multiply;
  padding: 0 .35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.todo--block {
  display: block; max-width: var(--measure);
  padding: .35em .7em .3em;
  transform: rotate(-.5deg);
}
:is(.todo--block):nth-of-type(even) { transform: rotate(.4deg); }

/* Handwritten margin notes (decorative) */
.note {
  position: absolute; z-index: 3;
  font-family: var(--font-pen); font-size: var(--step-2); line-height: 1;
  color: var(--fg); transform: rotate(-6deg); pointer-events: none;
  white-space: nowrap;
}
.note--arrow::after {
  content: ""; display: block; width: 4.2rem; height: 2.1rem; margin-top: .1rem;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
.note--flip::after { transform: scaleX(-1); }
.note--down::after { transform: rotate(70deg); margin-left: .5rem; }

/* ---------- SHARED TYPE & PRINTED MARKS -------------------------------------- */
/* Photocopied headlines: eroded edges + toner speckle */
.page-head__title, .sheet__title, .stub__title, .disc-panel__title,
.notice__title, .essay__title, .mission__statement, .glass__title, .cover__name,
.bag__name, .clipping__head {
  filter: url(#rough);
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
  -webkit-mask-size: 220px; mask-size: 220px;
}

.exhibit, .label, .caption, .stamp-text {
  font-family: var(--font-stamp);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 400;
}
/* typed label strip stuck on with tape */
.exhibit {
  display: inline-block; position: relative;
  padding: .3em .8em .15em;
  font-size: var(--step--1);
  color: var(--black);
  background: var(--white) var(--tex-paper); background-size: 500px;
  transform: rotate(-1.4deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.on-paper .exhibit { background: var(--black); color: var(--white); box-shadow: none; }
.label { font-size: var(--step--1); color: var(--muted); }
.caption { font-size: var(--step--1); color: var(--muted); letter-spacing: .04em; }
.caption.todo { color: #1d1b18; }  /* TODO tape keeps its dark ink inside captions */
.text-link { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .06em; }

/* brush-stroke rule, used in place of borders */
.ink-rule, .section-title::after, .page-head::after, .sheet__head::after {
  content: ""; display: block; height: 7px;
  background: currentColor;
  -webkit-mask: var(--ink-rule) 0 0 / 100% 100% no-repeat; mask: var(--ink-rule) 0 0 / 100% 100% no-repeat;
}
.section-title {
  display: flex; align-items: center; gap: var(--space-s);
  font-family: var(--font-loud); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-2); line-height: 1; letter-spacing: .01em;
  margin-bottom: var(--space-l);
}
.section-title::after { flex: 1; }

/* Rubber stamp */
.stamp {
  display: inline-block; padding: .3em .6em .15em;
  border: 3px solid currentColor; border-radius: 4px;
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .15em;
  transform: rotate(-9deg); opacity: .8;
  -webkit-mask-image: var(--wear-mask); mask-image: var(--wear-mask);
  -webkit-mask-size: 120px; mask-size: 120px;
}

/* ---------- BUTTONS ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 2.75rem; padding: .6em 1.2em .45em;
  font-family: var(--font-stamp); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  border: 2px solid var(--fg); border-radius: 2px;
  transition: transform var(--dur) var(--ease), background-color var(--dur), color var(--dur);
}
/* primary = a typed paper label (on paper objects: a black label) */
.btn--ink {
  background: var(--fg) var(--tex-paper); background-size: 500px; background-blend-mode: multiply;
  color: var(--bg); border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.55);
  transform: rotate(-.8deg);
}
.on-paper .btn--ink, .stub .btn--ink, .notice .btn--ink, .bag__tag .btn--ink, .essay .btn--ink { background-image: none; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ink:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 6px 10px -4px rgba(0,0,0,.8); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* Outbound links (and placeholders for links that don't exist yet) */
.ext-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.ext-links--stack { flex-direction: column; align-items: flex-start; }
.ext {
  display: inline-block; padding: .4em .8em .25em;
  border: 1.5px solid var(--fg); border-radius: 2px;
  font-family: var(--font-stamp); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
a.ext[href]:hover { background: var(--fg); color: var(--bg); }
a.ext[href]::after { content: " \2197"; }
.ext--todo { border-style: dashed; color: var(--muted); cursor: not-allowed; }
.ext--todo::after { content: " · TODO"; font-size: .85em; }

.evidence-list { display: grid; gap: var(--space-2xs); }
.evidence-list > li { padding-left: 1.5em; position: relative; }
.evidence-list > li::before { content: "\25A0"; position: absolute; left: 0; font-size: .8em; top: .15em; }

/* Form-style record rows: LABEL ........ value */
.record > div {
  display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr; gap: var(--space-s);
  padding: var(--space-2xs) 0 .35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
}
.record dt { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); color: var(--muted); padding-top: .15em; }
.record dd { font-weight: 700; }

/* Roll call with dotted leaders, like a show flyer: Name ........ ROLE */
.rollcall > div { display: flex; align-items: baseline; gap: .5rem; padding: .3rem 0; }
.rollcall dd { order: 1; min-width: 0; font-weight: 700; }
.rollcall > div::after { content: ""; order: 2; flex: 1 1 1rem; border-bottom: 2px dotted currentColor; opacity: .55; }
.rollcall dt { order: 3; font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .06em; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }

/* Scattered-on-the-table rotation. rotate.js adds --rotate on hover. */
[data-tilt] {
  transform: rotate(calc(var(--r, 0deg) + var(--rotate, 0deg)));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
:is(.table, .cards, .board, .bags, .collab__photos, .press-photos) > :nth-child(4n+1) { --r: -1.8deg; }
:is(.table, .cards, .board, .bags, .collab__photos, .press-photos) > :nth-child(4n+2) { --r: 1.2deg; }
:is(.table, .cards, .board, .bags, .collab__photos, .press-photos) > :nth-child(4n+3) { --r: -.6deg; }
:is(.table, .cards, .board, .bags, .collab__photos, .press-photos) > :nth-child(4n)   { --r: 2.1deg; }
.stubs > :nth-child(odd)  { --r: -.7deg; }
.stubs > :nth-child(even) { --r: .6deg; }

/* Tape: a strip of masking tape, torn at both ends */
.taped { position: relative; }
.taped::before, .print::before {
  content: ""; position: absolute; z-index: 4;
  top: -.8rem; left: 50%; width: 6rem; height: 1.55rem;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape) var(--tex-paper); background-size: 300px; background-blend-mode: multiply;
  clip-path: var(--tape-cut);
  opacity: .9;
}
/* Paper clip */
.clipped::after {
  content: ""; position: absolute; z-index: 5;
  top: -1.6rem; left: 1.4rem; width: 1.5rem; height: 4.4rem;
  background: var(--paperclip) center / contain no-repeat;
  transform: rotate(4deg);
  filter: drop-shadow(1px 2px 1px rgba(0,0,0,.45));
}
/* Coffee ring */
.stain {
  position: absolute; z-index: 1; pointer-events: none;
  width: 11rem; height: 11rem;
  background: var(--tex-stain) center / contain no-repeat;
  mix-blend-mode: multiply; opacity: .75;
}

/* ---------- PAGE FRAME: header, case index, main, footer -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; gap: var(--space-s);
  min-height: var(--header-h);
  padding-inline: max(var(--gutter), (100% - var(--page-max)) / 2 + var(--gutter));
  background: var(--black) var(--tex-desk); background-size: var(--tex-size);
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.9);
}
.site-header::after { /* brush rule along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 6px;
  background: var(--white);
  -webkit-mask: var(--ink-rule) 0 0 / 100% 100% no-repeat; mask: var(--ink-rule) 0 0 / 100% 100% no-repeat;
  opacity: .85;
}
.site-header__name {
  font-family: var(--font-black); font-weight: 700; font-size: calc(var(--step-1) * 1.1); line-height: 1; letter-spacing: .01em;
  text-decoration: none; margin-right: auto; padding-block: .3rem;
}
.site-header__file { display: none; font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.index-toggle {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 2.5rem; padding: .45em .9em .3em;
  color: var(--black);
  background: var(--white) var(--tex-paper); background-size: 500px;
  border: 0; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
  transform: rotate(1.2deg);
  font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em;
  transition: transform var(--dur) var(--ease);
}
.index-toggle::before { /* tiny folder mark */
  content: ""; width: 1.1em; height: .8em; border: 1.5px solid currentColor; border-radius: 1px;
  box-shadow: inset 0 .22em 0 -.08em currentColor;
}
.index-toggle:hover, .index-toggle[aria-expanded="true"] { transform: rotate(0) translateY(-1px); }
.index-toggle:focus-visible { outline-color: var(--white); }

/* Case index: plain list without JS, full overlay with JS */
.case-index { padding: var(--space-s) var(--gutter); }
.case-index__sheet { padding: var(--space-m) var(--gutter); box-shadow: var(--shadow); }
.case-index__label { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-2xs); }
.case-index__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.case-index__link { text-decoration: none; text-transform: uppercase; }
.case-index__no { font-family: var(--font-stamp); color: var(--muted); margin-right: .2em; }
.case-index__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.js .case-index {
  position: fixed; inset: 0; z-index: 60;
  display: none; overflow-y: auto;
  padding: calc(var(--header-h) + var(--space-m)) var(--gutter) var(--space-xl);
  background: color-mix(in srgb, var(--black) 88%, transparent);
}
.js .case-index.is-open { display: block; }
.js .case-index__sheet {
  position: relative;
  max-width: 52rem; margin-inline: auto;
  padding: var(--space-l) var(--gutter) var(--space-l) calc(var(--gutter) + 3.4rem);
  transform: rotate(-.6deg);
  background-image:
    linear-gradient(90deg, transparent calc(var(--gutter) + 2.6rem), color-mix(in srgb, var(--fg) 30%, transparent) 0 calc(var(--gutter) + 2.6rem + 1px), transparent 0),
    var(--tex-paper);
}
.js .case-index__list { display: grid; gap: 0; }
.js .case-index__link {
  display: flex; align-items: baseline; gap: var(--space-s);
  padding: .4rem 0 .2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  font-family: var(--font-loud); font-size: var(--step-2); line-height: 1.1;
}
.js .case-index__link:hover { text-decoration: line-through; text-decoration-thickness: 3px; }
.js .case-index__no { width: 2.6rem; flex: none; font-size: var(--step-0); color: inherit; }

.main {
  display: block;
  max-width: var(--page-max); margin-inline: auto;
  padding: 0 var(--gutter) var(--space-2xl);
}
.main:focus { outline: none; }
.main > * + * { margin-top: var(--space-xl); }
.page--index .main > * + * { margin-top: var(--space-2xl); }

.site-footer {
  position: relative;
  padding-block: var(--space-l);
  font-size: var(--step--1);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: var(--white); opacity: .8;
  -webkit-mask: var(--ink-rule) 0 0 / 100% 100% no-repeat; mask: var(--ink-rule) 0 0 / 100% 100% no-repeat;
}
.site-footer__inner {
  max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: var(--space-s);
}
.site-footer__name { font-family: var(--font-black); font-weight: 700; font-size: var(--step-2); line-height: 1; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .06em; }
.site-footer__links .ext--todo { color: var(--muted); }
.site-footer__fine { color: var(--muted); }

/* Page head: big exhibit title, photocopied */
.page-head { padding-top: var(--space-xl); }
.page-head::after { margin-top: var(--space-l); height: 9px; }
.page-head__title {
  margin-top: var(--space-s);
  font-family: var(--font-loud); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-5); line-height: .9; letter-spacing: -.005em;
  overflow-wrap: anywhere;
}
.page-head__lede { margin-top: var(--space-s); max-width: var(--measure); font-size: var(--step-1); }
.page-head > p:last-of-type:not(.page-head__lede) { margin-top: var(--space-m); }

/* Sheets: black card stock lying on the desk */
.sheet {
  position: relative;
  background: var(--card) var(--tex-card); background-size: var(--tex-size);
  padding: var(--space-l) var(--gutter);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), inset 0 0 60px rgba(0,0,0,.55), var(--shadow);
}
.sheet.on-paper {
  background:
    linear-gradient(to bottom, transparent calc(41% - 2px), rgba(60,45,20,.10) 41%, rgba(255,255,255,.35) calc(41% + 1px), transparent calc(41% + 4px)),
    linear-gradient(97deg, transparent calc(63% - 2px), rgba(60,45,20,.07) 63%, rgba(255,255,255,.25) calc(63% + 1px), transparent calc(63% + 3px)),
    var(--white) var(--tex-paper);
  background-size: auto, auto, var(--tex-size);
  box-shadow: inset 0 0 70px rgba(105,80,40,.22), var(--shadow);
}
.main > .sheet:nth-of-type(odd)  { transform: rotate(-.25deg); }
.main > .sheet:nth-of-type(even) { transform: rotate(.2deg); }
.sheet__head {
  display: grid; gap: var(--space-xs);
  margin-bottom: var(--space-l);
}
.sheet__head::after { grid-column: 1 / -1; margin-top: var(--space-xs); }
.sheet__head > .exhibit { justify-self: start; }
.sheet__title {
  font-family: var(--font-loud); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-4); line-height: .92;
}
/* the typed form block, top right, like a records office sheet */
.sheet__meta {
  display: grid; grid-template-columns: auto auto; gap: 0 var(--space-m);
  font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em;
  border-top: 3px solid var(--fg); padding-top: .3rem; align-self: end;
}
.sheet__meta div { display: contents; }
.sheet__meta dt { color: var(--muted); padding: .2rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.sheet__meta dd { padding: .2rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }

/* ==========================================================================
   INDEX: cover · profile · glass table · mission · case index folders
   ========================================================================== */
.cover {
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  padding-block: var(--space-xl);
}
.cover__paper { /* a black case-file folder on the desk */
  position: relative;
  width: min(100%, 58rem);
  padding: var(--space-xl) var(--gutter) var(--space-l);
  text-align: center;
  background: var(--card) var(--tex-card); background-size: var(--tex-size);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 80px rgba(0,0,0,.6), var(--shadow-lift);
  transform: rotate(-.8deg);
}
.cover__paper::before { /* folder tab */
  content: "SC\2013 01"; position: absolute; left: 2rem; bottom: 100%;
  padding: .35rem 1.4rem .15rem;
  background: inherit; border-radius: 6px 6px 0 0;
  font-family: var(--font-stamp); font-size: var(--step--1); letter-spacing: .14em; color: var(--ash);
}
.cover__meta {
  display: inline-block;
  padding: .4em 1em .25em;
  font-size: var(--step--1);
  color: var(--black);
  background: var(--white) var(--tex-paper); background-size: 500px;
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
  transform: rotate(1.2deg);
}
.cover__name {
  margin-block: var(--space-m) var(--space-s);
  font-family: var(--font-black); font-weight: 700;
  font-size: var(--step-5); line-height: .95;
  overflow-wrap: break-word;
}
.cover__typed { display: inline; }
.cover__role { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .3em; font-size: var(--step-0); }
.cover__actions { margin-top: var(--space-l); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-s); }
.stamp--confidential { position: absolute; right: var(--space-m); top: var(--space-m); font-size: var(--step--1); color: var(--white); }
.cover .stain { right: -3rem; bottom: -3.5rem; opacity: .35; mix-blend-mode: screen; filter: invert(1); }
.cover .note { left: 6%; bottom: 14%; }

.profile__grid { display: grid; gap: var(--space-l); position: relative; }
.mugshot { --r: -1.6deg; position: relative; justify-self: center; width: min(100%, 26rem); }
.mugshot__frame {
  position: relative;
  padding: 1rem 2.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 18px -10px rgba(0,0,0,.6);
  /* height-chart rulers on both sides */
  background-image:
    repeating-linear-gradient(to bottom, var(--fg) 0 2px, transparent 2px 1.25rem),
    repeating-linear-gradient(to bottom, var(--fg) 0 1px, transparent 1px .625rem),
    repeating-linear-gradient(to bottom, var(--fg) 0 2px, transparent 2px 1.25rem),
    repeating-linear-gradient(to bottom, var(--fg) 0 1px, transparent 1px .625rem),
    var(--tex-paper);
  background-size: 1.4rem 100%, .8rem 100%, 1.4rem 100%, .8rem 100%, var(--tex-size);
  background-position: left .3rem top 0, left .3rem top 0, right .3rem top 0, right .3rem top 0, 200px 300px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
}
.mugshot__frame img { width: 100%; filter: contrast(1.06) saturate(.92); }
.mugshot .caption { margin-top: var(--space-xs); text-align: center; }
.mugshot .note { right: -1.5rem; top: -2.6rem; transform: rotate(5deg); }

.profile__record { display: grid; gap: var(--space-l); align-content: start; }
.profile__bio { display: grid; gap: var(--space-s); max-width: var(--measure); }
.profile .stain { right: 4%; top: 2.5rem; }

/* Glass table: the confessional "lines" */
.glass { margin-top: var(--space-xl); }
.glass__surface {
  position: relative; overflow: hidden;
  padding: var(--space-l) var(--gutter);
  border-radius: 3px;
  background:
    linear-gradient(118deg, transparent 0 20%, rgba(255,255,255,.06) 20% 24%, transparent 24% 66%, rgba(255,255,255,.035) 66% 68%, transparent 68%),
    var(--tex-desk) #0b0b0b;
  background-size: auto, 700px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 9px rgba(255,255,255,.025), inset 0 0 60px rgba(0,0,0,.7), var(--shadow);
  color: var(--white);
  --fg: var(--white); --muted: var(--ash);
}
.glass__title { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: 1; }
.glass__intro { margin-top: var(--space-s); }
.glass__lines { margin-top: var(--space-l); display: grid; gap: var(--space-l); max-width: 46rem; }
.line { display: grid; gap: var(--space-2xs); }
.line::before { /* a line of powder */
  content: ""; height: 6px; width: min(20rem, 70%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 6%, #fff 45%, rgba(255,255,255,.85) 94%, transparent);
  border-radius: 50%;
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 40px; mask-size: 40px;
  filter: url(#rough-strong) blur(.3px);
}
.line:nth-child(2)::before { width: min(16rem, 60%); transform: rotate(-1deg); }
.line:nth-child(3)::before { width: min(22rem, 75%); transform: rotate(.8deg); }
.line__tag { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .14em; font-size: var(--step-1); }
.line__text { max-width: var(--measure); }
.glass .note { /* sits under the lines, never on top of them */
  position: relative; display: block; width: fit-content; margin: var(--space-m) 8% 0 auto; color: var(--white);
}

.glass__props { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-l); margin-top: var(--space-l); }
.baggie {
  position: relative; display: block;
  width: 7.5rem; height: 6rem;
  transform: rotate(8deg);
  border: 1px solid rgba(255,255,255,.45); border-radius: 3px;
  background:
    radial-gradient(ellipse 60% 35% at 50% 92%, rgba(255,255,255,.92), rgba(255,255,255,.55) 45%, transparent 72%),
    linear-gradient(160deg, rgba(255,255,255,.15), rgba(255,255,255,.03) 45%, rgba(255,255,255,.1));
}
.baggie::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; height: 4px; border-block: 1px solid rgba(255,255,255,.5); }
.baggie__label {
  position: absolute; left: .5rem; top: 1.3rem;
  padding: .1rem .35rem;
  background: var(--white) var(--tex-paper); background-size: 300px; color: var(--black);
  font-family: var(--font-stamp); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em;
  transform: rotate(-4deg);
}
.razor {
  display: block; width: 5rem; height: 1.6rem;
  transform: rotate(-24deg);
  border-radius: 2px;
  background: linear-gradient(180deg, #d6d6d6, #8d8d8d 45%, #c4c4c4 55%, #737373);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  -webkit-mask: radial-gradient(1.1rem .22rem at 50% 50%, transparent 98%, #000 100%);
  mask: radial-gradient(1.1rem .22rem at 50% 50%, transparent 98%, #000 100%);
}

.mission__statement {
  font-family: var(--font-loud); text-transform: uppercase;
  font-size: var(--step-4); line-height: .95;
  max-width: 18ch;
}
.mission__body { margin-top: var(--space-l); }

/* ==========================================================================
   PROJECTS: disc shelf + portable player
   ========================================================================== */
.deck { display: grid; gap: var(--space-xl); position: relative; }
.deck > .note { left: 7rem; top: -2.5rem; }
.shelf { display: grid; gap: var(--space-xl); overflow-x: clip; padding-block: .5rem; }
.shelf__label { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .12em; font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-m); }
.shelf__label::after { content: ""; display: block; height: 5px; margin-top: .3rem; background: currentColor; -webkit-mask: var(--ink-rule) 0 0 / 100% 100% no-repeat; mask: var(--ink-rule) 0 0 / 100% 100% no-repeat; }
.shelf__discs {
  display: grid; gap: var(--space-l) var(--space-xl);
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  padding-right: var(--space-l);
}
.disc {
  position: relative; isolation: isolate;
  display: grid; gap: .35rem; width: 100%;
  padding: 0; background: none; border: 0; text-align: left;
}
.shelf__discs > li:nth-child(odd) .disc { transform: rotate(-1.2deg); }
.shelf__discs > li:nth-child(even) .disc { transform: rotate(.9deg); }
.disc__case {
  position: relative; display: block;
  aspect-ratio: 135 / 190;
  background: #111 var(--tex-desk); background-size: 500px;
  border: 1px solid rgba(255,255,255,.22);
  border-left: 7px solid #232220;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease);
}
.disc__case img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.88); }
.disc__case::before { /* scuffed plastic sleeve */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--tex-desk); background-size: 420px; mix-blend-mode: screen; opacity: .55;
}
.disc__case--blank { display: grid; place-items: center; font-family: var(--font-black); font-weight: 700; font-size: var(--step-3); }
.disc__case::after { /* the disc, peeking out */
  content: ""; position: absolute; z-index: -1;
  width: 86%; aspect-ratio: 1; top: 50%; right: -18%;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 8%, #cfcfcf 8.5% 15%, #6d6d6d 15.5% 16.5%, transparent 17%),
    var(--noise),
    conic-gradient(from 30deg, #a9a9a9, #e2e2e2, #7b7b7b, #d2d2d2, #8e8e8e, #e6e6e6, #a9a9a9);
  -webkit-mask: radial-gradient(circle, transparent 0 8%, #000 8.5%); mask: radial-gradient(circle, transparent 0 8%, #000 8.5%);
  transition: right var(--dur) var(--ease), opacity var(--dur);
}
.disc:hover .disc__case::after, .disc:focus-visible .disc__case::after { right: -34%; }
.disc:hover .disc__case { transform: translateY(-3px); }
.disc[aria-pressed="true"] .disc__case::after { opacity: 0; }
.disc[aria-pressed="true"] .disc__case { outline: 2px dashed var(--fg); outline-offset: 4px; }
.disc__title { font-family: var(--font-loud); text-transform: uppercase; font-size: var(--step-1); line-height: 1.05; margin-top: .35rem; }
.disc__type { font-size: var(--step--1); color: var(--muted); }
.disc__type .todo { display: inline-block; margin-top: .25rem; }

/* the player: matte, scuffed black plastic */
.player {
  align-self: start;
  padding: .7rem .9rem 1rem;
  border-radius: 16px;
  background: #1a1a1a var(--tex-desk); background-size: 600px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 2px 0 rgba(255,255,255,.05), inset 0 -3px 0 rgba(0,0,0,.6), var(--shadow-lift);
}
.player__lid { display: flex; justify-content: flex-start; align-items: center; min-height: 2rem; padding-inline: .3rem; }
.player__brand { /* a typed sticker */
  padding: .2rem .6rem .05rem;
  background: var(--white) var(--tex-paper); background-size: 300px; color: var(--black);
  font-family: var(--font-stamp); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-1deg); box-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.player__body { background: #070707; border-radius: 10px; padding: var(--space-s); display: grid; gap: var(--space-l); box-shadow: inset 0 2px 8px rgba(0,0,0,.9); }
.player__status { font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .14em; color: var(--ash); display: flex; align-items: center; gap: .6em; }
.player__status::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--ash); }

.disc-panel { display: grid; gap: var(--space-m); }
.disc-panel + .disc-panel { padding-top: var(--space-l); border-top: 1px dashed rgba(255,255,255,.3); }
.disc-panel__media, .player .video {
  border: 8px solid #141414; border-radius: 4px;
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px rgba(255,255,255,.06);
  background: #000;
}
.disc-panel__media img { width: 100%; max-height: 32rem; object-fit: cover; filter: contrast(1.04) saturate(.9); }
.disc-panel__media--blank { aspect-ratio: 16 / 9; display: grid; place-items: center; font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .14em; color: var(--ash); }
.disc-panel__info { display: grid; gap: var(--space-s); align-content: start; }
.disc-panel__info > .label { margin-top: var(--space-xs); }
.disc-panel__title { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: 1; }
.disc-panel__meta { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .06em; font-size: var(--step--1); color: var(--muted); }
.tracks { counter-reset: t; display: grid; }
.tracks > li { counter-increment: t; display: flex; gap: var(--space-s); padding: .3rem 0; border-bottom: 1px dotted rgba(255,255,255,.3); }
.tracks > li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-stamp); color: var(--muted); }
.credits { display: grid; gap: .3rem; }

.player__controls { display: flex; justify-content: center; gap: var(--space-m); padding-top: var(--space-s); }
.player__btn {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: #202020 var(--tex-desk); background-size: 300px;
  border: 1px solid rgba(255,255,255,.12); color: var(--ash);
  font-size: 1.05rem; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 #050505;
}
.player__btn:hover { color: var(--white); }
.player__btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }

/* Video facade (shared by Projects + Gallery) */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.video__poster { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.85); }
.video__blank { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .2em; color: var(--ash);
  background: var(--card) var(--tex-card); background-size: 600px; }
.video__play {
  position: absolute; left: var(--space-s); bottom: var(--space-s);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .55em 1em .45em;
  background: var(--white) var(--tex-paper); background-size: 300px; color: var(--black); border: 0;
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--1);
  transform: rotate(-1deg); box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.video__play::before { content: ""; width: 0; height: 0; border-left: .7em solid currentColor; border-block: .42em solid transparent; }
.video__play:hover { transform: rotate(0) translateY(-1px); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   COLLABORATIONS
   ========================================================================== */
.page--collaborations .main > .sheet { margin-top: var(--space-xl); }
.sheet__title--loud { font-size: var(--step-5); }
.collab__grid { display: grid; gap: var(--space-xl); }
.collab__text { display: grid; gap: var(--space-m); align-content: start; }
.collab__text > .label { margin-top: var(--space-s); }
.collab__photos { display: flex; flex-wrap: wrap; gap: var(--space-l); justify-content: center; align-items: flex-start; }
.collab__photos .print { flex: 1 1 13rem; max-width: 20rem; }
.collab__photos .print--flyer { flex-basis: 16rem; max-width: 22rem; }

/* Print: a photo print, slightly yellowed, taped down */
.print {
  position: relative;
  padding: .55rem .55rem 2.4rem;
  box-shadow: inset 0 0 25px rgba(105,80,40,.18), var(--shadow);
}
.print:nth-child(odd)::before { left: 30%; transform: translateX(-50%) rotate(-6deg); }
.print:nth-child(3n)::before { left: 72%; transform: translateX(-50%) rotate(5deg); }
.print__link { display: block; position: relative; }
.print__link::after { /* print grain + slight fade */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise); mix-blend-mode: overlay; opacity: .5;
  box-shadow: inset 0 0 30px rgba(0,0,0,.25);
}
.print__link:focus-visible { outline-offset: -3px; }
.print img { width: 100%; filter: contrast(1.05) saturate(.88) sepia(.06); }
.print .caption, .print figcaption { position: absolute; left: .7rem; right: 4rem; bottom: .55rem; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.print__no {
  position: absolute; right: .55rem; bottom: .55rem;
  padding: .2rem .45rem .05rem;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-stamp); font-size: .75rem; letter-spacing: .06em;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); /* evidence marker */
  min-width: 2.8rem; text-align: center;
}

/* ==========================================================================
   SHOWS: ticket stubs
   ========================================================================== */
.shows-block { position: relative; }
.shows-block + .shows-block { margin-top: var(--space-xl); }
.stubs { display: grid; gap: var(--space-xl); }
.stubs__empty { max-width: var(--measure); }
.stub {
  position: relative;
  display: grid;
  box-shadow: inset 0 0 40px rgba(105,80,40,.2), var(--shadow);
  max-width: 60rem;
}
.stub__main { position: relative; padding: var(--space-m) var(--gutter); display: grid; gap: var(--space-2xs); align-content: start; }
.stub:not(.stub--upcoming) .stub__main::after { /* used ticket */
  content: "Used"; position: absolute; right: 8%; top: 24%;
  padding: .15em .5em .05em; border: 3px solid currentColor; border-radius: 4px;
  font-family: var(--font-stamp); font-size: var(--step-2); letter-spacing: .2em; text-transform: uppercase;
  transform: rotate(-14deg); opacity: .5;
  -webkit-mask-image: var(--wear-mask); mask-image: var(--wear-mask); -webkit-mask-size: 110px; mask-size: 110px;
}
.stub__presenter { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .12em; font-size: var(--step--1); }
.stub__title { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-4); line-height: .9; }
.stub__title--black { font-family: var(--font-black); font-weight: 700; text-transform: none; line-height: 1.05; }
.stub__sub { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .2em; }
.stub__details { display: grid; gap: 0; margin-top: var(--space-xs); border-top: 2px solid var(--fg); }
.stub__details > div { display: grid; grid-template-columns: 5rem 1fr; gap: var(--space-s); padding: .3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.stub__details dt { font-family: var(--font-stamp); text-transform: uppercase; font-size: var(--step--1); letter-spacing: .08em; color: var(--muted); padding-top: .15em; }
.stub__details dd { font-weight: 700; }
.stub__bill { margin-top: var(--space-xs); font-size: var(--step--1); }

.stub__tear {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-xs) var(--gutter);
  border-top: 2px dashed color-mix(in srgb, var(--fg) 70%, transparent);
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .2em; font-size: var(--step--1);
}
.stub__tear::before, .stub__tear::after { /* punched notches */
  content: ""; position: absolute; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--black) var(--tex-desk); top: calc(-.75rem - 1px);
}
.stub__tear::before { left: -.75rem; }
.stub__tear::after  { right: -.75rem; }
.stub__no { font-weight: 700; }

.stub__flyer { position: relative; display: block; overflow: hidden; background: var(--black); max-height: 22rem; }
.stub__flyer img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: contrast(1.04) saturate(.9); transition: transform .6s var(--ease); }
.stub__flyer:hover img { transform: scale(1.04); }
.stub__flyer-label {
  position: absolute; left: .6rem; bottom: .6rem;
  padding: .3em .7em .2em; background: var(--white) var(--tex-paper); background-size: 300px; color: var(--black);
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--1);
  transform: rotate(-1.5deg); box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.shows-block > .note { right: 4%; top: -1.9rem; }

/* ==========================================================================
   ASSOCIATES: index cards
   ========================================================================== */
.associates + .associates { margin-top: var(--space-xl); }
.cards { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card {
  --lh: 1.6rem;
  position: relative;
  display: grid; align-content: start; gap: 0;
  min-height: 13rem;
  padding: var(--space-s) var(--space-m) var(--space-m);
  line-height: var(--lh);
  box-shadow: inset 0 0 30px rgba(105,80,40,.18), var(--shadow);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), color-mix(in srgb, var(--fg) 15%, transparent) calc(var(--lh) - 1px) var(--lh)),
    var(--tex-paper);
  background-position: 0 calc(var(--space-s) + 3.4rem), 0 0;
  background-size: auto, var(--tex-size);
}
.cards > :nth-child(3n+2) { background-position: 0 calc(var(--space-s) + 3.4rem), 310px 140px; }
.cards > :nth-child(3n)   { background-position: 0 calc(var(--space-s) + 3.4rem), 620px 470px; }
.card__name {
  font-family: var(--font-stamp); font-weight: 400; text-transform: uppercase; letter-spacing: .06em;
  font-size: var(--step-1); line-height: 1.2;
  padding-bottom: .5rem; margin-bottom: .4rem;
  border-bottom: 3px double color-mix(in srgb, var(--fg) 85%, transparent);
  min-height: 3rem; display: flex; align-items: end;
}
.card__role { font-weight: 700; font-size: var(--step--1); }
.card__bio { font-size: var(--step--1); }
.card__link { margin-top: var(--space-xs); }

/* ==========================================================================
   GALLERY: prints on the table
   ========================================================================== */
.table {
  position: relative;
  display: grid; gap: var(--space-xl) var(--space-l);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  align-items: start;
  padding: var(--space-l) var(--space-2xs);
}
.table > .print:nth-child(3n+2) { margin-top: var(--space-l); }
.table-wrap { position: relative; }
.table-wrap > .note { right: 2%; top: -2.8rem; }
.video-grid { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.video-grid .caption { margin-top: var(--space-2xs); }

/* ==========================================================================
   WRITINGS: essays + lyric notebook
   ========================================================================== */
.essay-stack { display: grid; gap: var(--space-xl); }
.essay {
  position: relative;
  max-width: 48rem;
  padding: var(--space-l) var(--gutter);
  box-shadow: inset 0 0 50px rgba(105,80,40,.2), var(--shadow);
  display: grid; gap: var(--space-s);
}
.essay-stack > :nth-child(odd) { transform: rotate(-.6deg); }
.essay-stack > :nth-child(even) { transform: rotate(.5deg); margin-left: clamp(0rem, 4vw, 3rem); }
.essay {
  background-image: linear-gradient(to bottom, transparent calc(50% - 2px), rgba(60,45,20,.09) 50%, rgba(255,255,255,.3) calc(50% + 1px), transparent calc(50% + 4px)), var(--tex-paper);
  background-size: auto, var(--tex-size);
}
.essay { /* a second sheet peeking out underneath */
  box-shadow: inset 0 0 50px rgba(105,80,40,.2), 8px 9px 0 -1px #cbc2ad, 8px 9px 16px -4px rgba(0,0,0,.85), var(--shadow);
}
.essay__head { display: grid; gap: var(--space-2xs); padding-bottom: var(--space-s); border-bottom: 2px solid var(--fg); }
.essay__no, .essay__date { font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.essay__title { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); line-height: 1; }
.essay__full summary {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--1);
  padding: .5em 1em .4em; border: 2px solid var(--fg); list-style: none;
}
.essay__full summary::-webkit-details-marker { display: none; }
.essay__full summary::before { content: "+"; }
.essay__full[open] summary::before { content: "\2013"; }
.essay__body { margin-top: var(--space-m); display: grid; gap: var(--space-s); max-width: var(--measure); }
.essay .stain { right: -2rem; top: -2rem; }

.notebook { margin-top: var(--space-xl); }
.notebook__book { display: grid; gap: var(--space-xl); max-width: 50rem; margin-inline: auto; }
.leaf {
  --lh: 2.1rem;
  --margin: clamp(2rem, 8vw, 4.5rem);
  position: relative;
  padding: var(--lh) var(--space-m) var(--lh) calc(var(--margin) + var(--space-s));
  box-shadow: inset 0 0 60px rgba(105,80,40,.2), var(--shadow);
  line-height: var(--lh);
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin) - 1px), color-mix(in srgb, var(--fg) 40%, transparent) 0 calc(var(--margin) + 1px), transparent 0),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), color-mix(in srgb, var(--fg) 14%, transparent) calc(var(--lh) - 1px) var(--lh)),
    var(--tex-paper);
  background-size: auto, auto, var(--tex-size);
}
.leaf:nth-child(1) { transform: rotate(-.4deg); }
.leaf:nth-child(2) { transform: rotate(.5deg); }
.leaf::before { /* ring-binder holes, punched through to the desk */
  content: ""; position: absolute; left: calc(var(--margin) / 2 - .45rem); top: 0; bottom: 0; width: .9rem;
  background: radial-gradient(circle at 50% .45rem, #0b0b0b 0 .4rem, rgba(0,0,0,.25) .42rem, transparent .52rem) 0 1.4rem / .9rem 6rem repeat-y;
}
.leaf__title { font-family: var(--font-hand); font-weight: 400; font-size: var(--step-1); line-height: var(--lh); margin-bottom: var(--lh); }
.leaf__title .todo { font-size: var(--step-0); }
.lyric { font-family: var(--font-hand); font-size: clamp(.78rem, .72rem + .3vw, .95rem); color: #1a1816; }
.lyric p + p { margin-top: var(--lh); }
.lyric__hook { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .04em; font-size: var(--step-0); padding-left: var(--space-s); border-left: 3px solid var(--fg); }
.leaf .stain { right: -1.5rem; top: -1.5rem; }
.notebook__controls { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); max-width: 50rem; margin: var(--space-l) auto 0; flex-wrap: wrap; }
.notebook__count { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   COMMUNITY: notices pinned to the desk
   ========================================================================== */
.board {
  display: grid; gap: var(--space-xl) var(--space-l);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  padding: var(--space-l) var(--space-2xs);
}
.notice { position: relative; padding: var(--space-l) var(--space-m) var(--space-m); box-shadow: inset 0 0 40px rgba(105,80,40,.2), var(--shadow); display: grid; gap: var(--space-s); align-content: start; }
.notice::before { /* push pin */
  content: ""; position: absolute; top: .55rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0f0f0, #8a8a8a 45%, #262626 75%);
  box-shadow: 2px 4px 3px rgba(0,0,0,.45);
}
.notice__title { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-2); line-height: 1; padding-bottom: var(--space-2xs); border-bottom: 2px solid var(--fg); }
.notice__list { display: grid; gap: var(--space-2xs); }
.notice--donate .notice__title { font-size: var(--step-3); }
.clipping {
  display: grid; gap: var(--space-2xs); padding: var(--space-m) var(--space-s);
  background-color: var(--paper-dim); background-blend-mode: multiply;
  clip-path: var(--torn-a);
}
.clipping__head { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-1); line-height: 1.05; }
.clipping__date { font-size: var(--step--1); color: var(--muted); }

/* ==========================================================================
   MERCH: evidence bags
   ========================================================================== */
.bags { display: grid; gap: var(--space-xl) var(--space-l); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.bag {
  position: relative;
  padding: 3rem var(--space-s) var(--space-s);
  border-radius: 3px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 40%, rgba(255,255,255,.08)),
    rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.3), var(--shadow);
}
.bag::before { /* zip-lock */
  content: ""; position: absolute; left: 0; right: 0; top: .6rem; height: 5px;
  border-block: 1px solid rgba(255,255,255,.5);
}
.bag::after { /* printed header strip */
  content: "Evidence \00B7  Do not open"; position: absolute; left: var(--space-s); right: var(--space-s); top: 1.25rem;
  padding: .15rem .5rem .05rem;
  background: rgba(239,233,220,.9); color: var(--black);
  font-family: var(--font-loud); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem;
}
.bag__form { display: grid; gap: var(--space-s); }
.bag__window {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  border: 1px dashed rgba(255,255,255,.3);
  background: rgba(255,255,255,.025);
}
.bag__window img { width: 100%; height: 100%; object-fit: cover; }
.bag__empty { font-family: var(--font-pen); font-size: var(--step-2); line-height: 1; color: var(--ash); text-align: center; transform: rotate(-5deg); }
.bag__tag {
  position: relative;
  display: grid; gap: var(--space-2xs);
  padding: var(--space-s) var(--space-s) var(--space-s) 2.2rem;
  clip-path: polygon(1.2rem 0, 100% 0, 100% 100%, 1.2rem 100%, 0 50%);
  transform: rotate(-1.5deg);
}
.bag__tag::before { /* string hole */
  content: ""; position: absolute; left: .85rem; top: 50%; width: .55rem; height: .55rem; margin-top: -.275rem;
  border-radius: 50%; background: var(--black); box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}
.bag__no { font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.bag__name { font-family: var(--font-loud); font-weight: 400; text-transform: uppercase; font-size: var(--step-1); line-height: 1.05; }
.bag__price { font-weight: 700; font-size: var(--step-1); }
.bag__note { font-size: var(--step--1); min-height: 1lh; }
.bag__buy { justify-self: start; }

/* ==========================================================================
   FORMS (contact + merch)
   ========================================================================== */
.form { display: grid; gap: var(--space-m); }
.field { display: grid; gap: .3rem; }
.field--inline { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-s); }
.field-row { display: grid; gap: var(--space-m); }
.field__label { font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--1); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.75rem;
  padding: .5rem .1rem .35rem;
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--fg); border-radius: 0;
  font-family: var(--font-type); font-size: var(--step-0);
}
.field select { background: transparent; padding-inline: .2rem; }
.field select option { background: var(--black); color: var(--white); }
.bag__tag .field select option { background: var(--white); color: var(--black); }
.field textarea {
  --lh: 1.9rem;
  resize: vertical; border: 0; padding: 0 .2rem; line-height: var(--lh);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), color-mix(in srgb, var(--fg) 45%, transparent) calc(var(--lh) - 1px) var(--lh));
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.field [aria-invalid="true"] { border-bottom-style: dashed; }
.form__status { font-family: var(--font-stamp); min-height: 1lh; }

/* ==========================================================================
   EPK + CONTACT
   ========================================================================== */
.epk { display: grid; gap: var(--space-l); }
.epk__block { display: grid; gap: var(--space-s); align-content: start; }
.epk__block > .label:not(:first-child) { margin-top: var(--space-m); }
.press-photos { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.press-photos li { display: grid; gap: var(--space-2xs); align-content: start; font-size: var(--step--1); }
.press-photos img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; filter: contrast(1.04) saturate(.9); box-shadow: var(--shadow); }
.press-photos .text-link { font-size: .75rem; }
.rollcall--compact > div { padding: .15rem 0; }
.quote { border-left: 3px solid var(--fg); padding-left: var(--space-m); display: grid; gap: var(--space-2xs); }

.contact { display: grid; gap: var(--space-l); }
.contact__form-wrap > .label { margin-bottom: var(--space-m); }
.contact__side { display: grid; gap: var(--space-l); align-content: start; }
.contact__side .label { margin-bottom: var(--space-s); }

/* ==========================================================================
   LEADS: links that connect to another part of the case.
   Each carries a small tab with the file number it leads to (data-file).
   ========================================================================== */
a.lead {
  color: var(--lead-fg);
  background: var(--lead-bg);
  padding: .02em .25em;
  font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  border-radius: 1px;
  text-shadow: none;
}
a.lead::after { /* the tab */
  content: attr(data-file);
  display: inline-block;
  margin-left: .35em;
  padding: .22em .42em .08em;
  font-family: var(--font-stamp); font-size: .62em; font-weight: 400; font-style: normal;
  line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tab-fg); background: var(--tab-bg);
  border-radius: 3px 3px 0 0;
  vertical-align: .5em;
  transform: rotate(-4deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
a.lead:not([data-file])::after { content: "\2192"; }
a.lead:hover { text-decoration-thickness: 2px; }
a.lead:hover::after, a.lead:focus-visible::after { transform: rotate(0) translateY(-2px); }
a.lead.is-followed::after { content: "\2713\00a0" attr(data-file); opacity: .8; }
.stub__presenter a.lead, .rollcall a.lead { letter-spacing: inherit; }

/* ==========================================================================
   CASE INDEX CABINET: a file drawer seen from above
   ========================================================================== */
.options { position: relative; }
.cabinet {
  --step: 2.35rem;   /* how much of each file shows behind the one in front */
  --fh: 11rem;       /* file height */
  --front: 6rem;     /* drawer front height */
  position: relative;
  max-width: 56rem; margin: var(--space-xl) auto 0;
}
.cabinet > .note { right: 4%; top: -3.2rem; }
.cabinet__drawer {
  position: relative;
  padding: 2rem clamp(.6rem, 3.5vw, 2.2rem) 0;
  border: 14px solid #3c3b38; border-bottom: 0; border-radius: 6px 6px 0 0;
  border-top-color: #4a4945;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55), transparent 6%, transparent 94%, rgba(0,0,0,.55)),
    linear-gradient(#090909, #23221f 80%);
  box-shadow: inset 0 26px 34px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08), var(--shadow-lift);
}
.cabinet__drawer::before { /* the drawer's metal lip catching light */
  content: ""; position: absolute; left: -14px; right: -14px; top: -14px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.cabinet .cabinet__files {
  display: grid;
  padding-top: calc((var(--n) - 1) * var(--step));
  margin-bottom: calc(var(--front) * -1);
}
.cfile {
  --back: calc(var(--n) - 1 - var(--i));
  grid-area: 1 / 1;
  position: relative;
  z-index: calc(var(--i) + 1);
  transform: translateY(calc(var(--back) * var(--step) * -1)) scale(calc(1 - var(--back) * .018));
  transform-origin: 50% 0;
  transition: translate .4s var(--ease);
}
.cfile__folder {
  position: relative; display: block;
  height: var(--fh);
  text-decoration: none;
  background-color: var(--paper-dim); background-blend-mode: multiply;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 -8px 14px -8px rgba(0,0,0,.8);
}
.cfile:nth-child(odd) .cfile__folder { background-position: 300px 200px; }
.cfile__tab {
  position: absolute; bottom: calc(100% - 1px); left: 2%;
  min-width: 30%;
  padding: .45rem .8rem .2rem;
  background: inherit;
  border-radius: 6px 6px 0 0;
  font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.cfile--b .cfile__tab { left: 35%; }
.cfile--c .cfile__tab { left: auto; right: 2%; text-align: right; }
.cfile__no { font-weight: 700; margin-right: .3em; color: var(--red-ink); }
.cfile__face {
  display: grid; gap: .25rem; align-content: start;
  padding: calc(var(--step) + .1rem) 1.1rem 0;
}
.cfile__name { font-family: var(--font-loud); text-transform: uppercase; font-size: var(--step-3); line-height: .95; }
.cfile__note { font-size: var(--step--1); color: var(--muted); }
.cfile:not(:last-child) .cfile__face { opacity: 0; transition: opacity .25s; }
.cfile:hover, .cfile:focus-within { translate: 0 calc(var(--step) * -2.9); }
.cfile:hover .cfile__face, .cfile:focus-within .cfile__face { opacity: 1; }
.cfile__folder:focus-visible { outline: 3px solid var(--red-ink); outline-offset: -3px; }
.cabinet__front {
  position: relative; z-index: 50;
  height: var(--front);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  background: linear-gradient(#4a4945, #2f2e2b 18%, #2a2926), #2f2e2b;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.1), inset 0 -6px 12px rgba(0,0,0,.6), var(--shadow-lift);
}
.cabinet__label {
  padding: .3rem 1rem .15rem;
  background: var(--white) var(--tex-paper); background-size: 400px; color: var(--black);
  border: 3px solid #8b8a86; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3);
  font-family: var(--font-stamp); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .14em;
}
.cabinet__handle {
  width: min(10rem, 40%); height: 1.1rem;
  border-radius: 0 0 .7rem .7rem;
  background: linear-gradient(#c9c9c9, #7a7a7a 60%, #5a5a5a);
  box-shadow: 0 4px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6);
}
/* the drawer slides open when it scrolls into view (site.js adds .is-open) */
.js .cabinet:not(.is-open) .cfile { opacity: 0; }
.js .cabinet.is-open .cabinet__drawer { animation: drawer-open .8s var(--ease) backwards; }
.js .cabinet.is-open .cfile { animation: file-in .6s var(--ease) backwards; animation-delay: calc(.25s + var(--i) * 50ms); }
@keyframes drawer-open { from { clip-path: inset(88% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes file-in { from { translate: 0 4rem; opacity: 0; } }

/* ==========================================================================
   BAND FILES (band/*.html)
   ========================================================================== */
.bio__grid { display: grid; gap: var(--space-l); }
.bio__record { display: grid; gap: var(--space-l); align-content: start; }
.bio__block { display: grid; gap: var(--space-xs); }
.mugshot__empty {
  aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
  background: #111 var(--tex-desk); background-size: 500px;
  font-family: var(--font-pen); font-size: var(--step-2); line-height: 1.05; color: var(--ash);
}
.leaf__ref { margin: calc(var(--lh) * -1) 0 var(--lh); font-family: var(--font-type); font-size: var(--step--1); }
.file-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-s) var(--space-l);
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .06em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 48rem) { /* 768px */
  .site-header__file { display: block; }
  .profile__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .bio__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .sheet__head { grid-template-columns: 1fr auto; align-items: end; }
  .sheet__head > .exhibit { grid-column: 1 / -1; }
  .stub { grid-template-columns: minmax(0, 1fr) auto 12rem; }
  .stub__tear {
    flex-direction: column; justify-content: space-between;
    writing-mode: vertical-rl;
    padding: var(--space-m) var(--space-xs);
    border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--fg) 70%, transparent);
  }
  .stub__tear::before, .stub__tear::after { left: calc(-.75rem - 1px); right: auto; }
  .stub__tear::before { top: -.75rem; }
  .stub__tear::after  { top: auto; bottom: -.75rem; }
  .stub__flyer { max-height: none; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .table > .print--wide { grid-column: span 2; }
  .notice--donate { grid-column: span 2; }
  .collab__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .glass__props { position: absolute; right: var(--gutter); top: var(--space-l); margin: 0; }
  .glass__lines, .glass__intro, .glass__title { max-width: calc(100% - 13rem); }
}

@media (min-width: 64rem) { /* 1024px */
  .deck { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .player { position: sticky; top: calc(var(--header-h) + var(--space-m)); }
  .epk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epk__block:nth-child(2) { grid-row: span 2; }
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .collab__photos { justify-content: flex-start; }
}

@media (max-width: 47.99rem) {
  .note { font-size: var(--step-1); }
  .cabinet { --step: 2.15rem; --fh: 9.5rem; --front: 5rem; }
  .cfile__tab { font-size: .72rem; padding-inline: .55rem; }
  .cabinet > .note { display: none; }
  .is-book .leaf.is-under { transform: rotate(.4deg) translate(1px, 4px); }
  .stain { width: 8rem; height: 8rem; }
  .cover .stain, .essay .stain, .leaf .stain { right: -.75rem; }
  .cover .note { left: 1rem; bottom: .6rem; }
  .cover__paper { padding-bottom: var(--space-xl); }
  .mugshot .note { right: 0; }
  .deck > .note, .table-wrap > .note { display: none; }
}

/* ==========================================================================
   INTERACTIONS
   ========================================================================== */
html.is-locked { overflow: hidden; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Page change: looking down into a drawer of files. The files in front tip forward one
   after another until the chosen file is reached; it's lifted, and on the next page it's
   pulled up out of the drawer. The target folder (.flip__card) is in every page's markup and
   the head script adds .is-entering before first paint, so there's no flash between pages.
   The files in front (.flip__leaf) are added by site.js when a link is clicked. */
.flip { display: none; }
html.is-leaving .flip, html.is-entering .flip {
  --fw: min(28rem, 82vw);     /* folder width */
  --fh: min(13rem, 34vh);     /* folder height */
  --fs: 1.55rem;              /* how far each file in front sits below the one behind */
  display: grid; place-items: center; place-content: center;
  position: fixed; inset: 0; z-index: 990; pointer-events: none;
  padding-bottom: calc(var(--fs) * 4);
  overflow: hidden;
}
/* the drawer: dark interior, steel walls */
html.is-leaving .flip::before, html.is-entering .flip::before {
  content: ""; grid-area: 1 / 1; align-self: stretch; justify-self: center;
  width: calc(var(--fw) + 2.6rem);
  margin: -3.4rem 0 calc(var(--fs) * -4 - 1.4rem);
  border: 12px solid #3c3b38; border-top-color: #4a4945; border-bottom-width: 18px; border-bottom-color: #2b2a28;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.6), transparent 8%, transparent 92%, rgba(0,0,0,.6)),
    linear-gradient(#070707, #1f1e1b);
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.85), inset 0 10px 18px rgba(0,0,0,.8);
}
.flip__card, .flip__leaf {
  grid-area: 1 / 1; position: relative;
  width: var(--fw); min-height: var(--fh);
  border-radius: 2px 2px 3px 3px;
  color: var(--black);
}
/* the chosen file */
.flip__card {
  display: grid; justify-items: center; align-content: center; gap: var(--space-xs);
  padding: var(--space-m);
  text-align: center;
  background: linear-gradient(rgba(239,233,220,.45), rgba(239,233,220,.45)), var(--white) var(--tex-paper);
  background-size: auto, 420px; background-blend-mode: normal, multiply;
  box-shadow: 0 -1px 0 rgba(255,255,255,.4) inset, 0 -3px 8px rgba(0,0,0,.45);
  will-change: transform;
}
.flip__file { position: absolute; left: 1.2rem; bottom: 100%; margin-bottom: -1px; }
.flip__file::before {
  content: var(--flip-file, "File");
  display: block; padding: .38em .85em .22em;
  font-family: var(--font-stamp); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: var(--red); border-radius: 5px 5px 0 0;
}
.flip__title::before {
  content: var(--flip-title, "");
  font-family: var(--font-loud); font-size: var(--step-3); line-height: 1; text-transform: uppercase;
}
.flip__stamp {
  font-family: var(--font-stamp); font-size: var(--step--1); letter-spacing: .3em; text-transform: uppercase;
  color: var(--red-ink);
}
/* the files in front of it: --d = depth (1 = just in front of the target), --k = flip order */
.flip__leaf {
  z-index: calc(var(--d) + 1);
  align-self: stretch;
  translate: 0 calc(var(--d) * var(--fs));
  scale: calc(1 + var(--d) * .012);
  transform-origin: 50% 100%;
  background: var(--leaf, #e2dac8) var(--tex-paper); background-size: 420px; background-blend-mode: multiply;
  box-shadow: 0 -1px 0 rgba(255,255,255,.35) inset, 0 -4px 9px rgba(0,0,0,.5);
  backface-visibility: hidden;
}
.flip__leaf:nth-of-type(2n)   { --leaf: #d6cdb8; }
.flip__leaf:nth-of-type(3n)   { --leaf: #cbc1aa; }
.flip__leaf > span {
  position: absolute; bottom: 100%; left: var(--tab-x, 6%); margin-bottom: -1px;
  padding: .32em .75em .18em;
  font-family: var(--font-stamp); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--black); background: inherit; border-radius: 5px 5px 0 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,.3);
}
.flip__leaf:nth-of-type(3n+1) > span { --tab-x: 38%; }
.flip__leaf:nth-of-type(3n+2) > span { --tab-x: auto; right: 6%; }

/* leaving (~.5s): drawer slides up, front files tip forward one by one, the chosen one lifts */
html.is-leaving .flip       { animation: drawer-rise .16s ease-out both; }
html.is-leaving .flip__leaf { animation: leaf-tip .2s calc(.1s + var(--k) * 55ms) cubic-bezier(.55,0,.85,.45) both; }
html.is-leaving .flip__card { animation: card-lift .16s calc(.18s + var(--n, 4) * 55ms) cubic-bezier(.3,1.4,.5,1) both; }
html.is-leaving .main,
html.is-leaving .site-header { animation: page-dim .3s ease-out forwards; }
/* entering (~.4s): the lifted file is pulled up and out, the drawer drops away */
html.is-entering .flip__card { animation: card-out .3s .04s cubic-bezier(.5,0,.8,.5) both; }
html.is-entering .flip::before { animation: drawer-drop .3s .12s ease-in both; }
html.is-entering .main,
html.is-entering .site-header { animation: page-undim .4s .1s ease-out both; }

@keyframes drawer-rise { from { transform: translateY(6vh); opacity: 0; } }
@keyframes leaf-tip {
  0%   { transform: perspective(800px) rotateX(0); filter: brightness(1); }
  85%  { opacity: 1; }
  100% { transform: perspective(800px) rotateX(-96deg); filter: brightness(.45); opacity: 0; }
}
@keyframes card-lift { to { transform: translateY(-1.3rem) scale(1.03); box-shadow: 0 -3px 8px rgba(0,0,0,.45), 0 18px 30px -6px rgba(0,0,0,.7); } }
@keyframes card-out {
  from { transform: translateY(-1.3rem) scale(1.03); box-shadow: 0 18px 30px -6px rgba(0,0,0,.7); }
  to   { transform: translateY(-75vh) rotate(-4deg) scale(1.05); box-shadow: 0 40px 50px -6px rgba(0,0,0,.6); }
}
@keyframes drawer-drop { to { transform: translateY(40vh); opacity: 0; } }
@keyframes page-dim   { to   { filter: brightness(.5); transform: scale(.992); } }
@keyframes page-undim { from { filter: brightness(.5); transform: scale(.992); } }

/* the lead you clicked: its tab lifts as the file is pulled */
a.lead.is-pulled::after { transform: translateY(-5px) rotate(0) scale(1.15); }

/* Case index drops onto the desk */
.js .case-index.is-open { animation: fade-in .25s ease both; }
.js .case-index.is-open .case-index__sheet { animation: sheet-drop .45s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-drop { from { transform: translateY(-48px) rotate(-3deg); opacity: 0; } }

/* Cover: the name is typed, then the folder flips open */
.intro-pending .cover__typed { visibility: hidden; animation: show-late 0s 4s forwards; } /* failsafe if JS never runs */
@keyframes show-late { to { visibility: visible; } }
.cover__typed .key {
  display: inline-block;
  transform: translateX(var(--jx, 0)) rotate(var(--jr, 0));
  animation: strike .16s ease-out both;
}
@keyframes strike { from { opacity: 0; transform: translate(var(--jx, 0), -.14em) scale(1.3); } }
.is-typing .cover__typed::after {
  content: ""; display: inline-block; width: .055em; height: .72em; margin-left: .05em;
  background: currentColor; vertical-align: -.04em;
  animation: blink .9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.cover__paper.is-opening { transform-origin: 0 50%; animation: folder-open 1.1s cubic-bezier(.6,.04,.3,1) both; }
@keyframes folder-open {
  from { transform: perspective(1600px) rotate(-.8deg) rotateY(0); }
  to   { transform: perspective(1600px) rotate(-.8deg) rotateY(-100deg); opacity: 0; }
}
.profile.is-arriving { animation: sheet-arrive .85s var(--ease) both; }
@keyframes sheet-arrive { from { transform: translateY(48px) rotate(-2.5deg); opacity: 0; } }

/* Player: one disc at a time */
.player.is-enhanced .disc-panel + .disc-panel { border-top: 0; padding-top: 0; }
.player.is-enhanced .disc-panel:not([hidden]) { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.player__spinner { display: none; }
.player.is-loading .disc-panel, .player.is-loading .player__empty { display: none !important; }
.player.is-loading .player__spinner {
  display: block;
  width: min(60%, 15rem); aspect-ratio: 1; margin: var(--space-xl) auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 8%, #cfcfcf 8.5% 15%, #6d6d6d 15.5% 16.5%, transparent 17%),
    var(--noise),
    conic-gradient(from 30deg, #a9a9a9, #e2e2e2, #7b7b7b, #d2d2d2, #8e8e8e, #e6e6e6, #a9a9a9);
  -webkit-mask: radial-gradient(circle, transparent 0 8%, #000 8.5%); mask: radial-gradient(circle, transparent 0 8%, #000 8.5%);
  animation: disc-in .75s cubic-bezier(.3,.7,.3,1) both;
}
@keyframes disc-in {
  0%   { transform: translateX(-70%) rotate(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(0) rotate(1080deg); }
}
.player.is-loading .player__status::before { animation: blink .35s steps(1) infinite; }
.player__empty {
  padding: var(--space-xl) var(--space-s); text-align: center;
  font-family: var(--font-pen); font-size: var(--step-2); line-height: 1.1; color: var(--ash);
  transform: rotate(-3deg);
}

/* Video facade: no tape yet */
.video__msg {
  position: absolute; right: var(--space-s); top: var(--space-s);
  padding: .1em .55em;
  font-family: var(--font-pen); font-size: var(--step-1); color: var(--black);
  background: var(--tape) var(--tex-paper); background-size: 300px; background-blend-mode: multiply;
  transform: rotate(2deg); box-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* Notebook: a flip-book (2D on purpose: 3D on very tall pages can fail to paint) */
.notebook__book.is-book { display: grid; gap: 0; }
.notebook__book.is-book:focus-visible { outline: 3px solid var(--white); outline-offset: 10px; }
.is-book .leaf {
  grid-area: 1 / 1;
  transform-origin: 0 50%;
  transition: transform .75s cubic-bezier(.5,.05,.3,1), opacity .75s ease-in, visibility 0s linear .75s;
}
.is-book .leaf::after { /* shading as the page lifts */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.1) 55%, rgba(255,255,255,.15));
  opacity: 0; transition: opacity .75s;
}
.is-book .leaf.is-current { transform: none; opacity: 1; visibility: visible; transition: transform .75s cubic-bezier(.5,.05,.3,1), opacity .4s, visibility 0s; }
.is-book .leaf.is-under   { transform: rotate(.7deg) translate(5px, 5px); visibility: visible; transition: transform .75s cubic-bezier(.5,.05,.3,1), visibility 0s; }
.is-book .leaf.is-turned  { transform: scaleX(.03) skewY(-5deg); opacity: 0; visibility: hidden; box-shadow: none; }
.is-book .leaf.is-turned::after { opacity: 1; }
.is-book .leaf:nth-child(n+3).is-under { visibility: hidden; }

/* Lightbox: a print picked up off the table */
.lightbox {
  padding: 0; border: 0; background: transparent; color: var(--white);
  max-width: min(94vw, 72rem); max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 8, 7, .9); }
.lightbox__print {
  position: relative;
  padding: .7rem .7rem 3.2rem;
  background: var(--white) var(--tex-paper); background-size: var(--tex-size);
  box-shadow: var(--shadow-lift);
  transform: rotate(-.6deg);
}
.lightbox__img { width: auto; max-width: 100%; max-height: calc(94vh - 9rem); margin-inline: auto; filter: contrast(1.04) saturate(.92); }
.lightbox__caption {
  position: absolute; left: 1rem; right: 1rem; bottom: .7rem;
  font-family: var(--font-pen); font-size: var(--step-2); line-height: 1; color: var(--black);
}
.lightbox.is-shown .lightbox__print { animation: pick-up .35s var(--ease) both; }
@keyframes pick-up { from { transform: scale(.93) rotate(-3deg); opacity: 0; } }
.lightbox__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-s); margin-top: var(--space-s); }
.lightbox__btn {
  min-width: 2.75rem; min-height: 2.75rem; padding: .45em .9em .3em;
  background: var(--white) var(--tex-paper); background-size: 300px; color: var(--black);
  border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.6);
  font-family: var(--font-stamp); text-transform: uppercase; letter-spacing: .1em;
}
.lightbox__btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.lightbox__count { font-family: var(--font-stamp); letter-spacing: .12em; color: var(--ash); min-width: 4ch; text-align: center; }

/* ---------- MOTION SAFETY --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PRINT: tuned for the press kit (epk.html → "Print / save as PDF"),
   but any page prints as clean black-on-white text.
   ========================================================================== */
@page { margin: 16mm 14mm; }
@media print {
  :root { --fg: #000; --bg: #fff; --muted: #444; --lead-fg: #000; }
  *, *::before, *::after {
    color: #000 !important; background: transparent !important;
    box-shadow: none !important; text-shadow: none !important; filter: none !important;
    animation: none !important; transition: none !important;
  }
  html, body { background: #fff !important; font-size: 10.5pt; line-height: 1.45; }
  body::before, body::after { display: none !important; }

  /* screen-only furniture */
  .skip-link, .index-toggle, .case-index, .site-header__file, .flip, .no-print, .note, .stain,
  .svg-defs, .cover__skip, .player__controls, .video, .lightbox, .notebook__controls,
  .cabinet, .taped::before, .print::before, .clipped::after, [data-print] { display: none !important; }

  /* flatten the desk: no tilt, no masks, no paper edges */
  .main, .main > *, .sheet, [data-tilt], .press-photos > *, .cover, .cover__folder, .mugshot, .leaf, .card, .stub {
    transform: none !important; rotate: none !important; translate: none !important;
    clip-path: none !important; -webkit-mask: none !important; mask: none !important;
  }
  .site-header { position: static; padding: 0 0 4mm; border-bottom: 1.5pt solid #000; }
  .site-header::after, .page-head::after, .sheet__head::after { display: none !important; }
  .site-header__name { font-size: 18pt; }
  .main { padding: 0; max-width: none; }
  .main > * + * { margin-top: 6mm !important; }

  .page-head { padding: 6mm 0 2mm; }
  .page-head__title, .page-head h1 { font-size: 34pt; line-height: 1; }
  .exhibit, .label { border: 1pt solid #000; padding: .1em .45em; display: block; width: fit-content; }

  .sheet { padding: 0 !important; border: 0 !important; margin: 0 !important; break-inside: avoid; page-break-inside: avoid; }
  .sheet + .sheet { border-top: .75pt solid #999 !important; padding-top: 4mm !important; }
  .epk { display: block !important; }
  .epk > * + * { margin-top: 5mm !important; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }

  /* links: no red, no tabs; external addresses written out so the paper copy is usable */
  a, a.lead { text-decoration: none !important; font-weight: inherit; padding: 0; }
  a.lead::after { content: none !important; }
  a[href^="http"]:not(.ext--todo)::after { content: " (" attr(href) ")"; font-size: 8.5pt; word-break: break-all; }

  /* TODOs stay visible on drafts as boxed notes */
  .todo { border: 1pt dashed #000; padding: 0 .3em; font-family: var(--font-type); font-size: .9em; }

  /* press photos: small contact sheet */
  .press-photos { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 4mm !important; }
  .press-photos img { max-height: 55mm; object-fit: cover; }
  img { break-inside: avoid; max-width: 100% !important; }

  .rollcall a.lead { letter-spacing: normal; }
  .site-footer { border-top: 1pt solid #000; margin-top: 8mm; padding-top: 3mm; }
  .site-footer::before, .site-footer::after { display: none !important; }
}
