/* ═══════════════════════════════════════════════════════════
   Luxury Cinematic Invitation — GSAP-driven experience
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --glass-bg: rgba(20, 20, 28, 0.62);
  --glass-bg-strong: rgba(12, 12, 18, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.06);
  --glass-text: rgba(255, 252, 245, 0.94);
  --glass-text-muted: rgba(255, 252, 245, 0.52);
  --glass-blur: blur(32px) saturate(165%);
  --ios-radius: 22px;
}

html, body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  font-family: var(--body-font, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--glass-text);
  background: var(--page-bg, #08080c);
}

html:has(body.has-scroll-page.scroll-unlocked),
body.has-scroll-page.scroll-unlocked {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Cinema shell — dark liquid glass ── */
.cinema {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--cinema-bg,
    radial-gradient(ellipse 90% 70% at 12% 8%, rgba(255, 255, 255, 0.06), transparent 52%),
    radial-gradient(ellipse 75% 55% at 88% 18%, rgba(255, 255, 255, 0.04), transparent 48%),
    radial-gradient(ellipse 80% 60% at 50% 105%, rgba(255, 255, 255, 0.05), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 75%, rgba(90, 70, 140, 0.07), transparent 45%),
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--page-bg, #0a0a10) 92%, #000) 0%,
      color-mix(in srgb, var(--page-bg, #111118) 88%, #111) 42%,
      var(--page-bg, #14141c) 100%
    )
  );
}

.cinema::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--custom-bg, none) center/cover no-repeat;
  opacity: calc(var(--bg-overlay-opacity, 0.06) * 0.45);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.cinema::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 62% 52% at 18% 28%, rgba(201, 169, 98, 0.16), transparent 62%),
    radial-gradient(ellipse 54% 46% at 82% 68%, rgba(255, 220, 180, 0.14), transparent 58%),
    radial-gradient(ellipse 48% 40% at 52% 92%, rgba(180, 140, 100, 0.1), transparent 55%);
  animation: cinemaAuroraDrift 20s ease-in-out infinite alternate;
}

body.cinema-tone-light .cinema::after {
  opacity: 1;
  background:
    radial-gradient(ellipse 62% 52% at 18% 28%, rgba(201, 169, 98, 0.22), transparent 62%),
    radial-gradient(ellipse 54% 46% at 82% 68%, rgba(255, 220, 180, 0.18), transparent 58%),
    radial-gradient(ellipse 48% 40% at 52% 92%, rgba(180, 140, 100, 0.14), transparent 55%),
    radial-gradient(ellipse 35% 30% at 68% 22%, rgba(255, 248, 235, 0.2), transparent 52%);
}

body.cinema-tone-dark .cinema::after {
  opacity: 0.72;
  background:
    radial-gradient(ellipse 58% 48% at 22% 18%, rgba(120, 90, 180, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 42% at 78% 72%, rgba(201, 169, 98, 0.1), transparent 58%),
    radial-gradient(ellipse 45% 38% at 50% 100%, rgba(80, 120, 200, 0.08), transparent 55%);
}

@keyframes cinemaAuroraDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
    filter: hue-rotate(8deg);
  }
}

body.cinema-tone-light .cinema {
  background: var(--cinema-bg,
    radial-gradient(ellipse 90% 70% at 12% 8%, rgba(255, 255, 255, 0.55), transparent 52%),
    radial-gradient(ellipse 75% 55% at 88% 18%, rgba(201, 169, 98, 0.12), transparent 48%),
    radial-gradient(ellipse 80% 60% at 50% 105%, rgba(210, 180, 140, 0.14), transparent 50%),
    linear-gradient(168deg, #faf6f0 0%, var(--page-bg, #f4efe8) 48%, #e8dfd4 100%)
  );
}

body.cinema-tone-light .ambient-light {
  background:
    radial-gradient(ellipse 55% 42% at 22% 10%, rgba(255, 248, 235, 0.45), transparent 55%),
    radial-gradient(ellipse 42% 32% at 78% 14%, rgba(201, 169, 98, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 38% at 50% 88%, rgba(255, 220, 180, 0.16), transparent 52%);
  animation: lightPulseWarm 10s ease-in-out infinite alternate;
}

@keyframes lightPulseWarm {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

body.cinema-tone-light .vignette {
  background: radial-gradient(ellipse 82% 74% at 50% 45%, transparent 42%, rgba(80, 60, 40, 0.14) 100%);
}

body.cinema-tone-dark .vignette {
  background: radial-gradient(ellipse 78% 72% at 50% 45%, transparent 32%, rgba(0, 0, 0, 0.45) 100%);
}

.cinema-has-scene::before {
  display: none;
}

.cinema-scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    var(--cinema-scene-image, none) center/cover no-repeat,
    var(--page-bg, #08080c);
  transform: scale(1.06);
  animation: cinemaSceneKenBurns 28s ease-in-out infinite alternate;
}

.cinema-scene-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, calc(var(--cinema-scrim, 0.42) * 0.65)) 0%, rgba(0, 0, 0, calc(var(--cinema-scrim, 0.42) * 0.35)) 38%, rgba(0, 0, 0, calc(var(--cinema-scrim, 0.42) * 0.72)) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 0, 0, calc(var(--cinema-scrim, 0.42) * 0.25)), rgba(0, 0, 0, calc(var(--cinema-scrim, 0.42) * 0.85)));
}

.cinema-scene-water {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(120deg, transparent 0%, rgba(120, 200, 255, 0.12) 45%, transparent 70%),
    linear-gradient(300deg, transparent 0%, rgba(80, 160, 220, 0.1) 50%, transparent 80%);
  background-size: 200% 200%, 180% 180%;
  animation: cinemaWaterShimmer 14s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes cinemaSceneKenBurns {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes cinemaWaterShimmer {
  0%, 100% { background-position: 0% 40%, 100% 60%; }
  50% { background-position: 100% 60%, 0% 40%; }
}

.cinema::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03), transparent 35%),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

#dustCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

body.cinema-tone-light #dustCanvas {
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.ambient-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 42% at 22% 10%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 42% 32% at 78% 14%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
  animation: lightPulse 8s ease-in-out infinite alternate;
}

@keyframes lightPulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Viewport & camera rig ── */
.viewport {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  z-index: 4;
  overflow: visible;
}

.camera-rig {
  position: relative;
  width: 480px;
  height: 640px;
  transform-style: preserve-3d;
}

.ground-shadow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(440px, 90%);
  height: clamp(40px, 8vw, 64px);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 45%, transparent 72%);
  filter: blur(14px);
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* ── Scene — 916.4 × 531.63 (designer viewBox) ── */
.scene {
  --env-sh-x: 0px;
  --env-sh-y: 14px;
  --env-sh-blur: 22px;
  --env-sh-alpha: 0.42;
  --env-rim: 0.72;
  --env-flap-lit: 0;
  --env-card-lit: 0;
  --env-seal-y: 57.18%;
  --env-flap-h: 73.654%;
  --env-seam: 1px;
  --card-top: 25.51%;
  --card-width: 83.34%;
  --card-left: 8.33%;
  --env-scale: 1.14;
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(94vw, 580px);
  aspect-ratio: 916 / 531;
  transform-style: preserve-3d;
  isolation: isolate;
  overflow: visible;
  background: transparent;
}

.env-cast-shadow {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 82%;
  height: 24%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.16) 44%, transparent 72%);
  filter: blur(calc(8px + var(--env-sh-blur) * 0.28));
  opacity: 0;
  will-change: transform, opacity;
}

.env-stage-light {
  position: absolute;
  inset: -28% -32%;
  z-index: 9;
  pointer-events: none;
  opacity: var(--env-rim);
  background:
    radial-gradient(ellipse 62% 52% at 26% calc(14% - var(--env-flap-lit) * 10%), rgba(255, 248, 238, 0.18) 0%, rgba(255, 248, 238, 0.06) 38%, transparent 72%),
    radial-gradient(ellipse 52% 44% at 76% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%, transparent 68%),
    radial-gradient(ellipse 95% 78% at 50% 110%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.03) 45%, transparent 62%);
  filter: blur(calc(10px + var(--env-flap-lit) * 6px));
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 48%, #000 42%, transparent 88%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 48%, #000 42%, transparent 88%);
}

.cinema.letter-opening .env-stage-light {
  opacity: calc(var(--env-rim) + 0.12);
}

.cinema.revealed .env-stage-light {
  opacity: calc(0.45 + var(--env-card-lit) * 0.42);
  background:
    radial-gradient(ellipse 68% 58% at 50% 18%, rgba(255, 252, 244, 0.16) 0%, rgba(255, 252, 244, 0.04) 44%, transparent 72%),
    radial-gradient(ellipse 92% 72% at 50% 105%, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0.02) 42%, transparent 62%);
}

.scene img,
.scene .flap {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.envelope-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.layer-18-wrap { z-index: 1; transform: translateZ(-2px); }
.card-flip { z-index: 2; transform: translateZ(0); }
.layer-10-wrap { z-index: 3; transform: translateZ(1px); }

.layer-18-wrap,
.layer-10-wrap {
  filter: drop-shadow(
    var(--env-sh-x)
    var(--env-sh-y)
    var(--env-sh-blur)
    rgba(0, 0, 0, var(--env-sh-alpha))
  );
}

.flap-closed-wrap {
  filter: drop-shadow(
    calc(var(--env-sh-x) * 0.6)
    calc(var(--env-sh-y) * 0.85)
    calc(var(--env-sh-blur) * 0.92)
    rgba(0, 0, 0, calc(var(--env-sh-alpha) * 0.88))
  );
}

.flap-open-wrap {
  filter: drop-shadow(
    calc(var(--env-sh-x) * -0.35)
    calc(-6px - var(--env-flap-lit) * 14px)
    calc(16px + var(--env-flap-lit) * 10px)
    rgba(0, 0, 0, calc(var(--env-sh-alpha) * 0.55 * var(--env-flap-lit)))
  );
}

.card-flip:not(.is-revealed) {
  filter: drop-shadow(
    calc(var(--env-sh-x) * 0.5)
    calc(4px + var(--env-sh-y) * 0.35)
    calc(12px + var(--env-sh-blur) * 0.55)
    rgba(0, 0, 0, calc(var(--env-sh-alpha) * 0.62))
  );
}

.cinema.revealed .layer-18-wrap,
.cinema.revealed .layer-10-wrap,
.cinema.revealed .flap-closed-wrap,
.cinema.revealed .flap-open-wrap {
  filter: none;
}

.cinema.revealed .env-cast-shadow {
  opacity: 0 !important;
  visibility: hidden;
}

.cinema.letter-opening .ambient-light {
  animation: openLightPulse 2.2s ease-in-out infinite alternate;
}

@keyframes openLightPulse {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.env-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
  background: transparent;
}

.env-surface-tint {
  position: absolute;
  inset: 0;
  background: var(--paper, #24242c);
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 1;
}

.env-surface .layer {
  z-index: 0;
}

.flap-hinge-closed .env-surface-tint--flap,
.flap-hinge-open .env-surface-tint--flap {
  z-index: 1;
}

/* z4 closed flap · z5 seal · z6 open flap */

.layer {
  position: absolute;
  inset: calc(-1 * var(--env-seam, 1px));
  width: calc(100% + (2 * var(--env-seam, 1px)));
  height: calc(100% + (2 * var(--env-seam, 1px)));
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/*
 * Asset 8 — closed flap covers top of envelope (top:0)
 * Asset 15 — open flap stands ABOVE envelope (base at top edge, apex upward)
 */
.flap-closed-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--env-flap-h);
  z-index: 4;
  transform: translateZ(3px);
  overflow: visible;
  pointer-events: none;
  will-change: transform, filter;
}

/* Asset 15 — base at envelope top, flap extends upward above the envelope */
.flap-open-wrap {
  position: absolute;
  top: calc(-1 * var(--env-flap-h));
  left: 0;
  width: 100%;
  height: var(--env-flap-h);
  z-index: 6;
  visibility: hidden;
  transform: translateZ(8px);
  overflow: visible;
  pointer-events: none;
}

/* during fall — tuck open flap behind the card */
.flap-open-wrap.is-behind-card {
  z-index: 1;
  transform: translateZ(-4px);
}

.envelope-flap-copy {
  position: absolute;
  left: 50%;
  top: 7%;
  transform: translateX(-50%) translateZ(5px);
  z-index: 3;
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.8vw, 6px);
  pointer-events: none;
  text-align: center;
}

.envelope-flap-copy .envelope-sender,
.envelope-flap-copy .envelope-hero-name,
.envelope-flap-copy .envelope-hero-event,
.envelope-flap-copy .envelope-hero-date,
.envelope-flap-copy .envelope-hero-guest {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.envelope-sender {
  margin: 0;
  font-family: var(--display, 'Italiana', 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(15px, 3.9vw, 24px);
  font-weight: 400;
  font-style: normal;
  color: var(--envelope-text, var(--card-gold, #f0f0f0));
  letter-spacing: 0.08em;
  white-space: nowrap;
  user-select: none;
}

.envelope-hero-name,
.envelope-hero-event,
.envelope-hero-date,
.envelope-hero-guest {
  margin: 0;
  font-family: var(--display, 'Italiana', Georgia, serif);
  color: var(--envelope-text, var(--card-gold, #f0f0f0));
  letter-spacing: 0.06em;
  user-select: none;
  white-space: nowrap;
}

.envelope-hero-guest {
  font-family: var(--script-font, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(13px, 3.4vw, 18px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.95;
  margin-bottom: 2px;
}

.envelope-hero-event {
  font-size: clamp(11px, 2.9vw, 14px);
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.envelope-hero-date {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(12px, 3.1vw, 16px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1em;
  opacity: 0.88;
  text-transform: none;
}

.envelope-hero-name {
  font-size: clamp(14px, 3.6vw, 19px);
  font-weight: 500;
  opacity: 0.92;
}

.flap-hinge-closed {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 0%;
}

.flap-closed {
  position: absolute;
  inset: calc(-1 * var(--env-seam, 1px));
  width: calc(100% + (2 * var(--env-seam, 1px)));
  height: calc(100% + (2 * var(--env-seam, 1px)));
  display: block;
  object-fit: fill;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.flap-hinge-open {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
}

.flap-open {
  position: absolute;
  inset: calc(-1 * var(--env-seam, 1px));
  width: calc(100% + (2 * var(--env-seam, 1px)));
  height: calc(100% + (2 * var(--env-seam, 1px)));
  display: block;
  object-fit: fill;
  object-position: bottom center;
  visibility: hidden;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Pre-colored PNG packs — skip paper recolor overlay */
body.env-tint-none .env-surface-tint {
  display: none;
}

body.env-tint-none {
  --env-seam: 0px;
}

/* Clip PNG layers to alpha — removes white halos on decorative packs */
.layer--alpha-masked,
.flap.layer--alpha-masked {
  -webkit-mask-image: var(--env-layer-mask);
  mask-image: var(--env-layer-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  transform: translateZ(0);
}

body.env-tint-vector .env-surface-tint {
  mix-blend-mode: color;
  opacity: 1;
}

body.env-tint-photo .env-surface-tint {
  mix-blend-mode: color;
  opacity: 0.82;
}

body.env-tint-vector .env-surface,
body.env-tint-photo .env-surface,
body.env-tint-vector .flap-hinge-closed,
body.env-tint-photo .flap-hinge-closed,
body.env-tint-vector .flap-hinge-open,
body.env-tint-photo .flap-hinge-open {
  isolation: isolate;
}

/* Mask tint to layer alpha — no color bleed in transparent areas (PNG + SVG) */
.env-surface-tint--masked {
  inset: calc(-1 * var(--env-seam, 1px));
  width: calc(100% + (2 * var(--env-seam, 1px)));
  height: calc(100% + (2 * var(--env-seam, 1px)));
  -webkit-mask-image: var(--env-mask);
  mask-image: var(--env-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
}
.card-flip {
  position: absolute;
  left: var(--card-left);
  top: var(--card-top);
  width: var(--card-width);
  aspect-ratio: 763.39 / 374.85;
  z-index: 2;
  transform-style: preserve-3d;
  perspective: 1400px;
  overflow: hidden;
}

.card-transition {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.card-peek,
.card-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  user-select: none;
  -webkit-user-drag: none;
}

.card-peek {
  display: block;
  object-fit: fill;
  z-index: 1;
}

.card-peek.is-full-art,
.card-art.is-full-art {
  object-fit: cover;
  object-position: center center;
}

.card-full:has(.card-art.is-full-art) {
  background: transparent;
}

.card-copy.is-hidden-art {
  display: none !important;
}

.card-full {
  display: block;
  overflow: hidden;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transform-style: preserve-3d;
  background: var(--paper, #111111);
  container-type: size;
  container-name: cardpaper-inner;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.card-art.is-template {
  filter: var(--card-template-filter, var(--card-gold-filter, none));
}

.card-flip.is-revealed .card-full {
  visibility: visible;
  opacity: 1;
}

.card-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18% 8% 19%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
  max-height: 100%;
  min-height: 0;
  gap: 0.12em;
}

.card-copy.is-active {
  visibility: visible;
  opacity: 1;
}

.card-flip.is-revealed .card-copy.is-active {
  opacity: 1;
  visibility: visible;
}

.copy-block {
  margin: 0;
  max-width: 92%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.copy-block:empty {
  display: none;
}

.copy-intro {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(11px, 3.8cqw, 19px);
  font-weight: 300;
  font-style: italic;
  color: var(--card-gold, #f5f5f5);
  line-height: 1.4;
  letter-spacing: 0.03em;
  max-width: 92%;
}

.copy-intro + .copy-intro {
  margin-top: -0.1em;
}

.copy-guest {
  font-family: var(--script-font, var(--elegant, 'Cormorant Garamond', Georgia, serif));
  font-size: clamp(14px, 4.5cqw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--card-gold, #f5f5f5);
  margin-bottom: 0.2em;
  letter-spacing: 0.04em;
  line-height: 1.15;
  max-width: 90%;
}

.copy-guest + .copy-guest {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(10px, 3.2cqw, 14px);
  font-style: normal;
  opacity: 0.88;
}

.copy-name {
  font-family: var(--display, 'Italiana', 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(18px, 11cqw, 58px);
  font-weight: 400;
  font-style: normal;
  color: var(--card-gold, #f5f5f5);
  margin: 0.1em 0;
  line-height: 1.08;
  letter-spacing: 0.04em;
  max-width: 92%;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: manual;
}

.copy-name-line {
  display: inline-block;
  max-width: 100%;
}

.copy-date,
.copy-location {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-weight: 400;
  font-size: clamp(11px, 4.6cqw, 23px);
  color: var(--gold, var(--card-gold, #c9a962));
  line-height: 1.32;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 92%;
}

.copy-time {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300;
  font-size: clamp(11px, 4.4cqw, 23px);
  font-style: italic;
  color: var(--gold, var(--card-gold, #c9a962));
  line-height: 1.32;
  letter-spacing: 0.06em;
  text-transform: none;
  max-width: 92%;
}

.copy-welcome {
  font-family: var(--script-font, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(13px, 6.2cqw, 34px);
  font-weight: 400;
  font-style: normal;
  color: var(--card-gold, #f5f5f5);
  margin: 0.15em 0 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 90%;
  overflow: visible;
}

.copy-block .char {
  display: inline-block;
  will-change: opacity, transform;
}

.copy-block .char-space {
  width: 0.28em;
}

/* Wax seal */
.wax-seal-wrap {
  position: absolute;
  left: 50%;
  top: var(--env-seal-y);
  width: 18.5%;
  z-index: 5;
  pointer-events: none;
  transform-origin: 50% 50%;
  overflow: visible;
}

.wax-seal-monogram {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0 2%;
  border-radius: 50%;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
  font-family: var(--display, 'Cinzel', 'Cormorant Garamond', Georgia, serif);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.96) 10%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 244, 228, 0.78) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.is-hero-embed .wax-seal-monogram {
  display: none !important;
}

.wax-seal-shine {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.02) 58%, transparent 78%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(calc(4px + var(--env-flap-lit) * 2px));
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 28%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 28%, transparent 72%);
}

.wax-seal-wrap.is-clickable .wax-seal-shine {
  opacity: 1;
  animation: sealAura 2.2s ease-in-out infinite;
}

.wax-seal-wrap.is-clickable::after {
  content: '';
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 248, 220, 0.55) 50%,
    rgba(255, 255, 255, 0.12) 60%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 82%
  );
  background-size: 240% 240%;
  background-position: 130% 50%;
  animation: sealShineSweep 2.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
  filter: blur(1.5px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 22%, rgba(0, 0, 0, 0.55) 42%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 22%, rgba(0, 0, 0, 0.55) 42%, transparent 68%);
}

.wax-seal-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  z-index: 1;
  filter:
    drop-shadow(0 8px 20px rgba(252, 0, 37, 0.18))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.32));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.wax-seal-wrap.is-clickable {
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}

.wax-seal-wrap.is-clickable .wax-seal-img {
  filter:
    brightness(1.28)
    contrast(1.06)
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.45))
    drop-shadow(0 calc(6px + var(--env-flap-lit) * 5px) calc(16px + var(--env-flap-lit) * 10px) rgba(0, 0, 0, 0.42));
  animation: sealPulse 1.4s ease-in-out infinite;
}

@keyframes sealAura {
  0%, 100% { opacity: 0.75; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes sealShineSweep {
  0% { background-position: 130% 50%; opacity: 0.55; }
  45% { background-position: -30% 50%; opacity: 1; }
  100% { background-position: -30% 50%; opacity: 0.55; }
}

@keyframes sealPulse {
  0%, 100% {
    filter:
      brightness(1.18)
      contrast(1.04)
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.65))
      drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  }
  50% {
    filter:
      brightness(1.36)
      contrast(1.08)
      drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 32px rgba(255, 255, 255, 0.35))
      drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  }
}

.seal-hint {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(14px);
  z-index: 120;
  margin: 0;
  padding: 0;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(14px, 3.8vw, 18px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--seal-hint-color, rgba(244, 228, 196, 0.94));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.25),
    0 2px 10px rgba(0, 0, 0, 0.65);
}

.seal-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: sealHintPulse 2.4s ease-in-out infinite;
}

@keyframes sealHintPulse {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

.cinema.is-preloading .seal-hint,
.cinema.revealed .seal-hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Seal intro — një element i vetëm (pa imazh të dyfishtë) */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(255, 255, 255, 0.06), transparent 58%),
    var(--page-bg, #08080c);
  opacity: 1;
  will-change: opacity;
}

.wax-seal-wrap.is-intro {
  z-index: 260;
}

.wax-seal-wrap.is-intro .wax-seal-img {
  filter: drop-shadow(0 16px 44px rgba(0, 0, 0, 0.55));
}

.cinema.is-preloading .ambient-light,
.cinema.is-preloading .vignette {
  opacity: 0;
}

.cinema.is-preloading .actions-panel,
.cinema.is-preloading .music-btn {
  opacity: 0;
  pointer-events: none;
}

body.is-embed .cinema.is-preloading .actions-panel--embed-demo {
  opacity: 0.82 !important;
  pointer-events: none;
  transform: translateX(-50%) translateY(0) !important;
}

/* Asset 11 — inside envelope pocket (z2), behind Asset 10 */

/* Final revealed card — Asset 9 portrait */
.card-flip.is-revealed {
  top: 50%;
  left: 50%;
  width: min(88vw, 440px);
  height: min(calc(88vw * 763 / 495), 680px);
  max-height: min(88dvh, 680px);
  aspect-ratio: auto;
  margin-top: 0;
  margin-left: 0;
  transform: translate(-50%, -50%);
  z-index: 20;
  clip-path: none;
  container-type: size;
  container-name: cardpaper;
  filter: drop-shadow(0 calc(24px + var(--env-card-lit) * 8px) calc(52px + var(--env-card-lit) * 16px) rgba(0, 0, 0, 0.58));
}

.card-flip.is-revealed .card-copy {
  padding: 22% 6% 22%;
  justify-content: center;
  gap: 0.12em;
}

.card-flip.is-revealed .copy-intro {
  font-size: clamp(12px, 5.2cqw, 24px);
  line-height: 1.35;
  max-width: 92%;
}

.card-flip.is-revealed .copy-name {
  font-size: clamp(18px, 15cqw, 78px);
  margin: 0.08em 0;
  line-height: 1.06;
  max-width: 92%;
}

.card-flip.is-revealed .copy-date,
.card-flip.is-revealed .copy-time,
.card-flip.is-revealed .copy-location {
  font-size: clamp(11px, 5.4cqw, 26px);
  line-height: 1.28;
  letter-spacing: 0.05em;
  max-width: 92%;
}

.card-flip.is-revealed .copy-welcome {
  font-size: clamp(14px, 9.8cqw, 52px);
  margin: 0.15em 0 0;
  line-height: 1.08;
  max-width: 92%;
}

.card-flip.is-revealed .copy-block .char {
  opacity: 1;
}

.card-flip.breathing {
  animation: cardBreathe 5s ease-in-out infinite;
}

@keyframes cardBreathe {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
    filter: drop-shadow(0 28px 58px rgba(0, 0, 0, 0.58));
  }
  50% {
    transform: translate(-50%, -50%) translateY(-6px);
    filter: drop-shadow(0 38px 74px rgba(0, 0, 0, 0.46));
  }
}

/* Legacy card styles kept for modal / future dynamic overlay */
.card-wrap { display: none; }

.invitation-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-color: var(--paper, #f7f0e8);
  background-image:
    url('images/paper-texture.jpg'),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 55%);
  background-size: cover, auto;
  background-repeat: no-repeat, no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(180, 140, 70, 0.18),
    inset 0 0 60px rgba(180, 140, 70, 0.06),
    0 40px 80px rgba(35, 22, 8, 0.28),
    0 12px 24px rgba(35, 22, 8, 0.14);
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  isolation: isolate;
}

.invitation-card::after {
  display: none;
}

.card-shimmer {
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 248, 220, 0.5) 50%,
    rgba(255, 255, 255, 0.35) 52%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(12deg);
  pointer-events: none;
  z-index: 3;
}

.card-frame {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(196, 154, 74, 0.42);
  pointer-events: none;
  z-index: 2;
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(196, 154, 74, 0.65);
  border-style: solid;
}

.c-tl { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.c-tr { top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; }
.c-bl { bottom: -1px; left: -1px; border-width: 0 0 1.5px 1.5px; }
.c-br { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.ornament {
  position: absolute;
  width: 90px;
  height: 90px;
  color: rgba(196, 154, 74, 0.45);
  pointer-events: none;
  z-index: 1;
}

.ornament-tl { top: 18px; left: 18px; }
.ornament-tr { top: 18px; right: 18px; }
.ornament-bl { bottom: 18px; left: 18px; }
.ornament-br { bottom: 18px; right: 18px; }

/* Card typography */
.card-content {
  position: relative;
  z-index: 5;
  height: 100%;
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.monogram {
  font-family: var(--script-font, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(48px, 12vw, 68px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 18px;
}

.intro {
  font-size: clamp(15px, 3.8vw, 19px);
  line-height: 1.55;
  margin: 0 0 20px;
  color: rgba(94, 74, 42, 0.88);
  font-weight: 300;
  font-style: italic;
  max-width: 92%;
}

.card-content h1 {
  font-family: var(--display-font, 'Italiana', 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(40px, 10vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.foil-text {
  background: linear-gradient(
    112deg,
    #7a5820 0%,
    #c49a4a 18%,
    #fff2c8 38%,
    #d4ad5a 52%,
    #fff0b8 62%,
    #a07830 82%,
    #c49a4a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foilShift 8s linear infinite;
}

@keyframes foilShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  width: 70%;
}

.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 74, 0.5), transparent);
}

.divider em {
  font-style: normal;
  font-size: 10px;
  color: var(--gold, #c49a4a);
  opacity: 0.8;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  color: rgba(94, 74, 42, 0.92);
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}

.details strong { font-size: clamp(17px, 4.2vw, 22px); font-weight: 400; }
.details span { font-size: clamp(16px, 4vw, 20px); opacity: 0.9; font-weight: 300; }
.details b { font-size: clamp(15px, 3.8vw, 19px); font-weight: 400; letter-spacing: 0.16em; }

.guest-line {
  margin: 6px 0 0;
  font-size: clamp(12px, 3.2vw, 14px);
  color: rgba(94, 74, 42, 0.72);
}

.note {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(94, 74, 42, 0.65);
  font-style: italic;
}

.welcome {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 300;
  font-style: italic;
  margin: 12px 0 0;
  letter-spacing: 0.06em;
}

/* ── UI controls ── */
.skip-btn, .music-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  z-index: 100;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--glass-text);
  border-radius: 999px;
  padding: 10px 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--glass-border-soft);
  cursor: pointer;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.skip-btn { right: max(16px, env(safe-area-inset-right)); }
.music-btn {
  left: max(16px, env(safe-area-inset-left));
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

.music-btn.is-playing {
  border-color: rgba(255, 248, 240, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 248, 240, 0.12);
  animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.skip-btn.hidden { opacity: 0; pointer-events: none; transform: translateY(-10px); }

.actions-panel {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.45s ease;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-height: 80vh;
  box-sizing: border-box;
}

.actions-dock {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(calc(100vw - 24px), 420px);
  max-width: calc(100vw - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.actions-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.actions-dock-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--panel-text, rgba(255, 252, 245, 0.92));
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  transition: background 0.25s, transform 0.25s;
}

.actions-dock-toggle:hover {
  background: rgba(12, 12, 14, 0.88);
}

.actions-dock-toggle .actions-dock-chevron {
  transition: transform 0.35s ease;
  opacity: 0.75;
}

.actions-dock.is-collapsed .actions-dock-toggle .actions-dock-chevron {
  transform: rotate(180deg);
}

.actions-dock.is-collapsed .actions-panel {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
  box-shadow: none;
}

.actions-dock.is-collapsed .actions-panel-body {
  opacity: 0;
}

body.has-scroll-page .actions-dock {
  bottom: max(14px, env(safe-area-inset-bottom));
}

body.has-scroll-page .actions-dock.is-collapsed {
  bottom: max(14px, env(safe-area-inset-bottom));
}

body.has-scroll-page .actions-dock.dock--scroll-mode .actions-dock-toggle {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
}

body.has-scroll-page:not(.scroll-unlocked) .scroll-cue.is-visible {
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px));
}

.dock-scroll-hint {
  padding: 14px 20px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dock-scroll-hint-text {
  margin: 0 0 12px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.dock-scroll-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 248, 240, 0.96);
  color: #1a100e;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dock-scroll-link:hover {
  background: #fff8f0;
  transform: translateY(-1px);
}

.actions-panel-body {
  overflow: hidden;
  transition: opacity 0.35s ease;
}

.actions-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

.countdown-block {
  margin: 0;
  padding: 18px 20px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.countdown-label {
  margin: 0 0 14px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 0;
  background: transparent;
  border: none;
  position: relative;
}

.countdown-unit:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.countdown-num {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--panel-text, var(--card-gold, #fff));
}

.countdown-unit small {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-muted, rgba(255, 255, 255, 0.38));
}

.extra-info {
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.extra-info li {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--panel-text, rgba(255, 248, 240, 0.78));
  padding: 5px 0;
  border-bottom: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.extra-info li::before {
  content: '·';
  color: var(--panel-muted, rgba(255, 248, 240, 0.55));
  font-weight: 400;
  flex-shrink: 0;
}

.rsvp-box {
  padding: 16px 20px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.rsvp-name-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.rsvp-phone-row {
  margin-bottom: 10px;
}

.rsvp-phone-row input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--panel-text, var(--card-gold, #fff));
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rsvp-phone-row input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.rsvp-phone-row input:focus,
.rsvp-name-row input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.rsvp-name-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--panel-text, var(--card-gold, #fff));
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rsvp-name-row input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.send-button {
  flex-shrink: 0;
  width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--gold, #fff);
  color: var(--dark, #111);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.send-button:active {
  transform: scale(0.96);
  opacity: 0.92;
}

.send-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-row .gold-button,
.button-row .light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gold-button, .light-button {
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gold-button {
  background: var(--gold, #fff);
  color: var(--dark, #111);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  font-weight: 500;
}

.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gold-button:active, .light-button:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.quick-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 0;
  padding: 12px 16px 16px;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.icon-button.action-button {
  flex: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.icon-button.action-button svg {
  flex-shrink: 0;
}

.icon-button.action-button small {
  display: none;
}

.icon-button.action-button:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.icon-button.action-button svg {
  display: block;
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.modal.open { opacity: 1; pointer-events: auto; }

.modal-card {
  position: relative;
  width: min(88vw, 380px);
  padding: 36px 28px;
  border-radius: 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-border-soft);
  border: 1px solid var(--glass-border);
  color: var(--glass-text);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--glass-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-monogram {
  font-family: var(--script-font, 'Cormorant Garamond', Georgia, serif);
  font-size: 52px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--panel-text, var(--card-gold, #fff));
}

.modal-card h2 {
  font-family: var(--display-font, 'Italiana', 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: var(--glass-text);
}

.modal-card p {
  margin: 0;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(17px, 4.5vw, 20px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 252, 245, 0.88);
}

.shake { animation: shake 0.45s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.cinema.revealed .vignette {
  background: radial-gradient(ellipse 82% 78% at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
}

.cinema.revealed .ambient-light {
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 700px) {
  .camera-rig { width: 100%; height: 100%; min-height: 0; max-height: none; }
  .viewport { perspective-origin: 50% 50%; }
  .scene { width: min(94vw, 580px); }

  .card-flip.is-revealed {
    top: 50%;
    left: 50%;
    width: min(94vw, 420px);
    height: min(90dvh, calc(94vw * 763 / 495));
    max-height: 90dvh;
    margin-top: 0;
    margin-left: 0;
    transform: translate(-50%, -50%);
  }

  .card-flip.is-revealed.embed-card-fit {
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    height: auto;
    max-height: none;
  }

  .card-flip.is-revealed .card-copy {
    padding: 19% 5.5% 19%;
    justify-content: center;
  }

  .card-flip.is-revealed .copy-intro {
    font-size: clamp(11px, 3.9cqw, 18px);
  }

  .card-flip.is-revealed .copy-name {
    font-size: clamp(18px, 11.5cqw, 50px);
  }

  .card-flip.is-revealed .copy-date,
  .card-flip.is-revealed .copy-time,
  .card-flip.is-revealed .copy-location {
    font-size: clamp(10px, 4.4cqw, 20px);
  }

  .card-flip.is-revealed .copy-welcome {
    font-size: clamp(13px, 6.8cqw, 32px);
  }

  .cinema.revealed .vignette {
    background: radial-gradient(ellipse 90% 76% at 50% 48%, transparent 36%, rgba(0, 0, 0, 0.44) 100%);
  }

  .actions-panel {
    max-height: min(38vh, 320px);
  }

  .actions-dock {
    width: min(calc(100vw - 20px), 380px);
  }

  .actions-panel-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: min(34vh, 300px);
  }

  .countdown-block { padding: 9px 12px 7px; }
  .countdown-label { margin-bottom: 6px; font-size: 9px; }
  .countdown-num { font-size: clamp(16px, 5vw, 22px); }
  .countdown-unit small { font-size: 8px; }
  .extra-info { padding: 8px 12px; }
  .extra-info li { font-size: 11px; padding: 2px 0; }
  .rsvp-box { padding: 8px 12px 7px; }
  .rsvp-name-row input { padding: 10px 11px; font-size: 14px; }
  .send-button { width: 40px; min-height: 40px; }
  .gold-button, .light-button { padding: 11px 10px; font-size: 12px; }
  .button-row { grid-template-columns: 1fr; gap: 7px; }
  .quick-actions { padding: 7px 12px 10px; gap: 7px; }
  .wax-seal-wrap { width: 21%; }
  body.is-hero-embed .wax-seal-wrap { width: 16%; }
  .icon-button.action-button { min-height: 38px; padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .foil-text { animation: none; }
}

/* Hero embed — same design, simplified chrome */
html:has(body.is-embed),
body.is-embed {
  overflow: hidden;
  height: 100%;
  min-height: 0;
  min-height: 100dvh;
  overscroll-behavior: none;
}

body.is-embed .camera-rig {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  max-height: 100dvh;
}

body.embed-card-fitting .viewport,
body.embed-card-fitting .camera-rig,
body.embed-card-fitting .scene {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.is-embed .card-flip.embed-card-fit,
body.is-embed.view-card .card-flip.is-revealed,
body.is-embed:not(.view-scroll):not(.view-card) .cinema.revealed .card-flip.is-revealed {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
  animation: none !important;
  clip-path: none;
  overflow: visible;
  flex-shrink: 0;
}

body.is-embed:not(.view-scroll) .invite-page {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

body.is-embed .cinema {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

body.is-hero-embed .cinema {
  min-height: 100%;
  height: 100%;
  max-height: 100%;
}

body.is-embed .actions-panel,
body.is-embed .music-btn {
  /* demo panel uses --embed-demo variant */
}

body.is-embed .actions-panel:not(.actions-panel--embed-demo),
body.is-embed:not(.view-card):not(.view-scroll) .music-btn {
  display: none !important;
}

body.is-embed.view-card .music-btn,
body.is-embed.view-scroll .music-btn {
  display: grid !important;
}

/* Wizard / panel preview — envelope tab: no RSVP chrome over the scene */
body.is-embed:not(.view-card):not(.view-scroll) .actions-panel--embed-demo {
  display: none !important;
}

body.is-embed .actions-panel--embed-demo {
  display: block !important;
  opacity: 0 !important;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px) !important;
  z-index: 200;
  width: min(92vw, 300px);
  max-height: none;
  bottom: max(6px, env(safe-area-inset-bottom));
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-embed .cinema.revealed .actions-panel--embed-demo.visible,
body.is-embed.view-card .actions-panel--embed-demo.visible {
  opacity: 1 !important;
  pointer-events: none;
  transform: translateX(-50%) translateY(0) !important;
}

.actions-panel--embed-demo .is-disabled,
.actions-panel--embed-demo input[disabled],
.actions-panel--embed-demo button[disabled] {
  pointer-events: none;
  cursor: default;
}

.actions-panel--embed-demo .gold-button.is-disabled,
.actions-panel--embed-demo .light-button.is-disabled {
  opacity: 0.88;
}

body.is-embed .seal-hint {
  font-size: clamp(11px, 3vw, 13px);
}

body.is-embed.view-scroll .cinema,
body.is-embed.view-scroll .actions-panel,
body.is-embed.view-scroll .scroll-cue {
  display: none !important;
}

html:has(body.is-embed.view-scroll),
body.is-embed.view-scroll {
  overflow: hidden !important;
  height: 100%;
  width: 100%;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}

body.is-embed.view-scroll.has-scroll-page.scroll-unlocked,
body.is-embed.view-scroll.scroll-unlocked,
body.is-embed.view-scroll.scroll-contained {
  overflow: hidden !important;
  height: 100%;
}

body.is-embed.view-scroll {
  background: var(--cinema-bg, var(--page-bg, #0a0a0a));
}

body.is-embed.view-scroll .invite-scroll {
  background: transparent;
}

body.is-embed.view-scroll .scroll-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: rgba(8, 6, 8, 0.72);
  border-bottom-color: rgba(255, 248, 240, 0.08);
}

body.is-embed.view-scroll .invite-scroll-inner {
  padding-top: clamp(28px, 5vw, 40px);
}

body.is-embed.view-scroll .invite-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.is-embed.view-scroll .invite-scroll {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body.is-embed .card-peek,
body.is-hero-embed .card-peek {
  opacity: 0;
  visibility: hidden;
}

body.is-embed .wax-seal-wrap.is-clickable {
  pointer-events: auto;
  z-index: 12;
}

body.is-embed .viewport,
body.is-embed .scene {
  touch-action: manipulation;
}

body.is-embed .cinema:not(.revealed):not(.letter-opening) .card-full,
body.is-hero-embed .cinema:not(.revealed):not(.letter-opening) .card-full {
  visibility: hidden !important;
  opacity: 0 !important;
}

body.is-embed .cinema.revealed .card-full,
body.is-embed .cinema.letter-opening .card-full,
body.is-hero-embed .cinema.revealed .card-full,
body.is-hero-embed .cinema.letter-opening .card-full {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hero demo on landing — brand theme, not gold */
body.is-hero-embed {
  --card-gold: #fc0025;
  --card-gold-rgb: 252, 0, 37;
  --gold: #fc0025;
  --gold-rgb: 252, 0, 37;
  --panel-text: #fc0025;
  --panel-muted: rgba(252, 0, 37, 0.45);
  --envelope-text: #fc0025;
}

body.is-hero-embed .copy-block,
body.is-hero-embed .copy-intro,
body.is-hero-embed .copy-name,
body.is-hero-embed .copy-date,
body.is-hero-embed .copy-time,
body.is-hero-embed .copy-location,
body.is-hero-embed .copy-welcome {
  color: #fc0025 !important;
}

body.is-hero-embed .actions-panel--embed-demo input[disabled] {
  color: #fc0025 !important;
  -webkit-text-fill-color: #fc0025;
}

body.is-hero-embed .actions-panel--embed-demo .gold-button.is-disabled {
  background: #fc0025 !important;
  color: #fff !important;
}

/* Landing hero iframe — wide frame, envelope fills view; bg follows preset */
body.is-hero-embed .camera-rig {
  width: 100%;
  height: 100%;
}

body.is-hero-embed .viewport {
  display: grid;
  place-items: center;
}

body.is-hero-embed .scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84%, 420px);
  margin: 0;
}

body.is-hero-embed .wax-seal-wrap {
  width: 16%;
}

body.is-hero-embed .seal-hint {
  bottom: max(8%, 12px);
  font-size: clamp(10px, 2.8vw, 13px);
}

body.is-hero-embed .vignette {
  background: radial-gradient(ellipse 88% 78% at 50% 44%, transparent 38%, rgba(0, 0, 0, 0.38) 100%);
}

body.is-hero-embed #dustCanvas {
  opacity: 0.55;
}

body.is-hero-embed .ambient-light {
  opacity: 0.65;
}

/* Wizard / builder embed — card (Letra) fills preview */
body.is-embed.view-card .cinema {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  height: 100%;
  min-height: 0;
}

body.is-embed.view-card .actions-panel--embed-demo,
body.is-embed.view-card .actions-panel--embed-demo.visible {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.is-embed.view-card .card-flip,
body.is-embed.view-card .card-flip.is-revealed {
  overflow: visible;
  clip-path: none;
  margin-top: 0 !important;
  max-height: none;
  width: auto;
  height: auto;
  aspect-ratio: 495 / 763;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.42));
}

body.is-embed.view-card .card-transition,
body.is-embed.view-card .card-full {
  overflow: visible;
}

body.is-embed.view-card .card-art {
  object-fit: contain !important;
  object-position: center center;
}

/* Embed Zarf — after seal opens, letter fits iframe (no top/bottom clip) */
body.is-embed:not(.view-card):not(.view-scroll) .cinema.revealed .card-flip,
body.is-embed:not(.view-card):not(.view-scroll) .cinema.revealed .card-flip.is-revealed {
  overflow: visible;
  clip-path: none;
  max-height: none;
}

body.is-embed:not(.view-card):not(.view-scroll) .cinema.revealed .card-transition,
body.is-embed:not(.view-card):not(.view-scroll) .cinema.revealed .card-full {
  overflow: visible;
}

body.is-embed:not(.view-card):not(.view-scroll) .cinema.revealed .card-art {
  object-fit: contain !important;
  object-position: center center;
}

body.is-embed:not(.view-card):not(.view-scroll) .cinema.revealed .card-flip.breathing {
  animation: none;
}

body.is-embed:not(.view-card):not(.view-scroll) .cinema {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.is-embed:not(.view-card):not(.view-scroll) .scene {
  top: 50%;
}

body.is-embed:not(.view-card):not(.view-scroll) .env-stage-light {
  inset: -22% -28% -34% -28%;
  -webkit-mask-image: radial-gradient(ellipse 90% 88% at 50% 54%, #000 34%, transparent 92%);
  mask-image: radial-gradient(ellipse 90% 88% at 50% 54%, #000 34%, transparent 92%);
}

body.is-embed:not(.view-card):not(.view-scroll) .viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-embed.view-card .viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-embed.view-card .camera-rig {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-embed.view-card .scene {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none;
  overflow: visible;
}

body.is-embed.view-card .scene > :not(.card-flip) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

body.is-embed.view-card .wax-seal-wrap,
body.is-embed.view-card .ground-shadow {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

body.is-embed.view-card .card-flip.is-revealed {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  margin: 0 !important;
  aspect-ratio: 495 / 763;
  transform: none !important;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.42));
}

body.is-embed.view-card .card-copy {
  justify-content: center;
  padding: 24% 7% 24%;
  gap: 0.1em;
}

body.is-embed.view-card .copy-intro {
  font-size: clamp(12px, 4.8cqw, 21px);
}

body.is-embed.view-card .copy-name {
  font-size: clamp(22px, 14.5cqw, 68px);
}

body.is-embed.view-card .copy-date,
body.is-embed.view-card .copy-time,
body.is-embed.view-card .copy-location {
  font-size: clamp(12px, 5cqw, 25px);
}

body.is-embed.view-card .copy-welcome {
  font-size: clamp(16px, 7.8cqw, 42px);
}

body.is-embed.view-card .card-flip.breathing {
  animation: none;
}

body.is-embed.view-card .vignette {
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.35) 100%);
}

body.is-embed.view-card #dustCanvas {
  opacity: 0.35;
}

@media (max-width: 700px) {
  .invite-scroll-inner {
    padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 24px) clamp(48px, 8vw, 88px);
  }

  .scroll-hero {
    padding: clamp(28px, 6vw, 44px) clamp(16px, 4vw, 28px);
  }

  body.has-scroll-page .cinema.revealed {
    min-height: 100dvh;
    height: 100dvh;
  }

  body.is-public-demo.has-scroll-page .invite-scroll-inner {
    padding-top: clamp(20px, 4vw, 32px);
  }
}

/* ═══════════════════════════════════════════════════════════
   Scroll story page — Velvet-inspired post-cinema reveal
   ═══════════════════════════════════════════════════════════ */

body.has-scroll-page {
  --scroll-bg: #120a0e;
  --scroll-bg-soft: #1a1014;
}

body.has-scroll-page.cat-dasmat {
  --scroll-bg: #140810;
  --scroll-bg-soft: #1f0c14;
}

body.has-scroll-page.cat-familje {
  --scroll-bg: #101418;
  --scroll-bg-soft: #151c22;
}

body.has-scroll-page.cat-feste {
  --scroll-bg: #0e1018;
  --scroll-bg-soft: #141824;
}

body.has-scroll-page.cat-biznes {
  --scroll-bg: #0a0c12;
  --scroll-bg-soft: #121620;
}

body.has-scroll-page.scroll-unlocked {
  overflow-x: hidden;
  overflow-y: auto;
}

body.has-scroll-page.scroll-unlocked html {
  overflow-y: auto;
}

.invite-page {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body.has-scroll-page.scroll-unlocked .cinema {
  min-height: 100dvh;
  height: auto;
}

body.has-scroll-page.scroll-unlocked .cinema.revealed {
  overflow: visible;
}

.actions-panel.is-away {
  /* legacy — dock handles visibility */
}

body.has-scroll-page.scroll-unlocked .cinema.is-scrolled-past {
  /* keep envelope background visible while scrolling */
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px));
  z-index: 95;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--scroll-muted, rgba(255, 252, 245, 0.72));
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
}

.scroll-cue.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
  animation: scrollCueFloat 2.4s ease-in-out infinite;
}

.scroll-cue.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.scroll-cue-text {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
}

.scroll-cue-icon {
  width: 22px;
  height: 22px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

@keyframes scrollCueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.invite-scroll {
  position: relative;
  z-index: 5;
  background: var(--cinema-bg, var(--page-bg, #08080c));
  color: var(--scroll-text);
  --scroll-accent-soft: rgba(var(--scroll-accent-rgb, 255, 248, 240), 0.62);
}

.invite-scroll-inner {
  width: min(720px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 32px) clamp(64px, 10vw, 120px);
  overflow-x: clip;
}

.scroll-section {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 100%;
  overflow-x: clip;
}

.scroll-section.scroll-intro + .scroll-section {
  margin-top: clamp(-8px, -1vw, 0);
}

.scroll-guest-greeting {
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: clamp(18px, 4vw, 28px) clamp(20px, 5vw, 36px);
  text-align: center;
  border-radius: clamp(14px, 2.5vw, 22px);
  border: 1px solid var(--scroll-border);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(var(--scroll-accent-rgb, 201, 169, 98), 0.12), transparent 60%),
    linear-gradient(180deg, rgba(var(--scroll-accent-rgb, 201, 169, 98), 0.06), transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.scroll-guest-line {
  margin: 0;
  font-family: var(--script-font, var(--elegant, 'Cormorant Garamond', Georgia, serif));
  font-size: clamp(26px, 6.5vw, 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--scroll-accent);
}

.scroll-guest-line + .scroll-guest-line {
  margin-top: 10px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(16px, 3.6vw, 20px);
  font-style: normal;
  color: var(--scroll-muted);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.reveal-scroll-blur {
  filter: blur(12px);
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.reveal-scroll-wipe {
  clip-path: inset(100% 0 0 0 round 2px);
  transform: translateY(16px);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.reveal-scroll-fill {
  transform: translateX(-24px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-mask-position 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    mask-position 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-inview {
  opacity: 1;
  transform: translateY(0);
  filter: none;
  clip-path: inset(0 0 0 0 round 2px);
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.scroll-hero {
  text-align: center;
  padding: clamp(36px, 7vw, 64px) clamp(20px, 5vw, 40px);
  border-radius: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--scroll-hero-border, var(--scroll-border));
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(var(--scroll-accent-rgb, 201, 169, 98), 0.14), transparent 58%),
    linear-gradient(165deg, var(--scroll-surface) 0%, transparent 100%);
  box-shadow:
    inset 0 1px 0 var(--scroll-border),
    0 12px 40px rgba(0, 0, 0, 0.12);
}

.scroll-hero::after {
  display: none;
}

.scroll-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 20px);
  margin: 0 0 clamp(20px, 3.5vw, 28px);
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(12px, 2.8vw, 15px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--scroll-muted);
  text-align: center;
}

.scroll-kicker::before,
.scroll-kicker::after {
  content: '';
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--scroll-accent), transparent);
  opacity: 0.65;
}

.scroll-title {
  margin: 0 0 clamp(20px, 3.5vw, 28px);
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: clamp(52px, 12vw, 96px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: center;
  color: var(--scroll-text);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.scroll-title .copy-name-line {
  display: inline-block;
}

.scroll-meta {
  margin: 0;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(15px, 3.2vw, 20px);
  letter-spacing: 0.06em;
  color: var(--scroll-muted);
  text-align: center;
}

.scroll-meta--time {
  display: inline-block;
  margin-top: 8px;
  padding: clamp(10px, 2vw, 14px) clamp(22px, 4vw, 32px);
  border-radius: 999px;
  border: 1px solid var(--scroll-border);
  background: var(--scroll-surface);
  font-size: clamp(17px, 3.8vw, 24px);
  font-style: italic;
  color: var(--scroll-text);
  letter-spacing: 0.08em;
}

.scroll-meta--location {
  margin-top: 6px;
}

.scroll-dear {
  margin: 0 0 20px;
  font-family: var(--script-font, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 6vw, 42px);
  font-style: italic;
  line-height: 1.25;
  text-align: center;
  color: var(--scroll-text);
  opacity: 0.88;
}

.scroll-lead {
  margin: 0 auto 14px;
  max-width: 640px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(18px, 3.8vw, 24px);
  line-height: 1.65;
  font-weight: 300;
  text-align: center;
  color: var(--scroll-text);
}

.scroll-lead--accent {
  margin-top: 22px;
  font-style: italic;
  color: var(--scroll-muted);
}

.scroll-section-head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.scroll-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--scroll-muted);
}

.scroll-heading {
  margin: 0;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.scroll-subhead {
  margin: 12px auto 0;
  max-width: 520px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(16px, 3vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--scroll-muted);
  text-align: center;
}

.scroll-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 16px);
}

.scroll-gallery-item {
  margin: 0;
  background: color-mix(in srgb, var(--scroll-ink, #2a1810) 4%, transparent);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 2px;
}

.scroll-gallery-item.is-broken {
  display: none;
}

.scroll-gallery-item.is-featured {
  grid-column: 1 / -1;
}

.scroll-gallery-item.is-featured img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 640px);
  margin-inline: auto;
}

.scroll-monogram-line,
.scroll-footer-photo {
  display: block;
  margin: 0 auto 20px;
  text-align: center;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--scroll-muted);
}

.scroll-footer-photo {
  width: min(140px, 36vw);
  height: auto;
  max-height: min(180px, 42vw);
  object-fit: contain;
  border-radius: 2px;
  filter: grayscale(0.2);
}

.scroll-body--open {
  max-width: 560px;
  margin-inline: auto;
}

.scroll-date-block {
  margin: 0 0 clamp(24px, 4vw, 32px);
}

.scroll-day-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  margin: 0;
  text-align: center;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scroll-muted);
}

.scroll-day-label {
  font-size: clamp(11px, 2.6vw, 13px);
  letter-spacing: 0.18em;
}

.scroll-day-parts {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
}

.scroll-day-part {
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--scroll-accent);
}

.scroll-day-dot {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--scroll-muted);
  opacity: 0.7;
}

.scroll-day-full,
.scroll-day-line time {
  font-size: clamp(20px, 4.8vw, 28px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--scroll-accent);
}

.scroll-location-layout {
  display: grid;
  gap: 28px;
  text-align: center;
}

.scroll-story-photo {
  margin: 0 auto clamp(20px, 4vw, 32px);
  max-width: min(420px, 88%);
}

.scroll-story-photo.is-broken {
  display: none;
}

.scroll-story-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 248, 240, 0.08);
}

.scroll-location-name {
  margin: 10px 0 0;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scroll-muted);
}

.scroll-section.scroll-location {
  text-align: center;
}

.scroll-location-direction {
  margin: clamp(20px, 4vw, 28px) auto 0;
  max-width: min(420px, 100%);
}

.scroll-location-direction-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--scroll-border);
  border-radius: 16px;
  background: var(--scroll-surface);
  color: var(--scroll-text);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.scroll-location-direction-link:hover {
  border-color: var(--scroll-accent);
  transform: translateY(-2px);
  background: rgba(255, 248, 240, 0.04);
}

.scroll-location-direction-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.06);
  color: var(--scroll-accent);
  box-shadow: inset 0 0 0 1px var(--scroll-border);
}

.scroll-location-direction-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.scroll-location-direction-label {
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: clamp(16px, 3.5vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scroll-text);
}

.scroll-location-direction-hint {
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 14px;
  color: var(--scroll-muted);
  line-height: 1.4;
}

.scroll-location-map--wide::before,
.scroll-location-map--wide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
}

.scroll-location-map--wide::before {
  top: 0;
  background: linear-gradient(180deg, var(--cinema-bg, var(--page-bg, #08080c)) 0%, transparent 100%);
}

.scroll-location-map--wide::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--cinema-bg, var(--page-bg, #08080c)) 0%, transparent 100%);
}

.scroll-location-map--wide iframe {
  filter: grayscale(0.55) contrast(1.02) brightness(0.88);
}

.scroll-location-foot {
  margin: clamp(18px, 3vw, 24px) 0 0;
  text-align: center;
}

.scroll-location-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--scroll-border);
  color: var(--scroll-muted);
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.scroll-location-link:hover {
  color: var(--scroll-text);
  border-color: var(--scroll-accent);
}

.scroll-location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 240, 0.12);
  background: rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 240, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.scroll-location-map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.08) 0%, rgba(8, 8, 12, 0.22) 100%);
  mix-blend-mode: multiply;
}

.scroll-location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05) brightness(0.92);
}

@media (min-width: 720px) {
  .scroll-location-layout:has(.scroll-location-map) {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.scroll-location-copy p {
  margin: 0 0 18px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(18px, 3.5vw, 22px);
  line-height: 1.6;
}

.scroll-dress-text {
  font-style: italic;
}

.scroll-body {
  margin: 0;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(17px, 3.5vw, 21px);
  line-height: 1.75;
  font-weight: 300;
  text-align: center;
  color: var(--scroll-muted);
}

.scroll-link-btn,
.scroll-primary-btn,
.scroll-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.scroll-link-btn,
.scroll-primary-btn {
  border: 0;
  background: var(--scroll-button-fill, linear-gradient(165deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 240, 232, 0.92) 100%));
  color: var(--scroll-button-text, #1a100e);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.scroll-ghost-btn {
  border: 0;
  border-bottom: 1px solid var(--scroll-border);
  border-radius: 0;
  background: transparent;
  color: var(--scroll-text);
  min-height: auto;
  padding: 0 0 4px;
}

.scroll-link-btn:hover,
.scroll-primary-btn:hover,
.scroll-ghost-btn:hover {
  transform: translateY(-2px);
}

.scroll-schedule {
  text-align: center;
}

.scroll-timeline {
  list-style: none;
  margin: clamp(8px, 2vw, 16px) auto 0;
  padding: 8px 0 4px;
  max-width: min(520px, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.scroll-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--scroll-border) 8%,
    var(--scroll-border) 92%,
    transparent 100%
  );
  pointer-events: none;
}

.scroll-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2.5vw, 18px);
  padding: clamp(12px, 2vw, 16px) 0;
}

.scroll-timeline-marker {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--scroll-accent);
  box-shadow: 0 0 0 4px rgba(var(--scroll-accent-rgb, 201, 169, 98), 0.14);
  flex-shrink: 0;
  z-index: 1;
}

.scroll-timeline-item:last-child {
  padding-bottom: 0;
}

.scroll-time {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  text-align: right;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: clamp(17px, 3.2vw, 22px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--scroll-accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.scroll-event {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  text-align: left;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.25;
  font-weight: 300;
  font-style: italic;
  color: var(--scroll-text);
}

.scroll-detail-card {
  padding: 20px 0;
  margin-bottom: 8px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--scroll-border);
  text-align: center;
}

.scroll-detail-card h4 {
  margin: 0 0 10px;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--scroll-text);
}

.scroll-detail-card p {
  margin: 0;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--scroll-muted);
}

.scroll-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
  margin-inline: auto;
}

.scroll-detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--scroll-border);
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--scroll-muted);
}

.scroll-faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.scroll-faq-item {
  border: none;
  border-bottom: 1px solid rgba(255, 248, 240, 0.1);
  background: transparent;
}

.scroll-faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 18px;
  list-style: none;
  color: var(--scroll-text);
}

.scroll-faq-item summary::-webkit-details-marker { display: none; }

.scroll-faq-item p {
  margin: 0;
  padding: 0 0 18px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--scroll-muted);
}

.scroll-rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.scroll-primary-btn {
  border: none;
}

.scroll-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--scroll-border);
}

.scroll-monogram {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid var(--scroll-border);
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: 13px;
  color: var(--scroll-muted);
}

.scroll-footer p {
  margin: 0 0 6px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--scroll-muted);
}

.scroll-footer-brand {
  font-size: 11px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase;
  opacity: 0.45;
}

@media (max-width: 700px) {
  body.has-scroll-page.scroll-unlocked .scroll-cue {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .scroll-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue.is-visible { animation: none; }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* — Sticky scroll nav (Velvet-style) — */
.scroll-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  background: rgba(8, 6, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 248, 240, 0.08);
}

.scroll-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.scroll-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 28px);
}

.scroll-nav-brand {
  flex-shrink: 0;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--scroll-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.scroll-nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 240, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.scroll-nav-links::-webkit-scrollbar { display: none; }

.scroll-nav-link {
  flex-shrink: 0;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--scroll-muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.scroll-nav-link:hover,
.scroll-nav-link.is-active {
  color: var(--scroll-text);
  background: rgba(255, 248, 240, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 248, 240, 0.1);
  border-bottom-color: transparent;
}

.scroll-nav-toggle {
  display: none;
  margin-left: auto;
  padding: 6px 14px;
  border: 1px solid rgba(255, 248, 240, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--scroll-muted);
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 820px) {
  .scroll-nav-toggle {
    display: inline-flex;
  }

  .scroll-nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
  }

  .scroll-nav.is-menu-open .scroll-nav-links {
    display: flex;
  }

  .scroll-nav-inner {
    flex-wrap: wrap;
  }
}

.scroll-heading--rsvp {
  font-size: clamp(32px, 6vw, 48px);
}

.scroll-rsvp-cta {
  text-align: center;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 32px);
  border-radius: clamp(14px, 2vw, 18px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--scroll-accent-rgb, 201, 169, 98), 0.06), transparent 55%),
    linear-gradient(165deg, var(--scroll-surface) 0%, transparent 100%);
  border: 1px solid var(--scroll-hero-border, var(--scroll-border));
  box-shadow: inset 0 1px 0 var(--scroll-border);
}

.scroll-closing-names {
  margin: 0 0 4px;
  font-family: var(--display-font, 'Italiana', Georgia, serif);
  font-size: clamp(24px, 5vw, 36px);
  letter-spacing: 0.04em;
  text-align: center;
}

.scroll-closing-event {
  margin: 0 0 16px;
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--scroll-muted);
  text-align: center;
}

.rsvp-box--scroll {
  margin-top: 8px;
  text-align: left;
}

.scroll-rsvp-fields {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}

.scroll-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.scroll-field span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--scroll-muted);
}

.scroll-field input,
.scroll-field select,
.scroll-field textarea {
  width: 100%;
  padding: 12px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--scroll-border);
  background: transparent;
  color: var(--scroll-text);
  font-family: var(--elegant, 'Cormorant Garamond', Georgia, serif);
  font-size: 16px;
}

.scroll-field input::placeholder,
.scroll-field textarea::placeholder {
  color: var(--scroll-placeholder, rgba(255, 248, 240, 0.35));
}

.scroll-field select {
  appearance: none;
  cursor: pointer;
}

.scroll-field--full {
  grid-column: 1 / -1;
}

.scroll-rsvp-submit {
  width: 100%;
  margin-top: 4px;
  border: none;
  cursor: pointer;
}

.rsvp-box--scroll.shake {
  animation: shake 0.45s ease;
}

/* ── Scroll page style themes (Shtesa presets) ── */

body.scroll-theme-elegant .scroll-section-head .scroll-heading,
body.scroll-theme-romantic .scroll-section-head .scroll-heading,
body.scroll-theme-sage .scroll-section-head .scroll-heading {
  font-family: var(--script-font, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

body.scroll-theme-elegant .scroll-hero,
body.scroll-theme-romantic .scroll-hero,
body.scroll-theme-sage .scroll-hero {
  border-radius: 0;
  border-width: 0 0 1px;
  background: transparent;
  box-shadow: none;
}

body.scroll-theme-elegant .scroll-section-head::after,
body.scroll-theme-romantic .scroll-section-head::after,
body.scroll-theme-sage .scroll-section-head::after {
  content: '✦';
  display: block;
  margin: 14px auto 0;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--scroll-accent);
  opacity: 0.85;
}

body.scroll-theme-elegant .scroll-timeline::before,
body.scroll-theme-romantic .scroll-timeline::before,
body.scroll-theme-sage .scroll-timeline::before {
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--scroll-border) 10%,
    var(--scroll-border) 90%,
    transparent 100%
  );
}

body.scroll-theme-elegant .scroll-timeline-marker,
body.scroll-theme-romantic .scroll-timeline-marker,
body.scroll-theme-sage .scroll-timeline-marker {
  background: var(--scroll-accent);
  box-shadow: 0 0 0 4px rgba(var(--scroll-accent-rgb, 201, 169, 98), 0.16);
}

body.scroll-theme-light .scroll-link-btn,
body.scroll-theme-light .scroll-primary-btn,
body.scroll-theme-elegant .scroll-link-btn,
body.scroll-theme-elegant .scroll-primary-btn,
body.scroll-theme-romantic .scroll-link-btn,
body.scroll-theme-romantic .scroll-primary-btn,
body.scroll-theme-sage .scroll-link-btn,
body.scroll-theme-sage .scroll-primary-btn {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.scroll-theme-dark .scroll-link-btn,
body.scroll-theme-dark .scroll-primary-btn,
body.scroll-theme-golden .scroll-link-btn,
body.scroll-theme-golden .scroll-primary-btn,
body.scroll-theme-velvet .scroll-link-btn,
body.scroll-theme-velvet .scroll-primary-btn,
body.scroll-theme-navy .scroll-link-btn,
body.scroll-theme-navy .scroll-primary-btn {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.scroll-theme-golden .scroll-kicker::before,
body.scroll-theme-golden .scroll-kicker::after,
body.scroll-theme-velvet .scroll-kicker::before,
body.scroll-theme-velvet .scroll-kicker::after,
body.scroll-theme-navy .scroll-kicker::before,
body.scroll-theme-navy .scroll-kicker::after {
  opacity: 0.75;
}

.public-demo-ribbon {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 1200;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 6, 8, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
  font: 500 0.72rem/1.3 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
