/* ======================================================
   ENGAGEMENT INVITATION — Premium Design System
   Tatiana & Charbel · August 15 · Villa Olei, Jbeil
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Great+Vibes&family=Inter:wght@300;400;500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --gold: #C9A96E;
  --gold-light: #E8D5A8;
  --gold-shimmer: #F5E6C4;
  --rose: #D4A0A0;
  --rose-soft: #E8C4C4;
  --rose-blush: #F2DCDC;
  --ivory: #FAF6F0;
  --ivory-warm: #F5EDE0;
  --cream: #FFF8EE;
  --charcoal: #2C2C2C;
  --charcoal-soft: #4A4A4A;
  --text-light: #8A7D6B;
  --white: #FFFFFF;
  --overlay-dark: rgba(28, 24, 18, 0.55);
  --overlay-gold: rgba(201, 169, 110, 0.08);
  --whatsapp: #25D366;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --ease-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-dramatic: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Particle Canvas ── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-elegant), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-heart {
  width: 40px;
  height: 40px;
  position: relative;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.preloader-heart::before,
.preloader-heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 32px;
  border-radius: 20px 20px 0 0;
  background: var(--gold);
}

.preloader-heart::before {
  left: 20px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.preloader-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.preloader-text {
  margin-top: 24px;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.preloader-tap {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  animation: fadeInOut 2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.15);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.82) blur(8px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(28, 24, 18, 0.15) 0%,
      rgba(28, 24, 18, 0.45) 50%,
      rgba(28, 24, 18, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-elegant) 0.5s forwards;
}

/* Hero Names — Large Script */
.hero-names {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s var(--ease-elegant) 0.8s forwards;
  line-height: 1.1;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  display: block;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-ampersand {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--gold-light);
  display: block;
  margin: 4px 0;
  letter-spacing: 0.1em;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
  opacity: 0;
  animation: fadeIn 1s var(--ease-elegant) 1.3s forwards;
}

.hero-date-line {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeIn 1s var(--ease-elegant) 1.6s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-elegant) 2.2s forwards;
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
  margin: 0 auto 8px;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator p {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ══════════════════════════════════════
   SECTIONS — Commons
   ══════════════════════════════════════ */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-light {
  background: var(--ivory);
}

.section-warm {
  background: var(--ivory-warm);
}

.section-cream {
  background: var(--cream);
}

.section-dark {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
}

/* ── Reveal Animation Base ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-elegant), transform 0.9s var(--ease-elegant);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s var(--ease-elegant), transform 0.9s var(--ease-elegant);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s var(--ease-elegant), transform 0.9s var(--ease-elegant);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════
   NARRATION SECTIONS (Dark Cinematic)
   ══════════════════════════════════════ */
.narration-section {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.narration-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
  transform: scale(1.05);
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.narration-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.45) 15%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.45) 85%,
      rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.narration-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.narration-stanza {
  margin-bottom: 56px;
}

.narration-stanza:last-child {
  margin-bottom: 0;
}

.narration-line {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-elegant), transform 0.8s var(--ease-elegant);
}

.revealed .narration-line {
  opacity: 1;
  transform: translateY(0);
}

.narration-line--large {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.revealed .narration-line--large {
  animation: gentleFloat 4s ease-in-out infinite;
  animation-delay: 1s;
}

.narration-line--accent {
  color: var(--gold-light);
  font-weight: 500;
}

.revealed .narration-line--accent {
  animation: glowPulse 3s ease-in-out infinite;
}

.narration-line--whisper {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.revealed .narration-line--whisper {
  animation: whisperBreath 5s ease-in-out infinite;
}

.narration-section--final {
  padding-bottom: 120px;
}

.narration-section--final .narration-stanza:last-child .narration-line--large {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-style: normal;
  color: var(--gold);
  margin-top: 8px;
}

/* ══════════════════════════════════════
   STORY SECTIONS (Photo + Quote)
   ══════════════════════════════════════ */
.story-section {
  max-width: 900px;
  margin: 0 auto;
}

.story-block {
  margin-bottom: 80px;
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.story-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.story-image-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 6s var(--ease-elegant);
}

.story-image-frame:hover img {
  transform: scale(1.04);
}

.story-quote {
  text-align: center;
  padding: 0 8px;
}

.story-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: var(--charcoal);
  position: relative;
  padding: 16px 0;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 1s var(--ease-elegant) 0.3s, transform 1s var(--ease-elegant) 0.3s;
}

.revealed .story-quote blockquote,
.reveal-left.revealed blockquote,
.reveal-right.revealed blockquote {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-quote .quote-ornament {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: opacity 0.6s var(--ease-elegant) 0.1s, transform 0.8s var(--ease-dramatic) 0.1s;
}

.revealed .story-quote .quote-ornament,
.reveal-left.revealed .quote-ornament,
.reveal-right.revealed .quote-ornament {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ══════════════════════════════════════
   DIVIDER ORNAMENTS
   ══════════════════════════════════════ */
.ornament-divider {
  text-align: center;
  padding: 40px 0;
}

.ornament-divider .line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold-light);
  vertical-align: middle;
}

.ornament-divider .diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0 16px;
  vertical-align: middle;
}

/* ══════════════════════════════════════
   QUOTES GALLERY
   ══════════════════════════════════════ */
.quotes-gallery {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quote-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 240, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.6s var(--ease-elegant), box-shadow 0.6s var(--ease-elegant), opacity 0.8s var(--ease-elegant);
  transform: translateY(30px) scale(0.92);
  opacity: 0;
}

.quote-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cardFloat 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.quote-card:nth-child(2).revealed {
  animation-delay: 1.2s;
}

.quote-card:nth-child(3).revealed {
  animation-delay: 1.6s;
}

.quote-card:nth-child(4).revealed {
  animation-delay: 2.0s;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.01);
  }
}

.quote-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.quote-card .sparkle {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: block;
  animation: sparkle 3s ease-in-out infinite;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: var(--charcoal);
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ══════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════ */
.section-title-area {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-elegant), transform 0.7s var(--ease-elegant);
}

.revealed .section-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.section-dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.4);
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.9s var(--ease-elegant) 0.15s, transform 0.9s var(--ease-dramatic) 0.15s;
}

.revealed .section-title {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-dark .section-title {
  color: var(--white);
}

/* ══════════════════════════════════════
   VIDEO SECTION
   ══════════════════════════════════════ */
.video-section {
  padding-bottom: 100px;
}

.video-wrapper {
  max-width: 420px;
  margin: 0 auto 32px;
  text-align: center;
}

.video-wrapper:last-child {
  margin-bottom: 0;
}

.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(201, 169, 110, 0.15);
  background: var(--charcoal);
}

.video-frame video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.video-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease-elegant);
}

.video-placeholder:hover .video-play-icon {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.2);
  transform: scale(1.08);
}

.video-placeholder-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.video-tap-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 12px;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════
   INVITATION DETAILS
   ══════════════════════════════════════ */
.details-section {
  padding-bottom: 100px;
}

.details-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.12);
  text-align: center;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.detail-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s var(--ease-elegant), transform 0.6s var(--ease-dramatic);
}

.revealed .detail-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.revealed .detail-item:nth-child(1) {
  transition-delay: 0.1s;
}

.revealed .detail-item:nth-child(2) {
  transition-delay: 0.25s;
}

.revealed .detail-item:nth-child(3) {
  transition-delay: 0.4s;
}

.revealed .detail-item:nth-child(4) {
  transition-delay: 0.55s;
}

.detail-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
  animation: detailIconBounce 2s ease-in-out infinite;
  animation-play-state: paused;
}

.revealed .detail-icon {
  animation-play-state: running;
}

@keyframes detailIconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.detail-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.4;
}

.detail-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 2px;
}

.details-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-elegant);
}

.btn-icon {
  font-size: 1rem;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn--primary:hover {
  background: #B89A5F;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-light);
}

.btn--outline:hover {
  background: var(--overlay-gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn--whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

/* ══════════════════════════════════════
   RSVP SECTION
   ══════════════════════════════════════ */
.rsvp-section {
  padding-bottom: 100px;
}

.rsvp-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-message {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-style: italic;
  color: var(--charcoal-soft);
  line-height: 1.8;
  margin-bottom: 32px;
}

.rsvp-divider-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 24px 0;
  position: relative;
}

.rsvp-divider-text::before,
.rsvp-divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--gold-light);
}

.rsvp-divider-text::before {
  right: calc(50% + 24px);
}

.rsvp-divider-text::after {
  left: calc(50% + 24px);
}

/* ── RSVP Form ── */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.form-group {
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid rgba(201, 169, 110, 0.2);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s var(--ease-elegant), box-shadow 0.3s var(--ease-elegant);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
  font-weight: 300;
}

.form-radio-group {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 8px 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  position: relative;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked+.radio-custom {
  border-color: var(--gold);
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.rsvp-form .btn {
  margin-top: 8px;
  width: 100%;
}

/* ── Confirmation ── */
.rsvp-confirmation {
  padding: 32px;
  text-align: center;
}

.confirmation-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.confirmation-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CLOSING SECTION
   ══════════════════════════════════════ */
.closing-section {
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, var(--ivory-warm) 0%, var(--ivory) 100%);
  position: relative;
}

.closing-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.closing-ring::before,
.closing-ring::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.closing-ring::before {
  left: 6px;
  animation: ringFloat 3s ease-in-out infinite;
}

.closing-ring::after {
  right: 6px;
  animation: ringFloat 3s ease-in-out infinite 0.3s;
}

@keyframes ringFloat {

  0%,
  100% {
    transform: translateY(-50%) rotate(0deg);
  }

  50% {
    transform: translateY(-55%) rotate(5deg);
  }
}

.closing-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--charcoal);
  margin-bottom: 16px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1s var(--ease-elegant), transform 1.2s var(--ease-dramatic);
}

.closing-title.revealed {
  opacity: 1;
  transform: scale(1);
}

.closing-message {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-style: italic;
  color: var(--charcoal-soft);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-elegant) 0.3s, transform 0.9s var(--ease-elegant) 0.3s;
}

.closing-message.revealed {
  opacity: 1;
  transform: translateY(0);
}

.closing-names {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold);
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-elegant), transform 0.8s var(--ease-elegant);
}

.revealed .closing-names {
  opacity: 1;
  transform: translateY(0);
}

.closing-ampersand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rose);
  display: block;
  margin: 4px 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.6s var(--ease-elegant) 0.2s, transform 0.6s var(--ease-dramatic) 0.2s;
}

.revealed .closing-ampersand {
  opacity: 1;
  transform: scale(1);
}

.closing-date-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 1s var(--ease-elegant) 0.5s;
}

.revealed .closing-date-text {
  opacity: 1;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.4);
}

.footer p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.footer-sub {
  margin-top: 8px;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  color: rgba(255, 255, 255, 0.25) !important;
}

.footer .heart-icon {
  color: var(--rose);
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

/* ══════════════════════════════════════
   FULL-BLEED PHOTO SECTIONS
   ══════════════════════════════════════ */
.full-bleed-photo {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.full-bleed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
      rgba(250, 246, 240, 1) 0%,
      rgba(250, 246, 240, 0) 30%,
      rgba(250, 246, 240, 0) 70%,
      rgba(250, 246, 240, 1) 100%);
}

.full-bleed-overlay--dark {
  background: linear-gradient(0deg,
      rgba(44, 44, 44, 1) 0%,
      rgba(44, 44, 44, 0.3) 25%,
      rgba(44, 44, 44, 0) 50%,
      rgba(44, 44, 44, 0.3) 75%,
      rgba(44, 44, 44, 1) 100%);
}

.full-bleed-quote {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 600px;
  z-index: 2;
}

.full-bleed-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(250, 246, 240, 0.8);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-elegant), transform 0.6s var(--ease-dramatic);
}

.full-bleed-quote blockquote.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility: Bold text ── */
.text-bold {
  font-weight: 700;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(201, 169, 110, 0);
  }

  50% {
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
  }
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes whisperBreath {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.75;
  }
}

@keyframes quoteSway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(0.3deg);
  }

  75% {
    transform: rotate(-0.3deg);
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.15);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.shimmer-text {
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold-shimmer) 25%,
      var(--gold) 50%,
      var(--gold-shimmer) 75%,
      var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ══════════════════════════════════════
   MUSIC TOGGLE
   ══════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s var(--ease-elegant);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.music-toggle:hover {
  transform: scale(1.08);
  border-color: var(--gold);
}

.music-toggle .bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.music-toggle .bar {
  width: 3px;
  background: var(--gold);
  border-radius: 1px;
  transition: height 0.3s ease;
}

.music-toggle.playing .bar:nth-child(1) {
  animation: musicBar 0.6s ease-in-out infinite alternate;
}

.music-toggle.playing .bar:nth-child(2) {
  animation: musicBar 0.6s ease-in-out 0.15s infinite alternate;
}

.music-toggle.playing .bar:nth-child(3) {
  animation: musicBar 0.6s ease-in-out 0.3s infinite alternate;
}

.music-toggle.playing .bar:nth-child(4) {
  animation: musicBar 0.6s ease-in-out 0.45s infinite alternate;
}

.music-toggle:not(.playing) .bar {
  height: 4px !important;
}

@keyframes musicBar {
  0% {
    height: 4px;
  }

  100% {
    height: 16px;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  .section {
    padding: 60px 20px;
  }

  .story-block {
    margin-bottom: 60px;
  }

  .quote-card {
    padding: 32px 24px;
  }

  .closing-section {
    padding: 80px 20px 60px;
  }

  .full-bleed-photo {
    height: 60vh;
  }

  .narration-section {
    padding: 72px 20px;
  }

  .narration-stanza {
    margin-bottom: 40px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .details-card {
    padding: 36px 24px;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .rsvp-divider-text::before,
  .rsvp-divider-text::after {
    width: 40px;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — Tablet+
   ══════════════════════════════════════ */
@media (min-width: 768px) {
  .story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .story-block:nth-child(even) .story-image-frame {
    order: 2;
  }

  .story-block:nth-child(even) .story-quote {
    order: 1;
  }

  .story-image-frame img {
    aspect-ratio: 3/4;
  }

  .quotes-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .full-bleed-photo {
    height: 80vh;
  }

  .section {
    padding: 120px 48px;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — Desktop
   ══════════════════════════════════════ */
@media (min-width: 1024px) {
  .section {
    padding: 140px 64px;
  }

  .story-block {
    gap: 72px;
  }
}

/* ══════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════ */
@media print {

  .preloader,
  .music-toggle,
  #particles-canvas,
  .hero-scroll-indicator,
  .video-section,
  .rsvp-form,
  .btn--whatsapp {
    display: none !important;
  }

  .hero {
    height: auto;
    min-height: 400px;
    break-after: page;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }

  .section {
    break-inside: avoid;
    padding: 40px 24px;
  }

  body {
    background: white;
  }
}