/* Gallery: twelve painters on one reel.
   One room: a dark projection booth. The film is the only bright thing besides the paintings,
   and the room light takes its colour from whatever painting is in front of you. */

@property --glow { syntax: "<color>"; inherits: true; initial-value: #6b835c; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --booth: #17110d;
  --booth-2: #221a14;
  --celluloid: #0e0a08;
  --light: #f1e7d4;
  --dust: #ab9d89;
  --amber: #e3a043;
  --hole: #efe0c2;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Newsreader", Georgia, serif;
  --P: 92px;            /* film segment length */
  --H: 122px;           /* film width */
  --sh: 340px;          /* main screen height, set by JS */
  --ease: cubic-bezier(.2, .8, .2, 1);
  transition: --glow 1.4s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--booth); color: var(--light); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font: 400 18px/1.55 var(--text); background: var(--booth); overflow-x: clip; }
img { display: block; max-width: 100%; }
p, h2, h3, figure, ol, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--amber); color: var(--booth); }

@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none; }
  html.has-cursor input { cursor: text; }
}

/* ---------- soft vignette over everything (steady, no grain or flicker) ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(5, 3, 2, .55));
}

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .2s; }
.has-cursor .cursor { opacity: 1; }
.cursor-ring {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--light); transition: transform .3s var(--ease), background-color .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font: 700 13px/1 var(--display); letter-spacing: .06em; color: var(--booth); white-space: nowrap;
  transition: opacity .2s, transform .3s var(--ease);
}
.cursor.is-label .cursor-ring { transform: scale(3.6); background: var(--light); border-color: var(--light); mix-blend-mode: normal; }
.cursor.is-label .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-link .cursor-ring { transform: scale(2); }
.cursor.is-down .cursor-ring { transform: scale(.7); }
.cursor.is-hidden { opacity: 0 !important; }

/* ---------- leader countdown ---------- */
.leader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #2b2520; color: #15100c;
}
.leader[hidden] { display: none; }
.leader-frame { position: relative; width: min(64vmin, 520px); aspect-ratio: 1; display: grid; place-items: center; }
.sweep {
  position: absolute; inset: 9%; border-radius: 50%;
  background: conic-gradient(rgba(241, 231, 212, .42) var(--sweep), rgba(0, 0, 0, .25) var(--sweep));
  animation: sweep .8s linear infinite;
}
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
.leader-marks { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #f1e7d4; stroke-width: 3; opacity: .85; }
.leader-num { position: relative; font: 900 min(36vmin, 290px)/1 var(--display); color: #f1e7d4; text-shadow: 0 0 2px rgba(0, 0, 0, .5); }
.leader-skip {
  position: absolute; right: 24px; bottom: 24px; padding: 10px 18px; border-radius: 999px;
  background: rgba(241, 231, 212, .12); color: var(--light); font-size: 16px;
}
.leader-skip:hover { background: rgba(241, 231, 212, .22); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 76px;
  display: grid; grid-template-columns: 1fr minmax(240px, 440px) 1fr; align-items: center; gap: 24px;
  padding: 0 32px; pointer-events: none;
}
.top > * { pointer-events: auto; }
.top::before {
  content: ""; position: absolute; inset: 0 0 -32px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--booth) 45%, transparent); opacity: 0; transition: opacity .4s;
}
.top.solid::before { opacity: 1; }
.wordmark {
  justify-self: start; font: 800 40px/1 var(--display); letter-spacing: .01em; text-decoration: none;
  display: inline-flex;
}
.wordmark span { display: inline-block; }
.nav { justify-self: end; display: flex; gap: 28px; font-size: 16px; }
.nav a { position: relative; text-decoration: none; color: var(--dust); transition: color .2s; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--light); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.search {
  position: relative; display: flex; align-items: center; height: 48px; border-radius: 999px;
  background: rgba(23, 17, 13, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(241, 231, 212, .18); transition: box-shadow .25s, background-color .25s;
}
.search:focus-within { background: rgba(34, 26, 20, .92); box-shadow: inset 0 0 0 1.5px var(--amber); }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 22px; background: none; border: 0; outline: none;
  color: var(--light); font: 400 17px/1 var(--text);
}
.search input::placeholder { color: var(--dust); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search-go { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; transition: color .2s, transform .2s; }
.search-go:hover { color: var(--amber); }
.search-go:active { transform: scale(.92); }
.results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: #241b15; border-radius: 14px; max-height: min(62vh, 520px); overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(241, 231, 212, .1);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.results.open { opacity: 1; transform: none; pointer-events: auto; }
.result { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 6px 8px 6px 6px; border-radius: 8px; cursor: pointer; }
.result[aria-selected="true"], .result:hover { background: rgba(241, 231, 212, .09); }
.result img, .result .r-badge { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.r-badge { display: grid; place-items: center; font: 800 20px/1 var(--display); color: var(--booth); }
.r-name { display: block; font: 700 20px/1.1 var(--display); letter-spacing: .01em; }
.r-meta { display: block; font-size: 14px; color: var(--dust); line-height: 1.3; }
.r-name mark { background: none; color: var(--amber); }
.results .empty { padding: 14px 12px; color: var(--dust); font-size: 15px; line-height: 1.4; }

/* ---------- hero: the film room ---------- */
.hero {
  position: relative; height: 100svh; min-height: 700px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 86px 0 52px; touch-action: pan-y;
}
.room {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(52% 46% at 50% 52%, color-mix(in oklab, var(--glow) 46%, transparent), transparent 74%),
    radial-gradient(90% 60% at 50% 115%, #070504, transparent 70%),
    var(--booth);
}
.beam {
  position: absolute; left: 50%; top: -4%; width: 150vw; height: 108%; transform: translateX(-50%); z-index: -2; pointer-events: none;
  background: conic-gradient(from 150deg at 50% 0, transparent 0deg, color-mix(in oklab, var(--glow) 35%, #fff2da) 14deg 46deg, transparent 60deg);
  opacity: .085; filter: blur(14px); mix-blend-mode: screen;
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }

.bodies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.body { fill: none; stroke: var(--celluloid); stroke-width: var(--H); opacity: .97; }
.edge { fill: none; stroke: rgba(241, 231, 212, .14); stroke-width: 1; }

.strip { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.strip + .strip { z-index: 4; }
.cell {
  position: absolute; left: 0; top: 0; width: var(--P); height: var(--H);
  margin: calc(var(--H) / -2) 0 0 calc(var(--P) / -2); will-change: transform;
}
.cell::before, .cell::after {
  content: ""; position: absolute; left: 0; right: 0; height: calc(var(--H) * .08);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cg fill='%23efe0c2'%3E%3Crect x='6' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='31' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='56' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='81' y='0' width='13' height='10' rx='2.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  opacity: .82;
}
.cell::before { top: calc(var(--H) * .045); }
.cell::after { bottom: calc(var(--H) * .045); }
.frame {
  position: absolute; left: calc(var(--P) * .065); right: calc(var(--P) * .065);
  top: calc(var(--H) * .175); bottom: calc(var(--H) * .175);
  border-radius: calc(var(--P) * .07); overflow: hidden; background: var(--c, #2a211b);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); transform-origin: 50% 50%;
  transition: box-shadow .3s, opacity .4s, filter .4s;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame img.full { object-fit: contain; background: #0c0907; opacity: 0; transition: opacity .35s; }
.cell.focus .frame img.full { opacity: 1; }
.cell.lift .frame { box-shadow: 0 0 0 1px rgba(241, 231, 212, .35), 0 18px 40px rgba(0, 0, 0, .65); }
.cell.dim .frame { opacity: .22; filter: grayscale(1); }
.cell.hit .frame { box-shadow: 0 0 0 2px var(--amber); }
.cell.swap .frame { animation: swap .45s var(--ease) both; }
@keyframes swap { from { opacity: .15; } to { opacity: 1; } }

.nm-cell .frame {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 calc(var(--P) * .07);
  background: color-mix(in oklab, var(--c) 52%, #120d0a);
}
.nm-first { font: 600 calc(var(--P) * .12)/1 var(--display); color: rgba(241, 231, 212, .78); letter-spacing: .02em; }
.nm-last { font: 800 var(--fs, calc(var(--P) * .2))/.92 var(--display); color: var(--light); white-space: nowrap; }

.tip {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; display: grid; gap: 2px;
  padding: 9px 14px 10px; border-radius: 14px; background: rgba(16, 11, 8, .92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(241, 231, 212, .12);
  opacity: 0; transition: opacity .18s; white-space: nowrap; max-width: 340px;
}
.tip.on { opacity: 1; }
.tip-t { font: 700 19px/1.1 var(--display); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.tip-m { font-size: 14px; color: var(--dust); line-height: 1.3; }

.zone { flex: none; height: calc(var(--H) + 48px); }
.screens {
  position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  gap: 3.2vw; perspective: 1500px; padding-bottom: 64px;
}
.screen { position: relative; transform-style: preserve-3d; will-change: transform; opacity: 0; }
.ready .screen { opacity: 1; transition: opacity .9s; }
.gate {
  position: relative; width: calc(var(--sh) * 1.6); height: var(--sh); border-radius: calc(var(--sh) * .07);
  overflow: hidden; background: #0b0806; isolation: isolate;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(241, 231, 212, .09);
}
.side .gate { width: calc(var(--sh) * 1.6 * .56); height: calc(var(--sh) * .56); cursor: pointer; }
.side { filter: brightness(.7) saturate(.9); transition: filter .4s; }
.side:hover { filter: none; }
.slide { position: absolute; inset: 0; }
.slide .bg { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(26px) brightness(.42) saturate(1.25); }
.slide .fg { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.main .gate { cursor: zoom-in; }
.burn {
  position: absolute; inset: -30%; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--bx, 30%) var(--by, 40%), #fff8e8 0, #ffc46b 12%, rgba(196, 82, 20, .75) 28%, rgba(60, 14, 4, .4) 42%, transparent 60%);
  mix-blend-mode: screen;
}
.glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 248, 232, .09) 46%, rgba(255, 248, 232, .03) 50%, transparent 58%) var(--gx, 50%) 0 / 260% 100% no-repeat;
}
.runbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; }
.runbar i { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }

.main figcaption {
  position: absolute; top: calc(100% + 16px); left: 0; right: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.cap-text { min-width: 0; }
.cap-title { font: 700 26px/1.05 var(--display); letter-spacing: .005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-meta { font-size: 16px; color: var(--dust); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-open {
  flex: none; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--light); color: var(--booth);
  font: 600 16px/1 var(--text); transition: transform .15s var(--ease), background-color .2s;
}
.cap-open:hover { background: #fff6e6; }
.cap-open:active { transform: scale(.96); }

.hero-foot {
  position: absolute; left: 32px; right: 32px; bottom: 18px; z-index: 5; display: flex; justify-content: center; align-items: center; gap: 16px;
  pointer-events: none;
}
.hero-foot > * { pointer-events: auto; }
.hint { font-size: 15px; color: var(--dust); text-align: center; }
.focus-chip {
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(34, 26, 20, .9); box-shadow: inset 0 0 0 1px rgba(227, 160, 67, .55); font-size: 15px;
}
.focus-chip[hidden] { display: none; }
.focus-chip button { height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(241, 231, 212, .12); font-size: 14px; transition: transform .15s var(--ease); }
.focus-chip button:active { transform: scale(.96); }
.focus-chip button:hover { background: rgba(241, 231, 212, .22); }
.has-focus .hint { display: none; }

/* ---------- painters ---------- */
.painters { position: relative; padding: 150px 32px 140px; max-width: 1480px; margin: 0 auto; }
.sec-title { font: 800 clamp(56px, 8vw, 120px)/.86 var(--display); letter-spacing: -.005em; }
.sec-lede { margin-top: 20px; max-width: 32em; font-size: 20px; line-height: 1.45; color: var(--dust); }
.names { list-style: none; margin: 72px 0 0; padding: 0; }
.names li { position: relative; }
.names li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; opacity: .22;
  background: radial-gradient(circle at 50% 50%, var(--light) 1.6px, transparent 2.2px) 0 0 / 16px 6px repeat-x;
}
.row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 220px 200px; align-items: center; gap: 24px;
  padding: 22px 0 20px; text-align: left; transition: opacity .35s;
}
.names:hover .row:not(:hover) { opacity: .34; }
.row-name {
  font: 500 clamp(44px, 6.6vw, 104px)/.95 var(--display); letter-spacing: 0;
  transition: font-weight .55s var(--ease), letter-spacing .55s var(--ease), transform .55s var(--ease);
  transform-origin: left center;
}
.row:hover .row-name, .row:focus-visible .row-name { font-weight: 900; letter-spacing: .012em; transform: translateX(14px); }
.row-life { font-size: 16px; line-height: 1.35; color: var(--dust); }
.row-life b { display: block; font-weight: 500; color: var(--light); }
.row-thumbs { position: relative; height: 64px; justify-self: end; width: 200px; }
.row-thumbs img {
  position: absolute; right: 0; top: 4px; width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), 0 0 0 1px rgba(241, 231, 212, .12);
  transform: translateX(calc(var(--i) * -12px)) rotate(calc(var(--i) * -3deg + 4deg));
  transition: transform .5s var(--ease);
}
.row:hover .row-thumbs img { transform: translateX(calc(var(--i) * -50px)) rotate(0deg); }
.row-note { display: none; }

.flip {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; pointer-events: none; opacity: 0;
  transition: opacity .25s;
}
.flip.on { opacity: 1; }
.flip-img { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #0c0907; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.flip-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-note { margin-top: 10px; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; background: rgba(16, 11, 8, .94); box-shadow: inset 0 0 0 1px rgba(241, 231, 212, .1); }

/* ---------- up close (zoom story) ---------- */
.closer { position: relative; height: 760svh; }
.closer-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #0c0806; }
.closer-pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 58%, rgba(0, 0, 0, .6));
}
.jatte { position: absolute; left: 0; top: 0; width: 100px; height: 67px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.jatte img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.crop { position: absolute; opacity: 0; transition: opacity .6s; }
.crop.on { opacity: 1; }
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; }
.caps { position: absolute; left: 32px; bottom: 44px; z-index: 2; width: min(440px, calc(100% - 64px)); }
.cap {
  position: absolute; left: 0; bottom: 0; width: 100%; padding: 22px 24px 24px; border-radius: 14px;
  background: rgba(14, 10, 8, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(241, 231, 212, .1);
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none;
}
.cap.on { opacity: 1; transform: none; }
.cap h3 { font: 800 36px/1 var(--display); letter-spacing: .005em; margin-bottom: 10px; }
.cap p { font-size: 18px; line-height: 1.5; }
.cap .cap-small { margin-top: 10px; font-size: 15px; color: var(--dust); }
.stops { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; gap: 8px; }
.stops i { display: block; width: 10px; height: 18px; border-radius: 3px; background: rgba(241, 231, 212, .2); transition: background-color .3s, transform .3s var(--ease); }
.stops i.on { background: var(--amber); transform: scaleX(1.4); }

/* ---------- by year (horizontal reel) ---------- */
.reel { position: relative; height: 500svh; }
.reel-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.reel-head { position: absolute; left: 32px; top: 110px; z-index: 2; }
.year {
  position: absolute; right: 24px; top: 72px; z-index: 0; display: flex; overflow: hidden;
  font: 900 clamp(120px, 21vw, 330px)/1 var(--display); height: 1em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(241, 231, 212, .2); font-variant-numeric: tabular-nums;
}
.digit { display: block; height: 1em; overflow: hidden; }
.digit span { display: flex; flex-direction: column; transition: transform .7s var(--ease); }
.digit b { display: block; height: 1em; line-height: 1; font-weight: 900; }
.track {
  position: absolute; left: 0; top: 58%; z-index: 1; display: flex; align-items: center; gap: 0;
  height: min(44svh, 400px); padding: 0 40vw; transform-origin: 50% 50%; will-change: transform;
  margin-top: calc(min(44svh, 400px) / -2);
}
.track::before {
  content: ""; position: absolute; inset: 0 0 0 0; z-index: -1; background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cg fill='%23efe0c2'%3E%3Crect x='6' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='31' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='56' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='81' y='0' width='13' height='10' rx='2.6'/%3E%3C/g%3E%3C/svg%3E") 0 14px / 120px 13px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cg fill='%23efe0c2'%3E%3Crect x='6' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='31' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='56' y='0' width='13' height='10' rx='2.6'/%3E%3Crect x='81' y='0' width='13' height='10' rx='2.6'/%3E%3C/g%3E%3C/svg%3E") 0 calc(100% - 14px) / 120px 13px repeat-x,
    var(--celluloid);
  box-shadow: 0 0 0 1px rgba(241, 231, 212, .1);
}
.rframe { position: relative; flex: none; height: 100%; padding: 54px 14px; text-align: left; }
.rframe-gate { height: 100%; border-radius: 8px; overflow: hidden; background: #0c0907; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8); }
.rframe img { height: 100%; width: auto; max-width: none; transition: transform .6s var(--ease), filter .4s; filter: brightness(.86); }
.rframe:hover img { transform: scale(1.04); filter: none; }
.rframe-cap { position: absolute; left: 14px; right: 14px; top: calc(100% + 18px); }
.rframe-t { display: block; font: 700 20px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rframe-m { display: block; font-size: 15px; color: var(--dust); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rframe-y { position: absolute; left: 14px; top: 33px; font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--amber); }

/* ---------- end ---------- */
.end { position: relative; padding: 160px 32px 72px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.end-title { font: 300 clamp(72px, 11vw, 168px)/.86 var(--display); letter-spacing: .02em; }
.rewind {
  height: 52px; padding: 0 26px; border-radius: 999px; background: var(--light); color: var(--booth);
  font: 600 17px/1 var(--text); transition: transform .15s var(--ease), background-color .2s;
}
.rewind:hover { background: #fff6e6; }
.rewind:active { transform: scale(.96); }
.credits { max-width: 34em; font-size: 15px; color: var(--dust); margin-top: 40px; }

/* ---------- projection view (lightbox) ---------- */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.lb[hidden] { display: none; }
.lb-back { position: absolute; inset: 0; background: rgba(9, 6, 5, .96); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 56px; min-width: 0; min-height: 0; }
.lb-img { position: relative; max-width: none; border-radius: 4px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); cursor: crosshair; }
.loupe {
  position: absolute; left: 0; top: 0; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%;
  pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7), 0 0 0 2px rgba(241, 231, 212, .85), inset 0 0 30px rgba(0, 0, 0, .35);
  background-repeat: no-repeat; background-color: #0c0907;
}
.loupe.on { opacity: 1; transform: none; }
.lb-info { position: relative; align-self: center; padding: 40px 40px 40px 8px; display: grid; gap: 14px; }
.lb-painter { font-size: 18px; color: var(--dust); }
.lb-title { font: 800 46px/.96 var(--display); letter-spacing: .005em; }
.lb-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 16px; margin-top: 8px; }
.lb-facts dt { color: var(--dust); }
.lb-link { margin-top: 10px; justify-self: start; font-size: 16px; color: var(--light); text-underline-offset: 4px; text-decoration-color: rgba(241, 231, 212, .4); }
.lb-link:hover { text-decoration-color: var(--amber); }
.lb-tip { font-size: 14px; color: var(--dust); }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(241, 231, 212, .1); transition: background-color .2s, transform .15s;
}
.lb-btn:hover { background: rgba(241, 231, 212, .2); }
.lb-btn:active { transform: scale(.92); }
.lb-close { right: 20px; top: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 400px; top: 50%; margin-top: -24px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .top { grid-template-columns: auto 1fr; padding: 0 16px; gap: 16px; }
  .wordmark { font-size: 32px; }
  .side { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 150px; }
  .row-thumbs { display: none; }
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow: auto; }
  .lb-stage { padding: 72px 16px 16px; }
  .lb-info { padding: 8px 20px 32px; }
  .lb-title { font-size: 36px; }
  .lb-next { right: 20px; top: 40%; }
  .lb-prev { top: 40%; }
}
@media (min-width: 641px) and (max-height: 820px) {
  :root { --P: 74px; --H: 98px; }
  .hero { min-height: 600px; padding: 80px 0 44px; }
  .zone { height: calc(var(--H) + 28px); }
  .screens { padding-bottom: 60px; }
  .cap-title { font-size: 22px; }
}
@media (max-width: 640px) {
  :root { --P: 66px; --H: 88px; }
  body { font-size: 17px; }
  .top { height: 72px; }
  .hero { padding: 80px 0 64px; min-height: 620px; }
  .search { height: 44px; }
  .search input { font-size: 16px; padding-left: 16px; }
  .zone { height: calc(var(--H) + 30px); }
  .screens { padding-bottom: 96px; }
  .main figcaption { flex-direction: column; align-items: stretch; gap: 12px; }
  .cap-title { font-size: 22px; }
  .cap-open { align-self: start; }
  .hero-foot { left: 16px; right: 16px; }
  .hint { font-size: 14px; }
  .painters { padding: 110px 16px 100px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row-note { display: block; font-size: 15px; color: var(--dust); line-height: 1.45; }
  .flip { display: none; }
  .caps { left: 16px; bottom: 24px; width: calc(100% - 32px); }
  .cap h3 { font-size: 28px; }
  .cap p { font-size: 16px; }
  .stops { right: 12px; }
  .reel-head { left: 16px; top: 88px; }
  .track { height: 38svh; margin-top: calc(38svh / -2); }
  .year { top: auto; bottom: 2vh; right: 12px; }
  .end { padding: 120px 16px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .sweep { animation: none; }
  .digit span, .row-name, .row-thumbs img, .cap { transition: none; }
}
