/* ═══════════════════════════════════════════════════════════════════
   NOVA · The Reveal — Product Launch FLYER (reveal poster)
   business-product-launch-flyer-nova-reveal

   Design language: dark keynote stage, cyan/violet aurora, mono labels,
   glitch "reveal" typography. Single-viewport shell: 100dvh, only the
   active panel scrolls internally.

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

:root {
  /* ── palette ── */
  --bg0: #05060a;
  --bg1: #0a0e16;
  --panel-bg: rgba(10, 14, 22, 0.72);
  --ink: #eef2f9;
  --ink-2: #c3cadb;
  --dim: #8e98ad;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --cyan: #27d3ee;
  --violet: #a78bfa;
  --rose: #fb7185;
  --ok: #34d399;

  /* ── type ── */
  --font-display: "Space Grotesk", 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: 64px;
  --content-w: 1080px;
  --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-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The shell becomes a locked viewport only when JS is available;
   without JS the page is a normal scrolling document (progressive enhancement). */
body.js { height: 100dvh; max-height: 100vh; overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); }
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(--cyan); color: #04141a; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* thin scrollbars inside panels */
.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: aurora + grid + vignette ───────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 34% at 80% 8%, rgba(39, 211, 238, 0.16), transparent 70%),
    radial-gradient(40% 36% at 10% 84%, rgba(167, 139, 250, 0.15), transparent 70%),
    radial-gradient(30% 26% at 90% 80%, rgba(251, 113, 133, 0.07), transparent 70%),
    radial-gradient(70% 55% at 50% 45%, rgba(11, 17, 31, 0.6), transparent 100%);
  animation: aurora 18s 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.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  background-size: 46px 46px, 46px 46px, 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(18deg); }
}

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

/* ── brand bar (persistent chrome, floats over panels) ────────────── */
.brand {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + var(--safe-t)) clamp(18px, 4vw, 40px) 14px;
  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: 30px; height: 30px; color: var(--cyan); }
.brand-name {
  font-size: 17px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
}
.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(--cyan); padding: 6px 10px; border: 1px solid rgba(39, 211, 238, 0.4);
  border-radius: 999px;
}
.private-chip[hidden] { display: none; }

/* ── panels: only the active one is visible & scrolls internally ──── */
.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;
}
/* A panel hidden by the host (add `hidden` to a <section>) or by a render
   step must never reappear, and its nav chip is skipped by the JS pager. */
.panel[hidden] { display: none !important; }
@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(--safe-t)) clamp(18px, 4vw, 40px)
           calc(126px + 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-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cyan); 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-size: clamp(30px, 5.6vw, 52px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.02em; 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-display); 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(--cyan), #7dd3fc 45%, var(--violet));
  color: #04141a; box-shadow: 0 8px 30px rgba(39, 211, 238, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 38px rgba(39, 211, 238, 0.42); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── panel 1 · hero reveal poster ─────────────────────────────────── */
.hero-inner {
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: clamp(18px, 3vh, 28px);
}
.chip {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.hero-title {
  position: relative;
  font-size: clamp(64px, 19vw, 188px); line-height: 0.92; font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 90px rgba(39, 211, 238, 0.35);
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
/* one-shot RGB-split glitch on entry */
.hero-title::before, .hero-title::after {
  content: attr(data-text);
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  animation: glitch 1.6s steps(1, end) 0.9s 1;
}
.hero-title::before { color: var(--cyan); transform: translateX(-4px); mix-blend-mode: screen; }
.hero-title::after  { color: var(--rose); transform: translateX(4px); mix-blend-mode: screen; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(12px); letter-spacing: 0.3em; }
  to   { opacity: 1; transform: none; filter: none; letter-spacing: 0.05em; }
}
@keyframes glitch {
  0%, 62% { opacity: 0; clip-path: inset(0 0 100% 0); }
  63% { opacity: 0.85; clip-path: inset(0 0 55% 0); }
  72% { opacity: 0.85; clip-path: inset(45% 0 12% 0); }
  81% { opacity: 0.6; clip-path: inset(0 0 72% 0); }
  88% { opacity: 0.6; clip-path: inset(30% 0 35% 0); }
  100% { opacity: 0; }
}
.hero-sub {
  color: var(--ink-2); font-size: clamp(15px, 2.4vw, 20px); max-width: 560px;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.br-desktop { display: none; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* countdown */
.countdown { display: none; }
.js .countdown { display: block; animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }
.countdown-label { font-size: 11px; letter-spacing: 0.4em; color: var(--dim); margin-bottom: 14px; }
.countdown-grid {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono);
}
.cd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: clamp(58px, 13vw, 84px);
  padding: clamp(10px, 2vh, 16px) 6px;
  background: var(--panel-bg); border: 1px solid var(--line); border-radius: 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cd-num { font-size: clamp(22px, 5.4vw, 38px); font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.cd-sep { color: var(--cyan); font-size: clamp(16px, 3vw, 24px); font-weight: 600; padding-bottom: 18px; }
.countdown.is-live .countdown-grid { display: none; }
.countdown-fallback {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--cyan);
}
.countdown-fallback[hidden] { display: none; }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 12.5px; color: var(--dim);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.66s both;
}
.hero-meta li { display: flex; gap: 8px; align-items: baseline; }
.meta-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.meta-v { color: var(--ink-2); }
/* A host may leave a summary value empty (the engine then removes .meta-v):
   drop the whole row instead of showing a bare label, and drop the list
   when no row carries a value. `:has()` is progressive enhancement —
   browsers without it simply keep the rows as-is. */
.hero-meta li:not(:has(.meta-v:not([hidden]))) { display: none; }
.hero-meta:not(:has(li .meta-v:not([hidden]))) { display: none; }

.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.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ── panel 2 · product spotlight ──────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; margin-bottom: clamp(26px, 4vh, 40px);
}
.feature-list { display: grid; gap: 12px; }
.feature-card {
  position: relative;
  padding: 18px 20px 18px 22px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px;
  background: linear-gradient(var(--cyan), var(--violet)); border-radius: 2px;
}
.feature-card:hover { border-color: var(--line-2); transform: translateX(4px); }
.feature-tag { font-size: 10px; letter-spacing: 0.26em; color: var(--cyan); }
.feature-name { font-size: 17px; font-weight: 600; margin: 6px 0 4px; }
.feature-desc { color: var(--dim); font-size: 14px; max-width: 46ch; }

/* Concept render — a real image slot, tap to zoom in the lightbox.
   Swap the `src` for your own render/photo (see assets/img/README.md). */
.device { position: relative; padding: 10px 0 0; }
.device[hidden] { display: none; }
.device-orbit {
  position: absolute; inset: -8%; border-radius: 50%;
  border: 1px dashed var(--line-2);
  animation: spin 26s linear infinite;
}
.device-orbit::before {
  content: ""; position: absolute; top: 50%; left: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 18px var(--cyan);
}
.device-open {
  position: relative; display: block; margin: 0 auto;
  width: min(240px, 58vw); aspect-ratio: 1; padding: 0;
  border: 0; background: none; cursor: zoom-in; border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}
.device-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.device-photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 70px rgba(39, 211, 238, 0.3);
}
.device-chip {
  position: absolute; right: 2%; bottom: 8%; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(5, 7, 12, 0.72); border: 1px solid var(--line-2);
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.device-caption { margin-top: 18px; text-align: center; font-size: 10.5px; letter-spacing: 0.14em; color: var(--dim); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.spec-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
.spec-strip li {
  background: var(--panel-bg); text-align: center; padding: 16px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.spec-strip b { font-size: 15px; font-weight: 600; }
.spec-strip span { font-size: 11px; color: var(--dim); }

/* ── optional video feature (Product panel) ──────────────────────── */
.video-section { margin: clamp(24px, 4vh, 36px) auto 0; max-width: 560px; }
.video-section[hidden] { display: none; }
.video-card { position: relative; }
.video-open {
  appearance: none; 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 18px 44px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.video-open:hover {
  border-color: rgba(39, 211, 238, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
}
.video-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.video-thumb {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--bg1);
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #04141a; font-size: 20px; padding-left: 4px;
  background: linear-gradient(120deg, var(--cyan), #7dd3fc 45%, var(--violet));
  box-shadow: 0 10px 30px rgba(39, 211, 238, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-open:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 36px rgba(39, 211, 238, 0.6);
}
.video-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(5, 7, 12, 0.72); border: 1px solid var(--line-2);
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-card-label {
  margin-top: 10px; text-align: center;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}

/* ── panel 3 · event ──────────────────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.info-card {
  padding: 22px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line);
}
.info-k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); }
.info-card h3 { font-size: 18px; font-weight: 600; margin: 10px 0 6px; line-height: 1.25; }
.info-card p { color: var(--dim); font-size: 13.5px; }
.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: 13px 4px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.agenda-time { font-size: 13px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.agenda-item { color: var(--ink-2); font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── optional event flyer / banner (Event panel) ─────────────────── */
.flyer-banner { max-width: 640px; margin: 0 auto clamp(24px, 4vh, 36px); }
.flyer-banner[hidden] { display: none; }
.flyer-banner-card { position: relative; }
.flyer-banner-open {
  appearance: none; position: relative; display: block; width: 100%;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg1); cursor: zoom-in;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.flyer-banner-open:hover {
  border-color: rgba(167, 139, 250, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.52);
}
.flyer-banner-open:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.flyer-banner-open img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--bg1);
}
.flyer-banner-chip {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(5, 7, 12, 0.72); border: 1px solid var(--line-2);
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.flyer-banner-label {
  margin-top: 10px; text-align: center;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}

/* ── event photo gallery (optional — delete .photo-gallery to disable) ── */
.photo-gallery { margin-bottom: clamp(24px, 4vh, 36px); }
.photo-gallery[hidden] { display: none; }
.gallery-head { margin-bottom: 14px; }
.gallery-eyebrow {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 6px;
}
.gallery-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.gallery-note { font-size: 13.5px; color: var(--dim); margin-top: 4px; }
.photo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.photo-card {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-bg); border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-card:hover {
  border-color: rgba(39, 211, 238, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.photo-open {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: none; cursor: zoom-in;
}
.photo-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: 0; }
.photo-img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg1);
}
.photo-zoom {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(5, 7, 12, 0.72); border: 1px solid var(--line-2);
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.photo-card:hover .photo-zoom { opacity: 1; transform: none; }
@media (hover: none) { .photo-zoom { opacity: 1; transform: none; } }
.photo-caption {
  padding: 10px 12px 12px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}

/* ── panel 4 · 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(--cyan); box-shadow: 0 0 0 3px rgba(39, 211, 238, 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='%2327d3ee' 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(--cyan);
}
.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); }

/* declining state — gentle, keeps every field intact for the platform */
.rsvp-form.is-declining .rsvp-note { color: var(--cyan); }

/* side info cards */
.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(--violet); }
.side-line { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.side-card-live { border-color: rgba(39, 211, 238, 0.35); }

/* ── panel 5 · guestbook (platform-injected content) ──────────────── */
.guestbook-body { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }

/* injected form */
.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(--cyan); box-shadow: 0 0 0 3px rgba(39, 211, 238, 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-display); 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(--cyan), #7dd3fc 45%, var(--violet));
  color: #04141a; box-shadow: 0 8px 30px rgba(39, 211, 238, 0.28);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.guestbook-body button[type="submit"]:hover { box-shadow: 0 10px 38px rgba(39, 211, 238, 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(--cyan); }

/* injected message list */
.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-size: 15px; 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-display); 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(--cyan); color: var(--cyan); }

.notes-foot { margin-top: 34px; font-size: 13px; color: var(--dim); text-align: center; }

/* ── free page (optional extra panel) ────────────────────────────── */
.free-blocks { display: grid; gap: 18px; }
.free-block {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.free-block:hover { border-color: var(--line-2); }
.free-title {
  font-size: clamp(18px, 2.6vw, 22px); font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.free-content {
  color: var(--ink-2); font-size: 15px; max-width: 62ch;
  white-space: pre-line;
}
.free-content p { margin: 0 0 10px; }
.free-figure { margin: 18px 0 0; }
.free-open {
  appearance: none; position: relative; display: block; width: 100%;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg1); cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.free-open:hover {
  border-color: rgba(39, 211, 238, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.free-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.free-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; background: var(--bg1);
}
.free-chip {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(5, 7, 12, 0.72); border: 1px solid var(--line-2);
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.free-cap {
  margin-top: 10px; text-align: left;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}

/* ── full-width powered-by brand strip (platform line) ───────────── */
.powered-by {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  padding: 8px 16px calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dim);
  background: rgba(5, 7, 12, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.powered-by p { margin: 0; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { color: var(--cyan); }
/* without JS the shell is a scrolling document: keep the line visible */
html:not(.js) .powered-by { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ── footer ──────────────────────────────────────────────────────── */
.app-footer {
  margin-top: 42px; padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; color: var(--dim); letter-spacing: 0.06em;
}
.app-footer p { margin: 0; }
/* brand placeholder — the platform can drop its own brand here */
.footer-brand {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cyan); vertical-align: baseline;
}

/* ── media lightbox (photos + video) ─────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(3, 5, 9, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; }
.lightbox-figure {
  position: relative; z-index: 1;
  max-width: min(920px, 94vw); max-height: 92vh; margin: 0;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg1); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-img {
  display: block; width: 100%; max-height: 78vh; object-fit: contain;
  background: var(--bg0);
}
.lightbox-video {
  position: relative; z-index: 1;
  width: min(900px, 94vw); background: var(--bg1);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  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;
}
.lightbox-cap {
  width: 100%; padding: 12px 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); text-align: center;
  overflow-wrap: anywhere;
}
.lightbox-count {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink); background: rgba(5, 7, 12, 0.7);
  border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute; z-index: 2; appearance: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); color: var(--ink);
  background: rgba(5, 7, 12, 0.7); font-size: 22px; line-height: 1;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover:not(:disabled) {
  background: rgba(39, 211, 238, 0.16); color: var(--cyan);
  border-color: rgba(39, 211, 238, 0.5);
}
.lightbox-nav:disabled { opacity: 0.35; cursor: default; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ── section navigation (labelled text chips) ────────────────────── */
.panel-nav {
  display: none;
  position: absolute; bottom: calc(50px + var(--safe-b)); left: 50%;
  transform: translateX(-50%); z-index: 30;
  align-items: center; gap: 6px;
  max-width: calc(100vw - 20px);
  padding: 6px 8px; border-radius: 999px;
  background: rgba(5, 7, 12, 0.68); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.js .panel-nav { display: flex; }
/* Scrollable middle (label + chips) — the ‹ › arrows live OUTSIDE this
   span so they stay pinned at the bar's edges on narrow screens. */
.nav-scroller {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.nav-scroller::-webkit-scrollbar { display: none; }
.nav-label {
  flex: 0 0 auto; scroll-snap-align: start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--dim); min-width: 52px; text-align: center;
}
.nav-chip {
  flex: 0 0 auto; scroll-snap-align: center;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); cursor: pointer; white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-chip:hover { color: var(--ink); border-color: var(--line-2); }
.nav-chip.is-active {
  color: #04141a;
  background: linear-gradient(120deg, var(--cyan), #7dd3fc 45%, var(--violet));
  box-shadow: 0 6px 18px rgba(39, 211, 238, 0.35);
}
.nav-chip-num { opacity: 0.7; }

/* ── mobile prev/next arrows ─────────────────────────────────────── */
/* Circular icon buttons flanking the chips; the full-screen panels page
   through like a carousel (‹ [chips…] ›). Disabled at the ends by
   main.js; hidden on wide screens where every chip fits anyway. */
.nav-arrow {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
}
.nav-arrow:hover:not(:disabled) { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.08); }
.nav-arrow:active:not(:disabled) { transform: scale(0.94); }
.nav-arrow:disabled { opacity: 0.32; cursor: default; }
.nav-arrow:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 640px) {
  .js .panel-nav .nav-arrow { display: inline-flex; }
}

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .device { order: -1; max-width: 300px; margin: 0 auto; }
  .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; }
  .spec-strip { grid-template-columns: repeat(3, 1fr); }
  .spec-strip li:nth-child(4), .spec-strip li:nth-child(5) { grid-column: span 1; }
  .hero-meta { flex-direction: column; align-items: center; gap: 6px; }
  .brand-tag { display: none; }
  .nav-chip { min-height: 42px; padding: 0 12px; font-size: 9.5px; gap: 6px; }
  .nav-label { min-width: 44px; }
  .video-play { width: 54px; height: 54px; font-size: 16px; }
}
@media (min-width: 720px) {
  .br-desktop { display: inline; }
}

/* ── 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: the whole invitation becomes one flowing document ─────── */
@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; padding: 0 0 6mm !important; }
  .brand-tag, .guest-greeting, .private-chip, .scroll-hint, .panel-nav { 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; }
  .hero-inner { min-height: auto; display: block; text-align: left; }
  .hero-title { font-size: 44pt; }
  .hero-title::before, .hero-title::after { display: none !important; }
  .countdown { display: none !important; }
  .hero-ctas, .cta-row, .rsvp-actions, .scroll-hint { display: none !important; }
  .panel-nav, .lightbox, .powered-by { display: none !important; }
  .video-section { display: none !important; }
  .device-open { animation: none !important; }
  .photo-zoom, .device-chip, .video-play, .video-chip, .flyer-banner-chip, .free-chip { display: none !important; }
  .info-grid, .rsvp-layout, .split, .photo-strip { grid-template-columns: 1fr 1fr; }
  .feature-card, .info-card, .side-card, .guestbook-entry, .photo-card { 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; }
}
