/* ═══════════════════════════════════════════════════════════
   Lovepreet & Arohi — "The Reel"
   Midnight & Champagne · scroll is the playhead
   ═══════════════════════════════════════════════════════════ */

:root {
  /* colour */
  --bg: #0b0d14;
  --bg-raise: #12151f;
  --ink: #f2ede4;
  --ink-mute: #9a958a;
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, 0.22);
  --gold-dim: rgba(200, 169, 106, 0.55);
  --overlay: rgba(11, 13, 20, 0.72);

  /* type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* space */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 160px;

  /* motion */
  --dur-fast: 180ms;
  --dur-base: 340ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);

  /* chrome */
  --barh: 0px;
  --rail-w: 56px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  transform: translateY(-200%);
  background: var(--gold);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus {
  transform: translateY(0);
}

.mono {
  font-family: var(--label);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.amp {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

/* placeholder marker — visible while the real details are missing */
.ph {
  color: var(--gold-dim);
}
.ph[data-placeholder]::after {
  content: "draft";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--gold-soft);
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  vertical-align: 2px;
}
span.ph[data-placeholder] {
  font-size: 0;
  margin-left: 0;
}

/* ── cinema chrome ──────────────────────────────────────── */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--barh);
  background: #000;
  z-index: 60;
  pointer-events: none;
  transition: height var(--dur-slow) var(--ease-out);
}
.bar--top {
  top: 0;
}
.bar--bottom {
  bottom: 0;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 55;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 54;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 50% 45%,
    transparent 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ── chapter rail (this is the whole navigation) ────────── */

.rail {
  position: fixed;
  z-index: 70;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}
.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rail__list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 26px;
  text-decoration: none;
}
.rail__tick {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink-mute);
  opacity: 0.45;
  transition:
    width var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}
.rail__list a:hover .rail__tick {
  width: 24px;
  opacity: 0.9;
}
.rail__list a[aria-current="true"] .rail__tick {
  width: 30px;
  background: var(--gold);
  opacity: 1;
}
.rail__now {
  position: absolute;
  right: calc(100% - 4px);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}

/* ── sound toggle ───────────────────────────────────────── */

.sound {
  position: fixed;
  z-index: 70;
  left: var(--s3);
  bottom: calc(var(--barh) + var(--s3));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(18, 21, 31, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-soft);
  color: var(--ink);
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    bottom var(--dur-slow) var(--ease-out);
}
.sound:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.sound__on {
  display: none;
}
.sound[aria-pressed="true"] .sound__on {
  display: block;
  color: var(--gold);
}
.sound[aria-pressed="true"] .sound__off {
  display: none;
}

/* ── shared section furniture ───────────────────────────── */

section {
  position: relative;
}

.tag {
  color: var(--gold-dim);
  margin-bottom: var(--s3);
}
.tag--center {
  text-align: center;
}

.rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  transform-origin: left center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 10px;
}
.btn--ghost {
  border-color: var(--gold-soft);
  color: var(--ink-mute);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ═══ 00 · cold open ════════════════════════════════════ */

.open {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s5) var(--s3);
}
.open__eyebrow {
  margin-bottom: var(--s4);
}
.open__names {
  font-size: clamp(52px, 13vw, 148px);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.open__names .amp {
  font-size: 0.42em;
  line-height: 1.4;
}
.open__date {
  margin-top: var(--s4);
  color: var(--ink);
  letter-spacing: 0.34em;
}
.cue {
  position: absolute;
  bottom: calc(var(--barh) + var(--s4));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cue__line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim));
}

/* ═══ 01 · invitation ═══════════════════════════════════ */

.invite {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: var(--s6) var(--s3);
  overflow: hidden;
}
.invite__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}
.invite__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(0.35) contrast(1.05);
}
.invite::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--overlay) 40%,
    var(--bg) 100%
  );
}
.invite__body {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.invite__title {
  font-size: clamp(32px, 7vw, 60px);
  line-height: 1.1;
  margin-bottom: var(--s3);
}
.lede {
  font-family: var(--display);
  font-size: clamp(22px, 4.4vw, 34px);
  line-height: 1.4;
  color: var(--ink);
}
.lede--sub {
  margin-top: var(--s3);
  font-size: clamp(18px, 3.4vw, 26px);
  color: var(--ink-mute);
}
.attrib {
  margin-top: var(--s3);
  font-size: 14px;
  color: var(--ink-mute);
}
.count {
  margin-top: var(--s5);
  display: flex;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.count__cell {
  min-width: 74px;
  padding: 14px 8px;
  border-top: 1px solid var(--gold-soft);
}
.count__cell b {
  display: block;
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.count__cell span {
  font-size: 9px;
  letter-spacing: 0.24em;
}
.count__note {
  margin-top: var(--s3);
}

/* ═══ 02 · the two ══════════════════════════════════════ */

.couple {
  padding: var(--s7) var(--s3);
  max-width: 1120px;
  margin: 0 auto;
}
.couple__grid {
  display: grid;
  gap: var(--s5);
  align-items: center;
}
.couple__seam {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
}
.couple__seam::before,
.couple__seam::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-dim),
    transparent
  );
}
.couple__seam .mono {
  color: var(--gold);
  white-space: nowrap;
}
.who {
  text-align: center;
}
.who__mono {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 88px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.28;
  margin-bottom: -18px;
}
.who h2 {
  font-size: clamp(34px, 7vw, 54px);
}
.who .mono {
  margin-top: 12px;
}
.who > p:last-child {
  margin-top: var(--s3);
  color: var(--ink-mute);
  max-width: 34ch;
  margin-inline: auto;
}
.couple__note {
  margin-top: var(--s5);
  text-align: center;
  font-size: 13px;
}

/* ═══ 03 · three days — MOBILE ONLY ══════════════════════ */

.days {
  padding: var(--s7) 0;
}
.days__stage {
  padding-inline: var(--s3);
}
.days__head {
  max-width: 1120px;
  margin: 0 auto var(--s5);
}
.days__title {
  font-size: clamp(40px, 9vw, 88px);
}
.days__viewport {
  max-width: 1120px;
  margin: 0 auto;
}
.days__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}
.days__progress {
  display: none;
}
.days__hint {
  display: none;
}
.days__hint .rule {
  width: 22px;
  margin-right: 0;
}
.days__pips {
  display: none;
}

/* day divider — carries the date in the stacked fallback,
   hidden once the slider takes over (each slide states its own date) */
.day-marker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s5);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-soft);
}
.day-marker:first-child {
  margin-top: 0;
}
.day-marker .mono {
  color: var(--gold);
  letter-spacing: 0.24em;
}

.ev {
  background: var(--bg-raise);
  border: 1px solid var(--gold-soft);
  overflow: hidden;
}
.ev__shot {
  margin: 0;
  overflow: hidden;
}
.ev__shot img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.03);
  transition:
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
}
.ev:hover .ev__shot img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.05);
}
.ev__meta {
  padding: var(--s3);
}
.ev__when {
  display: block;
  color: var(--gold-dim);
}
.ev h3 {
  font-size: 28px;
  margin: 8px 0 0;
}
.ev p {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 14px;
}

/* ═══ 04 · ceremonies — DESKTOP ONLY ════════════════════ */

.film {
  display: none;
  padding: var(--s7) var(--s3);
}
.film__stage {
  max-width: 1120px;
  margin: 0 auto;
}
.film__well {
  display: grid;
  gap: var(--s4);
}
.frame {
  margin: 0;
  position: relative;
}
.frame img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.04);
}
.frame::after {
  content: attr(data-name) " · " attr(data-time);
  display: block;
  margin-top: 12px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.film__caption {
  display: none;
}

/* ═══ 05 · venue ════════════════════════════════════════ */

.venue {
  min-height: 80svh;
  display: grid;
  place-items: center;
  padding: var(--s7) var(--s3);
  text-align: center;
  overflow: hidden;
}
.motes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.venue__body {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.venue__name {
  font-size: clamp(36px, 8vw, 68px);
}
.venue__addr {
  margin-top: var(--s2);
  color: var(--ink-mute);
  font-size: 18px;
}
.venue .btn {
  margin-top: var(--s4);
}

/* ═══ 06 · be there ═════════════════════════════════════ */

.rsvp {
  padding: var(--s7) var(--s3);
  max-width: 1120px;
  margin: 0 auto;
}
.rsvp__title {
  font-size: clamp(34px, 7vw, 62px);
}
.rsvp__lede {
  margin-top: var(--s3);
  color: var(--ink-mute);
  max-width: 46ch;
}
.cards {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.card {
  background: var(--bg-raise);
  border: 1px solid var(--gold-soft);
  padding: var(--s4) var(--s3);
}
.card__role {
  color: var(--gold-dim);
}
.card h3 {
  font-size: 26px;
  margin-top: 10px;
}
.card__num {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.card__acts {
  margin-top: var(--s3);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* ═══ 07 · end card ═════════════════════════════════════ */

.end {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  text-align: center;
  padding: var(--s6) var(--s3);
  background: linear-gradient(to bottom, var(--bg), #05060a);
}
/* the couple, barely there — same treatment as the hero in Ch.I */
.end__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}
.end__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.42;
  filter: grayscale(0.25) contrast(1.04);
}
.end::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 20, 0.92) 0%,
    rgba(11, 13, 20, 0.55) 45%,
    rgba(5, 6, 10, 0.94) 100%
  );
}
.end > *:not(.end__media) {
  position: relative;
  z-index: 2;
}

.end__last {
  letter-spacing: 0.28em;
}
.end__rule {
  display: block;
  width: min(320px, 60vw);
  height: 1px;
  background: var(--gold-dim);
  transform-origin: center;
}
.end__names {
  font-family: var(--display);
  font-size: clamp(34px, 8vw, 76px);
  line-height: 1.1;
}
.end__tail {
  margin-top: var(--s2);
  letter-spacing: 0.3em;
}

/* ═══════════════════════════════════════════════════════
   CHAPTER EXCLUSIVITY
   Ch.III "Three days" is the mobile chapter — a scroll-driven
   slider. Ch.IV "Ceremonies" is the desktop chapter — the
   pinned reel. Each is removed entirely on the other size,
   including its rail tick.
   ═══════════════════════════════════════════════════════ */

@media (min-width: 900px) {
  .days {
    display: none;
  }
  .film {
    display: block;
  }
  .rail__list a[href="#days"] {
    display: none;
  }
}

@media (max-width: 899px) {
  .rail__list a[href="#film"] {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE SLIDER — Ch.III
   One event per slide, the photograph doing the talking.
   Scroll pans the deck sideways while the section is pinned.
   ═══════════════════════════════════════════════════════ */

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .days {
    padding: 0;
  }
  .days__stage {
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: var(--s4) 0 var(--s3);
    overflow: hidden;
  }

  .days__head {
    margin: 0 var(--s3) var(--s3);
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s2);
  }
  .days__head .tag {
    margin-bottom: 6px;
  }
  .days__title {
    font-size: 32px;
  }

  .days__pips {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
  }
  .days__pips li {
    color: var(--ink-mute);
    opacity: 0.4;
    font-size: 11px;
    letter-spacing: 0.1em;
    transition:
      color var(--dur-base) var(--ease-out),
      opacity var(--dur-base) var(--ease-out);
  }
  .days__pips li.is-on {
    color: var(--gold);
    opacity: 1;
  }

  .days__viewport {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
  }
  .days__track {
    display: flex;
    gap: 0;
    height: 100%;
    align-items: stretch;
    will-change: transform;
  }

  .day-marker {
    display: none;
  }

  .ev {
    flex: 0 0 auto;
    width: 100vw;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    padding: 0 var(--s3);
    opacity: 0;
    transform: translateY(18px);
  }

  /* the photograph takes every pixel the slide can spare */
  .ev__shot {
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid var(--gold-soft);
    background: var(--bg-raise);
  }
  .ev__shot img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.08) contrast(1.04);
  }

  .ev__meta {
    flex: 0 0 auto;
    padding: var(--s2) 0 0;
  }
  .ev__when {
    color: var(--gold);
  }
  .ev h3 {
    font-size: 26px;
    margin: 6px 0 0;
  }
  .ev p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
  }

  .days__progress {
    display: block;
    flex: 0 0 auto;
    margin: var(--s3) var(--s3) 0;
    height: 1px;
    background: var(--gold-soft);
  }
  .days__progress span {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
  }

  .days__hint {
    flex: 0 0 auto;
    margin: var(--s2) var(--s3) 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* short phones: the copy line goes, the photo keeps its height */
@media (max-width: 899px) and (max-height: 680px) and (prefers-reduced-motion: no-preference) {
  .days__stage {
    padding-top: var(--s3);
  }
  .days__title {
    font-size: 26px;
  }
  .ev p {
    display: none;
  }
  .ev h3 {
    font-size: 22px;
  }
  .days__hint {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   CINEMATIC LAYER — desktop, motion allowed
   Everything above is the readable, stacked fallback.
   ═══════════════════════════════════════════════════════ */

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  body {
    padding-right: var(--rail-w);
  }

  .couple__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--s5);
  }
  .couple__seam {
    flex-direction: column;
    width: auto;
    height: 260px;
  }
  .couple__seam::before,
  .couple__seam::after {
    width: 1px;
    height: auto;
    background: linear-gradient(
      to bottom,
      transparent,
      var(--gold-dim),
      transparent
    );
  }
  .who--l {
    text-align: right;
  }
  .who--r {
    text-align: left;
  }
  .who--l > p:last-child {
    margin-inline: 0 0;
    margin-left: auto;
  }
  .who--r > p:last-child {
    margin-inline: 0 0;
  }

  /* ── pinned crossfade sequence ── */
  .film {
    padding: 0;
  }
  .film__stage {
    height: 100svh;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s5) var(--s4);
  }
  .film__stage > .tag {
    flex: 0 0 auto;
  }
  .film__well {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: min(1120px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--gold-soft);
  }
  .frame {
    position: absolute;
    inset: 0;
    clip-path: inset(0 100% 0 0);
    will-change: clip-path;
  }
  .frame:first-child {
    clip-path: inset(0 0 0 0);
  }
  .frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    will-change: transform;
  }
  .frame::after {
    content: none;
  }
  .film__caption {
    display: block;
    flex: 0 0 auto;
    width: min(1120px, 100%);
    margin: var(--s3) auto 0;
    text-align: center;
  }
  .film__caption h2 {
    font-size: 34px;
  }
  .film__caption p {
    margin-top: 6px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
  }
}

@media (min-width: 1280px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══ no-JS / no-GSAP / reduced-motion hard fallback ════ */

html.no-motion .bar {
  height: 0 !important;
}
html.no-motion .ev {
  opacity: 1 !important;
  transform: none !important;
}
html.no-motion .frame {
  clip-path: none !important;
}
html.no-motion .motes {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bar {
    height: 0 !important;
  }
  .ev {
    opacity: 1 !important;
    transform: none !important;
  }
  .motes {
    display: none;
  }
  .cue {
    display: none;
  }
}
