/* The End Credits — black, white and tan, like an old picture house.
   Type: Pinyon Script (title cards only) + Newsreader (everything else). */

:root {
  --black: #000000;
  --white: #ffffff;
  --silver: #ece6da;      /* body text on black */
  --silver-dim: #b9b0a1;  /* secondary text on black (9:1) */
  --tan: #cfb68f;         /* kraft tan: paper sections, buttons on black */
  --tan-pale: #e8dcc6;    /* printed program paper */
  --tan-deep: #8a7050;    /* decorative rules only, never text */
  --error: #ffb59c;

  --script: "Pinyon Script", "Snell Roundhand", "Brush Script MT", cursive;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --bar-h: 76px;
  --intro: 2.4s;
  --rail: 56px;

  /* button + focus colors for dark surfaces (sections can override) */
  --btn-bg: var(--tan);
  --btn-fg: var(--black);
  --btn-hover-bg: var(--white);
  --btn-hover-fg: var(--black);
  --focus: var(--tan);

  --perf-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='44'%3E%3Crect x='20' y='13' width='24' height='18' rx='4' fill='%23cfb68f'/%3E%3C/svg%3E");
  --perf-pair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='32'%3E%3Crect x='9' y='10' width='14' height='11' rx='2.5' fill='%23cfb68f' fill-opacity='.75'/%3E%3Crect x='129' y='10' width='14' height='11' rx='2.5' fill='%23cfb68f' fill-opacity='.75'/%3E%3C/svg%3E");
  --perf-row: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Crect x='6' y='2' width='14' height='10' rx='2.5' fill='%23cfb68f' fill-opacity='.7'/%3E%3C/svg%3E");
  --perf-col: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='18'%3E%3Crect x='2' y='5.5' width='10' height='7' rx='1.5' fill='%23cfb68f' fill-opacity='.7'/%3E%3C/svg%3E");
  --perf-s8: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Crect x='15' y='1' width='10' height='8' rx='1.5' fill='%23cfb68f' fill-opacity='.7'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over the whole picture */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 1000;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 200px 200px;
  opacity: .16;
  animation: grain .8s steps(6) infinite;
}

img, video { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }

.wrap { max-width: 1080px; margin: 0 auto; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 1100;
  padding: 14px 22px;
  background: var(--tan);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 2px solid var(--btn-bg);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1.125rem/1.2 var(--serif);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  /* a raised key with a worn edge: it sinks when pressed */
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, .4),
    inset 0 -2px 0 rgba(0, 0, 0, .14),
    0 3px 0 #6f5a3e,
    0 10px 18px -10px rgba(0, 0, 0, .9);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .08s ease, box-shadow .08s ease;
}
.btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}
.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .28),
    0 0 0 #6f5a3e,
    0 4px 8px -6px rgba(0, 0, 0, .9);
}
.menu-toggle:active,
.field .choice:active { transform: translateY(2px); }
.btn-large { min-height: 64px; padding: 0 2.25rem; font-size: 1.25rem; }
.btn-small { min-height: 48px; padding: 0 1.1rem; font-size: 1.0625rem; }

/* Rooms that used to be tan paper: the same black as the rest of the film */
.paper {
  position: relative;
  color: var(--silver);
  background: var(--black);
}
.paper > * { position: relative; }
.paper h2,
.paper h3,
.paper h4 { color: var(--white); }

/* Each section is a frame on the strip, with a frame line between */
main > section + section,
.finale { border-top: 1px solid rgba(207, 182, 143, .16); }

/* ---------- Analog texture ---------- */
/* The projected picture darkens toward its corners */
.film-rails::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 39;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 47% 45%, transparent 50%, rgba(0, 0, 0, .58)),
    radial-gradient(45% 40% at 100% 0%, rgba(0, 0, 0, .28), transparent 75%),
    radial-gradient(40% 45% at 0% 100%, rgba(30, 18, 6, .22), transparent 75%);
}
/* Dust and hairs that catch in the gate for a frame or two */
.dust {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  overflow: hidden;
}
.dust i {
  position: absolute;
  display: block;
  background: rgba(240, 232, 216, .55);
  border-radius: 50%;
}
.dust i.hair {
  height: 1px;
  border-radius: 1px;
  background: rgba(240, 232, 216, .4);
}
.dust i.scratch {
  top: 0;
  bottom: 0;
  width: 1px;
  border-radius: 0;
  background: linear-gradient(transparent, rgba(240, 232, 216, .35) 15%, rgba(240, 232, 216, .2) 85%, transparent);
}
/* Edge printing along the film, like the markings on a real print */
.rail-left .rail-track {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='352'%3E%3Ctext x='-300' y='12' transform='rotate(-90)' font-family='Georgia,serif' font-size='8' letter-spacing='3' fill='%23cfb68f' fill-opacity='.55'%3ETHE END CREDITS %E2%96%B8 35%3C/text%3E%3C/svg%3E") repeat-y left top / var(--rail) calc(var(--rail) * 5.5),
    var(--perf-hero) repeat-y center top / var(--rail) calc(var(--rail) * .6875);
}
/* ---------- Archival wear: an old print, run many times ---------- */
/* The exposure breathes unevenly from frame to frame */
.film-rails::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1002;
  pointer-events: none;
  background: rgb(255, 244, 222);
  opacity: 0;
  animation: exposure 2.3s steps(1) infinite;
}
@keyframes exposure {
  0%   { opacity: 0; }
  8%   { opacity: .028; }
  13%  { opacity: 0; }
  34%  { opacity: .016; }
  38%  { opacity: 0; }
  61%  { opacity: .034; }
  64%  { opacity: .01; }
  81%  { opacity: .022; }
  85%  { opacity: 0; }
}
/* Long scratches that run down the whole print and wander a little */
.scratch-lines {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  overflow: hidden;
}
.scratch-lines span {
  position: absolute;
  top: -5%;
  bottom: -5%;
  left: var(--x);
  width: var(--w, 1px);
  background: linear-gradient(
    transparent 0,
    rgba(240, 232, 216, var(--a, .14)) 8%,
    rgba(240, 232, 216, var(--a, .14)) 46%,
    transparent 52%,
    rgba(240, 232, 216, var(--a, .14)) 61%,
    rgba(240, 232, 216, var(--a, .14)) 92%,
    transparent
  );
  animation:
    scratch-wander var(--d, 8s) steps(32) infinite,
    scratch-flick 1.4s steps(1) var(--delay, 0s) infinite;
}
@keyframes scratch-wander {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(var(--dx, 6px)); }
}
@keyframes scratch-flick {
  0%   { opacity: 1; }
  28%  { opacity: .35; }
  41%  { opacity: 1; }
  67%  { opacity: 0; }
  74%  { opacity: .8; }
}
/* Changeover cue marks: a dot in the corner as the reel nears its end */
.cue-mark {
  position: fixed;
  z-index: 1003;
  top: calc(var(--bar-h) + 7vh);
  right: calc(var(--rail) + 5vw);
  width: clamp(16px, 2.2vw, 30px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 246, 234, .9) 0 42%, rgba(252, 246, 234, .45) 58%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.cue-mark.on { opacity: 1; }
/* A hair caught in the gate, trembling for a moment */
.gate-hair {
  position: fixed;
  z-index: 1003;
  left: calc(var(--rail) + 3vw);
  bottom: 7vh;
  width: 90px;
  height: 46px;
  opacity: 0;
  pointer-events: none;
}
.gate-hair.on { opacity: .85; animation: hair-tremble .24s steps(1) infinite; }
@keyframes hair-tremble {
  0%  { transform: rotate(0deg) translate(0, 0); }
  33% { transform: rotate(4deg) translate(1px, -1px); }
  66% { transform: rotate(-3deg) translate(-1px, 1px); }
}
.dust i.blob { background: rgba(240, 232, 216, .32); }
.dust i.dark { background: rgba(8, 6, 4, .8); }

/* ---------- The title jumps its perforations ---------- */
/* A constant whole-pixel shiver (whole pixels keep the pen strokes sharp) */
.hero.is-settled .hero-weave { animation: perf-shiver .5s steps(1) infinite; }
.hero.is-settled .hero-title { animation: none; }
.hero.is-settled .hero-title.is-jumping,
.the-end.settled.is-jumping { animation: perf-jump .38s steps(1) 1; }
html.js .the-end.is-on.settled { opacity: 1; animation: none; }
html.js .the-end.is-on.settled.is-jumping { animation: perf-jump .38s steps(1) 1; }
@keyframes perf-shiver {
  0%  { transform: translate(0, 0); }
  20% { transform: translate(1px, 0); }
  40% { transform: translate(0, -1px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(0, 1px); }
}
/* Every so often the frame slips: it lurches, the next frame ghosts in, and it settles */
@keyframes perf-jump {
  0%   { transform: translate(0, 0); text-shadow: none; }
  11%  { transform: translate(0, -.24em); text-shadow: 0 .95em 0 rgba(255, 250, 240, .18); }
  27%  { transform: translate(2px, .14em); text-shadow: 0 -.8em 0 rgba(255, 250, 240, .12); }
  44%  { transform: translate(-1px, -.07em); text-shadow: none; }
  62%  { transform: translate(0, .03em); }
  80%, 100% { transform: translate(0, 0); text-shadow: none; }
}
/* Lamp flicker in the projector's light */
@keyframes lamp {
  0%, 100% { opacity: 1; }
  12% { opacity: .9; }
  19% { opacity: 1; }
  44% { opacity: .94; }
  51% { opacity: .86; }
  58% { opacity: 1; }
  83% { opacity: .92; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .94);
  border-bottom: 1px solid rgba(207, 182, 143, .25);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1320px;
  height: var(--bar-h);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  margin-right: auto;
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--tan);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 4px 2px;
}
.site-nav ul {
  display: flex;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 .25rem;
  color: var(--silver);
  font-size: 1.0625rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--tan); text-decoration: underline; text-underline-offset: 6px; }
.topbar-phone {
  color: var(--tan);
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
  text-decoration: none;
}
.topbar-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle {
  display: none;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--tan);
  border-radius: 4px;
  background: transparent;
  color: var(--silver);
  font: 600 1.0625rem/1 var(--serif);
  cursor: pointer;
}

/* ---------- Film rails: the whole site runs through the projector ---------- */
body { padding-inline: var(--rail); }
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: var(--rail);
  overflow: hidden;
  background: var(--black);
  pointer-events: none;
}
.rail-left { left: 0; border-right: 1px solid rgba(207, 182, 143, .22); }
.rail-right { right: 0; border-left: 1px solid rgba(207, 182, 143, .22); }
.rail-track {
  position: absolute;
  inset: 0 0 auto 0;
  height: 200%;
  background: var(--perf-hero) repeat-y center top / var(--rail) calc(var(--rail) * .6875);
  opacity: .9;
  will-change: transform;
  animation: reel var(--intro) cubic-bezier(.12, .6, .2, 1) both;
}
html.is-settled .rail-track {
  animation: none;
  transform: translate3d(0, var(--reel, 0px), 0);
}

/* ---------- Drifting lights, like lanterns over water ---------- */
.motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mote {
  position: absolute;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: rgba(246, 236, 216, .95);
  box-shadow: 0 0 6px 2px rgba(207, 182, 143, .45), 0 0 18px 5px rgba(207, 182, 143, .16);
  opacity: 0;
  will-change: transform, opacity;
  animation: mote-float var(--d, 12s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes mote-float {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  18%  { opacity: var(--o, .8); }
  70%  { opacity: calc(var(--o, .8) * .75); }
  100% { opacity: 0; transform: translate3d(var(--mx, 0px), var(--my, -180px), 0); }
}

/* ---------- Opening title ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100svh - var(--bar-h));
  padding: 64px 40px 120px;
  overflow: hidden;
  background: var(--black);
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 48% at 50% 44%, rgba(207, 182, 143, .22), transparent 72%);
  animation: glow-flicker var(--intro) linear both, lamp 4.8s steps(16) var(--intro) infinite;
}
/* A glowing gate behind the title, its lower half sinking into the dark */
.hero-gate {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 1;
  width: min(74vmin, 700px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(240, 228, 206, .6);
  border-radius: 50%;
  box-shadow: 0 0 26px 3px rgba(207, 182, 143, .34), inset 0 0 70px rgba(207, 182, 143, .16);
  -webkit-mask: linear-gradient(to bottom, #000 0 58%, transparent 84%);
  mask: linear-gradient(to bottom, #000 0 58%, transparent 84%);
  transform: translate(-50%, -50%);
  animation: gate-rise 2.4s cubic-bezier(.2, .7, .2, 1) calc(var(--intro) - .4s) both;
}
.hero-gate::before { /* soft light inside the gate */
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(240, 228, 206, .13), transparent 66%);
  animation: gate-breathe 7s ease-in-out infinite alternate;
}
@keyframes gate-rise {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes gate-breathe {
  from { opacity: .55; }
  to   { opacity: 1; }
}
.hero-scratches span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(236, 230, 218, .5);
  opacity: 0;
  animation: scratch var(--intro) steps(1) both;
}
.hero-scratches span:nth-child(1) { left: 31%; }
.hero-scratches span:nth-child(2) { left: 58%; animation-delay: .15s; }
.hero-scratches span:nth-child(3) { left: 77%; animation-delay: .35s; width: 2px; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  transform: translate3d(0, calc(var(--out, 0) * 90px), 0);
  opacity: calc(1 - var(--out, 0) * 1.1);
}
.hero-weave { animation: weave var(--intro) ease-out both; }
.hero-title {
  margin: 0;
  padding: .08em .25em .02em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.25rem, 12.5vw, 10.5rem);
  line-height: 1.05;
  color: var(--white);
  text-shadow: none;
  animation: flicker-in var(--intro) linear both;
}
.hero-lede {
  max-width: 34ch;
  margin: 1.25rem auto 2.25rem;
  text-wrap: balance;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--silver);
  animation: fade .9s calc(var(--intro) - .7s) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fade .9s calc(var(--intro) - .45s) both;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 48px;
  padding: 4px 12px;
  transform: translateX(-50%);
  color: var(--silver-dim);
  font-size: 1rem;
  text-decoration: none;
  animation: fade 1s var(--intro) both;
}
.scroll-cue:hover { color: var(--tan); }

/* ---------- The shoebox (keepsakes) ---------- */
.memories {
  padding: 120px 24px 150px;
  overflow: hidden;
  overflow: clip;
}
.memories-stage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 1240px;
  min-height: 860px;
  margin: 0 auto;
}
.memories-copy {
  position: relative;
  z-index: 2;
  max-width: 33rem;
  text-align: center;
}
.memories-copy h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.memories-copy p { margin: 0 auto; font-size: 1.3125rem; }

/* Pieces of the past, mostly film: Super 8 and 35mm strips, negatives, a slide,
   and a couple of prints. Each drifts slowly. */
.memento {
  --tone: grayscale(1) invert(0) sepia(.42) contrast(1.22) brightness(.9) blur(0);
  --faded: grayscale(1) invert(0) sepia(.85) contrast(.3) brightness(1.9) blur(3px);
  position: absolute;
  z-index: 1;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 var(--sy, 20px) var(--sb, 32px) -14px rgba(40, 26, 8, .5);
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg));
  animation: drift var(--drift, 10s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}
.memento img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #333;
  filter: var(--tone);
}
html.js .memento img {
  filter: var(--faded);
  transition: filter 2.6s cubic-bezier(.3, .1, .3, 1);
}
html.js .memento.developed img { filter: var(--tone); }
@keyframes drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: var(--dx, 3px) var(--dy, -9px); rotate: var(--dr, .8deg); }
}

/* Instant photo, its wide bottom margin left blank */
.polaroid { padding: 12px 12px 48px; background: var(--white); }
.polaroid img { aspect-ratio: 1; }

/* 35mm slide in its card mount */
.slide {
  aspect-ratio: 1;
  padding: calc(var(--w, 180px) * .226) calc(var(--w, 180px) * .09) 0;
  border-radius: 4px;
  background: #ebe4d4;
  --sy: 12px; --sb: 22px;
}
.slide img { aspect-ratio: 3 / 2; border-radius: 6px; outline: 1px solid rgba(0, 0, 0, .3); }

/* Glossy 4x6 print with a thin border */
.print { padding: 7px; border-radius: 2px; background: #fbf8f1; }
.print img { aspect-ratio: 3 / 2; }

/* Super 8 home movie: narrow film, one small perforation under each frame */
.super8 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 6px 22px;
  border-radius: 2px;
  background:
    var(--perf-s8) repeat-x left 6px bottom 6px / calc((100% - 6px) / 3) 10px,
    #1d1712;
  --sy: 16px; --sb: 26px;
}
.super8 img { aspect-ratio: 4 / 3; border-radius: 5px / 6px; }

/* 35mm motion picture film: perforations down both edges, the soundtrack
   stripe, and three near-identical frames from one moving shot */
.cine {
  display: grid;
  gap: 5px;
  padding: 10px 24px 10px 32px;
  border-radius: 2px;
  background:
    var(--perf-col) repeat-y left 4px top 0 / 14px 18px,
    var(--perf-col) repeat-y right 4px top 0 / 14px 18px,
    linear-gradient(90deg, transparent 23px, rgba(236, 230, 218, .45) 23px 26px, transparent 26px),
    #0e0c0a;
  --sy: 22px; --sb: 34px;
}
.cine img { aspect-ratio: 1.37; }
.cine img:nth-child(1) { object-position: 15% 50%; }
.cine img:nth-child(2) { object-position: 50% 50%; }
.cine img:nth-child(3) { object-position: 85% 50%; }

/* A cut strip of black-and-white negatives */
.negatives {
  --tone: grayscale(1) invert(.9) sepia(.5) contrast(1.15) brightness(.88) blur(0);
  --faded: grayscale(1) invert(.9) sepia(.85) contrast(.3) brightness(1.9) blur(3px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 21px 6px;
  border-radius: 2px;
  background:
    var(--perf-row) repeat-x left 0 top 5px / 22px 12px,
    var(--perf-row) repeat-x left 0 bottom 5px / 22px 12px,
    #3b2c1c;
  --sy: 14px; --sb: 24px;
}
.negatives img { aspect-ratio: 3 / 2; }

/* Where each piece rests around the words (desktop) */
.m-instant { left: 1%; top: 30px; width: clamp(180px, 16vw, 224px);
  --drift: 11s; --delay: -2s; --dx: 4px; --dy: -10px; --dr: .9deg; --sy: 26px; --sb: 40px; }
.m-super8  { left: 29%; top: -74px; width: clamp(260px, 24vw, 330px);
  --drift: 13s; --delay: -3s; --dx: 5px; --dy: -7px; --dr: .6deg; }
.m-slide   { right: 4%; top: 8px; --w: clamp(150px, 13vw, 176px); width: var(--w);
  --drift: 9.5s; --delay: -5s; --dx: -4px; --dy: -8px; --dr: -1.2deg; }
.m-cine    { left: 5%; bottom: -10px; width: clamp(140px, 12.5vw, 168px);
  --drift: 12s; --delay: -7s; --dx: -3px; --dy: -11px; --dr: .7deg; }
.m-album   { right: 1%; bottom: 40px; width: clamp(200px, 20vw, 280px);
  --drift: 10s; --delay: -8s; --dx: -4px; --dy: -9px; --dr: -.8deg; --sy: 22px; --sb: 36px; }
.m-negs    { left: 35%; bottom: -76px; width: clamp(260px, 24vw, 330px);
  --drift: 14s; --delay: -1s; --dx: 6px; --dy: -6px; --dr: .6deg; }


/* ---------- Screening room ---------- */
.screening {
  position: relative;
  padding: 140px 24px;
  overflow: hidden;
  background: #1b1814;
  color: var(--silver);
}
.screening-dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 48%, rgba(207, 182, 143, .07), transparent 70%),
    var(--black);
  opacity: var(--dim, 1);
}
.screening .motes { opacity: var(--dim, 1); }
.screening-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  opacity: var(--reveal, 1);
}
.screening-heading {
  margin: 0 0 2.5rem;
  font-weight: 400;
  text-align: center;
}
.screening-kind {
  display: block;
  margin-bottom: .25rem;
  font-size: 1.375rem;
  font-style: italic;
  color: var(--tan);
}
.screening-name {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.75rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(207, 182, 143, .4), 0 0 110px 14px rgba(207, 182, 143, .16);
  transform: scale(var(--screen-scale, 1));
}
.screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  border: 0;
  padding: 24px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  cursor: pointer;
}
.play-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/stills/poster-joe.jpg") center / cover no-repeat;
  filter: grayscale(1) sepia(.3) contrast(1.05) brightness(.62);
  transition: filter .4s ease;
}
.play-overlay:hover::before { filter: grayscale(1) sepia(.3) contrast(1.05) brightness(.72); }
.play-overlay > span { position: relative; }
.play-overlay[hidden] { display: none; }
.play-icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--tan);
  color: var(--black);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  transition: transform .2s ease, background-color .2s ease;
}
.play-icon svg { margin-left: 5px; }
.play-overlay:hover .play-icon { transform: scale(1.05); background: var(--white); }
.play-label { font-size: 1.625rem; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.play-length { font-size: 1.125rem; color: var(--silver); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.screening-notes {
  max-width: 40rem;
  margin: 2.75rem auto 0;
  text-align: center;
}
.screening-notes p { font-size: 1.25rem; }

/* ---------- Silent-film intertitle cards ---------- */
.intertitle {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 44px 40px;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  box-shadow:
    inset 0 0 0 12px var(--black),
    inset 0 0 0 13px var(--tan),
    inset 0 0 0 17px var(--black),
    inset 0 0 0 18px rgba(207, 182, 143, .55),
    0 22px 40px -22px rgba(0, 0, 0, .6);
}
.intertitle h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
}
html.js .iris {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.2s cubic-bezier(.6, 0, .2, 1);
}
html.js .iris-stage.is-open .iris { clip-path: circle(80% at 50% 50%); }

/* ---------- Films and prices ---------- */
.films { padding: 120px 24px; }
.films-intro {
  max-width: 38em;
  margin: 0 auto 3rem;
  font-size: 1.3125rem;
  text-align: center;
}
.program {
  padding: 12px 48px;
  border: 1px solid rgba(207, 182, 143, .3);
  border-radius: 4px;
  background: #0e0c0a;
  box-shadow: inset 0 0 0 5px #0e0c0a, inset 0 0 0 6px rgba(207, 182, 143, .14), 0 30px 50px -30px rgba(0, 0, 0, .9);
}
.program-item { padding: 34px 0; border-bottom: 1px solid rgba(207, 182, 143, .18); }
.program-item:last-child { border-bottom: 0; }
.program-head { display: flex; align-items: baseline; gap: 16px; }
.program-head h3 {
  margin: 0;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
}
.leader {
  flex: 1;
  min-width: 24px;
  border-bottom: 3px dotted rgba(207, 182, 143, .45);
  transform: translateY(-7px);
}
.price {
  margin: 0;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-from { margin-right: .2rem; font-size: 1.0625rem; font-style: italic; }
.price-num { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 600; color: var(--tan); }
.program-desc { max-width: 40em; margin: .75rem 0 0; }
.program-note { margin: .6rem 0 0; font-size: 1.0625rem; font-style: italic; color: var(--tan); }


/* Digitizing the past: a strip of home movie passes under the scanner light */
.digitize {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-top: 64px;
}
.home-movie {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 30px 8px;
  border-radius: 3px;
  overflow: hidden;
  background:
    var(--perf-row) repeat-x left 0 top 8px / 26px 14px,
    var(--perf-row) repeat-x left 0 bottom 8px / 26px 14px,
    #0d0b08;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 24px 34px -22px rgba(0, 0, 0, .6);
  transform: rotate(-1.5deg);
}
.home-movie img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px / 9px; /* home-movie frames have soft corners */
  filter: grayscale(1) sepia(.32) contrast(1.06) brightness(.97);
}
html.js .home-movie img {
  filter: grayscale(.4) sepia(.9) contrast(.5) brightness(1.4) blur(2px);
  transition: filter .6s ease-out;
}
html.js .home-movie.is-scanned img { filter: grayscale(1) sepia(.32) contrast(1.06) brightness(.97) blur(0); }
html.js .home-movie.is-scanned img:nth-child(1) { transition-delay: .2s; }
html.js .home-movie.is-scanned img:nth-child(2) { transition-delay: .7s; }
html.js .home-movie.is-scanned img:nth-child(3) { transition-delay: 1.2s; }
.home-movie::after { /* the scanner light */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 80%, rgba(255, 246, 226, .45) 89%, rgba(255, 255, 255, .9) 92%, rgba(255, 246, 226, .45) 95%, transparent);
  mix-blend-mode: screen;
  transform: translate3d(-100%, 0, 0);
  pointer-events: none;
}
html.js .home-movie.is-scanned::after { animation: scan-pass 1.8s linear forwards; }
@keyframes scan-pass {
  from { transform: translate3d(-100%, 0, 0); }
  to   { transform: translate3d(20%, 0, 0); }
}
.digitize-copy h3 {
  margin: 0 0 .75rem;
  color: var(--white);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
}
.digitize-copy p { max-width: 30em; margin: 0 0 1.5rem; }
.process .digitize { margin-top: 96px; }

/* On black, the film pieces sit on a dim light table */
.memories {
  background:
    radial-gradient(62% 55% at 50% 50%, rgba(207, 182, 143, .09), transparent 72%),
    var(--black);
}
.super8,
.cine,
.negatives,
.home-movie {
  box-shadow:
    0 0 0 1px rgba(207, 182, 143, .24),
    0 20px 30px -18px rgba(0, 0, 0, .9),
    0 0 38px rgba(207, 182, 143, .08);
}


/* ---------- How it works (film strip) ---------- */
.process { padding: 120px 24px; background: var(--black); }
.process h2 {
  margin: 0 0 .5rem;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: var(--white);
}
.process-intro { margin: 0 0 3rem; }
.strip { position: relative; max-width: 880px; margin: 0; padding: 0; list-style: none; }
.strip::before { /* one continuous strip of film behind every frame */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 152px;
  background: var(--perf-pair) repeat-y 0 0 / 152px 32px;
  border-left: 1px solid rgba(207, 182, 143, .25);
  border-right: 1px solid rgba(207, 182, 143, .25);
}
.frame {
  position: relative;
  display: grid;
  grid-template-columns: 152px 1fr;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
}
.frame-num {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100px;
  height: 78px;
  border: 2px solid rgba(207, 182, 143, .5);
  border-radius: 6px;
  background: var(--black);
  color: var(--silver-dim);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.frame.is-lit .frame-num {
  border-color: var(--tan);
  background: var(--tan);
  color: var(--black);
  box-shadow: 0 0 44px rgba(207, 182, 143, .45);
}
.frame-text h3 { margin: 0 0 .25rem; font-size: 1.625rem; font-weight: 600; color: var(--white); }
.frame-text p { max-width: 34em; margin: 0; }

/* ---------- About: the end credits ---------- */
.credits { position: relative; background: var(--black); }
.credits-sticky {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 24px;
}
.credits-bio h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}
.credits-bio p { max-width: 32em; }
.credits-roll { margin: 0; padding: 0; }
.credit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 28px;
  margin: 0 0 30px;
}
.credit dt {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--silver-dim);
  text-align: right;
}
.credit dd {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
}
.credit dd small {
  display: block;
  margin-top: .25rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--silver-dim);
}
.credit-lead,
.credit-final { grid-template-columns: 1fr; gap: 4px; text-align: center; }
.credit-lead { margin-bottom: 60px; }
.credit-final { margin: 80px 0 0; }
.credit-lead dt,
.credit-final dt { text-align: center; }
.credit-lead dd,
.credit-final dd {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
}
.credit-lead dd { font-size: clamp(3rem, 5vw, 4rem); color: var(--tan); }
.credit-final dd { font-size: clamp(3.5rem, 6vw, 4.75rem); color: var(--white); }

/* Scroll-linked roll, desktop only (set by JS when motion is allowed) */
html.can-roll .credits { height: 320vh; }
html.can-roll .credits-sticky {
  position: sticky;
  top: var(--bar-h);
  height: calc(100vh - var(--bar-h));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  padding-block: 0;
  overflow: hidden;
}
html.can-roll .credits-window {
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
html.can-roll .credits-roll {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translate3d(0, var(--roll, 0px), 0);
  will-change: transform;
}

/* ---------- Contact ---------- */
.contact { padding: 110px 24px 120px; }
.contact-intro {
  max-width: 38em;
  margin: 0 auto 3rem;
  font-size: 1.3125rem;
  text-align: center;
}
.contact-paths {
  max-width: 860px;
  margin: 0 auto;
}
.ticket {
  --notch: 18px;
  --btn-bg: var(--tan);
  --btn-fg: var(--black);
  --btn-hover-bg: var(--white);
  --btn-hover-fg: var(--black);
  --focus: var(--tan);
  display: grid;
  grid-template-columns: 64px 1fr;
  border-radius: 10px;
  background: #17130f;
  color: var(--silver);
  box-shadow: inset 0 0 0 1px rgba(207, 182, 143, .35);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 64px 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 64px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 64px 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 64px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  display: grid;
  place-items: center;
  border-right: 3px dashed rgba(207, 182, 143, .55);
}
.ticket-stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.125rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--tan);
}
.ticket-body { padding: 40px 40px 36px; }
.ticket-body h3 { margin: 0 0 1.5rem; font-size: 1.75rem; font-weight: 600; color: var(--white); }

.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  display: block;
  margin-bottom: .4rem;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--silver);
}
.req, .opt { font-size: 1rem; font-weight: 400; color: var(--silver-dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--white);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font: 400 1.1875rem/1.4 var(--serif);
}
.field textarea { min-height: 124px; resize: vertical; }
.field [aria-invalid="true"] { border: 3px solid var(--error); }
.field-error { margin: .45rem 0 0; font-weight: 600; color: var(--error); }
.field-error::before { content: "Error: "; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.field .choice {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 56px;
  margin: 0;
  padding: 0 18px;
  border: 2px solid rgba(236, 230, 218, .5);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}
.field .choice input {
  width: 22px;
  min-height: 0;
  height: 22px;
  margin: 0;
  padding: 0;
  accent-color: var(--tan);
}
.field .choice:has(input:checked) { border-color: var(--tan); background: rgba(207, 182, 143, .16); }
.form-help { margin: .9rem 0 0; font-size: 1.0625rem; color: var(--silver-dim); }
.form-status { margin: .75rem 0 0; font-weight: 600; color: var(--tan); }
.form-status:empty { display: none; }
/* Spam trap: hidden from people, filled in only by bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ticket-body button[disabled] { opacity: .7; cursor: progress; }
.error-summary {
  margin: 0 0 1.25rem;
  padding: 16px 20px;
  border: 3px solid var(--error);
  border-radius: 4px;
}
.error-summary p { margin: 0 0 .4rem; font-weight: 600; color: var(--white); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); }

/* ---------- The End ---------- */
.finale {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 48px;
  background:
    radial-gradient(55% 42% at 50% 30%, rgba(207, 182, 143, .2), transparent 72%),
    var(--black);
  color: var(--silver);
  text-align: center;
}
.the-end {
  position: relative;
  margin: 0 0 .9em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.75rem, 12vw, 9.5rem);
  line-height: 1;
  color: var(--white);
  text-shadow: none;
}
.the-end::before { /* the waterline */
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(80vw, 5em);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(240, 228, 206, .7), transparent);
  box-shadow: 0 0 12px rgba(207, 182, 143, .5);
}
.the-end::after { /* its reflection on the water */
  content: "The End";
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: scaleY(-.62);
  opacity: .3;
  filter: blur(1.2px);
  -webkit-mask: linear-gradient(to top, #000, transparent 72%);
  mask: linear-gradient(to top, #000, transparent 72%);
  animation: ripple 6s ease-in-out infinite alternate;
}
@keyframes ripple {
  from { transform: scaleY(-.62) skewX(-1.2deg) scaleX(1); }
  to   { transform: scaleY(-.66) skewX(1.2deg) scaleX(1.015); }
}
.finale-meta { position: relative; }
html.js .the-end { opacity: 0; }
html.js .the-end.is-on { animation: flicker-in var(--intro) linear both; }
.finale-meta p { margin: .3rem 0; font-size: 1.0625rem; color: var(--silver-dim); }
.finale-meta a { color: var(--tan); }

/* ---------- Keyframes ---------- */
@keyframes flicker-in {
  0%   { opacity: 0;   filter: blur(6px) brightness(2.2); }
  6%   { opacity: .85; }
  9%   { opacity: .08; }
  14%  { opacity: .9;  filter: blur(3px) brightness(1.8); }
  18%  { opacity: .25; }
  24%  { opacity: 1; }
  30%  { opacity: .5; }
  36%  { opacity: 1;   filter: blur(1.4px) brightness(1.4); }
  44%  { opacity: .72; }
  52%  { opacity: 1; }
  60%  { opacity: .86; filter: blur(.5px) brightness(1.15); }
  70%  { opacity: 1; }
  82%  { opacity: .94; }
  100% { opacity: 1;   filter: none; }
}
@keyframes weave {
  0%   { transform: translate(0, -7px); }
  8%   { transform: translate(2px, 5px); }
  16%  { transform: translate(-2px, -4px); }
  26%  { transform: translate(1px, 3px); }
  38%  { transform: translate(-1px, -2px); }
  52%  { transform: translate(0, 1px); }
  70%, 100% { transform: translate(0, 0); }
}
@keyframes glow-flicker {
  0%   { opacity: 0; }
  6%   { opacity: .9; }
  9%   { opacity: .15; }
  14%  { opacity: 1; }
  18%  { opacity: .35; }
  24%  { opacity: 1; }
  30%  { opacity: .6; }
  40%, 100% { opacity: 1; }
}
@keyframes reel {
  0%   { transform: translate3d(0, -50%, 0); filter: blur(2.5px); }
  70%  { filter: blur(.4px); }
  100% { transform: translate3d(0, 0, 0); filter: none; }
}
@keyframes scratch {
  0%   { opacity: .6; transform: translateX(0); }
  14%  { opacity: 0; }
  28%  { opacity: .45; transform: translateX(46px); }
  42%  { opacity: 0; }
  56%  { opacity: .3; transform: translateX(-22px); }
  70%, 100% { opacity: 0; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 3%); }
  50%  { transform: translate(3%, -5%); }
  75%  { transform: translate(-2%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .topbar-phone { display: none; }
}

@media (max-width: 1040px) {
  :root { --rail: 36px; }
  .rail-left .rail-track { background: var(--perf-hero) repeat-y center top / var(--rail) calc(var(--rail) * .6875); }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute;
    top: var(--bar-h);
    left: 0;
    right: 0;
    display: none;
    background: var(--black);
    border-bottom: 1px solid rgba(207, 182, 143, .3);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .site-nav a {
    width: 100%;
    min-height: 56px;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(207, 182, 143, .18);
  }
  .site-nav li:last-child a { border-bottom: 0; }
  .digitize { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
}

@media (max-width: 900px) {
  .memories { padding: 70px 20px 110px; }
  /* The pieces gather above and below the words, in loose pairs */
  .memories-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .memories-copy { order: 0; margin: 76px auto 56px; }
  .memento { position: relative; inset: auto; }
  .m-instant { order: -1; z-index: 2; align-self: flex-start; width: min(50%, 260px); margin-left: 4%; }
  .m-slide   { order: -1; z-index: 1; align-self: flex-end; --w: min(40%, 200px); width: var(--w); margin-right: 5%;
               margin-top: calc(-1 * min(50%, 260px) - 4px); }
  .m-super8  { order: 1; align-self: center; width: min(92%, 440px); }
  .m-album   { order: 2; z-index: 1; align-self: flex-end; width: min(54%, 300px); margin-top: 36px; margin-right: 3%; }
  .m-cine    { order: 3; z-index: 2; align-self: flex-start; width: min(40%, 190px); margin-left: 6%;
               margin-top: calc(-0.36 * min(54%, 300px) - 30px); }
  .m-negs    { display: none; }
}

@media (max-width: 760px) {
  :root { --bar-h: 68px; }
  body { font-size: 1.1875rem; }
  .brand { font-size: 1.85rem; }
  .topbar-inner { gap: .6rem; padding: 0 14px; }
  .topbar-cta { padding: 0 .8rem; }
  :root { --rail: 20px; }
  .hero { padding: 48px 18px 110px; }
  .hero-actions .btn { width: 100%; }
  .screening { padding: 100px 18px; }
  .films, .process, .contact { padding: 90px 18px; }
  .intertitle { padding: 36px 26px; }
  .program { padding: 6px 22px; }
  .program-head { flex-wrap: wrap; gap: 4px; }
  .leader { display: none; }
  .price { width: 100%; text-align: left; }
  .home-movie { gap: 6px; padding: 22px 6px; background-size: 20px 11px, 20px 11px, auto; background-position: left 0 top 6px, left 0 bottom 6px, 0 0; }
  .frame { grid-template-columns: 92px 1fr; gap: 18px; }
  .strip::before { width: 92px; background-size: 92px 20px; }
  .frame-num { width: 60px; height: 48px; font-size: 1.6rem; }
  .credit { grid-template-columns: 1fr; gap: 2px; text-align: center; }
  .credit dt { text-align: center; }
  .ticket { grid-template-columns: 40px 1fr; --notch: 14px; }
  .ticket { -webkit-mask:
      radial-gradient(circle var(--notch) at 40px 0, transparent 97%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at 40px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 40px 0, transparent 97%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at 40px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat; }
  .ticket-stub span { font-size: .95rem; letter-spacing: .22em; }
  .ticket-body { padding: 30px 20px 28px; }
  .play-icon { width: 76px; height: 76px; }
  .play-icon svg { width: 26px; height: 26px; }
  .play-label { font-size: 1.25rem; }
  .play-length { font-size: 1rem; }
}

@media (max-width: 560px) {
  .topbar-inner { gap: .45rem; padding: 0 8px; }
  .brand { font-size: 1.6rem; }
  .topbar-cta { padding: 0 .8rem; }
  .menu-toggle { padding: 0 12px; }
}

@media (max-width: 400px) {
  :root { --rail: 14px; }
  .topbar-inner { gap: .35rem; padding: 0 6px; }
  .brand { font-size: 1.4rem; padding-inline: 2px; }
  .topbar-cta { padding: 0 .65rem; font-size: 1rem; }
  .menu-toggle { padding: 0 10px; }
}

@media (max-width: 340px) {
  :root { --rail: 10px; }
  .brand { font-size: 1.2rem; }
  .topbar-cta { padding: 0 .5rem; font-size: .95rem; }
  .menu-toggle { padding: 0 8px; }
}

/* ---------- Reduced motion: everything arrives already settled ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body::after { animation: none; }
  html.js .iris { clip-path: none; }
  html.js .memento img { filter: var(--tone); }
  .memento { animation: none; }
  html.js .home-movie img { filter: grayscale(1) sepia(.32) contrast(1.06) brightness(.97); }
  .home-movie::after { display: none; }
  html.js .the-end { opacity: 1; }
  .film-rails::after, .scratch-lines, .cue-mark, .gate-hair { display: none; }
  .hero.is-settled .hero-weave, .is-jumping { animation: none !important; }
  .the-end::after, .hero-gate::before { animation: none; }
  .mote { animation: none; opacity: calc(var(--o, .8) * .6); }
}
