/* Hollywoodź Swing: dark, gold and cream over a full-screen 3D stage. */
:root {
  --ink: #06060a;
  --cream: #f4ecdc;
  --muted: rgba(244, 236, 220, 0.66);
  --faint: rgba(244, 236, 220, 0.4);
  --gold: #d8ae5e;
  --gold-hi: #f1d394;
  --gold-lo: #9c7432;
  --line: rgba(216, 174, 94, 0.24);
  --panel: rgba(6, 6, 10, 0.84);
  --error: #ff9d8a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Arial, sans-serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sign: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --btn-hi: #f1d394;
  --btn-mid: #d8ae5e;
  --btn-lo: #9c7432;
  --nav-bg: rgba(6, 6, 10, 0.72);
  --menu-bg: rgba(6, 6, 10, 0.95);
  --ghost-bg: rgba(6, 6, 10, 0.35);
  --ghost-line: rgba(244, 236, 220, 0.35);
  --field-bg: rgba(244, 236, 220, 0.04);
  --field-bg-focus: rgba(244, 236, 220, 0.07);
  --field-line: rgba(244, 236, 220, 0.28);
  --option-bg: #121118;
  --dot: rgba(244, 236, 220, 0.25);
  --text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
  --head-shadow: 0 2px 24px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8);
  --vignette: rgba(0, 0, 0, 0.55);
  --grain: 0.07;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
i { font-style: normal; color: var(--gold); padding: 0 0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }

/* ---------------- stage + overlays ---------------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 80% 75% at 50% 45%, transparent 55%, var(--vignette) 100%);
}
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: var(--grain);
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
/* without WebGL: a still, dark stage with a warm glow low down instead of the 3D sets */
.no-webgl #stage { display: none; }
body.no-webgl {
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(122, 34, 50, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 30% at 62% 0%, rgba(232, 201, 138, 0.1), transparent 70%),
    var(--ink) fixed;
}
.veil { position: fixed; inset: 0; background: #000; pointer-events: none; z-index: 50; }
main { position: relative; z-index: 2; }

/* ---------------- navigation ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav__brand { display: inline-flex; align-items: baseline; gap: 0.3em; text-decoration: none; color: var(--cream); white-space: nowrap; }
/* the sign letters: tall, plain capitals like the ones on the hill */
.nav__brand b { font: 400 1.75rem/1 var(--sign); letter-spacing: 0.07em; text-transform: uppercase; }
.nav__brand span { font: 400 1.7rem/1 var(--script); color: var(--gold); margin-left: -0.15em; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__tools { margin-left: 0.5rem; }
.nav__links a {
  text-decoration: none; font: 400 0.78rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); padding: 6px 0; position: relative; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }
.nav__tools { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: 0.35rem; color: var(--faint); font: 400 0.72rem/1 var(--sans); }
.lang button {
  background: none; border: 0; padding: 6px 2px; cursor: pointer; color: var(--faint);
  font: 500 0.74rem/1 var(--sans); letter-spacing: 0.18em; transition: color 0.3s;
}
.lang button:hover { color: var(--cream); }
.lang button[aria-pressed="true"] { color: var(--gold); }
/* background music: a crossed-out speaker while it is off, four dancing bars while it plays */
.music {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ghost-line); background: var(--ghost-bg);
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color 0.3s, background 0.3s;
}
.music:hover { border-color: var(--gold); }
.music:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.music__bars { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.music__off { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.music:hover .music__off { stroke: var(--cream); }
.music[aria-pressed="true"] .music__off { display: none; }
.music[aria-pressed="true"] .music__bars { display: flex; }
.music__bars i { width: 2px; height: 3px; border-radius: 1px; background: var(--faint); transition: height 0.4s var(--ease), background 0.3s; }
.music[aria-pressed="true"] { border-color: rgba(216, 174, 94, 0.6); }
.music[aria-pressed="true"] .music__bars i { background: var(--gold); animation: music-bar 1.1s ease-in-out infinite; }
.music[aria-pressed="true"] .music__bars i:nth-child(2) { animation-delay: -0.45s; animation-duration: 0.9s; }
.music[aria-pressed="true"] .music__bars i:nth-child(3) { animation-delay: -0.2s; animation-duration: 1.3s; }
.music[aria-pressed="true"] .music__bars i:nth-child(4) { animation-delay: -0.7s; }
/* Instagram and Facebook: in the bar on wide screens, inside the menu on phones, and in the end credits */
.social { display: flex; align-items: center; gap: 0.35rem; }
.social--menu { display: none; }
.social__link {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.social__link:hover { color: var(--gold-hi); background: var(--ghost-bg); }
.social__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.social__link svg { width: 18px; height: 18px; fill: currentColor; }
.social__link svg .s { fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav__cta { flex-shrink: 0; }
/* the full bar with the social icons needs tighter spacing on smaller laptops */
@media (min-width: 901px) and (max-width: 1240px) {
  .nav { gap: 1.2rem; }
  .nav__links { gap: 1.3rem; }
  .nav__tools { gap: 0.55rem; margin-left: 0; }
  .social { gap: 0; }
}
/* just above the menu breakpoint the links already include Zapisy, so the extra button goes */
@media (min-width: 901px) and (max-width: 1020px) { .nav .nav__cta { display: none; } }
@keyframes music-bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------------- buttons ---------------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 2.1em; border: 1px solid var(--b); border-radius: 999px;
  background: linear-gradient(135deg, var(--btn-hi), var(--btn-mid) 45%, var(--btn-lo));
  color: #1a1209; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 0 0 rgba(216, 174, 94, 0);
}
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transition: transform 0.9s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px rgba(216, 174, 94, 0.6); }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost { background: var(--ghost-bg); color: var(--cream); border-color: var(--ghost-line); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--small { padding: 0.75em 1.5em; font-size: 0.72rem; }
.btn--wide { width: 100%; margin-top: 1.6rem; padding-block: 1.15em; }

/* ---------------- side reel (scene indicator) ---------------- */
.reel {
  position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 15;
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px;
}
.reel a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; padding: 4px 0; }
.reel a::after {
  content: ""; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
  transition: background 0.4s, transform 0.4s var(--ease);
}
.reel span {
  font: 400 0.68rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transform: translateX(8px); transition: opacity 0.4s, transform 0.4s var(--ease);
}
.reel a:hover span, .reel a.is-active span { opacity: 1; transform: none; }
.reel a.is-active::after { background: var(--gold); transform: rotate(45deg) scale(1.25); }

/* ---------------- sections ---------------- */
.section {
  min-height: 100vh; min-height: 100svh;
  padding: clamp(96px, 14vh, 150px) clamp(16px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.section--left { align-items: flex-start; }
.section--right { align-items: flex-end; }
.section--center { align-items: center; text-align: center; }
#festiwal, #instruktorzy, #grafik, #zapisy { min-height: 150vh; }

.panel {
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  position: relative;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel--wide { width: min(780px, 100%); }
.panel--story { width: min(900px, 100%); }

/* Scene 02: the story of Łódź */
.story { margin: 0 0 2.2rem; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.story p { margin: 0 0 1.1em; }
.story p:first-child::first-letter { float: left; font: 500 3.6em/0.8 var(--serif); color: var(--gold); margin: 0.06em 0.12em 0 0; }
.story strong { font-weight: 500; color: var(--gold-hi); }
.story__end {
  column-span: all; margin: 1.4em 0 0 !important; padding: 1.4rem clamp(1.2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 3px;
  background: rgba(216, 174, 94, 0.07); font: italic 500 1.3rem/1.45 var(--serif); color: var(--gold-hi); text-align: center;
}
@media (min-width: 1100px) {
  .story { columns: 2; column-gap: 2.6rem; }
  .story p { break-inside: avoid-column; }
  .story__col { break-before: column; }
}

.slate {
  display: inline-flex; align-items: center; gap: 0.9em; margin: 0 0 1.2rem;
  font: 400 0.72rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.slate::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--gold); }
.section--center .slate::after { content: ""; width: 34px; height: 1px; background: var(--gold); }

h2 {
  margin: 0 0 1.1rem; font: 500 clamp(2.4rem, 5.2vw, 4.2rem)/1.02 var(--serif); letter-spacing: -0.01em;
}
h2 em { font-style: italic; font-weight: 400; color: var(--gold-hi); }
.lead { margin: 0 0 2rem; color: var(--muted); font-size: 1.06rem; max-width: 34em; }
.section--center .lead { margin-inline: auto; }
.note { margin: 1.6rem 0 0; color: var(--faint); font-size: 0.9rem; }
.note a { color: var(--gold-hi); }
#zapisy .panel { text-align: left; }

/* ---------------- hero ---------------- */
.hero { display: block; min-height: 170vh; padding: 0; }
.hero__screen {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(84px, 12vh, 120px) clamp(16px, 6vw, 96px) clamp(28px, 7vh, 72px);
}
.hero__eyebrow {
  margin: 0; align-self: center; text-align: center; font: 400 clamp(0.95rem, 2.4vw, 1.52rem)/1.5 var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); text-shadow: var(--text-shadow);
}
.hero__bottom { max-width: 30rem; }
.hero__date { margin: 0; font: 500 clamp(2.1rem, 4.4vw, 3.6rem)/1 var(--serif); text-shadow: var(--text-shadow); }
.hero__place { margin: 0.7rem 0 0; font: 400 0.8rem/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 901px) {
  .hero__bottom { max-width: 44rem; }
  .hero__date { font-size: clamp(3.6rem, 6.6vw, 6rem); }
  .hero__place { margin-top: 1rem; font-size: 1.05rem; }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; margin-left: -11px;
  display: block; width: 22px; height: 36px; border: 1px solid var(--faint); border-radius: 12px;
}
.scroll-cue span {
  display: block; width: 3px; height: 7px; background: var(--gold); border-radius: 2px; margin: 7px auto 0;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------- festival facts ---------------- */
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.facts dt { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem; }
.facts dd { margin: 0; font: 500 1.35rem/1.2 var(--serif); }
.facts dd span { display: block; font: 300 0.88rem/1.5 var(--sans); color: var(--muted); margin-top: 0.3rem; }
.facts a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; transition: color 0.3s; }
.facts a:hover { color: var(--gold-hi); }
@media (min-width: 901px) {
  .facts dt { font-size: 1.02rem; }
  .facts dd { font-size: 2.02rem; }
  .facts dd span { font-size: 1.32rem; }
}
/* the heading stays on one line, scaled to the panel width */
.panel--story h2 { white-space: nowrap; font-size: min(3.4rem, calc((100vw - 96px) / 15)); }

/* ---------------- instructors: film strip ---------------- */
.section__head { max-width: 640px; margin-bottom: 1.4rem; text-shadow: var(--head-shadow); }
/* the cast: a ring of film turning like a carousel, three frames per couple (leader, lead, follow) */
.film {
  --fw: clamp(118px, 15vw, 190px); /* frame width */
  --fh: calc(var(--fw) * 1.5);
  --band: calc(var(--fw) * 0.19); /* sprocket band above and below the picture */
  --holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 20'%3E%3Crect x='6.5' y='6' width='12' height='8.5' rx='2.2' fill='%23f4ecdc'/%3E%3C/svg%3E");
  width: min(1120px, 100%); margin: 0.2rem 0 0;
}
/* computers get a bigger reel, sized to the screen height too so it stays in view; phones keep the size above */
@media (min-width: 901px) {
  .film { --fw: clamp(150px, min(19vw, 32vh), 280px); width: min(1500px, 100%); }
  .film__caption { width: min(600px, 100%); }
}
.film__stage {
  position: relative; height: calc(var(--fh) * 1.42); overflow: hidden;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.film__stage:active { cursor: grabbing; }
.film__ring {
  position: absolute; left: 50%; top: 50%; width: var(--fw); height: var(--fh);
  margin: calc(var(--fh) / -2) 0 0 calc(var(--fw) / -2); transform-style: preserve-3d;
}
.frame { position: absolute; inset: 0; transform-style: preserve-3d; }
.frame__face, .frame__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* the film itself: black base with a soft sheen, four sprocket holes a frame top and bottom */
.frame__face, .frame__back {
  background:
    var(--holes) 0 0 / 25% var(--band) repeat-x,
    var(--holes) 0 100% / 25% var(--band) repeat-x,
    linear-gradient(180deg, #1a181b, #0a090b 22%, #0a090b 78%, #18161a);
}
.frame__back { transform: rotateY(180deg); opacity: 0.55; filter: brightness(0.6); }
.frame__pic {
  position: absolute; top: var(--band); bottom: var(--band); left: 5%; right: 5%;
  overflow: hidden; border-radius: 3px; background: #0b0908;
}
.frame__pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.94) contrast(1.04); }
.frame__shade { position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }

/* until a couple is revealed: a figure in silhouette against a backlit haze */
.frame__ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at var(--lx) 0%, rgba(255, 196, 137, 0.36), rgba(255, 196, 137, 0.06) 55%, transparent 78%),
    radial-gradient(ellipse 90% 40% at 50% 105%, rgba(255, 196, 137, 0.12), transparent 70%),
    linear-gradient(180deg, #14100d, #090807);
}
.frame__figure { width: 74%; height: auto; margin-bottom: -2px; fill: #050404; filter: drop-shadow(0 -1px 0 rgba(255, 205, 150, 0.28)); }

/* the leader frame: the couple's number in a countdown circle */
.frame__leader {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(216, 174, 94, 0.22) 0 calc(50% + 0.5px), transparent 0),
    linear-gradient(180deg, transparent calc(50% - 0.5px), rgba(216, 174, 94, 0.22) 0 calc(50% + 0.5px), transparent 0),
    radial-gradient(circle at 50% 50%, #2a2117, #0d0b09 72%);
}
.frame__leader::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px solid rgba(216, 174, 94, 0.5); border-radius: 50%; box-shadow: 0 0 0 calc(var(--fw) * 0.05) rgba(216, 174, 94, 0.08);
}
.frame__no { position: relative; font: 400 calc(var(--fw) * 0.42)/1 var(--sign); color: var(--gold-hi); letter-spacing: 0.02em; text-shadow: 0 0 18px rgba(216, 174, 94, 0.4); }
.frame__tag {
  position: absolute; bottom: 8%; left: 0; right: 0; text-align: center;
  font: 400 calc(var(--fw) * 0.05)/1.3 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}

/* the couple at the front, billed like a film's leading roles */
.film__caption {
  width: min(520px, 100%); margin: 0.4rem auto 0; padding: 16px 20px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.film__billing {
  display: flex; justify-content: space-between; margin: 0 2px;
  font: 400 0.66rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.film__billing span:last-child { color: var(--faint); letter-spacing: 0.2em; }
.film__names {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0.2em 0.5em; margin: 14px 0 0;
  font: 500 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--serif); color: var(--cream); text-align: center;
}
.film__names i { font: 400 1.6em/0.6 var(--script); color: var(--gold); padding: 0; }
.redact {
  display: inline-block; width: 7.5em; height: 0.62em; border-radius: 2px; transform: translateY(0.05em);
  background: linear-gradient(90deg, rgba(244, 236, 220, 0.08), rgba(244, 236, 220, 0.2) 50%, rgba(244, 236, 220, 0.08)) 0 0 / 200% 100%;
  animation: redact 4s linear infinite;
}
.redact:last-of-type { width: 6.5em; }
.film__names:has(.redact) { flex-wrap: nowrap; }
@media (max-width: 760px) { .redact { width: 34%; } .redact:last-of-type { width: 29%; } }
@keyframes redact { to { background-position: -200% 0; } }
.film__meta {
  margin: 0.55rem 0 0; text-align: center; color: var(--faint);
  font: 400 0.72rem/1.5 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
}
.film__meta b { font-weight: 400; color: var(--gold); }

.film__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.film__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ghost-line); background: var(--ghost-bg); color: var(--cream);
  font: 300 1.6rem/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding: 0 0 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.film__arrow:hover { border-color: var(--gold); color: var(--gold-hi); }
.film__dots { display: flex; gap: 4px; }
.film__dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.film__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--dot); transition: width 0.4s var(--ease), background 0.4s var(--ease); }
.film__dots button[aria-current="true"]::before { width: 22px; background: var(--gold); }
.film button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------------- schedule ---------------- */
.soon { margin: 0.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.05rem; max-width: 36em; }
.soon__title { display: block; margin-bottom: 0.5rem; font: italic 500 clamp(1.8rem, 3.4vw, 2.6rem)/1.15 var(--serif); color: var(--gold-hi); }
.tabs { display: flex; gap: 0.4rem; margin: 0.4rem 0 1.6rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab {
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.8rem 1.1rem 1rem; position: relative;
  font: 500 1.35rem/1 var(--serif); transition: color 0.3s;
}
.tab small { display: block; margin-top: 0.4rem; font: 400 0.64rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.tab::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.tab[aria-selected="true"] { color: var(--cream); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.day[hidden] { display: none; }
.day { animation: dayIn 0.7s var(--ease); }
@keyframes dayIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sched { display: grid; gap: 0; }
.sched__row { display: grid; grid-template-columns: 8.5rem 1fr 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(216, 174, 94, 0.12); align-items: center; }
.sched__row--head { padding-top: 0; font: 400 0.66rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.sched__time { font: 500 1.05rem/1.2 var(--serif); color: var(--cream); font-variant-numeric: tabular-nums; }
.slot__label { display: none; }
.slot__group {
  display: inline-block; min-width: 2.9rem; margin-right: 0.7rem; padding: 0.28em 0.55em; border: 1px solid var(--line);
  border-radius: 2px; text-align: center; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em; color: var(--gold-hi);
}
.slot__title { font: 500 1.08rem/1.25 var(--serif); }
.slot__who { color: var(--muted); font-size: 0.95rem; }
.slot__title + .slot__who::before { content: " · "; color: var(--gold); }
.sched__row--pause .sched__wide { color: var(--faint); font: italic 400 1.05rem/1 var(--serif); letter-spacing: 0.05em; }
.sched__wide { grid-column: 2 / -1; }
.sched__row--party { background: linear-gradient(90deg, rgba(216, 174, 94, 0.12), transparent 80%); border-bottom-color: var(--line); padding-inline: 0.8rem; margin-inline: -0.8rem; }
.sched__row--party .sched__wide { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.party__name { font: 500 1.3rem/1.2 var(--serif); color: var(--gold-hi); }
.party__name::before { content: "★"; font-size: 0.8em; margin-right: 0.55rem; color: var(--gold); }
.party__note { color: var(--muted); font-size: 0.92rem; }

/* ---------------- form ---------------- */
.form__fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.form__fields:disabled { opacity: 0.45; }
.form__fields:disabled .levels li { cursor: not-allowed; pointer-events: none; }
.form__fields:disabled input, .form__fields:disabled select { cursor: not-allowed; }
.btn:disabled { cursor: not-allowed; opacity: 0.7; filter: saturate(0.6); transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.4rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem; }
.optional { letter-spacing: 0.1em; text-transform: none; color: var(--faint); margin-left: 0.4em; font-size: 0.95em; }
.field input, .field select {
  width: 100%; background: var(--field-bg); border: 0; border-bottom: 1px solid var(--field-line);
  color: var(--cream); font: 400 1.05rem/1.3 var(--sans); padding: 0.75rem 0.85rem; border-radius: 2px 2px 0 0;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder { color: var(--faint); font-size: 0.92rem; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); background: var(--field-bg-focus); }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: var(--error); }
.field__error { margin: 0.4rem 0 0; min-height: 0; font-size: 0.82rem; color: var(--error); }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem; }
.select select option { background: var(--option-bg); color: var(--cream); }
.select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); pointer-events: none;
}
.levels { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.levels li {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.8rem; align-items: baseline; padding: 0.7rem 0.85rem;
  border: 1px solid rgba(216, 174, 94, 0.12); border-radius: 2px; color: var(--muted); font-size: 0.88rem; line-height: 1.5;
  cursor: pointer; transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.levels li b { font: 500 1.05rem/1 var(--serif); color: var(--gold); }
.levels li:hover { border-color: var(--line); }
.levels li.is-active { border-color: var(--gold); background: rgba(216, 174, 94, 0.09); color: var(--cream); }
.form__status { margin: 1rem 0 0; font-size: 0.95rem; color: var(--muted); min-height: 1.4em; }
.form__status.is-error { color: var(--error); }
.form.is-sent .form__grid, .form.is-sent .btn { display: none; }
.form__done h3 { margin: 0.4rem 0 0.6rem; font: 400 2.6rem/1.1 var(--script); color: var(--gold-hi); }
.form__done p { margin: 0 0 0.6rem; color: var(--muted); }
.form__done .preview-note { font-size: 0.85rem; color: var(--faint); border-left: 2px solid var(--gold); padding-left: 0.8rem; }

/* ---------------- footer ---------------- */
.footer { min-height: 120vh; justify-content: flex-end; align-items: flex-start; }
.footer__script { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.25em; text-shadow: var(--text-shadow); }
/* the two faces of the logo: sign capitals and the gold script */
.footer__script b { font: 400 clamp(2.6rem, 6.4vw, 5rem)/1 var(--sign); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.footer__script span { font: 400 clamp(2.8rem, 7vw, 5.4rem)/1 var(--script); color: var(--gold-hi); }
.footer__meta { margin: 0.8rem 0 0; font: 400 0.82rem/1.6 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.footer__meta a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.footer__contact { margin: 1.4rem 0 0 -8px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; }
.footer__contact .social__link { color: var(--cream); }
.footer__contact .social__link:hover { color: var(--gold-hi); }
.footer__mail {
  margin-left: 0.5rem; text-decoration: none; border-bottom: 1px solid var(--gold); color: var(--cream);
  font: 400 0.9rem/1.6 var(--sans); letter-spacing: 0.08em; transition: color 0.3s;
}
.footer__mail:hover { color: var(--gold-hi); }
.footer__event { margin: 0.7rem 0 0; }
.footer__event .footer__mail { margin-left: 0; }
.footer__credits { margin: 2.6rem 0 0; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--faint); }
.footer__dev { margin: 0.5rem 0 0; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--faint); }
.footer__dev a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(216, 174, 94, 0.45); transition: color 0.3s; }
.footer__dev a:hover { color: var(--gold-hi); }

/* ---------------- reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.noscript { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60; text-align: center; color: var(--muted); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .reel { display: none; }
  .nav { gap: 1rem; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px 24px 32px; flex-direction: column; gap: 1.4rem;
    background: var(--menu-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-100%); transition: transform 0.6s var(--ease); z-index: -1;
  }
  .nav__links a { font-size: 0.95rem; }
  .nav.is-open .nav__links { transform: none; }
  .nav__tools { margin-left: auto; gap: 0.7rem; }
  .nav__cta { margin-left: 0; }
  .nav__toggle {
    display: grid; gap: 6px; width: 40px; height: 40px; place-content: center; background: none; border: 1px solid var(--line);
    border-radius: 50%; cursor: pointer; padding: 0;
  }
  .nav__toggle span { width: 16px; height: 1px; background: var(--cream); transition: transform 0.4s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .section--left, .section--right { align-items: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__brand { font-size: 1.45rem; }
  /* room for the language switch, the music button and the menu on one line */
  .nav__brand b { font-size: 1.4rem; }
  .nav__brand span { font-size: 1.35rem; }
  .nav__tools { gap: 0.5rem; }
  .music { width: 32px; height: 32px; }
  .nav__toggle, .music { flex-shrink: 0; }
  .social--bar { display: none; }
  .social--menu { display: flex; margin: 0.4rem 0 0 -8px; }
  .nav__links .social__link { padding: 0; }
  .nav__links .social__link::after { content: none; }
  /* keep the footer short enough to leave the countdown clear above it */
  .footer__contact { margin-top: 0.8rem; }
  .footer__event { margin-top: 0.4rem; }
  .footer__credits { margin-top: 1.2rem; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: 0; }
  .nav { gap: 0.6rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .slate { gap: 0.6em; letter-spacing: 0.2em; font-size: 0.66rem; }
  .slate::before, .section--center .slate::after { width: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .sched__row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.1rem 0; }
  .sched__row--head { display: none; }
  .sched__wide { grid-column: auto; }
  .slot { display: flex; align-items: baseline; flex-wrap: wrap; }
  .slot__label { display: inline-block; width: 4.2rem; font: 400 0.62rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scroll-cue span { animation: none; }
  .redact { animation: none; }
  .music[aria-pressed="true"] .music__bars i { animation: none; height: 10px; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
