/* ═════════════════════════════════════════════════════════════════════════
   FEATURE PRESENTATION · Movie-Night Birthday — Flyer (retro cinema poster)
   Mood: vintage cinema — cream poster paper, marquee red, gold, teal ink.
   Deck: 100dvh shell, one active panel scrolls.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── 1 · Design tokens ─────────────────────────────────────────────────── */
:root {
  /* stage (dark screening room) */
  --stage:        #131019;
  --stage-2:      #1b1626;
  --stage-3:      #241d33;

  /* poster paper & ink */
  --paper:        #f4ead2;
  --paper-2:      #ecdfc0;
  --paper-3:      #e2d3ae;
  --ink:          #2a2118;
  --ink-soft:     rgba(42, 33, 24, .78);
  --ink-muted:    rgba(42, 33, 24, .58);
  --ink-faint:    rgba(42, 33, 24, .34);

  /* cinema accents */
  --red:          #b3202e;
  --red-deep:     #861c26;
  --red-soft:     #c94a56;
  --gold:         #e0b24a;
  --gold-deep:    #a97e1f;
  --teal:         #2a6f6b;
  --teal-deep:    #1c4d4a;

  /* light text on dark screens */
  --cream:        #f4ead2;
  --cream-dim:    rgba(244, 234, 210, .78);
  --muted:        rgba(244, 234, 210, .55);
  --faint:        rgba(244, 234, 210, .36);
  --line:         rgba(224, 178, 74, .35);
  --line-soft:    rgba(224, 178, 74, .16);

  --danger:       #ff9aa4;
  --ok:           #9fd6a4;

  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-script:  "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
  --font-body:    "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Courier Prime", "Courier New", monospace;

  --radius: 14px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --shadow-panel: 0 30px 80px rgba(0, 0, 0, .55);
  --stub-width: 0px; /* unused in flyer; kept for card symmetry */
}

/* ── 2 · Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--cream);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }

ul { padding: 0; list-style: none; }

button { font-family: inherit; }

::selection { background: rgba(224, 178, 74, .35); color: var(--ink); }

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

/* the `hidden` attribute always wins — optional media slots hide cleanly */
[hidden] { display: none !important; }

/* ── 3 · Deck shell — 100dvh, only the active panel scrolls ───────────── */
.site {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--stage-2) 0%, var(--stage) 55%);
}

.deck { position: absolute; inset: 0; }

.panel {
  position: absolute;
  inset: 0;
  overflow: hidden;                    /* inactive panels do not scroll */
  opacity: 0;
  visibility: hidden;
  transform: scale(.985) translateY(14px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), visibility 0s linear .55s;
  pointer-events: none;
}

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  pointer-events: auto;
  overflow-y: auto;                    /* ← only the active panel scrolls */
  overflow-x: hidden;                  /* decorative off-canvas art never creates a scrollbar */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}

.panel.is-active::-webkit-scrollbar { width: 8px; }
.panel.is-active::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 8px; }
.panel.is-active::-webkit-scrollbar-track { background: transparent; }

/* Sections that need room to breathe inside a scrolling panel */
.panel-scroll {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 96px) clamp(20px, 6vw, 40px) clamp(138px, 18vh, 172px);  /* bottom clears the nav dock + powered-by line */
}

/* ── 4 · Section dock (bottom film-strip with text labels) ────────────── */
.deck-nav {
  position: fixed;
  left: 50%;
  bottom: calc(36px + env(safe-area-inset-bottom)); /* clears the powered-by line */
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 20px);
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 16, 25, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  overflow-x: auto;                    /* very small screens scroll the bar */
  scrollbar-width: none;
}

.deck-nav::-webkit-scrollbar { display: none; }

.deck-nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.deck-nav button::before {              /* tiny film frame */
  content: "";
  width: 9px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .5;
  flex: 0 0 auto;
}

.deck-nav .nav-short { display: none; }

.deck-nav button:hover { background: rgba(244, 234, 210, .12); color: var(--cream); }

.deck-nav button[aria-current="true"] {
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 0 14px rgba(179, 32, 46, .55);
}

.deck-nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* prev / next icon buttons — the deck is a swipe carousel on phones, so
   small screens get explicit arrow controls (added by main.js). */
.nav-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 59;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(19, 16, 25, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.nav-arrow::before { display: none; }  /* no film-frame dot on the arrows */

.nav-arrow:hover { background: var(--red); border-color: var(--red); }

.nav-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nav-arrow--prev { left: 8px; }
.nav-arrow--next { right: 8px; }

/* ── 4b · Powered-by brand line (full-width footer div) ──────────────── */
.powered-by {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  width: 100%;
  text-align: center;
  padding: 5px 16px calc(5px + env(safe-area-inset-bottom));
  background: rgba(19, 16, 25, .92);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.powered-by-text { margin: 0; }

.powered-by a {
  color: var(--gold);
  text-decoration: none;
}

.powered-by a:hover { color: var(--cream); }

/* ── 5 · Cover — the movie poster ─────────────────────────────────────── */
.poster {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;                 /* the beam bleeds off-canvas but never adds scroll area */
  padding-bottom: 118px;            /* clears the nav dock + powered-by line */
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .5) 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
}

/* film-strip edges with sprocket holes */
.film-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 3;
  background: #19141f;
  pointer-events: none;
}

.film-edge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 12px;
  background-image: radial-gradient(circle 3px at 50% 18px, var(--stage) 3px, transparent 3.6px);
  background-size: 12px 36px;
  background-repeat: repeat-y;
}

.film-edge--left { left: 0; }
.film-edge--right { right: 0; }

/* halftone dots rising from the bottom */
.halftone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(circle 1.6px at 8px 8px, rgba(42, 33, 24, .16) 1.6px, transparent 2px);
  background-size: 16px 16px;
  mask-image: linear-gradient(transparent, #000 65%);
  -webkit-mask-image: linear-gradient(transparent, #000 65%);
}

/* projector beam from the lower-right */
.beam {
  position: absolute;
  right: -8%;
  bottom: -10%;
  width: 46%;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(310deg, rgba(224, 178, 74, .22) 0%, rgba(224, 178, 74, .05) 45%, transparent 70%);
  transform: rotate(-12deg);
  filter: blur(2px);
}

.poster-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(42, 33, 24, .22);
}

.poster-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 clamp(16px, 5vw, 72px);
  padding-left: clamp(16px, calc(5vw + 34px), 110px);  /* clear the film edges */
  padding-right: clamp(16px, calc(5vw + 34px), 110px);
}

/* marquee bulbs */
.marquee {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 26px);
  padding: clamp(12px, 2vh, 20px) 0 clamp(8px, 1.4vh, 14px);
}

.bulb {
  width: clamp(7px, 1.1vw, 12px);
  height: clamp(7px, 1.1vw, 12px);
  border-radius: 50%;
  background: var(--paper-3);
  box-shadow: inset 0 -2px 3px rgba(42, 33, 24, .4), 0 1px 2px rgba(42, 33, 24, .2);
  animation: bulb-chase 3.2s infinite;
}

@keyframes bulb-chase {
  0%, 12% { background: var(--paper-3); box-shadow: inset 0 -2px 3px rgba(42, 33, 24, .4), 0 1px 2px rgba(42, 33, 24, .2); }
  4% { background: var(--gold); box-shadow: 0 0 12px 2px rgba(224, 178, 74, .85); }
}

.bulb:nth-child(2) { animation-delay: .22s; }
.bulb:nth-child(3) { animation-delay: .44s; }
.bulb:nth-child(4) { animation-delay: .66s; }
.bulb:nth-child(5) { animation-delay: .88s; }
.bulb:nth-child(6) { animation-delay: 1.1s; }
.bulb:nth-child(7) { animation-delay: 1.32s; }
.bulb:nth-child(8) { animation-delay: 1.54s; }
.bulb:nth-child(9) { animation-delay: 1.76s; }
.bulb:nth-child(10) { animation-delay: 1.98s; }
.bulb:nth-child(11) { animation-delay: 2.2s; }
.bulb:nth-child(12) { animation-delay: 2.42s; }
.bulb:nth-child(13) { animation-delay: 2.64s; }
.bulb:nth-child(14) { animation-delay: 2.86s; }

/* studio masthead */
.masthead {
  text-align: center;
  padding: 0 0 2px;
}

.studio-line {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.7vw, 19px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--red);
}

.studio-line .honoree-names { white-space: nowrap; }

.presents {
  font-family: var(--font-script);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  color: var(--teal-deep);
  margin-top: 2px;
}

/* title stage */
.stage {
  text-align: center;
  padding: clamp(4px, .9vh, 10px) 0 clamp(3px, .6vh, 8px);
}

.kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: clamp(4px, .7vh, 8px);
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 168px);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0.035em 0.035em 0 rgba(179, 32, 46, .9);
}

.headline .honoree-name--alt { color: var(--red); }

.headline-sub {
  font-family: var(--font-script);
  font-size: clamp(19px, 2.4vw, 28px);
  color: var(--teal-deep);
  margin-top: clamp(2px, .5vh, 6px);
}

.headline-sub .age { white-space: nowrap; }

/* "now showing" feature card */
.feature {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(5px, 1vh, 12px);
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  box-shadow: 4px 4px 0 rgba(179, 32, 46, .85);
}

.feature-label {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  border-right: 1.5px solid var(--ink-muted);
  padding-right: 10px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.feature-note {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* starring block */
.cast {
  text-align: center;
  padding: clamp(6px, 1.2vh, 14px) 0 4px;
}

.cast-label {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.cast-list li {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.9vw, 21px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cast-role { color: var(--ink-muted); font-size: .82em; letter-spacing: .08em; }

/* rating + call to action */
.rating-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(6px, 1.2vh, 14px) 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 255, 255, .4);
  transform: rotate(-4deg);
}

.rating-letter {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.rating-word {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: .2em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

.poster-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ── 6 · Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s, background .18s, color .18s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(179, 32, 46, .45);
}

.btn--primary:hover { background: var(--red-deep); box-shadow: 0 8px 22px rgba(179, 32, 46, .55); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn-arrow { font-size: .9em; }

/* dark-screen buttons (used on the info panels — scoped to .panel-scroll so
   the cream cover poster keeps its ink-styled ghost button) */
.panel-scroll .btn--primary { background: var(--red); color: var(--paper); box-shadow: 0 6px 18px rgba(179, 32, 46, .4); }
.panel-scroll .btn--ghost { background: transparent; color: var(--cream); border: 2px solid var(--cream-dim); }
.panel-scroll .btn--ghost:hover { background: var(--cream); color: var(--stage); }

/* ── 7 · Billing block (bottom of the poster) ─────────────────────────── */
.billing {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(42, 33, 24, .25);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--ink);
}

.billing-row {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.billing-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.billing-value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.35;
}

.poster-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin: clamp(10px, 1.6vh, 18px) 0 0;
  padding: 12px 16px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.poster-strip-item {
  display: inline-flex;
  align-items: center;
}

.poster-strip-item::after {
  content: "✦";
  margin-left: 16px;
  color: var(--gold);
  font-size: .8em;
}

.poster-strip-item:last-child::after {
  content: none;
}

.poster-strip-text { display: inline-block; }

/* ── 8 · Info panels (programme / showtimes / rsvp / notes) ───────────── */
.section-head {
  text-align: center;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 72px);
  line-height: .95;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--cream);
}

.section-desc {
  max-width: 46ch;
  margin: 12px auto 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream-dim);
}

.section-title::after {                     /* film-frame divider */
  content: "▬ ▬ ▬";
  display: block;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: .6em;
  color: var(--red);
}

/* programme grid */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.programme-card {
  background: var(--stage-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .25s var(--ease-out), border-color .25s;
}

.programme-card:hover { transform: translateY(-3px); border-color: var(--line); }

.programme-card--featured {
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(224, 178, 74, .12), transparent 55%), var(--stage-2);
  box-shadow: 0 0 0 1px var(--line-soft);
}

.programme-time {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 6px;
}

.programme-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.programme-card p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* photo slot */
.photo-slot {
  margin: 22px 0 0;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(224, 178, 74, .1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(224, 178, 74, .05) 0 1px, transparent 1px 22px),
    var(--stage-2);
  background-size: auto, auto, auto;
  min-height: 200px;
  max-height: 460px;
  overflow: hidden;
  position: relative;
}

.photo-slot img { width: 100%; height: auto; max-height: 460px; object-fit: cover; }

/* shared media-slot behaviour (photo slot + cover media + free blocks) */
.photo-slot, .flyer-banner, .cover-still, .free-media { position: relative; overflow: hidden; }

.photo-slot figcaption,
.flyer-banner figcaption,
.cover-still figcaption,
.free-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  background: linear-gradient(transparent, rgba(19, 16, 25, .82));
  pointer-events: none;
}

/* cover media — paper-toned placeholders on the poster */
.flyer-banner, .cover-still {
  margin: 16px auto 0;
  border-radius: 10px;
  border: 2px dashed var(--ink-faint);
  background: rgba(255, 255, 255, .4);
}

.flyer-banner { width: 100%; min-height: 110px; }
.flyer-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }

.cover-still { max-width: 440px; aspect-ratio: 3 / 2; }
.cover-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* a real image makes the slot an obvious click-to-zoom target */
.photo-slot:has(img[src]:not([src=""])),
.flyer-banner:has(img[src]:not([src=""])),
.cover-still:has(img[src]:not([src=""])),
.free-media:has(img[src]:not([src=""])) { cursor: zoom-in; }

/* an empty image slot (host left the photo blank) hides its dashed frame
   and caption instead of showing a hollow box — the block reads as text */
.photo-slot:has(img:not([src]), img[src=""]),
.flyer-banner:has(img:not([src]), img[src=""]),
.cover-still:has(img:not([src]), img[src=""]),
.free-media:has(img:not([src]), img[src=""]) { display: none; }

.photo-slot:hover, .flyer-banner:hover, .cover-still:hover, .free-media:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.photo-slot img, .flyer-banner img, .free-media img { transition: transform .45s var(--ease-out); }
.photo-slot:hover img, .flyer-banner:hover img, .free-media:hover img { transform: scale(1.025); }

/* ── 8b · Free page — optional repeatable title + text + photo blocks ── */
.free-blocks {
  display: grid;
  gap: 14px;
}

.free-block {
  background: var(--stage-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.free-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.free-content {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream-dim);
}

.free-media {
  margin-top: 16px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(224, 178, 74, .08), transparent 60%),
    var(--stage-2);
  min-height: 120px;
}

.free-media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* a real photo fills the slot: swap the dashed placeholder frame for a solid one */
.free-media:has(img[src]:not([src=""])) {
  border-style: solid;
  border-color: var(--line-soft);
}

/* footer brand placeholder (the platform may fill this) */
.footer-brand {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* video slot — optional trailer / aftermovie */
.video-slot {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stage-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(224, 178, 74, .14), transparent 60%),
    var(--stage-2);
  cursor: pointer;
}

.video-placeholder .play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--gold);
  box-shadow: 0 0 26px rgba(224, 178, 74, .35);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}

.video-placeholder:hover .play { transform: scale(1.08); box-shadow: 0 0 34px rgba(224, 178, 74, .5); }

.video-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
}

.video-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-error { font-size: 12.5px; color: var(--danger); }

.video-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-open {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.video-open:hover { color: var(--cream); }

/* placeholders: an <img> without a src shows only the dashed frame */
img:not([src]), img[src=""] { display: none; }

/* note card */
.note-card {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(224, 178, 74, .07);
}

.note-icon { font-size: 18px; line-height: 1.4; }

.note-card p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream-dim);
}

.note-card strong { color: var(--gold); font-weight: 500; }

/* details list */
.details-list {
  background: var(--stage-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-row:last-child { border-bottom: 0; }

.detail-row dt {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

.detail-row dd {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
}

.detail-row dd small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.venue-address-list { display: block; }
.venue-address-line { display: block; }

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.map-link:hover { color: var(--cream); }

/* panel foot */
.panel-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(26px, 5vh, 44px);
}

/* ── 9 · RSVP form (cream "ticket counter" card) ──────────────────────── */
.rsvp-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 34px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border: 1px solid var(--paper-3);
  position: relative;
}

.rsvp-form::before {                     /* perforated top edge */
  content: "";
  position: absolute;
  top: -9px;
  left: 8%;
  right: 8%;
  height: 18px;
  background-image: radial-gradient(circle 4.5px at 9px 9px, var(--paper) 4.5px, transparent 5px);
  background-size: 18px 18px;
  background-repeat: repeat-x;
}

.rsvp-form-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--half { grid-column: span 1; }

.form-group label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid var(--ink-faint);
  border-radius: 4px;
  padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-control::placeholder { color: var(--ink-faint); }

.form-control:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(179, 32, 46, .14);
}

textarea.form-control { resize: vertical; min-height: 62px; }

select.form-control { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--red-deep) 50%), linear-gradient(135deg, var(--red-deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.error {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--red);
  min-height: 0;
}

.field-hint {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.attend-extras { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }

.attend-extras .form-group:first-child { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.loading {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

#rsvp-form.is-declining .attend-extras { display: none; }

/* platform "thank you" / "closed" states */
#rsvp-form .thank-you-message h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}

#rsvp-form .thank-you-message p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

#rsvp-form .thank-you-message small { color: var(--ink-muted); line-height: 1.5; display: block; }

/* RSVP deadline countdown (populated by the platform only when the host sets a deadline) */
.rsvp-countdown {
  display: none;
  text-align: center;
  margin: 0 auto 22px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(224, 178, 74, .05);
}
.rsvp-countdown:has(.count-day:not(:empty)) { display: block; }
.rsvp-countdown-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.rsvp-countdown-units {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.rsvp-unit { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.rsvp-unit:has(.count-day:empty),
.rsvp-unit:has(.count-hour:empty),
.rsvp-unit:has(.count-minute:empty),
.rsvp-unit:has(.count-second:empty) { display: none; }
.rsvp-unit .count-day,
.rsvp-unit .count-hour,
.rsvp-unit .count-minute,
.rsvp-unit .count-second {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--cream);
}
.rsvp-unit em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── 10 · Guestbook (platform-injected, Style A) ──────────────────────── */
.guestbook-body #guestbookForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 34px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border: 1px solid var(--paper-3);
}

.guestbook-body #guestbookForm .form-group { display: flex; flex-direction: column; gap: 6px; }
.guestbook-body #guestbookForm .form-group:has(textarea) { grid-column: 1 / -1; }

.guestbook-body #guestbookForm label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.guestbook-body #guestbookForm .form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid var(--ink-faint);
  border-radius: 4px;
  padding: 11px 13px;
}

.guestbook-body #guestbookForm .form-control:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(179, 32, 46, .14);
}

.guestbook-body #guestbookForm .error { font-size: 12.5px; color: var(--red); }

.guestbook-body #guestbookForm .d-flex,
.guestbook-body #guestbookForm .guestbook-chapta { grid-column: 1 / -1; justify-content: center; }

.guestbook-body #guestbookForm button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  background: var(--red);
  color: var(--paper);
  border: 0;
  border-radius: 4px;
  padding: 11px 26px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.guestbook-body #guestbookForm .loading-guestbook { grid-column: 1 / -1; text-align: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }

.guestbook-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 46vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.guestbook-entry {
  background: var(--stage-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
}

.guestbook-entry h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 4px;
}

.guestbook-entry p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream-dim);
  margin: 0 0 4px;
}

.guestbook-entry small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.more-guestbook-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

#load-more {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream-dim);
  border-radius: 4px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

#load-more:hover { background: var(--cream); color: var(--stage); }

/* ── 11 · Lightbox — click any photo to view the original & zoom ──────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 8, 14, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(19, 16, 25, .65);
  color: var(--cream);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.lightbox-close:hover { background: var(--red); transform: rotate(90deg); }

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 94vw;
  max-height: 82vh;
  transition: transform .3s var(--ease-out);
  will-change: transform;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lightbox-stage.is-dragging { transition: none; }

.lightbox-img {
  display: block;
  max-width: 94vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
  cursor: zoom-in;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0 20px;
  pointer-events: none;
}

.lightbox-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

/* ── 12 · Responsive ──────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .film-edge { width: 22px; }
  .film-edge::before { width: 8px; background-size: 8px 30px; }
  .poster-inner { padding-left: clamp(14px, 4vw, 20px); padding-right: clamp(14px, 4vw, 20px); }
  .billing { grid-template-columns: 1fr 1fr; }
  .billing-row { padding: 10px 12px; }
  .detail-row { grid-template-columns: 1fr; gap: 6px; }
  .detail-row dt { padding-top: 0; }
  .rsvp-form-display { grid-template-columns: 1fr; }
  .attend-extras { grid-template-columns: 1fr; }
  .guestbook-body #guestbookForm { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .deck-nav { bottom: calc(32px + env(safe-area-inset-bottom)); gap: 2px; padding: 4px 6px; }
  .deck-nav button { padding: 7px 10px; font-size: 10.5px; letter-spacing: .08em; }
  .deck-nav button::before { display: none; }
  .deck-nav .nav-full { display: none; }
  .deck-nav .nav-short { display: inline; }
  .nav-arrow { display: flex; }  /* the deck is a swipe carousel on phones: explicit prev/next */
  .film-edge { display: none; }
  .headline { font-size: clamp(52px, 17vw, 88px); }
  .feature { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .feature-label { border-right: 0; padding-right: 0; }
  .rating-cta { flex-direction: column; gap: 14px; }
  .cast-list li { line-height: 1.4; }
}

/* ── 13 · Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .panel { transform: none; }
  .bulb { animation: none; background: var(--paper-3); }
}

/* ── 14 · Print — each panel becomes its own page ─────────────────────── */
@media print {
  html, body { height: auto; background: #fff; }
  .site { position: static; height: auto; overflow: visible; background: var(--stage); }
  .deck { position: static; }
  .panel {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: visible !important;
    break-after: page;
    page-break-after: always;
  }
  .panel.is-active { overflow: visible !important; }
  .deck-nav, .panel-foot, .poster-cta, .beam, .halftone, .powered-by, .nav-arrow { display: none !important; }
  .lightbox, .video-placeholder { display: none !important; }
  .panel-scroll { max-width: none; padding: 24px 10mm; }
  .poster { min-height: 96vh; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster-inner { padding-left: 12mm; padding-right: 12mm; }
  .film-edge { width: 12mm; }
  .film-edge::before { width: 6px; background-size: 6px 24px; }
  .rsvp-form, .guestbook-body #guestbookForm { background: var(--paper) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guestbook-wrap { max-height: none; overflow: visible; }
}
