/* ═══════════════════════════════════════════════════════════════════════
   wedding-glam-hollywood-flyer-marquee-premiere — "Marquee Premiere"
   Velvet black + Hollywood gold · Cinzel / Playfair Display / Great Vibes
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0d;              /* velvet night */
  --bg-deep: #050507;
  --panel: #101014;           /* poster card */
  --panel-raised: #17171d;    /* raised surfaces (forms, cards) */
  --ink: #f6f0e2;             /* champagne ink on dark */
  --ink-dim: rgba(246, 240, 226, 0.62);
  --ink-faint: rgba(246, 240, 226, 0.38);
  --gold: #d4af37;            /* marquee gold */
  --gold-bright: #f2d47c;     /* lit bulb gold */
  --gold-deep: #97752a;
  --carpet: #8c1420;          /* the red carpet */
  --carpet-deep: #5e0d16;
  --line: rgba(212, 175, 55, 0.32);
  --line-soft: rgba(246, 240, 226, 0.12);
  --danger: #e07b6b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-ui: "Jost", ui-sans-serif, system-ui, sans-serif;
}

/* ── base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

/* remove the double-tap zoom delay on tap targets (kept off the lightbox
   image, which manages its own pan/zoom via touch-action: none) */
button, a, select { touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -12%, rgba(212, 175, 55, 0.09), transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 115%, rgba(140, 20, 32, 0.08), transparent 60%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

/* ── single-viewport shell (JS on) ────────────────────────────────────── */
html.js .app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

html.js .panel { display: none; }
html.js .panels {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
html.js .panel.is-active {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* hero panels (the poster) centre their content when there's room */
html.js .panel.hero-panel.is-active { display: flex; }
html.js .panel.hero-panel.is-active > * { margin: auto; }

/* ── no-JS fallback: everything stacked, page scrolls ─────────────────── */
html:not(.js) .app { display: block; height: auto; }
html:not(.js) .panel { display: block; }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel.is-active { overflow: visible; }

/* ── masthead ─────────────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: var(--bg-deep);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 5;
}

.masthead__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.masthead__mark { display: inline-flex; flex: none; opacity: 0.95; }
.masthead__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.masthead__top {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.masthead__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__name i { color: var(--gold-bright); font-style: italic; padding: 0 2px; }

.masthead__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
  color: var(--ink);
  font: 500 12.5px var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.chip-btn:hover { background: rgba(212, 175, 55, 0.16); border-color: var(--gold); }
.chip-btn:active { transform: translateY(1px); }
.chip-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.chip-btn.is-done { border-color: #8fbf9a; color: #cfe9d6; }

/* ── tabs ─────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 6px;
  padding: 8px clamp(14px, 3vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(246, 240, 226, 0.07);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  appearance: none;
  flex: none;
  padding: 8px 16px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  font: 500 12.5px var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.tab:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* mobile: wrap the tabs so every tab stays visible and easy to tap */
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; justify-content: center; }
  .tab { min-height: 44px; padding: 9px 15px; }
}

/* ── panels & inner ───────────────────────────────────────────────────── */
.panels { min-width: 0; }

.panel-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) clamp(16px, 4vw, 32px) calc(56px + env(safe-area-inset-bottom));
}

.section-head { margin-bottom: 24px; }
.kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.lede { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.65; max-width: 52ch; }
.lede strong { color: var(--gold-bright); font-weight: 500; }

/* ── the premiere poster ──────────────────────────────────────────────── */
.poster {
  --pad-x: clamp(22px, 5vw, 52px);
  --pad-y: clamp(26px, 4.5vh, 42px);
  position: relative;
  max-width: 660px;
  width: 100%;
  margin: auto;
  padding: clamp(28px, 5vh, 46px) var(--pad-x) var(--pad-y);
  background:
    radial-gradient(ellipse 95% 50% at 50% -6%, rgba(212, 175, 55, 0.13), transparent 60%),
    linear-gradient(178deg, #17171d 0%, #101014 55%, #0c0c10 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(11px, 2vh, 18px);
}
/* bottom fade so the poster sits on the night */
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

html.js:not(.no-motion) .poster { animation: poster-rise 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes poster-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.992); }
  to   { opacity: 1; transform: none; }
}

/* ── marquee bulb frame ───────────────────────────────────────────────── */
.poster__bulbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.poster__bulbs::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(212, 175, 55, 0.38);
}
.poster__bulbs::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background:
    radial-gradient(circle, #f2d47c 1.7px, rgba(242, 212, 124, 0.28) 2.1px, transparent 2.9px) top -1px left 12px / 21px 9px repeat-x,
    radial-gradient(circle, #f2d47c 1.7px, rgba(242, 212, 124, 0.28) 2.1px, transparent 2.9px) bottom -1px left 12px / 21px 9px repeat-x,
    radial-gradient(circle, #f2d47c 1.7px, rgba(242, 212, 124, 0.28) 2.1px, transparent 2.9px) left -1px top 12px / 9px 21px repeat-y,
    radial-gradient(circle, #f2d47c 1.7px, rgba(242, 212, 124, 0.28) 2.1px, transparent 2.9px) right -1px top 12px / 9px 21px repeat-y;
}

/* ── golden sunburst rays ─────────────────────────────────────────────── */
.poster__rays {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 165%;
  height: 135%;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(212, 175, 55, 0.075) 0deg 5deg,
    transparent 5deg 13deg
  );
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 36%, #000 15%, transparent 66%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 36%, #000 15%, transparent 66%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* ── star field ───────────────────────────────────────────────────────── */
.poster__star {
  position: absolute;
  width: 13px;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(242, 212, 124, 0.7));
}
.poster__star--1 { top: 13%; left: 9%; }
.poster__star--2 { top: 8%; right: 13%; width: 9px; }
.poster__star--3 { bottom: 20%; left: 7%; width: 9px; }
.poster__star--4 { bottom: 13%; right: 9%; }
.poster__star--5 { top: 46%; right: 6%; width: 7px; }

html.js:not(.no-motion) .poster__star { animation: twinkle 3.6s ease-in-out infinite; }
html.js:not(.no-motion) .poster__star--2 { animation-delay: 0.9s; }
html.js:not(.no-motion) .poster__star--3 { animation-delay: 1.7s; }
html.js:not(.no-motion) .poster__star--4 { animation-delay: 2.4s; }
html.js:not(.no-motion) .poster__star--5 { animation-delay: 0.4s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.poster > *:not(.poster__bulbs):not(.poster__rays):not(.poster__star) { position: relative; z-index: 1; }

/* ── personalised greeting ────────────────────────────────────────────── */
.poster__greeting {
  margin: 0 0 2px;
  padding: 6px 16px;
  border: 1px dashed rgba(242, 212, 124, 0.6);
  border-radius: 2px;
  font-size: 12.5px;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.07);
}
.poster__greeting b { font-weight: 500; color: var(--ink); }

/* ── monogram medallion ───────────────────────────────────────────────── */
.poster__medallion { margin: 2px 0 0; opacity: 0.95; filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.25)); }

/* ── eyebrow / names / tagline ────────────────────────────────────────── */
.poster__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.poster__names {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.06em;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8.5vw, 4.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
/* hosts who add a second honoree on one side get an automatic gold "&" */
.honoree + .honoree::before { content: " & "; color: var(--gold-bright); font-style: italic; letter-spacing: 0.05em; }

/* gold-foil gradient on the names */
.poster__name {
  background: linear-gradient(180deg, #f8e7a8 0%, #e8c15a 34%, #b8860b 68%, #f2d47c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.poster__amp {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0 0.5em;
  color: var(--gold-bright);
}
.poster__amp span {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.92em;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}
.poster__amp::before, .poster__amp::after {
  content: "";
  width: 0.62em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.poster__tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--ink-dim);
}

.poster__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, 78%);
  color: var(--gold);
}
.poster__ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.poster__ornament i { font-style: normal; font-size: 11px; color: var(--gold-bright); }

.poster__request {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(14.5px, 2.4vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-dim);
}

.poster__date {
  margin: 0;
  font-size: clamp(12.5px, 2.1vw, 15.5px);
  line-height: 1.75;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.poster__date em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

/* ── showtimes (film-strip programme) ─────────────────────────────────── */
.poster__showtimes {
  width: min(430px, 92%);
  padding: 14px 20px;
  border: 1px solid var(--line-soft);
  background: rgba(246, 240, 226, 0.03);
}
.poster__showtimes-title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.poster__showtimes ul { display: flex; flex-direction: column; gap: 6px; }
.poster__showtimes li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dotted rgba(246, 240, 226, 0.14);
  font-size: 13px;
}
.poster__showtimes li:last-child { padding-bottom: 0; border-bottom: 0; }
.poster__showtimes-time {
  flex: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}
.poster__showtimes-what { color: var(--ink-dim); text-align: right; }

.poster__venue {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.poster__dress {
  margin: 0;
  padding: 7px 22px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  text-indent: 0.44em;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.07);
}

.poster__cta { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.poster__cta strong { color: var(--gold-bright); font-weight: 500; }

/* ── red carpet strip (bleeds to the poster edges) ────────────────────── */
.poster__carpet {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px calc(-1 * var(--pad-x)) calc(-1 * var(--pad-y));
  padding: 10px 12px;
  background:
    radial-gradient(ellipse 80% 120% at 50% -40%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #9c1a28 0%, var(--carpet) 55%, var(--carpet-deep) 100%);
  border-top: 1px solid rgba(242, 212, 124, 0.5);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-indent: 0.3em;
  color: var(--gold-bright);
}
.poster__carpet-star { font-size: 10px; letter-spacing: 0; text-indent: 0; }

/* ── optional couple "movie still" on the poster ─────────────────────── */
.poster__still {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.poster__still-btn {
  display: block;
  padding: 4px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: linear-gradient(180deg, #1d1d26, #0c0c10);
  cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.poster__still-btn:hover { border-color: var(--gold-bright); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.62); }
html.js:not(.no-motion) .poster__still-btn:hover { transform: translateY(-2px); }
.poster__still-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.poster__still-btn img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
  background: #000;
  filter: sepia(0.16) saturate(1.06);
}
.poster__still-caption {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── reveal-on-scroll (gated: html.no-motion / reduced-motion disable) ── */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .panel.is-active [data-reveal].is-visible,
html.no-motion [data-reveal],
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ── countdown tiles (ceremony) ───────────────────────────────────────── */
.countdown-tiles {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    radial-gradient(ellipse 120% 100% at 50% -20%, rgba(212, 175, 55, 0.1), transparent 60%),
    linear-gradient(135deg, #191920, #0e0e13);
  color: var(--ink);
  text-align: center;
}
.countdown-tiles__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.tiles { display: flex; justify-content: center; gap: 10px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 62px;
  padding: 10px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(246, 240, 226, 0.04);
}
.tile-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}
.tile-cap { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.countdown-tiles__here { margin: 12px 0 0; font-family: var(--font-serif); font-style: italic; color: var(--gold-bright); }

/* ── event cards ──────────────────────────────────────────────────────── */
.block-title {
  margin: 30px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.event-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .event-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .event-list { grid-template-columns: 1fr; } }

.event-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--panel-raised);
}
.event-item__chip {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.event-item__title { margin: 0; font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.event-item__when { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; color: var(--gold); }
.event-item__where { margin: 0; font-size: 14px; color: var(--ink); }
.event-item__addr { margin: 0; font-size: 12.5px; color: var(--ink-faint); }
.event-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── timeline ─────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.2));
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  font-size: 14.5px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22.5px;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(242, 212, 124, 0.8);
}
.timeline-item__time {
  flex: none;
  width: 78px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}
.timeline-item__text { color: var(--ink); }

/* ── notes ────────────────────────────────────────────────────────────── */
.notes {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.06);
}
.note { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }
.note:last-child { margin-bottom: 0; }
.note strong { color: var(--gold-bright); font-weight: 500; }

/* ── forms (RSVP + injected guestbook) ────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12.5px; font-weight: 500; letter-spacing: 0.03em; }
.form-group label small { font-weight: 400; color: var(--ink-faint); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid var(--line-soft);
  background: #0d0d12;
  color: var(--ink);
  font: 400 15px var(--font-ui);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-hint { margin: -6px 0 16px; font-size: 12.5px; color: var(--ink-faint); }

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

/* decline state: hide party-size & meals, show the miss-you note */
.rsvp-extras { transition: opacity 0.25s; }
.rsvp-form.is-declining .rsvp-extras { display: none; }
.declined-note {
  display: none;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(242, 212, 124, 0.4);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.08);
  font-size: 13.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
}
.rsvp-form.is-declining .declined-note { display: block; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  font: 500 14.5px var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(180deg, #e8c15a, var(--gold-deep));
  color: var(--bg);
  box-shadow: 0 10px 26px rgba(151, 117, 42, 0.4);
}
.btn--primary:hover { background: linear-gradient(180deg, #f2d47c, #b8860b); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* loading node (driven by the platform script) */
.loading { display: none; text-align: center; color: var(--ink-faint); font-size: 13px; padding: 10px 0 0; }

/* RSVP deadline countdown (platform-driven .count-*) */
.rsvp-countdown {
  margin: -6px 0 22px;
  padding: 12px 18px;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.06);
  text-align: center;
  font-size: 13.5px;
}
.rsvp-countdown__label { margin: 0 0 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.rsvp-countdown__nums { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.rsvp-countdown__nums span { color: var(--gold-bright); font-size: 17px; }

/* ── guestbook (Style A: platform injects form + list into .guestbook-body) ── */
.guestbook-section #guestbookForm .form-group { margin-bottom: 14px; }
.guestbook-section #guestbookForm button[type="submit"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 0;
  padding: 12px 26px;
  border-radius: 2px;
  border: none;
  background: linear-gradient(180deg, #e8c15a, var(--gold-deep)) !important;
  color: var(--bg) !important;
  font: 500 14.5px var(--font-ui);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(151, 117, 42, 0.3);
}
.guestbook-section #guestbookForm button[type="submit"]:hover { background: linear-gradient(180deg, #f2d47c, #b8860b) !important; }

/* injected message list — neutralise the engine's inline scroll box */
.guestbook-section #comments-container {
  margin-top: 28px !important;
  border-top: 1px solid var(--line) !important;
  max-height: none !important;
  overflow: visible !important;
}
.guestbook-section .guestbook-entry {
  padding: 14px 16px;
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--panel-raised);
}
.guestbook-section .guestbook-entry h5 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.guestbook-section .guestbook-entry p { margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: var(--ink-dim); }
.guestbook-section .guestbook-entry small { color: var(--ink-faint); font-size: 12px; }

.guestbook-section .more-guestbook-wrap { text-align: center; margin-top: 18px; }
.guestbook-section #load-more {
  padding: 10px 24px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 500 14px var(--font-ui);
  cursor: pointer;
}
.guestbook-section #load-more:hover { border-color: var(--gold); color: var(--gold-bright); }

/* thank-you / closed states injected by the platform scripts */
.thank-you-message { text-align: center; padding: 26px 12px; }
.thank-you-message h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.thank-you-message p { margin: 4px 0; color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

/* ── optional media (trailer + official flyer) ───────────────────────── */
.media-block { margin: 0 0 30px; }
.media-block__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.media-block__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.media-block__note { margin: 0 0 12px; font-size: 13px; color: var(--ink-faint); }

/* the trailer — click-to-play poster with a gold play medallion */
.film-block__poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.film-block__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.18), rgba(5, 5, 7, 0.55));
  pointer-events: none;
}
.film-block__poster img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92);
}
html.js:not(.no-motion) .film-block__poster:hover img { filter: saturate(1.05); }
.film-block__poster:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.film-block__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.film-block__play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  padding-left: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f8e7a8, #d4af37 55%, #97752a);
  color: #101014;
  font-size: 21px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 0 7px rgba(212, 175, 55, 0.14);
  transition: transform 0.2s ease;
}
html.js:not(.no-motion) .film-block__poster:hover .film-block__play span { transform: scale(1.08); }

.film-block__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #000;
}
.film-block__embed iframe,
.film-block__embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.film-block__back { margin-top: 12px; }

/* the official flyer — a wider featured frame */
.flyer-block { max-width: 620px; }

/* ── gallery (movie-still photo showcase) ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  padding: 6px 6px 0;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: #000;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }

/* the frame is a button so the whole still is tappable / keyboard-focusable */
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;          /* explicit: the HTML height attr must not win over the 3:2 frame */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #000;
  transition: transform 0.25s ease, filter 0.25s ease;
}
html.js:not(.no-motion) .gallery-item:hover .gallery-thumb img { transform: scale(1.02); }
html.js:not(.no-motion) .gallery-thumb img { filter: saturate(0.92); }
html.js:not(.no-motion) .gallery-item:hover .gallery-thumb img { filter: saturate(1.05); }
.gallery-thumb:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* film-slate caption bar */
.gallery-item__caption {
  margin: 0;
  padding: 9px 6px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  border-top: 1px solid var(--line-soft);
}

/* ── lightbox ─────────────────────────────────────────────────────────── */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(980px, 94vw);
  max-height: 88vh;
}
.lightbox__figure { margin: 0; max-width: 100%; }
.lightbox__img {
  display: block;
  max-width: min(940px, 92vw);
  max-height: 66vh;
  object-fit: contain;
  border: 1px solid var(--gold);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  touch-action: none;                /* pan/zoom is handled by the lightbox */
  transition: transform 0.22s ease;
  will-change: transform;
}
.lightbox__img.is-zoomed { cursor: grab; }
.lightbox__img.is-grabbing { cursor: grabbing; }
.lightbox__img.is-panning { transition: none; }
.lightbox__caption {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.lightbox__counter {
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.lightbox__zoom { display: flex; gap: 6px; }
.lightbox__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--ink);
  font: 500 16px var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lightbox__zoom-btn:hover { background: rgba(212, 175, 55, 0.2); border-color: var(--gold); color: var(--gold-bright); }
.lightbox__zoom-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.lightbox__hint {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--ink);
  font: 500 18px var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(212, 175, 55, 0.2); border-color: var(--gold); color: var(--gold-bright); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.lightbox__close { top: 0; right: 0; width: 42px; height: 42px; }
.lightbox__nav { top: 50%; width: 46px; height: 64px; transform: translateY(-50%); font-size: 30px; }
.lightbox__nav--prev { left: -58px; }
.lightbox__nav--next { right: -58px; }
@media (max-width: 720px) {
  .lightbox { padding: 14px; }
  .lightbox__close { top: -6px; right: -6px; }
  .lightbox__nav--prev { left: -10px; }
  .lightbox__nav--next { right: -10px; }
}
@media (max-height: 640px) {
  .lightbox__img { max-height: 50vh; }
}

/* ── foot ─────────────────────────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(14px, 3vw, 28px);
  background: var(--bg-deep);
  color: var(--ink-faint);
  border-top: 1px solid rgba(246, 240, 226, 0.07);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.foot::-webkit-scrollbar { display: none; }
.foot__dot { opacity: 0.5; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* ── free page (optional Notes panel) ────────────────────────────────── */
/* Repeatable .free-block cards: free title + free text + optional photo. */
.free-blocks {
  display: grid;
  gap: 18px;
}

.free-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  align-items: center;
  padding: clamp(16px, 3vw, 22px);
  background: var(--panel-raised);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}
/* alternate the photo side so stacked blocks breathe */
.free-block:nth-child(even) .free-figure { order: -1; }

.free-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--ink);
}

.free-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.free-figure { margin: 0; }

.free-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: zoom-in;
}

/* gold frame + lift only while a photo is present — an image-less block
   renders as a clean title + text with no broken frame */
.free-open:has(img) {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.75);
  transition: transform 0.25s, box-shadow 0.25s;
}
.free-open:has(img):hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.85);
}
.free-open:has(img):hover .free-img { transform: scale(1.03); }
.free-open:not(:has(img)) { display: none; }

.free-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s;
}

@media (max-width: 620px) {
  .free-block { grid-template-columns: 1fr; }
  .free-block:nth-child(even) .free-figure { order: 0; }
}

/* ── powered-by (full-width platform brand strip) ────────────────────── */
.powered-by {
  width: 100%;
  background: var(--bg-deep);
  color: var(--ink-faint);
  text-align: center;
  padding: 10px clamp(14px, 3vw, 28px) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(246, 240, 226, 0.07);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.powered-by-text { margin: 0; }
.powered-by .link-footer { color: var(--gold-bright); }

/* ── focus visibility (global) ────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ── short screens: reclaim vertical space ────────────────────────────── */
@media (max-height: 620px) {
  .masthead { padding-top: 6px; padding-bottom: 6px; }
  .masthead__top { display: none; }
  .foot, .powered-by { display: none; }
}
@media (max-width: 480px) {
  .chip-btn { padding: 8px 10px; }
  .chip-btn__label { display: none; }
}

/* ── reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html.no-motion *, html.no-motion *::before, html.no-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* ── print: flatten to readable pages ─────────────────────────────────── */
@media print {
  html.js .app { height: auto; display: block; overflow: visible; }
  html.js .panel { display: block !important; overflow: visible !important; }
  html.js .panel.hero-panel.is-active { display: block !important; }
  .masthead__actions, .tabs, .foot, .powered-by, .no-print { display: none !important; }
  .lightbox { display: none !important; }
  body { background: #fff; }
  .panel-inner { max-width: none; padding: 12px; }
  .poster {
    box-shadow: none;
    border: 1px solid #d4af37;
    background: #fff;
    color: #1a1a1a;
    page-break-inside: avoid;
  }
  .poster::after, .poster__bulbs, .poster__rays, .poster__star, .poster__carpet { display: none; }
  .poster .poster__name {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #1a1a1a;
  }
  .poster .poster__eyebrow { color: #666; }
  .poster .poster__tagline, .poster .poster__request { color: #444; }
  .poster .poster__date, .poster .poster__dress { color: #8f6c33; }
  .poster .poster__showtimes, .poster .poster__cta { color: #444; }
  .poster .poster__showtimes li { border-color: #ccc; }
  .poster .poster__venue { color: #666; }
  .countdown-tiles, .event-item, .timeline-item, .notes { page-break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
