/* Glitchtelier lab.
   Layout: an artist's lab notebook that keeps crashing. Black, white and grey carry the whole page;
   only the images bring color. Type swings between Archivo at
   62 % width (heavy, condensed) and 125 % (light, expanded); decoder errors and torn bands are the
   ornament. Single dark look, by choice. */
:root {
  --bg: #0b0b0d;
  --panel: #151517;
  --raised: #222226;
  --line: #2d2d32;
  --paper: #f1f0ec;
  --muted: #98989e;
  --dim: #5d5d64;
  --accent: #f1f0ec;            /* no hue: the page is black and white, only the images carry color */
  --accent-a: rgba(241, 240, 236, .5);
  --accent-soft: rgba(241, 240, 236, .16);
  --ghost: rgba(241, 240, 236, .3);
  --paper-08: rgba(241, 240, 236, .08);
  --paper-16: rgba(241, 240, 236, .16);
  --paper-60: rgba(241, 240, 236, .6);
  --shade: rgba(8, 8, 10, .78);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --wrap: 100%;
  --gut: clamp(16px, 2.6vw, 44px);
  color-scheme: dark;
}

/* Base reset (the page carries its own; nothing is injected) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; overflow-x: clip; }
html, body { margin: 0; }
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.band { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.micro { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Atmosphere: scanlines over everything, and a tear that flashes across the screen now and then. */
.scanlines { position: fixed; inset: 0; z-index: 55; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .026) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.tear { position: fixed; left: 0; right: 0; top: 40%; height: 6px; z-index: 56; pointer-events: none; opacity: 0; background: linear-gradient(90deg, var(--paper) 0 22%, transparent 22% 34%, var(--muted) 34% 52%, transparent 52% 61%, var(--paper) 61% 100%); }
.tear.on { opacity: 1; }

/* Glitch events on headings */
@keyframes corrupt {
  0% { transform: translateX(0); clip-path: inset(0 0 0 0); }
  18% { transform: translateX(-.05em) skewX(-10deg); clip-path: inset(12% 0 52% 0); }
  36% { transform: translateX(.07em); clip-path: inset(46% 0 18% 0); }
  54% { transform: translateX(-.02em); clip-path: inset(0 0 66% 0); }
  72% { transform: translateX(.04em) skewX(6deg); clip-path: inset(28% 0 34% 0); }
  100% { transform: none; clip-path: inset(0 0 0 0); }
}
[data-glitch].corrupt { animation: corrupt .34s steps(1, end); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); text-decoration: none; font-weight: 500; font-size: .9375rem; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .12s; }
.btn:hover { border-color: var(--paper-16); background: #2b2b30; }
.btn:active { transform: translateY(1px); }
.btn.prominent { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.btn.prominent:hover { background: #fff; box-shadow: -3px 0 0 var(--paper-60), 3px 0 0 var(--ghost); }
.btn.ghost { background: rgba(11, 11, 13, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--paper-16); }
.btn .k { font-family: var(--mono); font-size: .75rem; opacity: .7; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[aria-pressed="true"] { background: var(--paper); color: var(--bg); border-color: var(--paper); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(11, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--paper-08); }
.nav-in { width: min(var(--wrap), 100%); margin-inline: auto; display: flex; align-items: center; gap: 28px; min-height: 58px; }
.brand { display: inline-flex; color: var(--paper); flex: none; }
.brand svg { width: clamp(150px, 17vw, 230px); height: auto; fill: currentColor; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:hover { color: var(--paper); text-shadow: -1px 0 var(--ghost), 1px 0 var(--paper-60); }
.nav-cta { min-height: 36px; padding: 6px 13px; font-size: .8125rem; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(600px, 90svh, 940px); overflow: hidden; isolation: isolate; background: #000; touch-action: pan-y; }
.hero-stage { position: absolute; inset: 0; }
.hero-still, #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero-canvas { opacity: 0; transition: opacity .3s; }
.hero.live #hero-canvas { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(11, 11, 13, .92) 0%, rgba(11, 11, 13, .45) 34%, transparent 62%), linear-gradient(to bottom, rgba(11, 11, 13, .5), transparent 22%); }
.hero-side { position: absolute; z-index: 3; right: max(14px, env(safe-area-inset-right, 0px)); top: 92px; margin: 0; writing-mode: vertical-rl; font-family: var(--mono); font-size: .625rem; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-60); }
.hero-side span { color: var(--accent); }

.readout { position: absolute; z-index: 3; top: 22px; left: max(16px, env(safe-area-inset-left, 0px)); width: min(300px, calc(100% - 64px)); padding: 12px 14px 14px; background: var(--shade); border: 1px solid var(--paper-16); border-radius: 4px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; color: var(--muted); }
.ro-top { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .16em; }
.ro-top b { color: var(--paper); font-weight: 600; }
.ro-name { margin: 8px 0 3px; font-family: var(--display); font-stretch: 62%; font-weight: 800; font-size: 1.75rem; line-height: .95; letter-spacing: .005em; text-transform: uppercase; color: var(--paper); }
.ro-meta { line-height: 1.5; }
.ro-bar { margin-top: 10px; height: 2px; background: var(--paper-16); overflow: hidden; }
.ro-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.ro-bar i.run { width: 100%; transition: width 4.2s linear; }

.err { position: absolute; z-index: 4; width: min(320px, calc(100% - 32px)); background: rgba(21, 21, 23, .94); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), -4px 0 0 var(--accent-a), 4px 0 0 var(--ghost); font-size: .8125rem; opacity: 0; transform: translateY(6px); transition: opacity .15s steps(2, end), transform .15s steps(2, end); pointer-events: none; }
.err.show { opacity: 1; transform: none; pointer-events: auto; }
.err-a { right: clamp(16px, 9vw, 160px); top: 31%; }
.err-b { left: 42%; top: 15%; width: 250px; transform: rotate(-2deg); }
.err-b.show { transform: rotate(-2deg); }
.err-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--paper-08); font-family: var(--mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.err-icon { width: 16px; height: 16px; border-radius: 3px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-family: var(--mono); font-size: .6875rem; }
.err-m { margin: 0; padding: 12px; font-family: var(--mono); font-size: .75rem; line-height: 1.5; color: var(--paper); }
.err-b .err-m { font-size: .6875rem; color: var(--muted); }
.err-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 0 12px 12px; }
.err button { border: 1px solid var(--line); background: var(--raised); border-radius: 5px; padding: 6px 14px; font-size: .75rem; cursor: pointer; min-height: 32px; }
.err button.keep { background: var(--paper); color: var(--bg); border-color: var(--paper); font-weight: 600; }

.hero-type { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-block: 0 clamp(20px, 3vw, 40px); }
.mega { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .12em; color: var(--paper); line-height: .8; }
.hero-eyebrow { margin: 0 0 clamp(10px, 1.4vw, 18px); display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); }
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.hero-eyebrow span { color: var(--accent); }
.m-keep { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(6.5rem, 27vw, 25rem); line-height: .74; letter-spacing: -.015em; text-transform: uppercase; text-shadow: -.025em 0 var(--accent-a), .025em 0 var(--ghost); }
.m-the { font-family: var(--mono); font-size: clamp(.75rem, 1.3vw, 1.1rem); letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); padding-bottom: .4em; }
.m-acc { flex-basis: 100%; margin-top: -.06em; font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(2.6rem, 10.2vw, 10rem); line-height: .92; letter-spacing: -.045em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; margin-top: clamp(16px, 2vw, 26px); }
.hero-lede { margin: 0; max-width: 54ch; color: var(--paper-60); font-size: clamp(.9375rem, 1.2vw, 1.0625rem); }
.hero-lede b { color: var(--paper); font-weight: 500; }
.hint { display: inline-block; margin-left: 4px; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .err-b { display: none; }
  .err-a { top: 27%; right: 16px; }
  .hero-side { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.mq { overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-block; white-space: nowrap; animation: mq 90s linear infinite; }
.mq-a { padding-block: 10px 4px; }
.mq-a span { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1; vertical-align: baseline; }
.mq-a .w1 { font-stretch: 62%; font-weight: 850; }
.mq-a .w2 { font-stretch: 125%; font-weight: 200; text-transform: none; }
.mq-a .w3 { font-family: var(--mono); font-size: clamp(.75rem, 1.2vw, 1rem); color: var(--muted); letter-spacing: .1em; }
.mq-a .dot { color: var(--accent); font-size: .8em; margin-inline: .5em; }
.mq-b { padding-block: 4px 10px; }
.mq-b .mq-track { animation-direction: reverse; animation-duration: 120s; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; color: var(--dim); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section heads: the crazy hierarchy ---------- */
.specimens, .types, .bench, .index-sec, .studio, .report, .access, .manifesto { padding-block: clamp(70px, 9vw, 140px); }
.sec-head, .wall-wrap, .type-grid, .exp, .index, .studio-grid, .report-in, .access-in, .mf-grid { width: min(var(--wrap), 100%); margin-inline: auto; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(30px, 4vw, 56px); }
.tag-line { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tag-line span:first-child { color: var(--accent); }
.big { margin: 0; line-height: .86; text-wrap: balance; }
.big .c { font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: clamp(3.6rem, 14vw, 13.5rem); text-transform: uppercase; letter-spacing: -.01em; text-shadow: -.02em 0 var(--accent-a), .02em 0 var(--ghost); }
.big .x { font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(1.5rem, 4.4vw, 4.4rem); letter-spacing: -.04em; line-height: 1; }
.sec-lede { margin: 0; max-width: 60ch; color: var(--muted); font-size: 1.0625rem; }
.hint-touch { display: none; }
@media (hover: none) { .hint-pointer { display: none; } .hint-touch { display: inline; } }

/* ---------- Manifesto ---------- */
.mf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px); align-items: start; }
.mf-year { grid-column: 1 / 10; grid-row: 1; margin: 0; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(7rem, 31vw, 30rem); line-height: .74; letter-spacing: -.03em; color: var(--accent); }
.mf-photo { grid-column: 9 / 13; grid-row: 1 / 3; margin: 4vw 0 0; transform: rotate(2.2deg); position: relative; z-index: 1; }
.mf-photo img { width: 100%; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.mf-photo figcaption { margin-top: 10px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }
.mf-text { grid-column: 1 / 8; grid-row: 2; margin-top: clamp(-90px, -4vw, -16px); display: grid; gap: 16px; font-size: clamp(1.0625rem, 1.45vw, 1.3rem); line-height: 1.5; max-width: 54ch; position: relative; z-index: 2; }
.mf-text h2 { margin: 0 0 6px; line-height: .88; }
.mf-text h2 .x { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(1.8rem, 4.2vw, 4rem); letter-spacing: -.045em; }
.mf-text h2 .c { display: block; font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: clamp(3rem, 8.4vw, 8rem); text-transform: uppercase; letter-spacing: -.01em; text-shadow: .04em 0 var(--accent-a); }
.mf-text p { margin: 0; color: var(--paper-60); }
.mf-text em { font-style: normal; color: var(--paper); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.sig { font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: 1.5rem; letter-spacing: -.03em; color: var(--paper) !important; }
.sig::before { content: "— "; color: var(--accent); }
.mf-nums { grid-column: 1 / 13; grid-row: 3; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px clamp(22px, 4vw, 64px); margin-top: clamp(56px, 7vw, 100px); padding-top: 26px; border-top: 1px solid var(--line); }
.num { display: grid; line-height: .8; }
.num b { display: block; white-space: nowrap; font-family: var(--display); font-stretch: 62%; font-weight: 850; letter-spacing: -.02em; font-size: clamp(3.4rem, 9vw, 8rem); font-variant-numeric: tabular-nums; }
.num > span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
/* Hierarchy: 78 instruments leads in size, 808 parameters answers in outline, 0 uploads is a footnote.
   Sizes deliberately jump (huge, medium, heavy, large, tiny) and the heights stagger. */
.n1 b { color: var(--accent); font-size: clamp(6rem, 19vw, 18rem); line-height: .76; }
.n1 > span { color: var(--paper); font-size: .8125rem; }
.n2 { align-self: flex-start; }
.n2 > span { order: -1; margin: 0 0 10px; }
.n2 b { font-stretch: 125%; font-weight: 200; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.n3 { transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: -.4rem; }
.n3 b { font-weight: 900; font-size: clamp(3.4rem, 8.4vw, 7.6rem); }
.n4 b { color: transparent; -webkit-text-stroke: 1.5px var(--paper); font-size: clamp(4.6rem, 14vw, 13rem); }
.n5 { align-self: flex-start; margin-left: auto; }
.n5 b { color: var(--dim); font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.num b .tv { display: inline-block; white-space: nowrap; transform-origin: left center; }
/* Tally: digits scramble and the number tears while it counts, then snaps into place. */
@keyframes tally {
  0% { transform: translateX(0); clip-path: inset(0 0 0 0); }
  25% { transform: translateX(-.04em); clip-path: inset(0 0 38% 0); }
  50% { transform: translateX(.06em) skewX(-7deg); clip-path: inset(22% 0 0 0); }
  75% { transform: translateX(-.02em); clip-path: inset(8% 0 18% 0); }
}
.num b.counting { animation: tally .18s steps(1, end) infinite; }
.num b.settle { animation: corrupt .34s steps(1, end); }
@media (max-width: 760px) {
  .mf-year { grid-column: 1 / 13; }
  .mf-photo { grid-column: 3 / 11; grid-row: 2; margin-top: 18px; }
  .mf-text { grid-column: 1 / 13; grid-row: 3; margin-top: 34px; }
  .mf-nums { grid-row: 4; }
  .n1 { flex-basis: 100%; }
}

/* ---------- Open lab ---------- */
.openlab { padding-block: clamp(70px, 9vw, 140px); border-top: 1px solid var(--line); }
.ol-in { width: min(var(--wrap), 100%); margin-inline: auto; display: grid; gap: 22px; }
.openlab .sec-lede b { color: var(--accent); font-weight: 500; }

/* ---------- Specimen wall ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.filters button:hover { color: var(--paper); border-color: var(--paper-16); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.wall-wrap { container-type: inline-size; }
.wall { --cols: 12; --g: 8px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--g); grid-auto-flow: dense; grid-auto-rows: 120px; grid-auto-rows: calc(((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols) * 3 + 2 * var(--g)) / 3 - var(--g) / 2); }
.tile { position: relative; margin: 0; overflow: hidden; background: var(--panel); grid-column: span 3; grid-row: span 2; --src: none; }
.z-m { grid-column: span 6; grid-row: span 3; }
.z-l { grid-column: span 6; grid-row: span 4; }
.z-xl { grid-column: span 9; grid-row: span 6; }
.z-tall { grid-column: span 3; grid-row: span 4; }
.z-wide { grid-column: span 6; grid-row: span 2; }
@media (max-width: 720px) {
  .wall { --cols: 6; --g: 6px; }
  .z-s { grid-column: span 3; grid-row: span 2; }
  .z-m { grid-column: span 6; grid-row: span 3; }
  .z-l, .z-xl { grid-column: span 6; grid-row: span 4; }
  .z-wide { grid-column: span 6; grid-row: span 2; }
}
.tile-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile-btn img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.tile::before, .tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--src) center / cover no-repeat; opacity: 0; }
.tile:hover::before { opacity: 1; animation: band-a .8s steps(1, end) infinite; }
.tile:hover::after { opacity: .55; mix-blend-mode: difference; animation: band-b .65s steps(1, end) infinite; }
@keyframes band-a { 0% { clip-path: inset(12% 0 71% 0); transform: translateX(-5%); } 25% { clip-path: inset(56% 0 31% 0); transform: translateX(4%); } 50% { clip-path: inset(31% 0 61% 0); transform: translateX(-2%); } 75% { clip-path: inset(81% 0 6% 0); transform: translateX(6%); } }
@keyframes band-b { 0% { clip-path: inset(40% 0 52% 0); transform: translateX(1.2%); } 33% { clip-path: inset(8% 0 86% 0); transform: translateX(-1.6%); } 66% { clip-path: inset(66% 0 20% 0); transform: translateX(.8%); } }
.tile .t-no { position: absolute; z-index: 2; top: 6px; left: 6px; font-family: var(--mono); font-size: .5625rem; letter-spacing: .12em; padding: 2px 5px; background: var(--shade); color: var(--paper-60); pointer-events: none; }
.tile figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; display: grid; gap: 2px; background: linear-gradient(transparent, rgba(8, 8, 10, .9)); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }
.t-name { font-family: var(--display); font-stretch: 62%; font-weight: 800; font-size: clamp(1.1rem, 2.2cqw, 1.9rem); text-transform: uppercase; line-height: .95; }
.t-meta { font-family: var(--mono); font-size: .625rem; letter-spacing: .04em; color: var(--paper-60); }
.tile figcaption .t-no { display: none; }
@media (hover: none) { .tile figcaption { opacity: 1; transform: none; padding-top: 18px; } .t-meta { display: none; } }

/* ---------- Types ---------- */
.type-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.type { position: relative; margin: 0; background: #000; border: 1px solid var(--line); overflow: hidden; }
.type img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.type-grid { align-items: start; }
.t-hex { grid-column: 1 / 8; } .t-braille { grid-column: 8 / 13; margin-top: 70px; } .t-ascii { grid-column: 1 / 6; } .t-binary { grid-column: 6 / 13; margin-top: -40px; }
.type figcaption { display: grid; gap: 6px; padding: 0 14px 14px; background: var(--bg); }
.type figcaption b { margin-top: -.42em; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5.8rem); line-height: .8; text-transform: uppercase; color: var(--paper); text-shadow: -.03em 0 var(--accent-a), .03em 0 var(--ghost); position: relative; }
.type figcaption span { font-size: .875rem; color: var(--paper-60); max-width: 46ch; }
.type code { font-family: var(--mono); color: var(--accent); }
@media (max-width: 760px) { .t-hex, .t-braille, .t-ascii, .t-binary { grid-column: 1 / 13; margin-top: 0; } }

/* ---------- Bench ---------- */
.exp { border-top: 1px solid var(--line); padding-top: clamp(26px, 3vw, 40px); margin-bottom: clamp(56px, 7vw, 100px); }
.exp-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; margin-bottom: 26px; }
.exp-no { grid-row: span 2; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(3rem, 7vw, 6rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.2px var(--paper-60); text-transform: uppercase; }
.exp-head h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -.04em; line-height: 1; }
.exp-head h3 span { display: block; margin-top: 6px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-stretch: 100%; }
.exp-head p { margin: 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 560px) { .exp-head { grid-template-columns: minmax(0, 1fr); } .exp-no { grid-row: auto; } }
.bend-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); gap: 16px; align-items: start; }
.bend-view { display: grid; gap: 12px; min-width: 0; }
.bend-stage { position: relative; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: #000; border: 1px solid var(--line); }
.bend-stage img, .bend-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bend-stage canvas { opacity: 0; transition: opacity .2s; }
.bend-stage.ready canvas { opacity: 1; }
.chip-tag { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 7px; background: var(--shade); font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); pointer-events: none; }
.chip-tag.r { left: auto; right: 10px; }
.bend-status { margin: 0; font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; color: var(--muted); line-height: 1.7; min-height: 2.4em; }
.bend-status b { color: var(--paper); font-weight: 500; }
.ledger { border: 1px solid var(--line); background: var(--panel); padding: 12px 14px 14px; }
.ledger-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ledger-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 24px; font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; }
.ledger-rows div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--paper-08); color: var(--muted); }
.ledger-rows .chg { color: var(--paper); }
.ledger-rows .chg i { font-style: normal; color: var(--dim); }
.ledger-rows .chg em { font-style: normal; color: var(--accent); }
.inspector { background: var(--panel); border: 1px solid var(--line); }
.insp-body { padding: 16px; display: grid; gap: 18px; }
.ctrl { display: grid; gap: 8px; }
.ctrl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8125rem; }
.ctrl-top label, .ctrl-top .lbl { font-weight: 500; }
.ctrl-top output { font-family: var(--mono); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hint-s { font-size: .75rem; color: var(--dim); line-height: 1.45; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.seg button { border: 0; background: transparent; border-radius: 4px; padding: 7px 4px; font-size: .75rem; color: var(--muted); cursor: pointer; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--bg); font-weight: 500; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --fill: 50%; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--paper-60) var(--fill), var(--raised) var(--fill)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--paper); box-shadow: -2px 0 0 var(--accent-a), 2px 0 0 var(--ghost); }
.slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--raised); }
.slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--paper-60); }
.slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--paper); }
.seed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.field { width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); font-family: var(--mono); font-size: .8125rem; }
.insp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--paper-08); }
.insp-actions .btn { min-height: 40px; font-size: .8125rem; padding: 8px 10px; }
@media (max-width: 900px) { .bend-grid { grid-template-columns: minmax(0, 1fr); } }
.scan { margin: 0; max-width: 900px; background: var(--panel); border: 1px solid var(--line); }
.scan canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; max-width: 100%; background: #000; }
.scan-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.scan-bar .btn { min-height: 36px; padding: 6px 12px; font-size: .8125rem; }

/* ---------- Index ---------- */
.index { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ix-group { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 28px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.ix-coll { margin: 0; display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .6em; }
.ix-coll span { color: var(--accent); }
.ix-items { margin: 0; line-height: 1.02; }
/* One style for every name (light, expanded, like the wordmark); pointing at one dims the rest. */
.ix { border: 0; background: none; padding: 0; cursor: crosshair; font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(1.5rem, 3.4vw, 3rem); letter-spacing: -.04em; color: var(--paper); text-align: left; transition: color .1s; }
.index:has(.ix:hover, .ix:focus-visible, .ix.on) .ix:not(:hover, :focus-visible, .on) { color: var(--dim); }
.ix:hover, .ix:focus-visible, .ix.on { color: var(--accent); -webkit-text-stroke: 0; text-shadow: -.04em 0 var(--accent-a), .04em 0 var(--ghost); }
.ix sup { font-family: var(--mono); font-size: .5625rem; letter-spacing: .1em; font-weight: 500; font-stretch: 100%; text-transform: uppercase; color: var(--muted); vertical-align: super; margin-left: .3em; -webkit-text-stroke: 0; text-shadow: none; white-space: nowrap; }
.sep { font-style: normal; color: var(--dim); font-family: var(--display); font-weight: 200; font-size: clamp(1.4rem, 3.4vw, 3rem); }
@media (max-width: 640px) { .ix-group { grid-template-columns: minmax(0, 1fr); } }
.peek { position: fixed; z-index: 80; left: 0; top: 0; width: min(320px, 70vw); pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--panel); border: 1px solid var(--paper-16); box-shadow: 0 20px 60px rgba(0, 0, 0, .6), -4px 0 0 var(--accent-a), 4px 0 0 var(--ghost); }
.peek.show { opacity: 1; }
.peek img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #000; }
.peek span { display: block; padding: 8px 10px; font-family: var(--mono); font-size: .6875rem; color: var(--paper-60); line-height: 1.4; }

/* ---------- Studio ---------- */
.studio { background: var(--panel); border-block: 1px solid var(--line); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.protocol { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; }
.protocol li { counter-increment: p; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.protocol li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--paper-60); }
.protocol b { font-family: var(--display); font-stretch: 125%; font-weight: 400; font-size: 1.25rem; letter-spacing: -.03em; }
.protocol span { color: var(--muted); font-size: .9375rem; }
.collage { position: relative; aspect-ratio: 7 / 6; max-width: 100%; }
.sh { position: absolute; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); background: #000; }
.sh-mac { left: 0; top: 4%; width: 86%; transform: rotate(-1.6deg); z-index: 1; }
.sh-explore { right: 0; top: 44%; width: 62%; transform: rotate(2.2deg); z-index: 2; filter: saturate(1.1); }
/* The Mac captures are real windows with rounded corners on white; clip just inside the window's own radius (about 34 px of 1800 × 1125) so no white shows and it scales with the image. */
.sh-mac, .sh-explore { border-radius: 1.9% / 3%; }
.sh-phone { left: 6%; bottom: 0; width: 22%; border-radius: 18px; transform: rotate(3deg); z-index: 3; }
.sh-phone2 { left: 30%; bottom: 6%; width: 19%; border-radius: 16px; transform: rotate(-4deg); z-index: 3; }
.note { position: absolute; z-index: 4; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; padding: 5px 8px; background: var(--paper); color: var(--bg); max-width: 26ch; line-height: 1.4; }
.note-a { left: 52%; top: 0; transform: rotate(1.5deg); }
.note-b { right: 4%; bottom: 2%; transform: rotate(-2deg); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } .collage { aspect-ratio: 1 / 1; } }

/* ---------- Report ---------- */
.report-in { display: grid; gap: 28px; }
.log { margin: 0; overflow-x: auto; padding: clamp(18px, 3vw, 30px); background: #000; border: 1px solid var(--line); font-family: var(--mono); font-size: clamp(.75rem, 1.1vw, .9375rem); line-height: 1.9; color: var(--paper); }
.log .k { color: var(--muted); }
.log .ok { color: var(--accent); }

/* ---------- Access ---------- */
.access-in { display: grid; gap: 30px; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 150px; max-width: 760px; background: var(--paper); color: var(--bg); transform: rotate(-1deg); box-shadow: 12px 12px 0 var(--dim), 0 30px 80px rgba(0, 0, 0, .5); }
.t-main { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.t-name { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 400; font-size: 1.4rem; letter-spacing: -.03em; }
.t-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.t-price b { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(4rem, 10vw, 7rem); line-height: .8; letter-spacing: -.02em; }
.t-price span { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.ticket ul { margin: 0; padding: 0; list-style: none; display: grid; }
.ticket li { padding: 7px 0; border-top: 1px solid rgba(11, 11, 13, .14); font-size: .9375rem; }
.ticket li::before { content: "+ "; font-family: var(--mono); color: var(--dim); }
.ticket .btn.prominent { background: var(--bg); color: var(--paper); border-color: var(--bg); justify-self: start; }
.status { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border: 1px solid rgba(11, 11, 13, .25); border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.pill.warm::before { background: var(--bg); }
.t-stub { border-left: 2px dashed rgba(11, 11, 13, .35); padding: 22px 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
.barcode { flex: 1; width: 46px; min-height: 120px; background: repeating-linear-gradient(to bottom, var(--bg) 0 2px, transparent 2px 4px, var(--bg) 4px 7px, transparent 7px 8px, var(--bg) 8px 9px, transparent 9px 12px); }
@media (max-width: 560px) { .ticket { grid-template-columns: minmax(0, 1fr); transform: none; } .t-stub { writing-mode: horizontal-tb; flex-direction: row; border-left: 0; border-top: 2px dashed rgba(11, 11, 13, .35); } .barcode { min-height: 36px; height: 36px; width: auto; background: repeating-linear-gradient(to right, var(--bg) 0 2px, transparent 2px 4px, var(--bg) 4px 7px, transparent 7px 8px); } }

/* ---------- Footer ---------- */
.foot-sig { padding-block: clamp(50px, 7vw, 100px) 30px; }
.foot-sig p { width: min(var(--wrap), 100%); margin: 0 auto; font-family: var(--display); font-stretch: 125%; font-weight: 200; font-size: clamp(1.8rem, 5vw, 4.6rem); letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.foot-sig a { text-decoration: none; font-stretch: 62%; font-weight: 850; text-transform: uppercase; letter-spacing: 0; text-shadow: -.03em 0 var(--accent-a), .03em 0 var(--ghost); }
.statusbar { border-top: 1px solid var(--line); background: var(--panel); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.sb-in { width: min(var(--wrap), 100%); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; color: var(--muted); }
.sb-in > :last-child { justify-self: end; }
.sb-in b { color: var(--accent); font-weight: 500; }
@media (max-width: 640px) { .sb-in { grid-template-columns: minmax(0, 1fr); } .sb-in > :last-child { justify-self: start; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 6, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb-in { width: min(1200px, 100%); display: grid; gap: 12px; }
.lb-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.lb-name { margin: 0; font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .9; text-transform: uppercase; }
.lb-meta { margin: 6px 0 0; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.lb-nav { display: flex; gap: 6px; }
.lb-stage { position: relative; width: 100%; max-height: 74vh; aspect-ratio: 3 / 2; margin-inline: auto; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --split: 50%; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lb-stage .after { clip-path: inset(0 0 0 var(--split)); }
.lb-stage .divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--paper); pointer-events: none; }
.lb-stage .handle { position: absolute; top: 50%; left: var(--split); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--paper); color: var(--bg); display: grid; place-items: center; box-shadow: -3px 0 0 var(--paper-60), 3px 0 0 var(--ghost); }
.lb-stage .handle svg { width: 18px; height: 18px; }
.lb-stage.single { cursor: default; }
.lb-stage.single .after { clip-path: none; }
.lb-stage.single #lb-orig, .lb-stage.single .divider, .lb-stage.single .handle, .lb-stage.single .chip-tag { display: none; }
.lb-sum { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Break the grid ----------
   Use the full width, push some things to enormous, and let them slip off the grid like torn bands. */
:root { --bleed-l: calc(-1 * max(var(--gut), env(safe-area-inset-left, 0px))); --bleed-r: calc(-1 * max(var(--gut), env(safe-area-inset-right, 0px))); }
.big .c { display: block; font-size: clamp(4.4rem, 20vw, 26rem); line-height: .8; }
.big .x { display: block; font-size: clamp(1.8rem, 5.4vw, 6.6rem); }
.big.inline .c, .big.inline .x { display: inline; }
.big .xxl { font-size: clamp(6rem, 31vw, 36rem); line-height: .76; }
.big .bl { margin-left: -.045em; }
.big .br { text-align: right; margin-right: -.03em; }
.big .o1 { margin-left: 9vw; } .big .o2 { margin-left: 24vw; } .big .o3 { margin-left: 42vw; }
/* A torn label strip that cuts across the heavy word above it. */
.big .strip { display: table; position: relative; z-index: 1; margin-top: -.55em; padding: .05em .28em .14em; background: var(--bg); }
.studio .big .strip { background: var(--panel); }
.sec-lede.push { margin-left: auto; max-width: 48ch; }
/* Keep heading tracks at the container width so a long word bleeds instead of widening the section. */
.sec-head { grid-template-columns: minmax(0, 1fr); }
.sec-head > * { min-width: 0; }
#ix-title .c { font-size: clamp(3.6rem, 17.6vw, 22rem); }
@media (max-width: 760px) { .big .o1 { margin-left: 3vw; } .big .o2 { margin-left: 8vw; } .big .o3 { margin-left: 14vw; } }

/* Hero: KEEP fills the width, "accident." slips to the right. */
.hero { height: clamp(660px, 96svh, 1080px); }
.m-keep { font-size: clamp(7rem, 33vw, 38rem); margin-left: -.045em; }
.m-acc { margin-left: 17vw; font-size: clamp(3rem, 12.4vw, 14rem); }

/* The marquee crosses the page at an angle. */
.marquee { position: relative; z-index: 5; transform: rotate(-1.4deg); margin: -1.6vw -3vw 0; }
.mq-a span { font-size: clamp(2.4rem, 6.6vw, 7rem); }

/* Manifesto: 2009 across the whole width, the portrait pinned over it. */
.mf-year { grid-column: 1 / 13; font-size: clamp(9rem, 45vw, 52rem); margin-left: -.06em; }
/* 2009 as a quiet grey outline behind the manifesto. */
.mf-year { color: transparent; -webkit-text-stroke: max(1px, .0035em) var(--ghost); letter-spacing: 0; }
.mf-photo { grid-column: 8 / 12; margin-top: 15vw; transform: rotate(3deg); z-index: 3; }
.n1 b { font-size: clamp(7rem, 27vw, 30rem); }
.n4 b { font-size: clamp(5rem, 17vw, 18rem); }
@media (max-width: 760px) { .mf-photo { grid-column: 2 / 12; margin-top: 18px; } }

/* Specimens run edge to edge; a few prints slipped out of place. */
.specimens .wall-wrap { margin-left: var(--bleed-l); margin-right: var(--bleed-r); width: auto; }
.tile.rogue { z-index: 3; transform: translate(var(--rx, 4%), var(--ry, -8%)) rotate(var(--rr, -1.5deg)); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); outline: 1px solid var(--paper-16); }
@media (max-width: 720px) { .tile.rogue { transform: none; } }

/* Types: Hex as a full-bleed band, the others overlapping it. */
.t-hex { grid-column: 1 / -1; margin-left: var(--bleed-l); margin-right: var(--bleed-r); border-inline: 0; }
.t-hex img { aspect-ratio: 1600 / 560; }
.t-ascii { grid-column: 1 / 5; grid-row: 2; margin-top: 3vw; }
.t-binary { grid-column: 5 / 9; grid-row: 2; margin-top: 11vw; transform: rotate(1.2deg); }
.t-braille { grid-column: 9 / 13; grid-row: 2; margin-top: -7vw; z-index: 2; transform: rotate(-1.5deg); }
@media (max-width: 760px) { .t-braille, .t-ascii, .t-binary { grid-column: 1 / 13; grid-row: auto; margin-top: 0; transform: none; } }

/* Bench: the image bleeds left, the inspector overlaps it. */
.bend-stage { margin-left: var(--bleed-l); }
@media (min-width: 901px) { .inspector { position: relative; z-index: 2; margin: 70px 0 0 -90px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); } }
.scan { max-width: none; width: min(100%, 1180px); margin-left: auto; }

/* Index: big names (sized for the light, expanded cut so the list keeps its former length), narrower labels. */
.ix { font-size: clamp(1.85rem, 5.5vw, 5.9rem); }
.sep { font-size: clamp(1.6rem, 4.6vw, 4.8rem); }
.ix-group { grid-template-columns: 120px minmax(0, 1fr); }
@media (max-width: 640px) { .ix-group { grid-template-columns: minmax(0, 1fr); } }

/* Studio: the collage bleeds off the right edge. */
.studio-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.collage { margin-right: var(--bleed-r); aspect-ratio: 6 / 5; }
@media (max-width: 900px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } .collage { aspect-ratio: 1 / 1; } }

/* Access: the ticket slips over its title. */
.ticket { justify-self: end; margin: -8vw 5vw 0 0; transform: rotate(-2.4deg); position: relative; z-index: 2; }
@media (max-width: 760px) { .ticket { margin: 0; justify-self: stretch; transform: none; } }

.foot-sig p { font-size: clamp(2rem, 6.6vw, 7rem); }

/* ---------- Intro: the hero opens through the Glitchtelier mark ----------
   The mark is drawn unchanged as a stencil on a canvas (see site.js); its bars tear sideways
   to reveal the live specimen. Once per visit (?intro replays it), skipped by any input or reduced motion. */
.intro { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; pointer-events: none; }
.hero-type, .readout, .hero-side { transition: opacity .25s steps(3, end); }
.hero.intro-on .hero-type, .hero.intro-on .readout, .hero.intro-on .err, .hero.intro-on .hero-side { opacity: 0; transition: none; }

/* The full logo, in its original black, as the ticket's brand stamp. */
.t-logo { display: block; width: min(100%, 360px); height: auto; }

/* ---------- Outline titles ----------
   The heavy title words are drawn as outlines only.
   (:root raises the rule above the per-section type styles.) */
:root :is(.big .c, .mf-text h2 .c, .m-keep) { color: transparent; -webkit-text-stroke: max(1.25px, .0075em) var(--paper); text-shadow: none; }
:root .mf-text h2 .c { letter-spacing: .02em; }   /* outlines need air where tight letters would touch */

/* ---------- Title glitches (site.js) ----------
   Pure, monochrome failures: copies of the heavy word slip in bands, smear, echo, invert or drop out. No accent color. */
.gl-host { position: relative; }
.gl-c { position: absolute; inset: 0; margin: 0 !important; color: var(--paper); pointer-events: none; user-select: none; }
.big.inline .gl-c { white-space: nowrap; }
.gl-hide { color: transparent !important; -webkit-text-stroke-color: transparent !important; text-shadow: none !important; }
.gl-fill { color: var(--paper) !important; -webkit-text-stroke-color: var(--paper) !important; text-shadow: none !important; }
.gl-hollow { color: transparent !important; -webkit-text-stroke: max(1.25px, .0075em) var(--paper) !important; text-shadow: none !important; }
.gl-scan { -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); }

/* ---------- Launch: accessibility, status bar, legal pages ---------- */
/* The dim grey at 4.5:1 for small text (the decorative --dim stays for dots and separators). */
:root { --dim-text: #85858d; }
.mq-b .mq-track, .ledger-rows .chg i, .hint-s { color: var(--dim-text); }
.skip { position: absolute; left: max(var(--gut), env(safe-area-inset-left, 0px)); top: -80px; z-index: 90; padding: 10px 16px; border-radius: 6px; background: var(--paper); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
/* "Pause motion" stops the marquee and the hero progress bar too. */
.motion-off .mq-track { animation-play-state: paused; }
.motion-off .ro-bar i.run { transition: none; }
.sb-in a, .sb-btn { display: inline-block; padding-block: 5px; margin-block: -5px; color: inherit; text-decoration: underline; text-decoration-color: var(--paper-16); text-underline-offset: 3px; }
.sb-in a:hover, .sb-btn:hover { color: var(--paper); text-decoration-color: currentColor; }
.sb-btn { appearance: none; border: 0; background: none; padding-inline: 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
/* Placeholders for details only the owner can give; tools/check.mjs fails while any remain. */
.todo { color: var(--accent); outline: 1px dashed var(--accent); outline-offset: 2px; }
.nav-cta.solo { margin-left: auto; }
/* Legal pages */
.doc { padding-block: clamp(56px, 9vw, 130px) clamp(70px, 9vw, 140px); }
.doc-in { max-width: 74ch; }
.doc h1 { margin: 18px 0 22px; font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: clamp(3.4rem, 11vw, 9rem); line-height: .82; letter-spacing: -.01em; text-transform: uppercase; color: transparent; -webkit-text-stroke: max(1.25px, .0075em) var(--paper); }
.doc .langs { margin: 0 0 8px; display: flex; gap: 18px; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.doc .langs a { color: var(--muted); text-underline-offset: 4px; padding-block: 6px; }
.doc .langs a:hover { color: var(--paper); }
.doc .updated { margin: 0 0 30px; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.doc .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--paper); }
.doc section + section { margin-top: clamp(70px, 9vw, 120px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.doc h2 { margin: 0 0 18px; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.doc h3 { margin: 2.2em 0 .5em; font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.035em; color: var(--paper); }
.doc p, .doc li, .doc address { color: var(--paper-60); }
.doc address { font-style: normal; color: var(--paper); line-height: 1.7; }
.doc ul { padding-left: 1.1em; }
.doc li + li { margin-top: .45em; }
.doc strong { color: var(--paper); font-weight: 500; }
.doc a { color: var(--paper); text-decoration-color: var(--paper-60); text-underline-offset: 3px; }
/* 404 */
.lost { min-height: calc(100svh - 120px); display: grid; align-content: center; gap: 22px; padding-block: 60px; }
.lost h1 { margin: 0; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(8rem, 38vw, 34rem); line-height: .76; letter-spacing: 0; color: transparent; -webkit-text-stroke: max(1.25px, .0075em) var(--paper); margin-left: -.04em; }
.lost .lost-text { margin: 0; max-width: 46ch; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--paper-60); }
.lost .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mq-track, [data-glitch].corrupt, .tile:hover::before, .tile:hover::after, .num b.counting, .num b.settle { animation: none !important; }
  .tile:hover::before, .tile:hover::after { opacity: 0; }
  .ro-bar i.run { transition: none; }
}
