/* =========================================================
   CELESTIAL NOIR — Wedding Invitation
   Deep Navy · Aurora · Rose Gold · Editorial
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;0,6..96,900;1,6..96,400;1,6..96,700&family=DM+Serif+Display:ital@0;1&family=Outfit:wght@200;300;400;500&family=Alex+Brush&display=swap');

/* ── CSS VARIABLES ────────────────────────────────────── */
:root {
  --void:        #06070f;
  --deep:        #0d1024;
  --navy:        #111836;
  --navy-mid:    #192144;
  --navy-light:  #243060;

  --rose-gold:   #c9956c;
  --rose-bright: #e8b48a;
  --rose-pale:   #f2d4be;
  --rose-blush:  #e8c5b5;
  --rose-deep:   #a06840;

  --star-white:  rgba(255, 248, 235, 0.9);
  --text-light:  #e8e0d8;
  --text-dim:    rgba(232, 224, 216, 0.55);

  --line:        rgba(201, 149, 108, 0.25);
  --glow:        rgba(201, 149, 108, 0.18);

  --cream-bg:    #faf6f0;
  --parch:       #f5ede0;
  --ink:         #1a1410;
  --ink-mid:     #3a2e26;
  --ink-light:   #6e5a4e;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--void);
  color: var(--text-light);
  overflow-x: hidden;
  cursor: default;
}

/* ── STARFIELD CANVAS ─────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── AURORA LAYER ─────────────────────────────────────── */
#aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-band {
  position: absolute;
  width: 140%;
  height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: auroraFloat 18s ease-in-out infinite;
}
.aurora-band:nth-child(1) {
  background: radial-gradient(ellipse, rgba(100,60,180,0.25) 0%, transparent 70%);
  top: -60px; left: -20%;
  animation-delay: 0s; animation-duration: 20s;
}
.aurora-band:nth-child(2) {
  background: radial-gradient(ellipse, rgba(180,80,120,0.2) 0%, transparent 70%);
  top: 80px; left: 10%;
  animation-delay: -6s; animation-duration: 24s;
}
.aurora-band:nth-child(3) {
  background: radial-gradient(ellipse, rgba(60,100,200,0.2) 0%, transparent 70%);
  top: -40px; left: -10%;
  animation-delay: -12s; animation-duration: 16s;
}
@keyframes auroraFloat {
  0%   { opacity: 0;    transform: translateX(0) scaleY(1) rotate(-2deg); }
  20%  { opacity: 1; }
  50%  { opacity: 0.7;  transform: translateX(5%) scaleY(1.3) rotate(1deg); }
  80%  { opacity: 0.9; }
  100% { opacity: 0;    transform: translateX(-3%) scaleY(0.9) rotate(-1deg); }
}

/* ── ENTRANCE ─────────────────────────────────────────── */
#entrance {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--void);
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1), visibility 1.2s;
}
#entrance.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.entrance-moon {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(242, 212, 190, 0.15) 0%,
    rgba(201, 149, 108, 0.08) 40%,
    transparent 70%);
  border: 1px solid rgba(201, 149, 108, 0.2);
  animation: moonGlow 4s ease-in-out infinite;
}
.entrance-moon::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(201, 149, 108, 0.12);
}
@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(201,149,108,0.1); }
  50%       { box-shadow: 0 0 80px rgba(201,149,108,0.22), 0 0 120px rgba(201,149,108,0.08); }
}

.entrance-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 44px;
  max-width: 460px;
  width: calc(100% - 40px);
}

/* SVG frame overlay */
.entrance-svg-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entrance-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 1s 0.3s ease forwards;
}
.entrance-script {
  font-family: 'Alex Brush', cursive;
  font-size: 3.8rem;
  color: var(--rose-bright);
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(201,149,108,0.4);
  opacity: 0;
  animation: riseIn 1.2s 0.5s ease forwards;
}
.entrance-amp {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--rose-pale);
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}
.entrance-hr {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
  margin: 20px auto;
  animation: expandLine 1s 1s ease forwards;
}
.entrance-to-label {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: none;
  margin-bottom: 6px;
  opacity: 0;
  animation: riseIn 1s 1.1s ease forwards;
}
.entrance-guest-name {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--rose-pale);
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 1s 1.2s ease forwards;
}
.entrance-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 44px;
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-bright);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  opacity: 0;
  animation: riseIn 1s 1.4s ease forwards;
}
.entrance-open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rose-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.entrance-open-btn:hover::before { transform: scaleX(1); }
.entrance-open-btn:hover { color: var(--void); }
.entrance-open-btn span { position: relative; z-index: 1; }
.entrance-open-btn svg { position: relative; z-index: 1; }

/* ── MAIN ─────────────────────────────────────────────── */
#main { display: none; }
#main.on { display: block; }

/* ── GUEST RIBBON ─────────────────────────────────────── */
#guest-ribbon {
  display: none;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 14px 20px;
  position: relative;
  z-index: 10;
}
#guest-ribbon.on { display: block; }
.ribbon-label {
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 4px;
}
.ribbon-name {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--rose-pale);
}

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px;
  z-index: 1;
}

.hero-photo-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2) saturate(0.6) blur(2px);
  transform: scale(1.06);
  transition: transform 12s ease;
}
.hero-photo-blur.in { transform: scale(1.01); }

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(6,7,15,0.7) 100%),
    linear-gradient(to bottom, rgba(6,7,15,0.5) 0%, transparent 30%, transparent 70%, rgba(6,7,15,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-tag {
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.65em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 24px;
  display: block;
  opacity: 0;
  animation: riseIn 1s 0.2s ease forwards;
}

/* Animated name reveal */
.hero-name-wrap {
  margin-bottom: 12px;
  overflow: hidden;
}
.hero-groom,
.hero-bride {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(3.5rem, 11vw, 7rem);
  color: var(--rose-bright);
  line-height: 1.05;
  text-shadow: 0 0 60px rgba(201,149,108,0.35);
  display: block;
  transform: translateY(100%);
  animation: slideUp 1s ease forwards;
}
.hero-groom { animation-delay: 0.5s; }
.hero-bride { animation-delay: 0.7s; }

.hero-amp {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--rose-pale);
  opacity: 0.5;
  display: block;
  margin: 0 0 4px;
  animation: fadeIn 1s 0.9s ease forwards;
  opacity: 0;
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  opacity: 0;
  animation: riseIn 1s 1.1s ease forwards;
}
.hero-date-tick { width: 40px; height: 1px; background: var(--rose-gold); opacity: 0.6; }
.hero-date-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--rose-pale);
}

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: riseIn 1s 1.6s ease forwards;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1px solid rgba(201,149,108,0.4);
  border-radius: 11px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  left: 50%; top: 5px;
  transform: translateX(-50%);
  width: 2px; height: 6px;
  background: var(--rose-gold);
  border-radius: 1px;
  animation: scrollBall 2s ease infinite;
}
@keyframes scrollBall {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
.scroll-text {
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── QUOTE BAND ───────────────────────────────────────── */
#quote-band {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  text-align: center;
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-constellation {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(201,149,108,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(255,248,235,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 70%, rgba(201,149,108,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 80%, rgba(255,248,235,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, rgba(201,149,108,0.3) 0%, transparent 100%);
  pointer-events: none;
}
.qb-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.qb-mark {
  font-family: 'Bodoni Moda', serif;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--rose-gold);
  opacity: 0.35;
  display: block;
  margin-bottom: 16px;
}
.qb-text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.8;
  color: var(--rose-pale);
  font-weight: 400;
}
.qb-source {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-gold);
  opacity: 0.7;
  margin-top: 20px;
}

/* ── LIGHT SECTIONS (couple, countdown, etc.) ─────────── */
.light-section {
  background: var(--cream-bg);
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.light-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
}

.section-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 88px 24px;
}
.sec-head { text-align: center; margin-bottom: 60px; }
.sec-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: block;
  margin-bottom: 14px;
}
.sec-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}
.sec-title em {
  font-style: italic;
  color: var(--rose-deep);
}
.sec-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sec-rule-bar { width: 48px; height: 1px; background: var(--rose-gold); opacity: 0.6; }
.sec-rule-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rose-gold);
}

/* ── COUPLE ───────────────────────────────────────────── */
.couple-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 580px) { .couple-duo { grid-template-columns: 1fr; } }

.person-card {
  position: relative;
}
.person-photo-mask {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--parch);
}
.person-photo-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.6) 0%, transparent 50%);
}
.person-photo-mask img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.person-card:hover .person-photo-mask img { transform: scale(1.05); }

.person-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  z-index: 2;
  background: linear-gradient(to top, rgba(6,7,15,0.75) 0%, transparent 100%);
}
.person-role {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 4px;
}
.person-name {
  font-family: 'Alex Brush', cursive;
  font-size: 2rem;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.person-details {
  padding: 16px 4px 0;
}
.person-fullname {
  font-family: 'Bodoni Moda', serif;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.person-parents {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.6;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
}
.person-parents strong {
  font-weight: 400;
  color: var(--ink-mid);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

.couple-connector {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}
@media (max-width: 580px) { .couple-connector { display: flex; } }
.couple-connector-amp {
  font-family: 'Alex Brush', cursive;
  font-size: 2.5rem;
  color: var(--rose-deep);
}

/* ── DARK SECTION (events) ────────────────────────────── */
.dark-section {
  background: var(--deep);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}
.dark-section .sec-title { color: var(--rose-pale); }
.dark-section .sec-eyebrow { color: var(--rose-gold); }
.dark-section .sec-rule-bar { opacity: 0.5; }

.event-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .event-split { grid-template-columns: 1fr; } }

.ev-card {
  border: 1px solid var(--line);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  background: rgba(255,255,255,0.02);
}
.ev-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,149,108,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.ev-card:hover { border-color: rgba(201,149,108,0.5); transform: translateY(-4px); }
.ev-card:hover::before { opacity: 1; }

/* Big number accent */
.ev-number {
  font-family: 'Bodoni Moda', serif;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(201,149,108,0.06);
  position: absolute;
  top: -10px; right: -8px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.ev-type {
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 16px;
  display: block;
}
.ev-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--rose-bright);
  margin-bottom: 24px;
  line-height: 1.2;
}
.ev-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  align-items: flex-start;
}
.ev-row svg { flex-shrink: 0; margin-top: 2px; color: var(--rose-gold); opacity: 0.8; }
.ev-row strong { color: var(--text-light); font-weight: 400; }

.ev-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  border: none;
  background: none;
  color: var(--rose-gold);
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  position: relative;
}
.ev-map-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--rose-gold);
  transition: width 0.3s ease;
}
.ev-map-btn:hover::after { width: 100%; }

/* ── COUNTDOWN ────────────────────────────────────────── */
#countdown-sec {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(100,60,180,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(180,80,120,0.10) 0%, transparent 60%),
    var(--navy);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
#countdown-sec .sec-title { color: var(--rose-pale); }
#countdown-sec .sec-eyebrow { color: var(--rose-gold); }

.cd-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.cd-cell {
  text-align: center;
  min-width: 88px;
  padding: 28px 20px 22px;
  border: 1px solid var(--line);
  position: relative;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(4px);
}
.cd-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
}
.cd-num {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--rose-bright);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(201,149,108,0.3);
}
.cd-lbl {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cd-colon {
  font-family: 'Bodoni Moda', serif;
  font-size: 2.5rem;
  color: rgba(201,149,108,0.3);
  align-self: center;
  padding-bottom: 24px;
}

/* ── LOVE STORY ───────────────────────────────────────── */
.story-editorial {
  display: grid;
  gap: 48px;
}
.story-chapter {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
}
.story-chapter-num {
  font-family: 'Bodoni Moda', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--rose-gold);
  opacity: 0.2;
  line-height: 1;
  text-align: right;
  padding-top: 4px;
}
.story-chapter-content {}
.story-chapter-heading {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.story-chapter-body {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.9;
  font-weight: 300;
}

/* ── GALLERY ──────────────────────────────────────────── */
#gallery-sec { background: var(--void); z-index: 1; position: relative; border-top: 1px solid var(--line); }
#gallery-sec .sec-title { color: var(--rose-pale); }
#gallery-sec .sec-eyebrow { color: var(--rose-gold); }

.gallery-film {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
@media (max-width: 480px) { .gallery-film { grid-template-columns: repeat(2, 1fr); } }

.gf-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--navy);
}
.gf-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7);
  transition: transform 0.6s cubic-bezier(.4,0,.2,1), filter 0.4s ease;
}
.gf-item:hover img { transform: scale(1.08); filter: saturate(1); }
.gf-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6,7,15,0.35);
  transition: opacity 0.3s;
}
.gf-item:hover::after { opacity: 0; }

/* ── VIDEO ────────────────────────────────────────────── */
#video-sec {
  background: var(--parch);
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(160,104,64,0.2);
}
#video-sec .sec-title { color: var(--ink); }
#video-sec .sec-eyebrow { color: var(--rose-deep); }
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  outline: 1px solid rgba(160,104,64,0.3);
  outline-offset: 6px;
  box-shadow: 0 20px 60px rgba(26,20,16,0.15);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── DRESS CODE ───────────────────────────────────────── */
.dresscode-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px;
  border: 1px solid rgba(160,104,64,0.25);
  max-width: 380px;
  margin: 0 auto;
}
.dc-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(26,20,16,0.12), 0 0 0 6px rgba(160,104,64,0.12), 0 0 0 12px rgba(160,104,64,0.06);
}
.dc-name {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.5rem;
  color: var(--ink);
}
.dc-note {
  font-size: 0.83rem;
  color: var(--ink-light);
  text-align: center;
  line-height: 1.6;
  max-width: 280px;
}

/* ── GIFT ─────────────────────────────────────────────── */
#gift-sec {
  background: var(--deep);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
#gift-sec .sec-title { color: var(--rose-pale); }
#gift-sec .sec-eyebrow { color: var(--rose-gold); }

.gift-note {
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: -24px;
  margin-bottom: 36px;
}
.gift-list { display: grid; gap: 12px; }
.gift-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, background 0.3s;
}
.gift-item:hover { border-color: rgba(201,149,108,0.4); background: rgba(255,255,255,0.04); }
.gift-icon { color: var(--rose-gold); flex-shrink: 0; }
.gift-info {}
.gift-provider {
  font-family: 'Bodoni Moda', serif;
  font-size: 1rem;
  color: var(--rose-bright);
}
.gift-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 3px;
}
.gift-aname {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.copy-btn {
  margin-left: auto;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.copy-btn:hover { background: var(--rose-gold); color: var(--void); }
.copy-btn.copied { background: var(--rose-deep); color: white; border-color: var(--rose-deep); }

/* ── AD BANNER ────────────────────────────────────────── */
.ad-wrap {
  margin-top: 56px;
  border: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.02);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ad-wrap.light {
  background: rgba(26,20,16,0.04);
  border-color: rgba(160,104,64,0.2);
}
.ad-logo {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border: 1px dashed rgba(201,149,108,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  color: var(--rose-gold);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.05em;
  overflow: hidden;
  background: rgba(201,149,108,0.04);
}
.ad-logo.dark-logo { border-color: rgba(160,104,64,0.3); color: var(--rose-deep); background: rgba(160,104,64,0.05); }
.ad-logo img { width:100%; height:100%; object-fit:cover; display:flex; }
.ad-text {}
.ad-pb { font-size: 0.52rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--rose-gold); opacity: 0.75; }
.ad-pb.dk { color: var(--rose-deep); }
.ad-studio { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.1rem; color: var(--rose-bright); }
.ad-studio.dk { color: var(--rose-deep); }
.ad-tag { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.ad-tag.dk { color: var(--ink-light); }
.ad-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ad-a {
  font-size: 0.7rem;
  color: var(--rose-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.ad-a:hover { opacity: 0.75; }
.ad-a.dk { color: var(--rose-deep); }

/* ── MUSIC BUTTON ─────────────────────────────────────── */
#music-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 500;
  display: none;
}
#music-fab.on { display: block; }
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--rose-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--void);
  box-shadow: 0 4px 20px rgba(201,149,108,0.35);
  transition: all 0.3s ease;
}
.fab-btn:hover { background: var(--rose-bright); transform: scale(1.08); }
.fab-btn.spin svg { animation: fabSpin 2s linear infinite; }
@keyframes fabSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 64px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-sky {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--rose-bright);
  text-shadow: 0 0 40px rgba(201,149,108,0.3);
  margin-bottom: 12px;
}
.footer-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.footer-stars { font-size: 0.8rem; color: var(--rose-gold); opacity: 0.4; letter-spacing: 0.4em; margin-bottom: 12px; }
.footer-credit { font-size: 0.58rem; letter-spacing: 0.25em; color: rgba(201,149,108,0.3); text-transform: uppercase; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
#lb {
  position: fixed; inset: 0;
  background: rgba(6,7,15,0.96);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
#lb.open { display: flex; }
#lb img { max-width: 100%; max-height: 88vh; object-fit: contain; border: 1px solid var(--line); }
#lb-x {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: var(--rose-gold); font-size: 2rem;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
#lb-x:hover { color: var(--rose-bright); }

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes expandLine {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveals */
.sr {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sr.up {
  opacity: 1;
  transform: translateY(0);
}
.sr-l {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sr-l.up { opacity: 1; transform: translateX(0); }
.sr-r {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sr-r.up { opacity: 1; transform: translateX(0); }

/* Stagger helper */
.sr[data-d="1"] { transition-delay: 0.1s; }
.sr[data-d="2"] { transition-delay: 0.2s; }
.sr[data-d="3"] { transition-delay: 0.3s; }
.sr[data-d="4"] { transition-delay: 0.4s; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 540px) {
  .cd-colon { display: none; }
  .cd-cell { min-width: 72px; padding: 20px 14px 16px; }
  .ad-wrap { flex-direction: column; text-align: center; }
  .ad-links { justify-content: center; }
  .gift-item { flex-wrap: wrap; }
  .copy-btn { margin-left: 0; }
  .story-chapter { grid-template-columns: 32px 1fr; gap: 12px; }
  .story-chapter-num { font-size: 2rem; }
}
