/* ═══════════════════════════════════════════════════════════════════
   NOVA · The Reveal — Product Launch CARD (the invitation)
   business-product-launch-card-nova-launch

   Companion to the flyer: same event, refined invitation tone. Serif
   display (Fraunces), deep navy-black stage, electric-blue + gold hairlines,
   monogram seal, slim countdown on the cover.

   Customise via the :root tokens at the top of this file.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── palette ── */
  --bg0: #07080d;
  --bg1: #0c0f18;
  --panel-bg: rgba(13, 16, 26, 0.78);
  --ink: #f2f0ea;
  --ink-2: #cfcdc4;
  --dim: #98949a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --blue: #6ea8ff;
  --violet: #a78bfa;
  --gold: #e3c08d;
  --rose: #fb7185;
  --ok: #34d399;

  /* ── type ── */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ── layout ── */
  --brand-h: 56px;
  --menu-h: 50px;
  --content-w: 1040px;
  --radius: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ── reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  height: 100%;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.js { height: 100dvh; max-height: 100vh; overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #07101f; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.panel-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.panel-scroll::-webkit-scrollbar { width: 6px; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 3px; }

/* ── stage background: cool aurora + faint grid + vignette ────────── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 32% at 82% 10%, rgba(110, 168, 255, 0.14), transparent 70%),
    radial-gradient(38% 34% at 12% 86%, rgba(167, 139, 250, 0.1), transparent 70%),
    radial-gradient(26% 22% at 88% 82%, rgba(227, 192, 141, 0.06), transparent 70%),
    radial-gradient(70% 55% at 50% 45%, rgba(9, 13, 24, 0.62), transparent 100%);
  animation: aurora 20s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  -webkit-mask-image: radial-gradient(85% 85% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(85% 85% at 50% 45%, #000 35%, transparent 100%);
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); filter: hue-rotate(0deg); }
  to   { transform: translate3d(-2%, 1.5%, 0) scale(1.06); filter: hue-rotate(-12deg); }
}

/* ── shell ────────────────────────────────────────────────────────── */
.shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── brand bar ────────────────────────────────────────────────────── */
.brand {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(var(--brand-h) + var(--safe-t));
  padding: 0 clamp(18px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.92), rgba(7, 8, 13, 0.72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;
}
.brand a, .brand-side { pointer-events: auto; }
.brand-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand-seal { width: 28px; height: 28px; color: var(--gold); }
.brand-name {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-side { display: flex; align-items: center; gap: 14px; }
.brand-tag {
  font-size: 10.5px; letter-spacing: 0.28em; color: var(--dim);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.guest-greeting {
  font-size: 13px; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px;
  background: var(--panel-bg); border: 1px solid var(--line);
}
.guest-greeting:empty, .guest-greeting[hidden] { display: none; }
.private-chip {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); padding: 6px 10px; border: 1px solid rgba(227, 192, 141, 0.4);
  border-radius: 999px;
}
.private-chip[hidden] { display: none; }

/* ── text menu (built from live panels by main.js) ─────────────────── */
.menu {
  display: none;
  position: absolute; top: calc(var(--brand-h) + var(--safe-t)); left: 0; right: 0; z-index: 29;
  align-items: center; justify-content: center;
  height: var(--menu-h);
  gap: 4px;
  padding: 5px clamp(12px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.72), rgba(7, 8, 13, 0.45));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* soft fade at the scroll edges so pills never feel cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.menu.is-ready { display: flex; }
.menu::-webkit-scrollbar { display: none; }
.menu-item {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim); cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.menu-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.menu-item[aria-current="true"] {
  color: var(--gold); border-color: rgba(227, 192, 141, 0.45);
  background: rgba(227, 192, 141, 0.08);
}

/* ── panels ───────────────────────────────────────────────────────── */
.stage { flex: 1 1 auto; min-height: 0; position: relative; }
.panel { display: block; height: 100%; }
.js .panel { display: none; }
.js .panel.is-active {
  display: block;
  animation: panel-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to   { opacity: 1; transform: none; }
}
.panel-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(var(--brand-h) + var(--menu-h) + var(--safe-t)) clamp(18px, 4vw, 40px)
           calc(96px + var(--safe-b));
}

/* ── utilities ────────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-body {
  max-width: var(--content-w); margin: 0 auto;
  padding-top: clamp(20px, 4vh, 44px);
}
.section-body-narrow { max-width: 720px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 52px); line-height: 1.06; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.section-lead {
  color: var(--ink-2); font-size: clamp(15px, 2vw, 18px);
  max-width: 640px; margin-bottom: clamp(28px, 5vh, 48px);
}

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  min-height: 48px; transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue), #9cc2ff 50%, var(--violet));
  color: #07101f; box-shadow: 0 8px 30px rgba(110, 168, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 38px rgba(110, 168, 255, 0.42); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── panel 1 · cover ──────────────────────────────────────────────── */
.cover-inner {
  position: relative; z-index: 1;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: clamp(14px, 2.4vh, 22px);
}

/* optional cover photo background — delete .cover-photo in index.html to hide.
   The whole photo is clickable (opens full size in the lightbox); the cover
   text/CTAs sit above it and stay interactive via pointer-events. */
#cover { position: relative; }
.cover-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; background: var(--bg0); }
.cover-photo-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(7, 8, 13, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.45) 0%, rgba(7, 8, 13, 0.16) 36%, rgba(7, 8, 13, 0.4) 66%, rgba(7, 8, 13, 0.92) 100%);
}
.cover-photo-open {
  position: absolute; inset: 0; z-index: 2;
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent; cursor: zoom-in;
}
.cover-photo-open:focus-visible { outline: 2px solid var(--blue); outline-offset: -6px; }
.cover-zoom-chip {
  position: absolute; right: 16px; bottom: calc(16px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(7, 8, 13, 0.6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0.85; transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cover-photo-open:hover .cover-zoom-chip, .cover-photo-open:focus-visible .cover-zoom-chip {
  opacity: 1; border-color: var(--gold); color: var(--gold);
}
/* let taps fall through the cover content to the clickable photo behind it */
.js .cover-inner { pointer-events: none; }
.js .cover-inner .btn { pointer-events: auto; }
.cover-when, .cover-where { text-shadow: 0 1px 14px rgba(4, 5, 10, 0.7); }
.cover-kicker {
  font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold);
  padding: 9px 16px; border: 1px solid rgba(227, 192, 141, 0.4); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.cover-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 19vw, 176px); line-height: 0.95; font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 0 80px rgba(110, 168, 255, 0.28);
  animation: cover-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.cover-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 4.6vw, 40px); color: var(--gold); font-weight: 500;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes cover-in {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.cover-rule {
  display: flex; align-items: center; gap: 10px; width: min(320px, 64vw);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.cover-rule span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cover-when {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 22px); font-weight: 500;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}
.cover-where {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

/* slim countdown */
.countdown { display: none; }
.js .countdown { display: block; animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.countdown-label { font-size: 10px; letter-spacing: 0.38em; color: var(--dim); margin-bottom: 12px; }
.countdown-grid {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
}
.cd-cell { display: flex; align-items: baseline; gap: 5px; }
.cd-num { font-size: clamp(16px, 3.4vw, 22px); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.cd-sep { color: var(--gold); font-size: 15px; }
.countdown.is-live .countdown-grid { display: none; }
.countdown-fallback { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); }
.countdown-fallback[hidden] { display: none; }

.cover-ctas {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}

.scroll-hint {
  display: none;
  position: absolute; bottom: calc(22px + var(--safe-b)); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--dim);
}
.js .scroll-hint { display: block; animation: pulse 2.6s ease-in-out 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ── panel 2 · details ────────────────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.info-card {
  position: relative;
  padding: 22px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line);
  overflow: hidden;
}
/* Foil-stamped top edge: a gold hairline that fades at the ends */
.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  opacity: 0.8;
  pointer-events: none;
}
.info-k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.info-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 10px 0 6px; line-height: 1.25; }
.info-card p { color: var(--dim); font-size: 13.5px; }

.note-banner {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px dashed rgba(227, 192, 141, 0.45);
  margin-bottom: clamp(24px, 4vh, 36px);
}
.note-k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.note-line { color: var(--ink-2); font-size: 14px; flex: 1; min-width: 220px; }

/* ── panel 2 · official launch poster / flyer (optional) ────────────
   A wide framed slot for hosts who already have a designed flyer — guests
   confirm they're in the right place. Clicking opens it full size. */
.banner-flyer {
  margin: 0 0 clamp(24px, 4vh, 36px);
  max-width: 760px;
}
.banner-open {
  position: relative; display: block; width: 100%;
  padding: 8px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  background: var(--panel-bg); cursor: zoom-in;
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.banner-open:hover, .banner-open:focus-visible { border-color: rgba(227, 192, 141, 0.6); box-shadow: 0 22px 52px -24px rgba(0, 0, 0, 0.8); }
.banner-open img {
  display: block; width: 100%; aspect-ratio: 8 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--bg1);
}
.banner-zoom-chip {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(7, 8, 13, 0.62); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0.9; transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.banner-open:hover .banner-zoom-chip, .banner-open:focus-visible .banner-zoom-chip {
  border-color: var(--gold); color: var(--gold);
}
.banner-flyer figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; }
.banner-cap-k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.banner-cap-line { font-size: 14px; color: var(--ink-2); }

/* ── panel 3 · agenda ─────────────────────────────────────────────── */
.agenda { border-top: 1px solid var(--line); margin-bottom: clamp(24px, 4vh, 36px); }
.agenda-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.agenda-time { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.agenda-item { color: var(--ink-2); font-size: 15.5px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── panel 4 · gallery (optional photo feature) ──────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(24px, 4vh, 36px);
}
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.gallery-thumb img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.035); }
.gallery-thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px transparent; pointer-events: none;
  transition: box-shadow 0.3s ease;
}
.gallery-thumb:hover::after, .gallery-thumb:focus-visible::after {
  box-shadow: inset 0 0 0 1px rgba(227, 192, 141, 0.55);
}
.gallery-item figcaption { display: flex; flex-direction: column; gap: 3px; }
.gallery-cap-k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.gallery-cap-line { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ── panel 4 · launch trailer (optional video URL embed) ──────────── */
.video-section {
  margin-top: clamp(8px, 1.5vh, 16px);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 4vh, 36px);
}
.video-card { max-width: 640px; margin: 0 auto; text-align: center; }
.video-open {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg1); cursor: pointer;
  box-shadow: 0 20px 46px -26px rgba(0, 0, 0, 0.75);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-open:hover, .video-open:focus-visible { border-color: rgba(227, 192, 141, 0.6); }
.video-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--bg1);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-open:hover .video-thumb, .video-open:focus-visible .video-thumb { transform: scale(1.03); }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(58px, 12vw, 74px); height: clamp(58px, 12vw, 74px);
  border-radius: 999px;
  align-items: center; justify-content: center;
  padding-left: 4px;
  font-size: 22px; color: #07101f;
  background: radial-gradient(circle at 32% 28%, #cfe0ff, var(--blue) 55%, var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 34px -10px rgba(110, 168, 255, 0.7);
  animation: play-pulse 2.8s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-open:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(110, 168, 255, 0.7); }
  50% { box-shadow: 0 14px 44px -6px rgba(110, 168, 255, 0.95); }
}
.video-chip {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 16px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(7, 8, 13, 0.66); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  white-space: nowrap;
}
.video-card-label {
  margin-top: 12px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim);
}

/* ── lightbox (gallery zoom) ─────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-t)) 20px calc(20px + var(--safe-b));
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 5, 10, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox-stage {
  position: relative; z-index: 1; margin: 0;
  max-width: min(1040px, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-img {
  max-width: 100%; max-height: 76vh; width: auto; height: auto;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
/* video mode — embedded player keeps a tidy 16:9 frame on any screen */
.lightbox-video {
  position: relative; width: min(960px, 94vw);
  border-radius: 12px; overflow: hidden;
  background: var(--bg0); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; background: #000;
}
/* mode toggles: nav only in album mode; photo/video swap */
.lightbox:not(.is-album) .lightbox-prev,
.lightbox:not(.is-album) .lightbox-next { display: none; }
.lightbox.is-video .lightbox-img { display: none; }
.lightbox:not(.is-video) .lightbox-video { display: none; }
.lightbox-cap {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 14px; color: var(--ink-2);
}
.lightbox-count { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.lightbox-external {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none; border-bottom: 1px solid rgba(227, 192, 141, 0.4);
}
.lightbox-external:hover { color: var(--ink); }
.lightbox-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: rgba(7, 8, 13, 0.72);
  color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { border-color: var(--gold); color: var(--gold); }
.lightbox-close { top: calc(18px + var(--safe-t)); right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ── panel 5 · RSVP ───────────────────────────────────────────────── */
.rsvp-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: clamp(20px, 3vw, 36px); align-items: start;
}
.rsvp-form {
  display: grid; gap: 18px; padding: clamp(18px, 2.6vw, 28px);
  background: var(--panel-bg); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.field {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(5, 7, 12, 0.65);
  color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field::placeholder { color: var(--dim); opacity: 0.75; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.16); outline: none; }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236ea8ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
textarea.field { resize: vertical; min-height: 56px; }
.field-hint { font-size: 11.5px; color: var(--dim); }
.error { font-size: 12px; color: var(--rose); min-height: 1em; display: block; }
.error:empty { display: none; }
.rsvp-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.loading {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--blue);
}
.loading::after { content: "…"; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.rsvp-note { font-size: 12.5px; color: var(--dim); }
.rsvp-form.is-declining .rsvp-note { color: var(--gold); }

.rsvp-side { display: grid; gap: 12px; }
.side-card {
  padding: 18px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line);
}
.side-k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.side-line { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.side-card-live { border-color: rgba(110, 168, 255, 0.4); }

/* ── panel 6 · guestbook (platform-injected) ──────────────────────── */
.guestbook-body { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.guestbook-body form {
  display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 28px);
  background: var(--panel-bg); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.guestbook-body .form-control {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(5, 7, 12, 0.65);
  color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.guestbook-body .form-control::placeholder { color: var(--dim); opacity: 0.75; }
.guestbook-body .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.16); outline: none; }
.guestbook-body textarea.form-control { resize: vertical; min-height: 84px; }
.guestbook-body .error { font-size: 12px; color: var(--rose); }
.guestbook-body button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  padding: 14px 24px; min-height: 48px; cursor: pointer; border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--blue), #9cc2ff 50%, var(--violet));
  color: #07101f; box-shadow: 0 8px 30px rgba(110, 168, 255, 0.28);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.guestbook-body button[type="submit"]:hover { box-shadow: 0 10px 38px rgba(110, 168, 255, 0.42); }
.guestbook-body button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.guestbook-chapta { min-height: 78px; }
.loading-guestbook { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--blue); }
.guestbook-wrap { display: grid; gap: 12px; }
.guestbook-entry {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line);
}
.guestbook-entry h5 { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.guestbook-entry p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.guestbook-entry small { font-size: 11.5px; color: var(--dim); font-family: var(--font-mono); }
.more-guestbook-wrap { text-align: center; }
.more-guestbook-wrap #load-more {
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  color: var(--ink); background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 22px; min-height: 44px; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.more-guestbook-wrap #load-more:hover { border-color: var(--gold); color: var(--gold); }
.notes-foot { margin-top: 34px; font-size: 13px; color: var(--dim); text-align: center; }

/* ── brand footer (placeholder, tucked into the last panel by main.js) ── */
.app-footer {
  margin-top: clamp(34px, 6vh, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display); font-size: 14.5px; color: var(--dim);
  letter-spacing: 0.04em;
}
.footer-brand-name { color: var(--gold); font-weight: 600; }

/* ── free page (optional, repeatable blocks) ─────────────────────── */
.free-blocks {
  display: grid;
  gap: clamp(22px, 4vw, 36px);
  margin-top: clamp(8px, 2vh, 18px);
}
.free-block {
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}
.free-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 27px); line-height: 1.15; font-weight: 600;
  letter-spacing: -0.01em; margin: 0 0 14px;
}
.free-figure {
  margin: 0 0 16px;
}
.free-figure a {
  display: block;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}
.free-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}
.free-cap {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--dim);
}
.free-content {
  color: var(--ink-2);
  font-size: clamp(15px, 1.9vw, 17px); line-height: 1.7;
  white-space: pre-line; /* keep the host's line breaks */
}

/* ── powered-by brand line (full-width footer div, class .powered-by) ──
   "Powered by Kundangi" — the engine swaps the brand name at render and the
   "Free Powered By" editor field replaces the whole line. Fixed strip above
   the pager dots (never covering them); a plain closing bar at the end of
   the stacked no-JS document. */
.powered-by {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(3.2rem + var(--safe-b));
  z-index: 25;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}
.powered-by .link-footer {
  font-family: var(--font-display);
  font-size: 12.5px; text-transform: none; letter-spacing: 0.04em;
  color: var(--gold);
}
html:not(.js) .powered-by { position: static; padding: 14px 16px; }

/* ── section pager ────────────────────────────────────────────────── */
.panel-nav {
  display: none;
  position: absolute; bottom: calc(20px + var(--safe-b)); left: 50%;
  transform: translateX(-50%); z-index: 30;
  align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(7, 8, 13, 0.6); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.js .panel-nav { display: flex; }
.nav-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--dim); min-width: 56px; text-align: center;
}
.nav-dot {
  width: 10px; height: 10px; border-radius: 999px; padding: 0;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}
.nav-dot.is-active {
  width: 26px; border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 12px rgba(227, 192, 141, 0.55);
}
@media (min-width: 768px) {
  .nav-dot { width: 12px; height: 12px; }
  .nav-dot.is-active { width: 30px; }
}

/* ── responsive ───────────────────────────────────────────────────── */
/* interactive affordances (zoom chips, play button) only make sense with
   JS — they open the viewer. Hidden without it so no-JS guests never see
   dead controls. Kept after the section styles so the cascade always wins. */
.cover-zoom-chip, .banner-zoom-chip, .video-chip { display: none; }
.js .cover-zoom-chip, .js .banner-zoom-chip, .js .video-chip { display: inline-flex; }
.js .video-play { display: flex; }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .rsvp-layout { grid-template-columns: 1fr; }
  .rsvp-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .rsvp-side { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .brand-tag { display: none; }
  .menu { justify-content: flex-start; }
  .cover-zoom-chip { right: 10px; bottom: calc(12px + var(--safe-b)); }
}

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

/* ── print ────────────────────────────────────────────────────────── */
@media print {
  @page { margin: 14mm; }
  html, body { height: auto !important; overflow: visible !important; background: #fff; }
  body.js { height: auto !important; max-height: none !important; overflow: visible !important; }
  .shell { height: auto !important; display: block !important; }
  .brand { position: static !important; height: auto !important; padding: 0 0 6mm !important; }
  .menu { display: none !important; }
  .brand-tag, .guest-greeting, .private-chip, .scroll-hint, .panel-nav, .powered-by { display: none !important; }
  .stage { display: block !important; }
  .panel, .js .panel, .js .panel.is-active {
    display: block !important; height: auto !important; animation: none !important;
    margin-bottom: 12mm; page-break-inside: auto;
  }
  .panel-scroll { height: auto !important; overflow: visible !important; padding: 0 !important; }
  .section-body { padding-top: 0; }
  .cover-inner { min-height: auto; display: block; text-align: left; }
  .cover-title { font-size: 44pt; }
  .countdown { display: none !important; }
  .cover-ctas, .cta-row, .rsvp-actions { display: none !important; }
  .cover-photo, .lightbox { display: none !important; }
  .cover-zoom-chip, .banner-zoom-chip, .video-chip, .video-play { display: none !important; }
  .info-grid, .rsvp-layout { grid-template-columns: 1fr 1fr; }
  .info-card, .side-card, .guestbook-entry, .agenda-row, .gallery-item { break-inside: avoid; }
  .rsvp-form, .guestbook-body form { background: #f4f5f8 !important; border-color: #d5d9e2 !important; }
  * { color: #111 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  a { color: #111 !important; }
  body::before, body::after { display: none !important; }
}
