/* ==========================================================================
   VINTAGE DIGITAL WEDDING INVITATION — "SAVE OUR DATE"
   Deep Velvet Burgundy · Antique Champagne Gold · Vintage Photobooth
   ========================================================================== */

:root {
  --burgundy-deep: #5e050d;
  --burgundy-base: #770914;
  --burgundy-mid: #8b0d19;
  --burgundy-glow: #9f1421;

  --champagne-light: #faf1e2;
  --champagne: #f0dfbe;
  --champagne-muted: #d9be94;
  --antique-gold: #c69f66;
  --bronze-dark: #4e321a;

  --paper-cream: #f8f1e4;
  --paper-edge: #e5d6bd;

  --font-script: 'Pinyon Script', 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-caps: 'Cinzel', 'Cormorant Garamond', Georgia, serif;

  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #2f0307;
  color: var(--champagne-light);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Desktop framing backdrop */
.desktop-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(155, 19, 32, 0.45), transparent 62%),
    radial-gradient(circle at 20% 80%, rgba(198, 159, 102, 0.12), transparent 55%),
    linear-gradient(180deg, #2a0206 0%, #44040a 50%, #220104 100%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   MAIN INVITATION SHELL (Mobile-First 430px Column on Desktop, Full on Mobile)
   ========================================================================== */
.invitation-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% 24%, var(--burgundy-glow) 0%, var(--burgundy-base) 54%, var(--burgundy-deep) 100%);
  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(240, 223, 190, 0.12);
  overflow: hidden;
}

@media (max-width: 480px) {
  .invitation-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Subtle vintage paper / velvet texture overlay */
.velvet-grain {
  position: fixed;
  inset: 0;
  max-width: 440px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.velvet-vignette {
  position: fixed;
  inset: 0;
  max-width: 440px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(35, 1, 5, 0.42) 100%);
}

/* Vintage Camera Flash Bloom */
.camera-flash {
  position: fixed;
  inset: 0;
  max-width: 440px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(circle at 50% 48%, rgba(255, 248, 232, 0.96), rgba(255, 232, 195, 0.72) 60%, rgba(255, 215, 165, 0.35));
  opacity: 0;
}

.camera-flash.is-flashing {
  animation: vintageFlash 620ms var(--ease-luxury) forwards;
}

@keyframes vintageFlash {
  0% { opacity: 0; }
  12% { opacity: 0.88; }
  35% { opacity: 0.42; }
  100% { opacity: 0; }
}

/* ==========================================================================
   SCREEN TRANSITION ARCHITECTURE
   ========================================================================== */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
  transition:
    opacity 680ms var(--ease-luxury),
    transform 680ms var(--ease-luxury),
    visibility 0s linear 680ms;
}

.screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 680ms var(--ease-luxury),
    transform 680ms var(--ease-luxury),
    visibility 0s linear 0s;
}

/* ==========================================================================
   SHARED PHOTOBOOTH FRAME & DISPENSER SLOT
   ========================================================================== */
.photobooth-frame-wrap {
  position: relative;
  width: min(86vw, 355px);
  aspect-ratio: 1080 / 1434;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(28, 2, 5, 0.56));
  will-change: transform;
}

.photobooth-frame-wrap.is-vibrating {
  animation: printerMotorHum 95ms linear infinite;
}

@keyframes printerMotorHum {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(0.35px, -0.35px); }
  50%  { transform: translate(-0.35px, 0.25px); }
  75%  { transform: translate(0.25px, 0.35px); }
  100% { transform: translate(0px, 0px); }
}

.ornate-frame-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  z-index: 1;
}

/* Inner Brushed Champagne Metallic Plate Area */
.frame-plate {
  position: absolute;
  top: 21.3%;
  left: 20.4%;
  right: 20.4%;
  bottom: 22.8%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Machined Antique Brass Dispenser Slot */
.dispenser-slot {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 64%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9f7d49 0%, #dfc28e 30%, #7d5b2d 72%, #b5925b 100%);
  box-shadow:
    0 2px 4px rgba(52, 30, 10, 0.38),
    inset 0 1px 1px rgba(255, 246, 224, 0.65),
    inset 0 -1px 2px rgba(45, 24, 8, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  z-index: 12;
}

.slot-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5e2ba, #7a5829);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}
.slot-screw--left { left: 5px; }
.slot-screw--right { right: 5px; }

.slot-opening {
  position: relative;
  width: 84%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d0603 0%, #24130a 65%, #3d2415 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.92),
    0 1px 0 rgba(255, 242, 214, 0.5);
  overflow: hidden;
}

.slot-inner-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65), transparent 15%, transparent 85%, rgba(0,0,0,0.65));
}

/* ==========================================================================
   SCREEN 1: ENTRY GATE ("CLICK THE BUTTON")
   ========================================================================== */
.screen--gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.gate-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.guest-greeting-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(240, 223, 190, 0.36);
  background: rgba(56, 4, 9, 0.42);
  text-align: center;
  animation: fadeDownIn 750ms var(--ease-luxury) both;
}

.guest-greeting-pill[hidden] {
  display: none;
}

.guest-greeting-label {
  font-family: var(--font-caps);
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  color: var(--champagne-muted);
}

.guest-greeting-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--champagne-light);
}

.photobooth-frame-wrap--gate {
  width: min(90vw, 376px);
  animation: gentleFloatEntrance 950ms var(--ease-luxury) both;
}

@keyframes gentleFloatEntrance {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gate-heart-wrap {
  position: absolute;
  top: 14.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(56, 20, 12, 0.34));
  animation: heartSoftBreath 4.2s ease-in-out infinite;
}

@keyframes heartSoftBreath {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.022); }
}

.gate-heart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.gate-heart-label {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.42rem, 5.4vw, 1.85rem);
  line-height: 0.92;
  color: var(--champagne-light);
  text-shadow: 0 2px 6px rgba(32, 2, 6, 0.55);
  pointer-events: none;
  white-space: nowrap;
}

/* 3D Antique Brass Mechanical Push Button */
.brass-push-btn {
  position: absolute;
  bottom: 3.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 21.5%;
  aspect-ratio: 1 / 1;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), filter 180ms ease;
  filter: drop-shadow(0 5px 8px rgba(56, 32, 10, 0.45));
}

.brass-push-btn:hover {
  transform: translateX(-50%) scale(1.06);
  filter: drop-shadow(0 7px 12px rgba(56, 32, 10, 0.52));
}

.brass-push-btn:active,
.brass-push-btn.is-pressed {
  transform: translateX(-50%) scale(0.9) translateY(2px);
  filter: drop-shadow(0 2px 3px rgba(56, 32, 10, 0.55));
}

.brass-btn-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 241, 206, 0.72);
  opacity: 0;
  animation: buttonInvitePulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes buttonInvitePulse {
  0% {
    transform: scale(0.92);
    opacity: 0.78;
  }
  70% {
    transform: scale(1.36);
    opacity: 0;
  }
  100% {
    transform: scale(1.36);
    opacity: 0;
  }
}

.brass-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   SCREEN 2: PHOTOBOOTH PRINTING REVEAL
   ========================================================================== */
.screen--print {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(36px, env(safe-area-inset-top)) 16px max(34px, env(safe-area-inset-bottom));
  gap: 8px;
}

.print-header {
  text-align: center;
  z-index: 4;
  animation: fadeDownIn 900ms var(--ease-luxury) both;
}

@keyframes fadeDownIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow-text {
  font-family: var(--font-caps);
  font-size: clamp(0.68rem, 2.7vw, 0.78rem);
  letter-spacing: 0.24em;
  color: var(--champagne);
  font-weight: 400;
  margin-bottom: 6px;
  opacity: 0.94;
}

.couple-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--champagne-light);
  text-shadow: 0 2px 12px rgba(42, 2, 7, 0.45);
}

.couple-script--hero {
  font-size: clamp(2.45rem, 10.5vw, 3.35rem);
  line-height: 1.04;
}

.print-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.photobooth-frame-wrap--print {
  width: min(86vw, 346px);
}

/* Subtle Printer Indicator LED above Dispenser Slot */
.printer-status-row {
  position: absolute;
  top: 1.8%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 13;
  opacity: 0.78;
}

.printer-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c78b3b;
  box-shadow: 0 0 6px rgba(226, 162, 62, 0.65);
  transition: background 240ms ease, box-shadow 240ms ease;
}

.printer-led.is-printing {
  background: #ff6e42;
  box-shadow: 0 0 8px rgba(255, 110, 66, 0.95);
  animation: ledBlink 550ms ease-in-out infinite;
}

.printer-led.is-done {
  background: #5cb86f;
  box-shadow: 0 0 8px rgba(92, 184, 111, 0.9);
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.printer-status-text {
  font-family: var(--font-caps);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  color: #5a3c1d;
  font-weight: 600;
}

/* ==========================================================================
   ULTRA-REALISTIC SLOT CLIP VIEWPORT & PHOTO STRIP PHYSICS
   ========================================================================== */
.slot-viewport {
  position: absolute;
  /* Starts dead-center on the horizontal slot opening so paper extrudes OUT of the slit */
  top: calc(6% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  height: 91%;
  overflow: hidden;
  z-index: 10;
  perspective: 680px;
}

/* Dark occlusion shadow cast by the metal slot upper lip directly onto the emerging strip */
.slot-lip-shadow {
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 15px;
  background: linear-gradient(180deg, rgba(22, 9, 3, 0.68) 0%, rgba(22, 9, 3, 0.24) 48%, transparent 100%);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.slot-lip-shadow.is-visible {
  opacity: 1;
}

/* Dynamic paper cast shadow on the champagne brushed metal plate */
.strip-floor-shadow {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 64%;
  height: 10px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 45%, rgba(45, 22, 6, 0.42) 0%, rgba(45, 22, 6, 0.16) 55%, transparent 78%);
  filter: blur(5px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: height, opacity, transform;
}

/* Shared Photobooth Paper Strip Component */
.photo-strip {
  position: relative;
  width: 58%;
  margin: 0 auto;
  z-index: 5;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  cursor: pointer;
}

.photo-strip--printing {
  /* JS drives translateY, rotateX (paper curl), rotateZ (settle sway) */
  transform: translate3d(0, -104%, 0) rotateX(10deg);
}

.photo-strip--printing .photo-strip-paper {
  padding: 5% 5.5% 6%;
  gap: 3.5px;
}

.photo-strip--printing .strip-frame {
  aspect-ratio: 1 / 0.88;
}

.photo-strip--printing .strip-date {
  font-size: 0.5rem;
  margin-top: 1px;
}

.photo-strip-paper {
  position: relative;
  width: 100%;
  padding: 5.5% 5.5% 7%;
  background:
    linear-gradient(165deg, #fbf6ec 0%, #f3e8d6 55%, #ebdcc2 100%);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(173, 145, 104, 0.28),
    0 2px 4px rgba(56, 30, 12, 0.22),
    0 8px 18px rgba(42, 18, 6, 0.26);
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

/* Subtle glossy photographic paper sheen sliding across while printing */
.paper-sheen {
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 252, 242, 0.48) 49%,
    rgba(255, 255, 255, 0.65) 51%,
    transparent 65%
  );
  transform: translateY(-120%);
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: soft-light;
}

.strip-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.94;
  overflow: hidden;
  background: #2b1d14;
  box-shadow: inset 0 0 0 0.7px rgba(82, 56, 34, 0.35);
}

.strip-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.04) brightness(0.98);
  user-select: none;
  transition: filter 700ms ease;
}

/* Emulsion developing veil — darkens freshly emerging photo then clears as it prints out */
.emulsion-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 22, 12, 0.36), rgba(62, 39, 22, 0.16));
  opacity: 0;
  pointer-events: none;
  transition: opacity 750ms ease;
}

.strip-frame.is-developing .emulsion-veil {
  opacity: 0.72;
}

.strip-date {
  margin-top: 2px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.56rem, 2.2vw, 0.68rem);
  letter-spacing: 0.12em;
  color: #5e4430;
  user-select: none;
}

/* Print Screen Footer & OPEN INVITATION CTA */
.print-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.open-invitation-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 10px 24px 12px;
  cursor: pointer;
  color: var(--champagne-light);
  font-family: var(--font-caps);
  font-size: clamp(0.8rem, 3.2vw, 0.92rem);
  letter-spacing: 0.24em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 240ms var(--ease-luxury), color 240ms ease, opacity 400ms ease;
}

.open-invitation-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.open-invitation-btn.is-ready .open-invitation-label {
  animation: ctaShimmer 2.6s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0%, 100% {
    text-shadow: 0 0 10px rgba(240, 223, 190, 0.25);
  }
  50% {
    text-shadow: 0 0 18px rgba(250, 241, 226, 0.72);
  }
}

.open-invitation-underline {
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  transition: width 320ms var(--ease-luxury);
}

.open-invitation-btn:hover .open-invitation-underline,
.open-invitation-btn.is-ready .open-invitation-underline {
  width: 96%;
}

.reprint-micro-btn {
  background: transparent;
  border: none;
  color: rgba(240, 223, 190, 0.62);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 200ms ease, opacity 200ms ease;
}

.reprint-micro-btn:hover {
  color: var(--champagne-light);
}

/* ==========================================================================
   SCREEN 3: MAIN "SAVE OUR DATE" VINTAGE COLLAGE & INVITATION
   ========================================================================== */
.screen--invitation {
  min-height: 100dvh;
}

.invitation-scroll {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  padding: max(30px, env(safe-area-inset-top)) 16px max(108px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HERO COLLAGE CANVAS */
.collage-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0 18px;
}

.collage-canvas {
  position: relative;
  width: min(88vw, 376px);
  aspect-ratio: 376 / 448;
}

/* Base Ornate Gold Frame */
.collage-frame {
  position: absolute;
  top: 5.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 16px 26px rgba(24, 2, 5, 0.54));
  user-select: none;
}

/* Top-Left: Vintage Deckle Parchment + Ivory Satin Ribbon + "Save our Date" */
.collage-parchment-wrap {
  position: absolute;
  top: 1.5%;
  left: 2%;
  width: 55%;
  z-index: 6;
  transform: rotate(-9deg);
  filter: drop-shadow(0 10px 18px rgba(38, 8, 8, 0.36));
  opacity: 0;
  animation: collageItemInLeft 850ms var(--ease-luxury) 120ms forwards;
}

@keyframes collageItemInLeft {
  from {
    opacity: 0;
    transform: rotate(-14deg) translate(-14px, -10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotate(-9deg) translate(0, 0) scale(1);
  }
}

.collage-parchment-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.collage-save-date {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(2deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 7.6vw, 2.45rem);
  line-height: 0.88;
  color: #a87c45;
  text-shadow: 0 1px 1px rgba(255, 250, 240, 0.7);
  pointer-events: none;
  white-space: nowrap;
}

/* Right Edge: Golden Dried Mimosa & Baby's Breath Sprig peeking beside the photo strip */
.collage-floral {
  position: absolute;
  top: 13%;
  right: -1%;
  width: 28%;
  height: auto;
  z-index: 8;
  transform-origin: 50% 90%;
  transform: rotate(12deg);
  filter: drop-shadow(0 6px 10px rgba(28, 6, 6, 0.38));
  pointer-events: none;
  animation: floralBreeze 6s ease-in-out infinite;
}

@keyframes floralBreeze {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(15deg); }
}

/* Top-Right: Printed 3-Frame Photobooth Strip */
.collage-strip-wrap {
  position: absolute;
  top: 7%;
  right: 16%;
  width: 31.5%;
  z-index: 7;
  transform: rotate(7.5deg);
  cursor: pointer;
  filter: drop-shadow(0 14px 20px rgba(28, 6, 6, 0.44));
  transition: transform 350ms var(--ease-luxury), filter 350ms ease;
  opacity: 0;
  animation: collageStripIn 900ms var(--ease-luxury) 220ms forwards;
}

@keyframes collageStripIn {
  from {
    opacity: 0;
    transform: rotate(12deg) translate(12px, -16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotate(7.5deg) translate(0, 0) scale(1);
  }
}

.collage-strip-wrap:hover {
  transform: rotate(5deg) translateY(-4px) scale(1.035);
  filter: drop-shadow(0 18px 26px rgba(20, 2, 4, 0.56));
}

.photo-strip--collage {
  width: 100%;
}

.photo-strip--collage .photo-strip-paper {
  padding: 5.5% 5.5% 7%;
  gap: 3.5px;
}

.photo-strip--collage .strip-date {
  font-size: 0.48rem;
}

/* Vintage Antique Brass Pin holding top of strip */
.vintage-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7e2 0%, #dfc088 45%, #8a642f 100%);
  box-shadow:
    0 3px 6px rgba(32, 12, 4, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  z-index: 12;
  pointer-events: none;
}

/* Bottom-Left: Crimson Velvet Lace Heart with Date & Venue */
.collage-heart-wrap {
  position: absolute;
  bottom: 7.5%;
  left: 11%;
  width: 42%;
  aspect-ratio: 1 / 1;
  z-index: 9;
  transform: rotate(-10deg);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 20px rgba(28, 3, 6, 0.48));
  opacity: 0;
  animation: collageHeartIn 900ms var(--ease-luxury) 340ms forwards;
}

@keyframes collageHeartIn {
  from {
    opacity: 0;
    transform: rotate(-14deg) translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: rotate(-10deg) translateY(0) scale(1);
  }
}

.collage-heart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.collage-heart-text {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  color: var(--champagne-light);
  font-family: var(--font-caps);
  text-shadow: 0 1px 4px rgba(28, 2, 5, 0.6);
  pointer-events: none;
}

.heart-date {
  font-size: clamp(0.6rem, 2.3vw, 0.7rem);
  letter-spacing: 0.14em;
  font-weight: 500;
}

.heart-venue {
  font-size: clamp(0.56rem, 2.15vw, 0.66rem);
  letter-spacing: 0.16em;
  font-weight: 500;
}

.heart-country {
  font-size: clamp(0.53rem, 2vw, 0.62rem);
  letter-spacing: 0.18em;
  opacity: 0.92;
}

/* Bottom-Right: Interactive Vintage Vinyl Record Music Player */
.collage-vinyl-wrap {
  position: absolute;
  bottom: 9%;
  right: 5%;
  width: 27%;
  aspect-ratio: 1 / 1;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: collageVinylIn 900ms var(--ease-luxury) 440ms forwards;
}

@keyframes collageVinylIn {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.vinyl-arc-text {
  position: absolute;
  inset: -24%;
  width: 148%;
  height: 148%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
  transform: rotate(-18deg);
}

.vinyl-arc-text text {
  fill: var(--champagne-light);
  font-family: var(--font-caps);
  font-size: 9.4px;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.vinyl-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 18px rgba(24, 2, 5, 0.52));
  transition: transform 240ms var(--ease-luxury);
}

.vinyl-btn:hover {
  transform: scale(1.06);
}

.vinyl-btn:active {
  transform: scale(0.95);
}

.vinyl-disc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  user-select: none;
  pointer-events: none;
  animation: vinylSpin 7.5s linear infinite;
  animation-play-state: paused;
}

.collage-vinyl-wrap.is-playing .vinyl-disc-img {
  animation-play-state: running;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.vinyl-center-control {
  position: absolute;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: rgba(119, 9, 20, 0.88);
  border: 1.5px solid rgba(250, 241, 226, 0.85);
  color: var(--champagne-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(24, 2, 4, 0.45);
  transition: background 220ms ease, transform 220ms ease;
}

.vinyl-center-control svg {
  width: 58%;
  height: 58%;
}

.vinyl-center-control .icon-pause {
  display: none;
}

.collage-vinyl-wrap.is-playing .icon-play {
  display: none;
}

.collage-vinyl-wrap.is-playing .icon-pause {
  display: block;
}

.collage-vinyl-wrap.is-playing .vinyl-center-control {
  background: rgba(159, 20, 33, 0.94);
  box-shadow: 0 0 14px rgba(240, 223, 190, 0.55);
}

/* Floating Golden Music Notes while Vinyl is Playing */
.music-notes {
  position: absolute;
  inset: -16px;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: opacity 350ms ease;
}

.collage-vinyl-wrap.is-playing .music-notes {
  opacity: 1;
}

.note {
  position: absolute;
  color: var(--champagne-light);
  font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(240, 223, 190, 0.75);
  opacity: 0;
}

.collage-vinyl-wrap.is-playing .note--1 {
  right: 12%;
  top: 8%;
  animation: floatNote 2.4s ease-out infinite;
}

.collage-vinyl-wrap.is-playing .note--2 {
  right: -6%;
  top: 32%;
  font-size: 1.1rem;
  animation: floatNote 2.8s ease-out 0.8s infinite;
}

.collage-vinyl-wrap.is-playing .note--3 {
  left: 10%;
  top: 4%;
  font-size: 0.85rem;
  animation: floatNote 2.6s ease-out 1.5s infinite;
}

@keyframes floatNote {
  0% {
    opacity: 0;
    transform: translate(0, 6px) scale(0.75) rotate(-8deg);
  }
  25% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(12px, -36px) scale(1.15) rotate(14deg);
  }
}

/* ==========================================================================
   COUNTDOWN TIMER SECTION
   ========================================================================== */
.countdown-section {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding: 12px 6px 18px;
}

.countdown-title {
  font-family: var(--font-caps);
  font-size: clamp(0.74rem, 3vw, 0.86rem);
  letter-spacing: 0.24em;
  color: var(--champagne);
  margin-bottom: 14px;
}

.countdown-grid {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 2.5vw, 12px);
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.cd-value {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7.6vw, 2.45rem);
  font-weight: 400;
  line-height: 1;
  color: var(--champagne-light);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  margin-top: 6px;
  font-family: var(--font-caps);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--champagne-muted);
  opacity: 0.88;
}

.cd-sep {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 6.4vw, 2rem);
  line-height: 1.05;
  color: var(--champagne-muted);
  opacity: 0.78;
}

/* ==========================================================================
   RSVP / SHARE ADDRESS / FOOTER SECTION
   ========================================================================== */
.rsvp-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 12px 12px;
}

.formal-script {
  font-family: var(--font-script);
  font-size: clamp(2.05rem, 8.2vw, 2.65rem);
  line-height: 1.15;
  color: var(--champagne-light);
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(32, 2, 5, 0.45);
}

.vintage-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 228px;
  padding: 13px 28px;
  border: 1px solid rgba(240, 223, 190, 0.78);
  border-radius: 3px;
  background: rgba(250, 241, 226, 0.04);
  color: var(--champagne-light);
  font-family: var(--font-caps);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms var(--ease-luxury),
    box-shadow 240ms ease;
}

.vintage-outline-btn:hover {
  background: rgba(250, 241, 226, 0.14);
  border-color: var(--champagne-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 2, 6, 0.4);
}

.vintage-outline-btn:active {
  transform: translateY(0);
}

.vintage-outline-btn--sm {
  min-width: 196px;
  padding: 11px 22px;
  font-size: 0.68rem;
}

.contact-block {
  margin-top: 30px;
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--champagne);
}

.contact-email {
  display: inline-block;
  color: var(--champagne-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 223, 190, 0.38);
  transition: border-color 200ms ease, color 200ms ease;
}

.contact-email:hover {
  color: #ffffff;
  border-bottom-color: var(--champagne-light);
}

.couple-script--footer {
  font-size: clamp(2.55rem, 10.6vw, 3.35rem);
  line-height: 1.1;
  margin-bottom: 34px;
}

.go-back-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(240, 223, 190, 0.78);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.go-back-btn:hover {
  color: var(--champagne-light);
  border-bottom-color: rgba(240, 223, 190, 0.55);
}

/* ==========================================================================
   MODALS (SHARE YOUR ADDRESS & PHOTO LIGHTBOX)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(22, 2, 4, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 260ms var(--ease-luxury) both;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  max-height: 90dvh;
  overflow-y: auto;
  background:
    linear-gradient(170deg, #faf3e6 0%, #f1e3cb 100%);
  color: #46171a;
  border-radius: 4px;
  padding: 30px 24px 26px;
  box-shadow:
    0 24px 56px rgba(18, 1, 3, 0.72),
    inset 0 0 0 1px rgba(155, 114, 62, 0.35),
    inset 0 0 0 6px rgba(250, 243, 230, 0.7),
    inset 0 0 0 7px rgba(155, 114, 62, 0.28);
  text-align: center;
  animation: modalCardRise 340ms var(--ease-luxury) both;
}

@keyframes modalCardRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #6b242a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  background: rgba(119, 9, 20, 0.08);
  transform: scale(1.08);
}

.modal-close--light {
  color: var(--champagne-light);
  top: -40px;
  right: -6px;
  font-size: 2rem;
}

.modal-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #8c6334;
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-script);
  font-size: 2.35rem;
  font-weight: 400;
  color: #740812;
  line-height: 1.05;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  color: #5e3830;
  margin-bottom: 20px;
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field span {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: #6f4a27;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(138, 102, 58, 0.42);
  border-radius: 3px;
  background: #fffdf8;
  color: #3d1418;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #7c0b15;
  box-shadow: 0 0 0 3px rgba(124, 11, 21, 0.1);
}

.vintage-solid-btn {
  margin-top: 6px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 3px;
  background: linear-gradient(180deg, #8b0d19 0%, #6b0710 100%);
  color: var(--champagne-light);
  font-family: var(--font-caps);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(94, 5, 13, 0.34);
  transition: transform 200ms var(--ease-luxury), filter 200ms ease;
}

.vintage-solid-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.address-success {
  padding: 16px 6px 8px;
}

.wax-seal-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a51624 0%, #6d0710 75%, #4a040a 100%);
  color: var(--champagne-light);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 14px rgba(74, 4, 10, 0.35),
    inset 0 0 0 3px rgba(240, 223, 190, 0.22);
}

.success-script {
  font-family: var(--font-script);
  font-size: 2.3rem;
  font-weight: 400;
  color: #740812;
  margin-bottom: 8px;
}

.success-copy {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5a342c;
  margin-bottom: 20px;
}

.address-success .vintage-outline-btn {
  color: #740812;
  border-color: rgba(116, 8, 18, 0.45);
}

/* Lightbox Photo Strip & Single Gallery Portrait */
.lightbox-inner {
  position: relative;
  width: min(74vw, 240px);
  animation: modalCardRise 320ms var(--ease-luxury) both;
}

.lightbox-inner[hidden],
.lightbox-single[hidden] {
  display: none;
}

.photo-strip--lightbox {
  width: 100%;
  cursor: default;
}

.photo-strip--lightbox .photo-strip-paper {
  padding: 6% 6% 8%;
  gap: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}

.photo-strip--lightbox .strip-date {
  font-size: 0.85rem;
  margin-top: 4px;
}

.lightbox-single {
  position: relative;
  width: min(86vw, 350px);
  animation: modalCardRise 320ms var(--ease-luxury) both;
}

.lightbox-polaroid {
  background: linear-gradient(168deg, #fbf6ec 0%, #efe2cc 100%);
  padding: 14px 14px 20px;
  border-radius: 3px;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.72);
  text-align: center;
}

.lightbox-polaroid img {
  display: block;
  width: 100%;
  max-height: 66dvh;
  object-fit: cover;
  filter: sepia(0.1) contrast(1.03);
}

.lightbox-polaroid figcaption {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #543222;
}

.success-wax-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(60, 6, 10, 0.32));
}

/* ==========================================================================
   FULL DIGITAL INVITATION EDITORIAL SECTIONS
   ========================================================================== */
.hero-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 22px;
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: rgba(240, 223, 190, 0.72);
  transition: color 220ms ease;
}

.scroll-cue:hover {
  color: var(--champagne-light);
}

.scroll-cue-arrow {
  font-size: 0.9rem;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Shared Section Container & Scroll Reveal */
.inv-section {
  width: 100%;
  padding: 44px 10px 18px;
  text-align: center;
  scroll-margin-top: 18px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 780ms var(--ease-luxury), transform 780ms var(--ease-luxury);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Filigree Hairline Divider */
.filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 68%;
  margin: 0 auto 28px;
}

.filigree-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 223, 190, 0.45), transparent);
}

.filigree-diamond {
  color: var(--antique-gold);
  font-size: 0.72rem;
  opacity: 0.9;
}

.section-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: var(--champagne-muted);
  margin-bottom: 6px;
}

.section-eyebrow--dark {
  color: #8c6334;
}

.section-script-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.45rem, 9.6vw, 3.1rem);
  line-height: 1.06;
  color: var(--champagne-light);
  text-shadow: 0 2px 12px rgba(34, 2, 5, 0.48);
  margin-bottom: 14px;
}

.section-script-title--dark {
  color: #740812;
  text-shadow: none;
}

.section-subcopy {
  max-width: 315px;
  margin: 0 auto 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--champagne);
  opacity: 0.9;
}

/* --- SECTION 1: AYAT SUCI QS. AR-RUM AYAT 21 --- */
.inv-section--quote {
  padding-top: 26px;
}

.arabic-verse {
  max-width: 344px;
  margin: 12px auto 18px;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: clamp(1.32rem, 5.2vw, 1.56rem);
  line-height: 2.15;
  color: var(--champagne-light);
  text-shadow: 0 2px 10px rgba(32, 2, 5, 0.45);
  direction: rtl;
}

.editorial-quote {
  max-width: 336px;
  margin: 0 auto 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.98rem, 3.8vw, 1.08rem);
  line-height: 1.62;
  color: var(--champagne);
}

.quote-author {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--antique-gold);
  margin-bottom: 22px;
}

.preamble-copy {
  max-width: 320px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--champagne);
  opacity: 0.92;
}

/* --- SECTION 2: BRIDE & GROOM PROFILES --- */
.couple-profiles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.person-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
}

/* Portrait Cameo inside Canva Ornate Champagne-Gold Frame */
.portrait-cameo {
  position: relative;
  width: min(64vw, 244px);
  aspect-ratio: 1080 / 1434;
  margin-bottom: 14px;
  filter: drop-shadow(0 16px 24px rgba(26, 2, 5, 0.56));
}

.portrait-frame-overlay {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.portrait-photo-window {
  position: absolute;
  top: 21.5%;
  left: 20.8%;
  right: 20.8%;
  bottom: 23.1%;
  z-index: 2;
  overflow: hidden;
  border-radius: 2px;
  background: #2b1d14;
  box-shadow:
    inset 0 0 18px rgba(24, 10, 4, 0.55),
    0 0 0 1px rgba(130, 96, 48, 0.55);
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: sepia(0.12) contrast(1.03);
  transition: transform 650ms var(--ease-luxury);
}

.portrait-cameo:hover .portrait-photo {
  transform: scale(1.04);
}

.person-role {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--antique-gold);
  margin-bottom: 4px;
}

.person-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.15rem, 8.2vw, 2.65rem);
  line-height: 1.08;
  color: var(--champagne-light);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(32, 2, 5, 0.48);
}

.person-parents {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--champagne);
  max-width: 280px;
}

.person-parents strong {
  font-weight: 600;
  color: var(--champagne-light);
}

.person-origin {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--champagne-muted);
  letter-spacing: 0.04em;
}

.couple-ampersand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 62%;
  margin: 8px 0 4px;
}

.amp-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 223, 190, 0.42), transparent);
}

.amp-glyph {
  font-family: var(--font-script);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--champagne);
  opacity: 0.92;
}

/* --- SECTION 3: EVENTS PARCHMENT STATIONERY CARD --- */
.parchment-card {
  position: relative;
  width: 100%;
  margin-top: 32px;
  padding: 50px 22px 30px;
  background: linear-gradient(172deg, #fbf4e8 0%, #f3e6cf 100%);
  color: #46171a;
  border-radius: 4px;
  box-shadow:
    0 20px 44px rgba(26, 2, 5, 0.58),
    inset 0 0 0 1px rgba(155, 114, 62, 0.38),
    inset 0 0 0 7px rgba(251, 244, 232, 0.72),
    inset 0 0 0 8px rgba(155, 114, 62, 0.25);
}

.parchment-wax-seal {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(38, 4, 7, 0.42));
  user-select: none;
}

.villa-etching-wrap {
  width: 92%;
  margin: 0 auto 10px;
}

.villa-etching-img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.92;
  user-select: none;
}

.parchment-date-banner {
  display: inline-block;
  padding: 6px 16px;
  border-top: 1px solid rgba(140, 99, 52, 0.35);
  border-bottom: 1px solid rgba(140, 99, 52, 0.35);
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #740812;
  margin-bottom: 22px;
}

.event-block {
  padding: 4px 4px;
}

.event-kicker {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: #8c6334;
  margin-bottom: 4px;
}

.event-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.05;
  color: #740812;
  margin-bottom: 6px;
}

.event-time {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #4f261e;
  margin-bottom: 6px;
}

.event-venue {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5a342c;
}

.parchment-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 62%;
  margin: 20px auto;
  color: #9e7340;
}

.parchment-divider span {
  flex: 1;
  height: 1px;
  background: rgba(158, 115, 64, 0.35);
}

.parchment-divider i {
  font-style: normal;
  font-size: 0.92rem;
}

.event-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parchment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 3px;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease-luxury), filter 200ms ease, background 200ms ease;
}

.parchment-btn--solid {
  border: none;
  background: linear-gradient(180deg, #8b0d19 0%, #6b0710 100%);
  color: var(--champagne-light);
  box-shadow: 0 6px 14px rgba(94, 5, 13, 0.28);
}

.parchment-btn--solid:hover {
  filter: brightness(1.09);
  transform: translateY(-1px);
}

.parchment-btn--outline {
  border: 1px solid rgba(116, 8, 18, 0.42);
  background: transparent;
  color: #740812;
}

.parchment-btn--outline:hover {
  background: rgba(116, 8, 18, 0.06);
  transform: translateY(-1px);
}

/* --- SECTION 4: LOVE STORY TIMELINE --- */
.story-timeline {
  list-style: none;
  position: relative;
  text-align: left;
  max-width: 340px;
  margin: 22px auto 0;
  padding-left: 26px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 12px;
  left: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(240, 223, 190, 0.15), rgba(240, 223, 190, 0.58) 25%, rgba(240, 223, 190, 0.58) 75%, rgba(240, 223, 190, 0.15));
}

.story-item {
  position: relative;
  padding-bottom: 26px;
}

.story-item:last-child {
  padding-bottom: 4px;
}

.story-node {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #770914;
  border: 1.5px solid var(--champagne);
  box-shadow: 0 0 0 3px rgba(119, 9, 20, 0.9), 0 0 10px rgba(240, 223, 190, 0.35);
}

.story-year {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--antique-gold);
  margin-bottom: 2px;
}

.story-heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.95rem;
  line-height: 1.1;
  color: var(--champagne-light);
  margin-bottom: 4px;
}

.story-body {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--champagne);
  opacity: 0.9;
}

/* --- SECTION 5: VINTAGE 35MM POLAROID GALLERY --- */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.polaroid-card {
  border: none;
  background: linear-gradient(168deg, #fbf6ec 0%, #efe2cc 100%);
  padding: 8px 8px 12px;
  border-radius: 2px;
  box-shadow: 0 12px 24px rgba(26, 2, 5, 0.45);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 320ms var(--ease-luxury), box-shadow 320ms ease;
}

.polaroid-card--tilt-l {
  transform: rotate(-2deg);
}

.polaroid-card--tilt-r {
  transform: rotate(2deg);
}

.polaroid-card--wide {
  grid-column: 1 / -1;
  transform: rotate(-0.8deg);
  padding: 10px 10px 14px;
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: 0 18px 30px rgba(20, 1, 4, 0.56);
  z-index: 3;
}

.polaroid-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #2b1d14;
}

.polaroid-frame--wide {
  aspect-ratio: 16 / 10;
}

.polaroid-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: sepia(0.14) contrast(1.03);
}

.polaroid-caption {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #5a3926;
}

/* --- SECTION 6: DRESS CODE & PALETTE --- */
.attire-headline {
  font-family: var(--font-caps);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--champagne-light);
  margin-bottom: 10px;
}

.palette-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 56px;
}

.swatch-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.24), transparent 55%),
    var(--swatch);
  border: 1.5px solid rgba(240, 223, 190, 0.65);
  box-shadow: 0 6px 14px rgba(24, 2, 5, 0.45);
}

.swatch-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--champagne);
  line-height: 1.2;
}

/* --- SECTION 7: WEDDING GIFT ENVELOPE --- */
.gift-envelope-card {
  position: relative;
  width: 100%;
  padding: 28px 22px 26px;
  background: linear-gradient(170deg, #faf3e6 0%, #f0e2c9 100%);
  color: #46171a;
  border-radius: 4px;
  box-shadow:
    0 18px 38px rgba(24, 2, 5, 0.52),
    inset 0 0 0 1px rgba(155, 114, 62, 0.35),
    inset 0 0 0 6px rgba(250, 243, 230, 0.72),
    inset 0 0 0 7px rgba(155, 114, 62, 0.22);
}

.gift-wax-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 6px 10px rgba(48, 5, 9, 0.34));
}

.gift-copy {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.55;
  color: #5a342c;
  margin-bottom: 18px;
}

.gift-details-panel {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalCardRise 340ms var(--ease-luxury) both;
}

.gift-details-panel[hidden] {
  display: none;
}

.gift-account-card {
  padding: 14px 14px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(155, 114, 62, 0.3);
  border-radius: 3px;
}

.gift-bank-name {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #8c6334;
  margin-bottom: 4px;
}

.gift-account-number {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #5e0810;
  margin-bottom: 2px;
}

.gift-account-holder,
.gift-address-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: #5a342c;
  margin-bottom: 10px;
}

.copy-chip-btn {
  padding: 6px 14px;
  border: 1px solid rgba(116, 8, 18, 0.38);
  border-radius: 999px;
  background: transparent;
  color: #740812;
  font-family: var(--font-caps);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.copy-chip-btn:hover {
  background: #740812;
  color: var(--champagne-light);
}

/* --- SECTION 8: INLINE RSVP & GUESTBOOK WISHES --- */
.rsvp-inline-card {
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(170deg, #faf3e6 0%, #f1e3cb 100%);
  color: #46171a;
  border-radius: 4px;
  box-shadow:
    0 18px 38px rgba(24, 2, 5, 0.52),
    inset 0 0 0 1px rgba(155, 114, 62, 0.34);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-field > span {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: #754d29;
}

.rsvp-field input[type="text"],
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(138, 102, 58, 0.42);
  border-radius: 3px;
  background: #fffdf8;
  color: #3d1418;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus {
  border-color: #7c0b15;
  box-shadow: 0 0 0 3px rgba(124, 11, 21, 0.1);
}

.attendance-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.att-pill {
  position: relative;
  cursor: pointer;
}

.att-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.att-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9px 8px;
  border: 1px solid rgba(138, 102, 58, 0.42);
  border-radius: 3px;
  background: #fffdf8;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #5e3830;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.att-pill input:checked + span {
  background: #770914;
  border-color: #770914;
  color: var(--champagne-light);
}

/* Guestbook Wishes Wall */
.wishes-wall-wrap {
  width: 100%;
  margin-top: 26px;
  text-align: left;
}

.wishes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.wishes-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--champagne);
}

.wishes-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--champagne-muted);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.wish-item {
  padding: 14px 16px;
  border-radius: 4px;
  background: rgba(250, 241, 226, 0.08);
  border: 1px solid rgba(240, 223, 190, 0.2);
  animation: modalCardRise 360ms var(--ease-luxury) both;
}

.wish-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--champagne-light);
}

.wish-badge {
  font-family: var(--font-caps);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(240, 223, 190, 0.35);
  color: var(--champagne);
  white-space: nowrap;
}

.wish-message {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--champagne);
  opacity: 0.92;
}

/* --- FLOATING QUICK-NAV PILL & MINI VINYL --- */
.floating-nav {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 90px);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(68, 5, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 223, 190, 0.32);
  box-shadow: 0 12px 30px rgba(20, 1, 4, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 380ms var(--ease-luxury), opacity 380ms ease;
}

.floating-nav.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.fnav-link {
  padding: 6px 9px;
  font-family: var(--font-caps);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--champagne);
  text-decoration: none;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.fnav-link:hover {
  background: rgba(250, 241, 226, 0.12);
  color: #ffffff;
}

.fnav-music-btn {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid rgba(240, 223, 190, 0.55);
  background: rgba(119, 9, 20, 0.7);
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fnav-vinyl-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
  animation: vinylSpin 5.5s linear infinite;
  animation-play-state: paused;
}

.fnav-music-btn.is-playing .fnav-vinyl-img {
  animation-play-state: running;
}

/* --- VINTAGE TOAST NOTIFICATION --- */
.vintage-toast {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  max-width: calc(100vw - 32px);
  padding: 10px 20px;
  border-radius: 999px;
  background: #faf3e6;
  color: #6b0710;
  border: 1px solid rgba(155, 114, 62, 0.45);
  box-shadow: 0 12px 28px rgba(24, 2, 5, 0.55);
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-align: center;
  animation: toastSlideIn 240ms var(--ease-luxury) both;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.vintage-toast[hidden] {
  display: none;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  .photobooth-frame-wrap.is-vibrating,
  .gate-heart-wrap,
  .brass-btn-halo,
  .collage-floral,
  .note,
  .scroll-cue-arrow {
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
