/* =========================================================
   Teguh & Gita — "The Feature Film" (Variation 4)
   A love story told as a movie · letterbox, scenes, credits
   Theme: cinema black · warm white · curtain red & amber
   Type: Cinzel (titles) · Oswald (billing) · Courier Prime (screenplay)
   ========================================================= */

:root {
  --black:   #0A0A0A;
  --black-2: #121212;
  --white:   #F4EFE6;
  --dim:     #9A938A;
  --red:     #C0392B;
  --red-dk:  #8E2A20;
  --amber:   #E0B257;
  --line:    rgba(244, 239, 230, 0.16);

  --title:  "Cinzel", Georgia, serif;
  --poster: "Playfair Display", Georgia, "Times New Roman", serif;
  --bill:   "Oswald", "Arial Narrow", sans-serif;
  --mono:   "Courier Prime", "Courier New", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar: 7vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bill);
  font-weight: 300;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }

.reel-label {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 1rem;
}
.section-head { text-align: center; }
.section-head__title {
  font-family: var(--title); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; letter-spacing: 0.04em;
  margin: 0; color: var(--white);
}
.amp { color: var(--red); }

/* =========================================================
   Cinematic overlays
   ========================================================= */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(2) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)} 100%{transform:translate(2%,-3%)} }
.flicker { position: fixed; inset: 0; z-index: 8998; pointer-events: none; background: #000; opacity: 0; animation: flick 7s steps(1) infinite; }
@keyframes flick { 0%,100%{opacity:0} 2%{opacity:0.06} 3%{opacity:0} 41%{opacity:0} 42%{opacity:0.08} 43%{opacity:0} }
.vignette { position: fixed; inset: 0; z-index: 8997; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 52%, rgba(0,0,0,0.7) 100%); }
.scratches { position: fixed; inset: 0; z-index: 8996; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,0.05) 12.1%, transparent 12.3%),
    linear-gradient(90deg, transparent 0 73%, rgba(255,255,255,0.04) 73.1%, transparent 73.2%);
  animation: scratch 0.4s steps(2) infinite;
}
@keyframes scratch { 0%{transform:translateX(0)} 50%{transform:translateX(-30px)} 100%{transform:translateX(40px)} }

/* =========================================================
   Letterbox bars
   ========================================================= */
.bar { position: fixed; left: 0; right: 0; height: 50vh; background: #000; z-index: 8000; transition: height 1.3s var(--ease); pointer-events: none; }
.bar--top { top: 0; }
.bar--bottom { bottom: 0; }
body.cinema-open .bar { height: var(--bar); }

/* =========================================================
   HUD
   ========================================================= */
.hud { position: fixed; z-index: 8100; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(244,239,230,0.7); opacity: 0; transition: opacity 0.6s ease; }
body.cinema-open .hud { opacity: 1; }
.hud--tl { top: calc(var(--bar) + 12px); left: 16px; display: flex; align-items: center; gap: 7px; }
.hud--tr { top: calc(var(--bar) + 12px); right: 16px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec 1.4s steps(1) infinite; }
@keyframes rec { 0%,100%{opacity:1} 50%{opacity:0.15} }

/* Language switcher — edit copy in locales/*.json */
.lang-switch {
  position: fixed; z-index: 8100;
  top: calc(var(--bar) + 10px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  color: rgba(244,239,230,0.55);
}
.lang-switch button {
  background: none; border: none; padding: 0.2rem 0.35rem; cursor: pointer;
  font: inherit; color: inherit; text-transform: uppercase;
  transition: color 0.2s ease;
}
.lang-switch button:hover { color: rgba(244,239,230,0.85); }
.lang-switch button.is-active { color: var(--amber); }
.lang-switch span { opacity: 0.45; user-select: none; }

/* =========================================================
   Film leader countdown
   ========================================================= */
.leader { position: fixed; inset: 0; z-index: 9100; background: #040404; transition: opacity 0.7s ease, visibility 0.7s ease; overflow: hidden; }
.leader.is-done { opacity: 0; visibility: hidden; }

/* Opening — full-screen Academy leader printed over a B&W photo reel */
.leader__film { position: absolute; inset: 0; overflow: hidden; animation: leaderWeave 0.22s steps(2, end) infinite, leaderFlick 3.4s steps(1) infinite; }
.leader__frames { position: absolute; inset: 0; }
.leader__frame { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.14) brightness(0.82); opacity: 0; transition: opacity 0.16s linear; }
.leader__frame.is-on { opacity: 1; }

/* sprocket perforations down both edges — the film running vertically */
.leader__perf { position: absolute; top: 0; bottom: 0; width: clamp(16px, 3.6vw, 30px); z-index: 3; background: #0a0a0a; box-shadow: inset 0 0 18px rgba(0,0,0,0.85); overflow: hidden; }
.leader__perf--l { left: 0; } .leader__perf--r { right: 0; }
.leader__perf::before {
  content: ""; position: absolute; left: 20%; right: 20%; top: -48px; height: 200%;
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(226,221,209,0.78) 18px 32px, transparent 32px 48px);
  border-radius: 3px; animation: perfRun 0.5s linear infinite;
}
@keyframes perfRun { to { transform: translateY(48px); } }

/* darkened gate + scan lines */
.leader__vig { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(125% 85% at 50% 50%, transparent 40%, rgba(0,0,0,0.66) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
}

/* full-screen crosshair + ring + sweep + number */
.leader__cross { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.leader__cross::before, .leader__cross::after { content: ""; position: absolute; background: rgba(244,239,230,0.5); }
.leader__cross::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.leader__cross::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.leader__ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(76vmin, 540px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(244,239,230,0.55); box-shadow: inset 0 0 70px rgba(0,0,0,0.4); z-index: 5; pointer-events: none; }
.leader__sweep { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(0deg); width: min(76vmin, 540px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; z-index: 5; pointer-events: none;
  background: conic-gradient(rgba(6,6,6,0.5) 0deg, rgba(6,6,6,0.12) 42deg, transparent 64deg, transparent 360deg);
  animation: sweep 1s linear infinite;
}
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.leader__num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 6; font-family: var(--title); font-weight: 700; font-size: min(34vmin, 230px); line-height: 1; color: rgba(244,239,230,0.96); text-shadow: 0 4px 34px rgba(0,0,0,0.7), 0 0 3px rgba(0,0,0,0.5); }
.leader__num.pop { animation: pop 0.55s var(--ease); }
@keyframes pop { 0%{transform:translate(-50%,-50%) scale(1.5);opacity:0} 35%{opacity:1} 100%{transform:translate(-50%,-50%) scale(1)} }

@keyframes leaderWeave { 0%{transform:translateY(0)} 50%{transform:translateY(-1px)} 100%{transform:translateY(0.6px)} }
@keyframes leaderFlick { 0%,6%,9%,100%{filter:brightness(1)} 7%{filter:brightness(0.86)} 52%{filter:brightness(1.07)} 53%{filter:brightness(0.92)} }


.leader__caption { position: absolute; left: 0; right: 0; bottom: clamp(2.4rem, 8vh, 5rem); z-index: 7; text-align: center; padding: 0 1.5rem; }
.leader__cue { font-family: var(--title); font-weight: 600; font-size: clamp(1rem, 3.2vw, 1.4rem); letter-spacing: 0.06em; color: var(--white); margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,0.9); }
.leader__note { font-family: var(--mono); font-size: clamp(0.58rem, 1.6vw, 0.7rem); letter-spacing: 0.14em; text-transform: uppercase; color: #c2bbaf; margin: 0.6rem 0 0; text-shadow: 0 2px 10px rgba(0,0,0,0.92); }

.leader__skip { position: absolute; bottom: 1.6rem; right: 1.6rem; z-index: 9; background: rgba(5,5,5,0.5); border: 1px solid var(--line); color: var(--dim); font-family: var(--bill); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; padding: 0.6rem 1.1rem; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(3px); }
.leader__skip:hover { color: var(--white); border-color: var(--white); }

/* =========================================================
   Content base
   ========================================================= */
.content { opacity: 0; transition: opacity 0.8s ease; }
.content.is-visible { opacity: 1; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

.scrubber { position: fixed; left: 0; right: 0; bottom: calc(var(--bar) - 3px); height: 3px; background: rgba(244,239,230,0.18); z-index: 8100; opacity: 0; transition: opacity 0.6s ease; }
body.cinema-open .scrubber { opacity: 1; }
.scrubber__fill { display: block; height: 100%; width: 0%; background: var(--red); }
.scrubber__head { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--red); transform: translate(-50%, -50%); left: 0%; box-shadow: 0 0 8px rgba(192,57,43,0.8); }

.scroll-cue { position: absolute; bottom: calc(var(--bar) + 1.2rem); left: 50%; transform: translateX(-50%); z-index: 5; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-cue__line { width: 1px; height: 34px; background: linear-gradient(var(--amber), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0)} 40%{transform:scaleY(1)} 100%{transform:scaleY(0);transform-origin:bottom} }

/* =========================================================
   Scenes
   ========================================================= */
.scene { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.scene--short { min-height: 86svh; }
.scene__still { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene__still--bw { filter: grayscale(1) contrast(1.14) brightness(0.82); }
.kenburns { animation: kb 26s ease-out infinite alternate; }
@keyframes kb { from { transform: scale(1.05); } to { transform: scale(1.2); } }
.scene__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.5) 0%, rgba(5,5,5,0.14) 32%, rgba(5,5,5,0.26) 56%, rgba(5,5,5,0.85) 100%); }

.scene__head { position: relative; z-index: 3; padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(5rem, 12vh, 8rem); max-width: 760px; }
.scene__head--center { margin: 0 auto; text-align: center; padding-bottom: clamp(4rem, 10vh, 7rem); }
.scene__no { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.7rem; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.scene__slug { font-family: var(--mono); font-weight: 700; font-size: clamp(0.85rem, 2.4vw, 1.15rem); letter-spacing: 0.06em; color: var(--white); margin: 0.5rem 0 0.6rem; text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.8); }
.scene__name { font-family: var(--title); font-weight: 600; font-size: clamp(2.2rem, 7.2vw, 4.4rem); line-height: 1.02; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.7); }
.scene__quote { font-family: var(--bill); font-style: normal; font-weight: 300; font-size: clamp(1.05rem, 2.55vw, 1.32rem); line-height: 1.58; letter-spacing: 0.035em; color: #ece6dc; margin: clamp(1.15rem, 2.6vh, 1.65rem) 0 0; max-width: 34ch; text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.85); }
.scene__head--center .scene__quote { margin-left: auto; margin-right: auto; }

/* Title card — title set just above the couple, billing pinned to the foot */
.scene--title { align-items: flex-start; justify-content: center; text-align: center; }
.scene--title .scene__shade {
  background:
    linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.72) 22%, rgba(5,5,5,0.56) 38%, rgba(5,5,5,0.38) 50%, rgba(5,5,5,0.38) 58%, rgba(5,5,5,0.6) 66%, rgba(5,5,5,0.8) 78%, rgba(5,5,5,0.9) 88%, rgba(5,5,5,0.95) 100%);
}

.title__head { position: absolute; left: 0; right: 0; bottom: 61%; z-index: 3; padding: 0 1.5rem; }
.film-title {
  font-family: var(--poster); font-weight: 600;
  font-size: clamp(2.7rem, 9.5vw, 5.6rem); line-height: 0.92; margin: 0;
  letter-spacing: 0.004em; color: var(--amber);
  text-shadow: 0 8px 46px rgba(0,0,0,0.8), 0 2px 12px rgba(0,0,0,0.8);
}
.film-title span { display: block; }
.film-title .ttl-dot { font-style: normal; color: var(--red); }

/* Billing — simple, lifted off the bottom edge */
.invite { position: absolute; left: 0; right: 0; bottom: calc(var(--bar) + clamp(4.5rem, 9.5vh, 6.5rem)); z-index: 4; padding: 0 1.5rem; }
/* Kicker — mono label, like "Scene One" */
.invite__kicker {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(0.62rem, 1.7vw, 0.74rem); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 0.7rem; padding-left: 0.3em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.92);
}
/* Names — Cinzel, like the scene names ("The Overture") */
.invite__names {
  font-family: var(--title); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 5.2vw, 2.7rem); line-height: 1; letter-spacing: 0.04em;
  color: var(--white); margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}
.invite__names span { font-family: var(--title); font-style: normal; font-weight: 600; color: var(--amber); margin: 0 0.1em; }

/* Thin divider under the names */
.invite__rule { display: block; width: clamp(120px, 32%, 200px); height: 1px; margin: clamp(0.95rem, 2.3vh, 1.35rem) auto; background: linear-gradient(to right, transparent, rgba(244,239,230,0.6), transparent); }

/* Date & location — unified mono lines with aligned icons */
.invite__meta {
  display: inline-grid; grid-template-columns: 14px auto; justify-content: center;
  column-gap: 0.7rem; row-gap: 0.6rem; margin-top: 0.1rem;
}
.invite__line { display: contents; margin: 0; }
.invite__icon {
  align-self: center; width: 13px; height: 13px;
  color: var(--amber); opacity: 0.9;
}
.invite__icon svg { display: block; width: 100%; height: 100%; }
.invite__text {
  align-self: center; text-align: left;
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(0.64rem, 1.75vw, 0.78rem); letter-spacing: 0.16em; text-transform: uppercase;
  color: #cfc8bd; text-shadow: 0 2px 8px rgba(0,0,0,0.92);
  padding-top: 0.1em;
}

/* Clapperboard slate */
.slate { position: absolute; top: calc(var(--bar) + 28px); left: clamp(1.5rem, 6vw, 6rem); z-index: 4; width: clamp(150px, 24vw, 210px); }
.slate__stick { display: flex; height: 22px; transform-origin: left bottom; transform: rotate(-26deg); transition: transform 0.18s var(--ease); margin-bottom: 2px; }
.slate.clapped .slate__stick { transform: rotate(0deg); animation: clapBounce 0.4s var(--ease); }
@keyframes clapBounce { 0%{transform:rotate(-26deg)} 60%{transform:rotate(3deg)} 100%{transform:rotate(0)} }
.slate__stick i { flex: 1; background: #f4efe6; }
.slate__stick i:nth-child(even) { background: #1a1a1a; transform: skewX(-26deg); }
.slate__stick i:nth-child(odd) { transform: skewX(-26deg); }
.slate__rows { background: #1a1a1a; border: 1px solid rgba(244,239,230,0.3); padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.slate__rows div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: #cfc8bd; border-bottom: 1px solid rgba(244,239,230,0.12); padding-bottom: 2px; }
.slate__rows div:last-child { border-bottom: none; padding-bottom: 0; }
.slate__rows b { color: var(--amber); }

/* Subtitles */
.subtitle {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bar) + 1.6rem); z-index: 6;
  width: min(90%, 760px); text-align: center; margin: 0;
  font-family: var(--mono); font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 0 3px rgba(0,0,0,0.85), 0 0 1px rgba(0,0,0,0.9);
  min-height: 1.6em;
}
.subtitle::after { content: "▌"; opacity: 0; margin-left: 1px; }
.subtitle.typing::after { opacity: 0.7; animation: caret 0.6s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* =========================================================
   Premiere countdown
   ========================================================= */
.premiere { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: clamp(3.5rem, 9vh, 6rem) 1.5rem; text-align: center; }
.premiere__still { position: absolute; inset: 0; background-size: cover; background-position: center; }
.premiere__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.6) 38%, rgba(5,5,5,0.64) 70%, rgba(5,5,5,0.82) 100%); }
.premiere__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.premiere__head { margin-bottom: clamp(1.4rem, 3vh, 2rem); }
.premiere__head .section-head__title { text-shadow: 0 3px 16px rgba(0,0,0,0.85); }
.film-count { display: flex; justify-content: center; gap: clamp(0.35rem, 2vw, 1.2rem); }
.fc { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 0.75rem 0.5rem; border: 1px solid rgba(244,239,230,0.18); background: rgba(10,10,10,0.38); backdrop-filter: blur(4px); }
.fc__n { font-family: var(--title); font-weight: 700; font-size: clamp(1.6rem, 6.5vw, 2.8rem); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; transition: transform 0.4s var(--ease); text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.fc__n.tick { animation: ticknum 0.4s var(--ease); }
@keyframes ticknum { 0%{transform:rotateX(-90deg);opacity:0} 100%{transform:none;opacity:1} }
.fc__l { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase; color: #cfc8bd; margin-top: 0.55rem; }

/* Premiere details — compact icon lines */
.premiere__details { margin-top: clamp(1.4rem, 3.5vh, 2rem); }
.pd__meta { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; margin-bottom: 1.1rem; }
.pd__line {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: 0;
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(0.64rem, 1.75vw, 0.78rem); letter-spacing: 0.14em; text-transform: uppercase;
  color: #cfc8bd; text-shadow: 0 2px 8px rgba(0,0,0,0.92);
}
.pd__icon { flex: none; width: 12px; height: 12px; color: var(--amber); opacity: 0.9; }
.pd__icon svg { display: block; width: 100%; height: 100%; }

/* Dress code — compact palette strip */
.dresscode {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  margin: 0 0 1.2rem; padding-top: 1rem;
  border-top: 1px solid rgba(244,239,230,0.1);
}
.dresscode__label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin: 0; }
.dresscode__swatches { list-style: none; display: flex; justify-content: center; gap: 0.55rem; margin: 0; padding: 0; }
.dresscode__swatches li { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(244,239,230,0.3); box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.premiere__btns { display: flex; gap: 0.55rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 520px) {
  .premiere { padding: clamp(2.8rem, 7vh, 4.5rem) 1.1rem; }
  .fc { min-width: 0; flex: 1; padding: 0.6rem 0.25rem; }
  .fc__n { font-size: clamp(1.35rem, 5.8vw, 1.7rem); }
  .fc__l { font-size: 0.48rem; margin-top: 0.4rem; letter-spacing: 0.14em; }
  .premiere__btns { flex-direction: column; align-items: stretch; }
  .premiere__btns .btn-film { width: 100%; padding: 0.72rem 1rem; font-size: 0.66rem; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-film {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--bill); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none; border-radius: 3px;
  background: var(--red); color: #fff; padding: 0.85rem 1.7rem;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.btn-film:hover { transform: translateY(-2px); background: var(--red-dk); }
.btn-film--ghost { background: transparent; border: 1px solid var(--line); color: var(--white); }
.btn-film--ghost:hover { background: var(--white); color: var(--black); }
.btn-film--block { width: 100%; padding: 1rem; }

/* =========================================================
   Scene selection (gallery)
   ========================================================= */
.scenes-sec { background: var(--black); padding: clamp(3.5rem, 9vw, 6rem) 0; overflow: hidden; }
.scenes-sec__head { text-align: center; margin-bottom: 2.4rem; padding: 0 1.5rem; }
.scenes-sec__title { font-family: var(--title); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0; }
.scenes-sec__hint { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 0.9rem 0 0; }

/* Film-strip carousel — the B&W camera roll, scrolling horizontally */
.reel-roll {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* Sprocket rails (fixed gate) running along the top and bottom edges */
.reel-roll::before, .reel-roll::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px; z-index: 4; pointer-events: none;
  background: radial-gradient(circle, #ccc4b2 0 2px, transparent 2.8px) 8px center / 24px 18px repeat-x;
  opacity: 0.9;
}
.reel-roll::before { top: 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05); }
.reel-roll::after { bottom: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }

.reel-roll__track {
  display: flex; align-items: center; width: max-content;
  padding: 18px 0;
  animation: reelScroll 60s linear infinite;
  will-change: transform;
}
.reel-roll:hover .reel-roll__track,
.reel-roll:focus-within .reel-roll__track { animation-play-state: paused; }
@keyframes reelScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reel-frame {
  position: relative; flex: 0 0 auto; margin: 0 6px;
  width: clamp(232px, 27vw, 340px);
  height: clamp(150px, 18vw, 214px);
  overflow: hidden; cursor: default;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
}
.reel-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.9);
  transition: filter 0.6s ease, transform 0.9s var(--ease);
}
.reel-frame:hover img, .reel-frame:focus-visible img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.06); }
.reel-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
  background: linear-gradient(to top, rgba(6,6,6,0.85) 0%, rgba(6,6,6,0.25) 50%, transparent 100%);
  z-index: 1; pointer-events: none;
}
.reel-frame__cap {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.3; letter-spacing: 0.08em;
  color: var(--white); text-shadow: 0 1px 4px #000;
}

@media (prefers-reduced-motion: reduce) {
  .reel-roll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .reel-roll__track { animation: none; }
  .reel-frame[aria-hidden="true"] { display: none; }
}

/* =========================================================
   RSVP ticket
   ========================================================= */
.rsvp4 { background: linear-gradient(180deg, #161310, var(--black)); padding: clamp(3.5rem, 9vw, 7rem) 1.5rem; }
.rsvp4__head { margin-bottom: 2.6rem; }
.ticket { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 130px; background: linear-gradient(160deg, #efe7d6, #ded2bb); color: #1a1611; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.ticket__main { padding: clamp(1.4rem, 4vw, 2.2rem); }
.ticket__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--bill); font-weight: 600; letter-spacing: 0.24em; font-size: 0.7rem; color: var(--red-dk); border-bottom: 2px dashed rgba(26,22,17,0.3); padding-bottom: 0.8rem; margin-bottom: 1rem; }
.ticket__film { font-family: var(--title); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 1.4rem; color: #1a1611; }
.ticket-form .tf { position: relative; margin-bottom: 1.3rem; }
.tf input, .tf select { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(26,22,17,0.3); color: #1a1611; font-family: var(--bill); font-size: 1rem; padding: 0.6rem 0; border-radius: 0; }
.tf input:focus, .tf select:focus { outline: none; border-color: var(--red); }
.tf label { position: absolute; left: 0; top: 0.6rem; color: #8a7d6b; pointer-events: none; transition: all 0.3s var(--ease); font-family: var(--bill); }
.tf input:focus + label, .tf input:not(:placeholder-shown) + label, .tf label.tf-static { top: -0.7rem; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-dk); }
.tf-row { display: flex; gap: 0.7rem; margin-bottom: 1.3rem; }
.seat { flex: 1; cursor: pointer; background: transparent; border: 1px solid rgba(26,22,17,0.35); color: #4a4136; font-family: var(--bill); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; padding: 0.8rem 0.4rem; border-radius: 4px; transition: all 0.3s ease; }
.seat:hover { border-color: var(--red); color: #1a1611; }
.seat.active { background: var(--red); color: #fff; border-color: var(--red); }
.ticket-form__note { margin: -0.4rem 0 1.2rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.04em; color: #8a7d6b; }
.ticket-form__msg { text-align: center; min-height: 1.3em; margin: 0.9rem 0 0; font-family: var(--mono); font-size: 0.85rem; color: var(--red-dk); }
.ticket__stub { position: relative; background: var(--red-dk); color: #f0e6d2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.4rem 0.6rem; }
.ticket__stub::before { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 16px; background-image: radial-gradient(circle at 0 50%, transparent 7px, #161310 8px); background-size: 16px 20px; }
.ticket__stub-admit { writing-mode: vertical-rl; font-family: var(--bill); font-weight: 600; letter-spacing: 0.3em; font-size: 0.8rem; }
.ticket__stub-no { font-family: var(--mono); font-size: 0.66rem; }
.ticket__barcode { width: 70%; height: 40px; background-image: repeating-linear-gradient(90deg, #f0e6d2 0 2px, transparent 2px 4px, #f0e6d2 4px 5px, transparent 5px 8px); }

/* =========================================================
   Gift / transfer
   ========================================================= */
.gift { background: var(--black); padding: clamp(3.5rem, 9vw, 7rem) 1.5rem; text-align: center; }
.gift__head { max-width: 560px; margin: 0 auto 2.4rem; }
.gift__note { font-family: var(--mono); font-size: clamp(0.72rem, 1.9vw, 0.82rem); line-height: 1.7; letter-spacing: 0.04em; color: #cfc8bd; margin: 0.8rem 0 0; }
.gift__card {
  max-width: 480px; margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.2rem);
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(160deg, rgba(22,19,16,0.95), rgba(10,10,10,0.98));
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
}
.gift__card.is-open .gift__reveal { display: none; }
.gift__reveal { width: 100%; }
.gift__details { text-align: left; }
.gift__row {
  display: grid; grid-template-columns: minmax(88px, 34%) 1fr; gap: 0.6rem 1rem;
  align-items: baseline; padding: 0.85rem 0;
  border-bottom: 1px solid rgba(244,239,230,0.1);
}
.gift__row:last-of-type { border-bottom: none; }
.gift__row--acct { grid-template-columns: minmax(88px, 34%) 1fr; align-items: center; }
.gift__key { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.gift__val { font-family: var(--title); font-weight: 500; font-size: clamp(0.95rem, 2.6vw, 1.1rem); color: var(--white); word-break: break-word; }
.gift__val--num { font-family: var(--mono); font-size: clamp(0.82rem, 2.2vw, 0.95rem); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; word-break: normal; }
.gift__copy {
  background: transparent; border: 1px solid rgba(244,239,230,0.28); border-radius: 3px;
  color: var(--amber); font-family: var(--bill); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.45rem 0.65rem; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  grid-column: 2; justify-self: start; margin-top: 0.55rem;
}
.gift__copy:hover { background: rgba(224,178,87,0.12); }
.gift__copy.is-done { color: var(--white); border-color: rgba(244,239,230,0.5); }
.gift__copy-msg { min-height: 1.2em; margin: 0.6rem 0 0; font-family: var(--mono); font-size: 0.72rem; color: var(--amber); text-align: center; }

/* =========================================================
   End credits
   ========================================================= */
/* Rolling end credits — the stage fills the screen while the type rolls up on its own */
.credits { position: relative; height: 100svh; overflow: hidden; background: #050505; }
.credits__stage { position: absolute; inset: 0; overflow: hidden; }
.credits__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(40%) brightness(0.52); }
.credits__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.5) 16%, rgba(5,5,5,0.44) 84%, rgba(5,5,5,0.94) 100%),
    rgba(5,5,5,0.5);
}
.credits__roll {
  position: absolute; top: 0; left: 50%; z-index: 2;
  width: min(90%, 560px); transform: translate(-50%, 100vh);
  text-align: center; padding: 0 0 2rem;
  will-change: transform;
}
.credits__fin { font-family: var(--title); font-weight: 700; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: 0.08em; margin: 0 0 3rem; }
.credit-block { margin: 0 0 2.2rem; }

/* Final screen — fades in once the roll finishes: title card up top, camera roll below */
.credits__end {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vh, 4rem);
  padding: calc(var(--bar) + 2rem) 0 calc(var(--bar) + 1.6rem);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.credits.is-ended .credits__end {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.8s ease;
}
.credits__endcard { width: min(90%, 560px); text-align: center; }
.credits__end .reel-roll { width: 100%; }

/* Skip control — bottom-left so it never collides with the sound toggle */
.credits__skip {
  position: absolute; z-index: 5; left: clamp(1rem, 3vw, 2rem); right: auto; bottom: calc(var(--bar) + 1.2rem);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); background: rgba(10,10,10,0.4); border: 1px solid var(--line);
  padding: 0.5rem 0.9rem; border-radius: 2px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease, color 0.3s ease;
}
.credits__skip:hover { color: var(--white); }
.credits.is-rolling .credits__skip { opacity: 1; pointer-events: auto; }

/* Hidden background-music player (SoundCloud widget) — real size offscreen so its
   canvas renders without errors, but kept invisible and non-interactive */
#scPlayer { position: fixed; left: -10000px; top: 0; width: 320px; height: 200px; opacity: 0; border: 0; pointer-events: none; }

/* ---------- Tap-to-begin entry gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 9500; cursor: pointer;
  display: grid; place-items: center; text-align: center; padding: 2rem;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(30,24,18,0.55) 0%, rgba(5,5,5,0.92) 60%, #050505 100%),
    #050505;
  opacity: 1; transition: opacity 0.7s ease;
}
.gate.is-gone { opacity: 0; pointer-events: none; }
.gate__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(1.1rem, 3vh, 1.8rem); }
.gate__kicker {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(0.62rem, 1.7vw, 0.74rem); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); margin: 0;
}
.gate__names {
  font-family: var(--title); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; letter-spacing: 0.04em;
  color: var(--white); margin: 0;
}
.gate__names span { font-family: var(--title); font-style: normal; font-weight: 600; color: var(--amber); margin: 0 0.1em; }
.gate__play {
  --d: clamp(74px, 18vw, 96px);
  width: var(--d); height: var(--d); border-radius: 50%; cursor: pointer; margin-top: 0.4rem;
  background: rgba(192,57,43,0.12); border: 1.5px solid var(--amber);
  display: grid; place-items: center; color: var(--amber);
  transition: transform 0.3s var(--ease), background 0.3s ease, box-shadow 0.3s ease;
  animation: gatePulse 2.4s ease-out infinite;
}
.gate__play:hover { transform: scale(1.06); background: rgba(224,178,87,0.16); }
.gate__tri {
  width: 0; height: 0; margin-left: 6px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--amber);
}
.gate__hint {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin: 0.2rem 0 0;
}
@keyframes gatePulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,178,87,0.5); }
  70%  { box-shadow: 0 0 0 22px rgba(224,178,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,178,87,0); }
}
@media (prefers-reduced-motion: reduce) { .gate__play { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .credits { height: auto; min-height: 100svh; }
  .credits__stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(3.5rem, 12vh, 7rem) 0; }
  .credits__roll { position: relative; left: auto; top: auto; transform: none; padding: 0; }
  .credits__end { position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: auto; padding: 2.6rem 0 0; height: auto; transition: none; }
  .credits__endcard, .credits__end .reel-roll { margin-top: 0; }
  .credits__skip { display: none; }
}
.credit-role { font-family: var(--bill); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.4rem; }
.credit-name { font-family: var(--title); font-weight: 500; font-size: clamp(1.2rem, 4vw, 1.7rem); margin: 0.1rem 0; }
.credit-name--sm { font-family: var(--bill); font-weight: 300; font-size: 1rem; color: var(--white); }
.credits__sign { font-family: var(--title); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 3rem 0 0.6rem; }
.credits__coming { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; color: var(--dim); margin: 0 0 2rem; }

/* =========================================================
   Controls + lightbox
   ========================================================= */
.sound-toggle { position: fixed; right: 16px; bottom: calc(var(--bar) + 14px); z-index: 8100; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,20,20,0.8); border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity 0.6s ease; }
body.cinema-open .sound-toggle { opacity: 1; }
.sound-toggle__film { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--amber); position: relative; }
.sound-toggle__film::after { content: ""; position: absolute; inset: 0; margin: auto; width: 3px; height: 3px; border-radius: 50%; background: var(--white); }
.sound-toggle.is-on .sound-toggle__film { animation: spin 3s linear infinite; }
/* Gentle "tap for sound" pulse until the music starts */
body.cinema-open .sound-toggle.is-hint { animation: soundHint 2s ease-out infinite; }
@keyframes soundHint {
  0%   { box-shadow: 0 0 0 0 rgba(224,178,87,0.55); }
  70%  { box-shadow: 0 0 0 13px rgba(224,178,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,178,87,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox4 { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.lightbox4.is-open { opacity: 1; pointer-events: auto; }
.lightbox4__img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 90px -20px #000; border: 1px solid var(--line); }
.lightbox4__close, .lightbox4__nav { position: absolute; background: none; border: none; color: rgba(244,239,230,0.85); cursor: pointer; line-height: 1; transition: color 0.3s ease; }
.lightbox4__close { top: 1rem; right: 1.4rem; font-size: 2.4rem; }
.lightbox4__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0 1rem; }
.lightbox4__nav--prev { left: 0.4rem; }
.lightbox4__nav--next { right: 0.4rem; }
.lightbox4__close:hover, .lightbox4__nav:hover { color: var(--amber); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 720px) {
  :root { --bar: 5vh; }
  .invite { bottom: calc(var(--bar) + clamp(7rem, 15vh, 9.5rem)); }
  .reel-frame { width: clamp(208px, 64vw, 260px); height: clamp(140px, 42vw, 172px); }
  .reel-frame__cap { font-size: 0.66rem; left: 8px; right: 8px; bottom: 7px; }
  .slate { width: 130px; top: calc(var(--bar) + 20px); }
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { flex-direction: row; padding: 1rem; }
  .ticket__stub-admit { writing-mode: horizontal-tb; }
  .ticket__stub::before { left: 0; right: 0; top: -8px; bottom: auto; width: auto; height: 16px; background-image: radial-gradient(circle at 50% 0, transparent 7px, #161310 8px); background-size: 20px 16px; }
  .ticket__barcode { width: 90px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .grain, .flicker, .scratches { display: none; }
}
