/* A shared aperture reveals the next section's continuous background. The
   slower photographic film stays behind the cut, with no visible bottom band. */
.home-page {
  --cinema-header-height: 5.5rem;
  --cinema-height: calc(100svh - var(--cinema-header-height));
  overflow-x: clip;
}
.home-page .site-header { position: sticky; top: 0; background: #080808; }
.retrospective-hero { position: relative; z-index: 3; pointer-events: none; }
.cinema-stage { position: relative; height: var(--cinema-height); overflow: clip; background: #080808; }
.cinema-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.22) 45%, transparent 72%), linear-gradient(0deg, rgba(0,0,0,.48), transparent 55%);
  opacity: var(--cinema-shade-opacity, 1);
}
.cinema-scene { position: relative; width: 100%; height: 100%; overflow: clip; isolation: isolate; }
.cinema-frame { position: relative; width: 100%; height: 100%; }
.cinema-group { position: absolute; inset: 0; transform-origin: 50% 50%; clip-path: inset(0 -8%); z-index: 2; }
.cinema-registration { position: absolute; inset: 0; }
.cinema-media { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #000; }
.cinema-poster, .cinema-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
.cinema-video { visibility: hidden; }
.cinema-media.is-playing .cinema-video { visibility: visible; }
.cinema-media.is-playing .cinema-poster { visibility: hidden; }
.cinema-rail { position: absolute; top: 0; bottom: 0; width: 8%; overflow: hidden; z-index: 3; }
.cinema-rail--left { right: 100%; }
.cinema-rail--right { left: 100%; }
.cinema-track { width: 100%; }
.cinema-stock {
  height: var(--stock-height, 320px);
  background: url("/assets/images/film-left-nimbo-v1.webp") 0 0 / 100% 100% no-repeat;
}
.cinema-rail--right .cinema-stock { background-image: url("/assets/images/film-right-nimbo-v1.webp"); }
.cinema-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.cinema-damage {
  position: absolute; right: -6.5%; top: 68%; width: 3%; height: 11%; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at 85% 40%, #d8a04e88 0%, #86392333 38%, transparent 73%);
  filter: blur(2px); opacity: 0;
}
.retrospective-copy {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(2rem, 6svh, 5rem) var(--page-x);
  color: #f3f3f3;
}
.cinema-eyebrow { font: 600 var(--label-xs)/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.5rem; }
.retrospective-copy h1 { font: 750 clamp(3.5rem, 8.5vw, 9rem)/1.04 var(--condensed); letter-spacing: -.035em; word-spacing: .12em; margin: 0 0 2rem; }
.cinema-enter {
  display: inline-flex; gap: 3rem; align-items: center; min-height: 48px;
  padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.65);
  font: 600 var(--label-xs)/1.4 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; pointer-events: auto;
}
.cinema-enter span { transition: transform 180ms ease; }
.cinema-enter:hover span, .cinema-enter:focus-visible span { transform: translateY(4px); }
.home-page .trajectory { clip-path: none; margin-top: 0; scroll-margin-top: var(--cinema-header-height); }
.home-page main > section[id] { scroll-margin-top: var(--cinema-header-height); }
html[data-motion="on"] [data-cinema="ready"]::after { content: ""; display: block; height: var(--cinema-height); }
html[data-motion="on"] [data-cinema="ready"] .cinema-stage { position: sticky; top: var(--cinema-header-height); }
html[data-motion="on"] [data-cinema="ready"] + .trajectory { margin-top: calc(-1 * var(--cinema-height)); }
html[data-motion="on"] [data-cinema="ready"] + .trajectory::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--cinema-height); background: inherit; pointer-events: none;
}
html[data-motion="on"] .cinema-group, html[data-motion="on"] .cinema-track, html[data-motion="on"] .cinema-registration { will-change: transform; }
html:not([data-motion="on"]) .cinema-rail,
html:not([data-motion="on"]) .cinema-damage,
html:not([data-motion="on"]) .cinema-dust { display: none; }
html:not([data-motion="on"]) .cinema-video { visibility: hidden; }
html:not([data-motion="on"]) .cinema-poster { visibility: visible; }
@media (max-width: 560px) {
  .home-page { --cinema-header-height: 4.8rem; }
  .retrospective-copy { padding-bottom: 3rem; }
  .retrospective-copy h1 { font-size: clamp(3.2rem, 12vw, 4.3rem); }
  .cinema-eyebrow { margin-bottom: 1rem; }
}
@media (max-height: 480px) and (min-width: 561px) {
  .retrospective-copy { padding-block: 1rem; }
  .retrospective-copy h1 { font-size: 3rem; margin-bottom: .6rem; }
  .cinema-eyebrow { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] [data-cinema="ready"]::after { display: none; }
  html[data-motion="on"] [data-cinema="ready"] .cinema-stage { position: relative; top: 0; }
  html[data-motion="on"] [data-cinema="ready"] + .trajectory { margin-top: 0; }
  html[data-motion="on"] [data-cinema="ready"] + .trajectory::before { display: none; }
  .cinema-group, .cinema-registration { transform: none !important; visibility: visible !important; }
  .cinema-stage, .cinema-scene { clip-path: none !important; }
  .retrospective-copy { opacity: 1 !important; transform: none !important; }
  .cinema-stage::before { opacity: 1; }
  .cinema-rail, .cinema-damage, .cinema-dust { display: none; }
  .cinema-media .cinema-video { visibility: hidden; }
  .cinema-media .cinema-poster { visibility: visible; }
  .cinema-enter span { transition: none; transform: none; }
}
