/* Safelight: a darkroom for A24 and Neon.
   Everything is lit by a red safelight. A title only shows its real colours once it has "developed",
   which happens when the dial passes its release date. */

:root {
  --room-0: #140506;
  --lamp: #ff4a2e;
  --bone: #f1e8da;
  --ink: #2a1210;
  --text: #ffe3d9;
  --muted: #c98f86;
  --line: rgba(255, 170, 150, 0.2);
  --wood: #b98f5c;
  --display: 'Gloock', 'Iowan Old Style', Georgia, serif;
  --ui: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(16px, 4vw, 56px);
  --gap: clamp(12px, 2vw, 28px);
  --dial-x: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--room-0);
  color: var(--text);
  font: 400 1rem/1.5 var(--ui);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
[hidden] { display: none !important; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 10px 14px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* The room: lamp glow follows the dial, film grain sits on top. */
.room {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 46vmax at calc(var(--dial-x) * 1%) -12%, rgba(255, 74, 46, 0.42), rgba(255, 74, 46, 0) 62%),
    radial-gradient(90vmax 60vmax at 50% 120%, rgba(100, 16, 18, 0.5), transparent 70%),
    linear-gradient(180deg, #260b0c, #140506 62%);
}
.room::after {
  content: ''; position: absolute; inset: -10%; opacity: 0.07; animation: grain 0.9s steps(1) infinite; will-change: transform;
  background-image: 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='.9' 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");
}

/* Header */
.top { display: flex; align-items: center; gap: 16px; padding: 18px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__lamp, .mini__lamp {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd0c4, var(--lamp) 55%, #a01a0a);
  box-shadow: 0 0 14px 2px rgba(255, 74, 46, 0.75);
}
.brand__name { font: 400 1.5rem/1 var(--display); letter-spacing: 0.01em; }

.search { position: relative; flex: 1 1 auto; max-width: 380px; margin-left: auto; }
.search input {
  width: 100%; height: 40px; padding: 0 40px 0 16px; border-radius: 999px;
  background: rgba(255, 220, 210, 0.07); border: 1px solid var(--line); color: var(--text);
  transition: background 0.25s, border-color 0.25s;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:hover { border-color: rgba(255, 170, 150, 0.4); }
.search input:focus { outline: none; background: rgba(255, 220, 210, 0.12); border-color: var(--bone); }
.search kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 500 0.75rem var(--ui); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px;
}
.region select {
  height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(255, 220, 210, 0.07);
  border: 1px solid var(--line); color: var(--text); max-width: 150px;
}
.region select option { color: #000; }

/* Hero: the date is the hero */
.hero {
  display: grid; grid-template-columns: 1fr minmax(0, 40ch); column-gap: 40px; align-items: end;
  grid-template-areas: 'h1 h1' 'readout help' 'dial dial';
  padding: clamp(10px, 3vh, 36px) var(--pad) 0;
}
.hero h1 {
  grid-area: h1; margin: 0; font: 400 clamp(1.15rem, 2.2vw, 1.7rem)/1.2 var(--display); color: var(--text);
}
.readout { grid-area: readout; display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 28px); margin-top: clamp(4px, 1.5vh, 14px); }
.readout__day {
  font: 400 clamp(6rem, 16vw, 12.5rem)/0.8 var(--display);
  font-variant-numeric: lining-nums;
}
.readout__side { display: flex; flex-direction: column; gap: 10px; padding-bottom: 0.4em; }
.readout__mon { font: 400 clamp(2rem, 6.2vw, 4.8rem)/1 var(--display); }
.readout__year { font: 600 clamp(1rem, 2.5vw, 1.6rem)/1 var(--ui); color: var(--muted); letter-spacing: 0.04em; }

/* Dial / ruler */
.dial { grid-area: dial; margin-top: clamp(12px, 2.5vh, 26px); }
.dial__rail { position: relative; margin-inline: 12px; padding-bottom: 34px; }
.ruler {
  position: relative; height: 92px; cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; border-radius: 4px;
}
.ruler::before { content: ''; position: absolute; left: 0; right: 0; top: 52px; height: 1px; background: rgba(255, 200, 190, 0.35); }
.tick { position: absolute; left: calc(var(--x) * 1%); top: 52px; width: 1px; height: 8px; background: rgba(255, 200, 190, 0.28); }
.tick--year { height: 18px; background: rgba(255, 200, 190, 0.7); }
.yearlabel {
  position: absolute; left: calc(var(--x) * 1%); top: 70px; transform: translateX(6px);
  font: 600 0.78rem/1 var(--ui); color: var(--muted); pointer-events: none;
}
.pip {
  position: absolute; left: calc(var(--x) * 1%); bottom: 40px; width: 2px; height: var(--h, 18px);
  transform: translateX(-1px); background: var(--bone); opacity: 0.3; transform-origin: 50% 100%; transition: opacity 0.5s;
}
.pip--neon { background: var(--lamp); box-shadow: 0 0 6px rgba(255, 74, 46, 0.7); }
.handle { position: absolute; left: calc(var(--dial-x) * 1%); top: 0; bottom: 0; width: 0; pointer-events: none; }
.handle::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--lamp); box-shadow: 0 0 16px 3px rgba(255, 74, 46, 0.7);
}
.handle::after {
  content: ''; position: absolute; left: -12px; top: 41px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bone); border: 4px solid var(--lamp); box-shadow: 0 0 18px rgba(255, 74, 46, 0.9);
  transition: transform 0.2s var(--ease);
}
.ruler:hover .handle::after, .ruler.is-dragging .handle::after { transform: scale(1.18); }
.ruler:focus-visible { outline-offset: 6px; }
.dial__today {
  position: absolute; left: calc(var(--today-x, 50) * 1%); bottom: 0; transform: translateX(-50%);
  font: 600 0.82rem/1 var(--ui); color: var(--text); padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 5, 6, 0.6);
  transition: background 0.25s, color 0.25s;
}
.dial__today::before {
  content: ''; position: absolute; left: 50%; top: -6px; width: 1px; height: 6px; background: var(--muted);
}
.dial__today:hover, .dial__today.is-here { background: var(--bone); color: var(--ink); }
.dial__help { grid-area: help; margin: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; }

/* Filters */
.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 18px var(--pad) 10px; margin-top: 0;
}
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  padding: 7px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--bone); color: var(--ink); }
.toggle {
  padding: 7px 14px; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; transition: background 0.25s, color 0.25s;
}
.toggle:hover { color: var(--text); }
.toggle[aria-pressed='true'] { background: var(--lamp); border-color: var(--lamp); color: #1a0506; }
.toggle span { font-variant-numeric: tabular-nums; opacity: 0.8; }
#sort-btn { margin-left: auto; }

.stage__bar { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 6px var(--pad) 0; min-height: 28px; }
.stage__count, .stage__demo { margin: 0; font-size: 0.9rem; color: var(--muted); }
.stage__demo { color: #ffb4a4; }

/* Drying line of prints */
.wall {
  --cell: clamp(150px, 16vw, 212px);
  list-style: none; margin: 0; padding: 14px var(--pad) 110px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); gap: 24px var(--gap);
}
.print { position: relative; padding-top: 22px; --tilt: 0deg; }
.print::before {
  content: ''; position: absolute; top: 6px; height: 2px;
  left: calc(var(--gap) / -2 - 1px); right: calc(var(--gap) / -2 - 1px);
  background: rgba(255, 210, 200, 0.3); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.print__peg {
  position: absolute; z-index: 2; top: 0; left: 50%; width: 10px; height: 24px; margin-left: -5px; border-radius: 2px;
  background: linear-gradient(90deg, #d7b283, var(--wood) 55%, #8a6538); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}
.print__peg::after { content: ''; position: absolute; left: 4px; top: 8px; width: 2px; height: 10px; background: rgba(0, 0, 0, 0.25); }
.print__open {
  display: block; width: 100%; text-align: left; transform-origin: 50% 0; transform: rotate(var(--tilt));
  rotate: calc(var(--sway, 0deg) * var(--k, 1));
  transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.print__paper {
  display: block; padding: 7px 7px 0; background: #4a1a18; color: #e8a79c;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: background 0.9s var(--ease), color 0.9s var(--ease);
}
.print__frame { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #200708; isolation: isolate; }
.print__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.95) blur(2px); transform: scale(1.03);
  transition: filter 0.9s var(--ease), transform 0.9s var(--ease);
}
.print__tint {
  position: absolute; inset: 0; background: #ff2a14; mix-blend-mode: multiply; transition: opacity 0.9s var(--ease);
}
.print__cap { display: block; padding: 9px 2px 11px; min-height: 64px; }
.print__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 0.9rem/1.2 var(--ui); letter-spacing: -0.005em;
}
.print__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 0.74rem; line-height: 1.2; }
.print__studio { font-weight: 700; }
.print__state { text-align: right; opacity: 0.85; }

.print.is-developed .print__paper { background: var(--bone); color: var(--ink); }
.print.is-developed .print__frame img { filter: none; transform: none; }
.print.is-developed .print__tint { opacity: 0; }
.print.is-developed .print__studio--neon { color: #c4291a; }

@media (hover: hover) {
  .print__open:hover { transform: rotate(calc(var(--tilt) * -1 - 1.4deg)) translateY(2px); }
}
.print__open:focus-visible { outline-offset: 4px; }

/* Grease-pencil mark */
.print__mark {
  position: absolute; z-index: 3; top: 30px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20, 5, 6, 0.72); color: var(--text);
  opacity: 0; transform: scale(0.85); transition: opacity 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.print:hover .print__mark, .print__mark:focus-visible, .print__mark[aria-pressed='true'] { opacity: 1; transform: none; }
@media (hover: none) { .print__mark { opacity: 1; transform: none; } }
.print__mark[aria-pressed='true'] { background: var(--lamp); color: #1a0506; }
.print__ring {
  position: absolute; z-index: 2; left: 4px; right: 4px; top: 26px; bottom: 64px; width: calc(100% - 8px); height: auto;
  pointer-events: none; overflow: visible;
}
.print__ring path {
  fill: none; stroke: #ff3b20; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255, 59, 32, 0.8)); transition: stroke-dashoffset 0.7s var(--ease), opacity 0.1s;
}
.print.is-marked .print__ring path { stroke-dashoffset: 0; opacity: 1; }

/* Empty */
.empty { padding: 40px var(--pad) 120px; text-align: center; }
.empty__title { font: 400 1.5rem/1.2 var(--display); margin: 0 0 14px; }
.empty__btn { padding: 9px 18px; background: var(--bone); color: var(--ink); border-radius: 999px; font-weight: 600; }

/* Status bar (fixed to the bottom on phones) */
.statusbar { padding: 0 var(--pad); margin-top: -4px; }
.statusbar__inner { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  transition: background 0.25s, color 0.25s, opacity 0.25s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed='true'] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip__n { font-size: 0.78rem; font-variant-numeric: tabular-nums; opacity: 0.75; }
.chip.is-dim { opacity: 0.45; }

.foot { padding: 40px var(--pad) 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.foot p { margin: 0 0 6px; max-width: 70ch; }

/* Compact dial that appears once the hero scrolls away */
.mini {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  background: rgba(20, 5, 6, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform 0.4s var(--ease);
}
.mini.is-visible { transform: none; }
.mini__lamp { flex: none; }
.mini__date { flex: none; min-width: 7.2em; font: 400 1.25rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.mini__range { flex: 1; min-width: 80px; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; }
.mini__range::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 200, 190, 0.4); }
.mini__range::-moz-range-track { height: 2px; background: rgba(255, 200, 190, 0.4); }
.mini__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%;
  background: var(--bone); border: 4px solid var(--lamp); box-shadow: 0 0 12px rgba(255, 74, 46, 0.8);
}
.mini__range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--bone); border: 4px solid var(--lamp);
}
.mini__today { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.mini__today:hover { background: var(--bone); color: var(--ink); }

/* Detail sheet: a print on the light table */
.sheet {
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(580px, 100vw); max-width: none; height: 100dvh; max-height: none;
  background: var(--bone); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.sheet.is-in { transform: none; }
.sheet::backdrop { background: rgba(14, 3, 3, 0.75); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.4s; }
.sheet.is-in::backdrop { opacity: 1; }
.sheet__inner { position: relative; min-height: 100%; padding-bottom: 36px; }
.sheet__close {
  position: absolute; z-index: 5; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20, 5, 6, 0.8); color: var(--text);
}
.sheet__close:hover { background: var(--lamp); color: #1a0506; }

.plate { position: relative; aspect-ratio: 16 / 10; background: #240a0b; overflow: hidden; isolation: isolate; }
.plate img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  filter: grayscale(1) contrast(1.15) brightness(0.95) blur(5px); transform: scale(1.05);
  transition: filter 1.4s var(--ease), transform 1.4s var(--ease);
}
.plate__tint { position: absolute; inset: 0; background: #ff2a14; mix-blend-mode: multiply; transition: opacity 1.4s var(--ease); }
.plate.is-developed img { filter: none; transform: none; }
.plate.is-developed .plate__tint { opacity: 0; }
.plate__note {
  position: absolute; left: 20px; bottom: 16px; right: 70px; margin: 0; color: #ffd9cf;
  font: 400 1.3rem/1.2 var(--display); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.plate__play {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.plate__play:hover { transform: translateY(-2px); background: var(--lamp); }
.plate iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; background: #000; }

.sheet__head { padding: 22px 24px 0; }
.sheet__title { margin: 0; font: 400 clamp(1.9rem, 5vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.005em; }
.sheet__tagline { margin: 8px 0 0; font-style: italic; opacity: 0.75; }
.sheet__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 500; }
.sheet__studio--neon { color: #c4291a; font-weight: 700; }
.sheet__studio--a24 { font-weight: 700; }
.sheet__genres { margin: 6px 0 0; opacity: 0.7; font-size: 0.9rem; }
.sheet__text { margin: 16px 24px 0; max-width: 60ch; line-height: 1.6; }
.sheet__detail { padding: 6px 24px 0; }
.sheet__muted { opacity: 0.7; }
.sheet__h { margin: 24px 0 8px; font: 400 1.25rem/1.1 var(--display); }
.dates { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; }
.dates dt { opacity: 0.65; }
.dates dd { margin: 0; font-weight: 600; }
.provs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prov { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid rgba(42, 18, 16, 0.2); border-radius: 999px; font-size: 0.88rem; font-weight: 600; }
.prov img { width: 28px; height: 28px; border-radius: 50%; }
.prov__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; font-size: 0.8rem; }
.sheet__link { display: inline-block; margin-top: 10px; font-size: 0.88rem; }
.sheet__actions { padding: 26px 24px 0; }
.markbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); font-weight: 600; transition: background 0.2s, color 0.2s;
}
.markbtn:hover { background: var(--ink); color: var(--bone); }
.markbtn[aria-pressed='true'] { background: var(--lamp); border-color: var(--lamp); color: #1a0506; }

/* Phones: bottom status bar, bottom sheet */
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 10px 12px; padding-top: calc(14px + env(safe-area-inset-top)); }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .search kbd { display: none; }
  .region { margin-left: auto; }
  .hero { grid-template-columns: 1fr; grid-template-areas: 'h1' 'readout' 'dial' 'help'; }
  .dial__help { margin: 4px 0 0; }
  .readout__day { font-size: clamp(6rem, 34vw, 10rem); }
  .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; }
  .controls::-webkit-scrollbar { display: none; }
  .controls > * { flex: none; }
  #sort-btn { margin-left: 0; }
  .wall { --cell: 140px; gap: 18px 12px; padding-bottom: 130px; }
  .print__title { font-size: 0.82rem; }

  .statusbar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 5, 6, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .statusbar__inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .statusbar__inner::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 9px 14px; }

  .sheet {
    margin: auto 0 0 0; width: 100%; height: min(92dvh, 900px); border-radius: 18px 18px 0 0; transform: translateY(100%);
  }
  .mini { gap: 10px; }
  .mini__date { font-size: 1.05rem; min-width: 6.6em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ---------- Motion ---------- */
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.room::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at calc(var(--dial-x) * 1%) -10%, rgba(255, 130, 90, 0.2), transparent 65%);
  animation: flicker 6.5s linear infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; } 8% { opacity: 0.82; } 9% { opacity: 1; } 31% { opacity: 0.9; } 33% { opacity: 1; }
  57% { opacity: 0.78; } 58% { opacity: 0.96; } 59% { opacity: 0.84; } 61% { opacity: 1; } 84% { opacity: 0.92; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-3%, 2%); } 25% { transform: translate(2.5%, -4%); }
  37% { transform: translate(-4.5%, -1%); } 50% { transform: translate(4%, 3%); } 62% { transform: translate(-2%, 4.5%); }
  75% { transform: translate(4.5%, -2.5%); } 87% { transform: translate(-4%, 2.5%); } 100% { transform: translate(0, 0); }
}
.brand__lamp { animation: lamp-breathe 4.5s ease-in-out infinite; }
@keyframes lamp-breathe {
  0%, 100% { box-shadow: 0 0 14px 2px rgba(255, 74, 46, 0.75); }
  50% { box-shadow: 0 0 22px 5px rgba(255, 74, 46, 0.95); }
}

/* Rolling-digit date */
.odo { display: inline-flex; height: 0.84em; gap: 0.02em; filter: drop-shadow(0 0 34px rgba(255, 74, 46, 0.5)); }
.odo__col { display: block; height: 0.84em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 0.65s cubic-bezier(0.2, 0.85, 0.25, 1); will-change: transform; }
.odo__strip > span { display: block; height: 0.84em; line-height: 0.84em; text-align: center; padding-top: var(--odo-nudge, 0em); }

/* Film strip: sprocket holes and frame lines that travel with the dial */
.film {
  position: relative; height: 40px; margin-top: 16px; overflow: hidden; --film-x: 0px;
  background: linear-gradient(180deg, rgba(255, 90, 60, 0.1), rgba(255, 90, 60, 0.03));
  border-block: 1px solid var(--line);
}
.film::before, .film::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8px; opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Crect x='5' width='14' height='8' rx='2.5' fill='%23ffc9bb'/%3E%3C/svg%3E") repeat-x;
  background-size: 24px 8px; background-position: var(--film-x) 0;
}
.film::before { top: 6px; }
.film::after { bottom: 6px; }
.film__frames {
  position: absolute; left: 0; right: 0; top: 17px; bottom: 17px;
  background: repeating-linear-gradient(90deg, transparent 0 94px, rgba(255, 190, 170, 0.28) 94px 96px);
  background-position: var(--film-x) 0;
}

/* A print "developing": a bright wash of developer sweeps down the frame once */
.print__frame::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 42%; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(255, 226, 205, 0), rgba(255, 226, 205, 0.85) 55%, rgba(255, 226, 205, 0));
  mix-blend-mode: screen; transform: translateY(-110%);
}
.print.flash .print__frame::after { animation: develop-wash 1s var(--ease) both; }
@keyframes develop-wash {
  from { transform: translateY(-110%); opacity: 1; }
  to { transform: translateY(260%); opacity: 0.2; }
}
.print.is-developed .print__paper { animation: none; }

/* Ruler marks light up as their title develops */
.pip.is-lit { opacity: 0.95; }
.pip.pop { animation: pip-pop 0.6s var(--ease); }
@keyframes pip-pop { 0% { scale: 1 1; } 35% { scale: 2.2 1.8; filter: brightness(1.6); } 100% { scale: 1 1; } }

/* Opening sequence: the safelight strikes, then the page appears behind it */
@keyframes strike {
  0% { opacity: 0; } 6% { opacity: 0.9; } 10% { opacity: 0.12; } 17% { opacity: 1; }
  23% { opacity: 0.35; } 31% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.is-intro .room { animation: strike 1.3s linear both; }
.is-intro .brand__lamp { animation: strike 1.3s 0.15s linear both; }
.is-intro .top .search, .is-intro .top .region { animation: rise 0.8s 0.5s var(--ease) both; }
.is-intro .hero h1 { animation: wipe 1s 0.6s var(--ease) both; }
.is-intro .readout { animation: rise 0.9s 0.9s var(--ease) both; }
.is-intro .dial { animation: rise 0.9s 1.1s var(--ease) both; }
.is-intro .film { animation: rise 0.9s 1.3s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .room::before, .room::after, .brand__lamp, .print.flash .print__frame::after, .pip.pop { animation: none !important; }
  .dust { display: none; }
  .is-intro *, .is-intro { animation: none !important; }
  .odo__strip { transition: none; }
}
