/* =========================================================
   ROYAL WEDDING INVITATION — Maximalist Gold & Burgundy
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&family=Cinzel+Decorative:wght@400;700&family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --burgundy:       #6b1a2a;
  --burgundy-deep:  #4a0f1c;
  --burgundy-mid:   #8b2535;
  --burgundy-light: #b05060;
  --gold:           #d4a843;
  --gold-bright:    #f0c84a;
  --gold-pale:      #f5e4a8;
  --gold-dark:      #a07828;
  --cream:          #fdf8ef;
  --parchment:      #f5ead4;
  --warm-dark:      #1a0a0e;
  --text-dark:      #2a0d14;
  --text-muted:     #7a4a52;
  --white:          #fffef9;
  --border-gold:    rgba(212, 168, 67, 0.4);
  --shadow-deep:    rgba(74, 15, 28, 0.35);
  --shadow-gold:    rgba(212, 168, 67, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── PARTICLES CANVAS ─────────────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── ENTRANCE OVERLAY ─────────────────────────────────── */
#entrance-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(107,26,42,0.95) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(74,15,28,0.9) 0%, transparent 60%),
    linear-gradient(160deg, #1a0a0e 0%, #3a1020 40%, #1a0a0e 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}
#entrance-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Corner ornaments */
#entrance-overlay::before,
#entrance-overlay::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background:
    radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
#entrance-overlay::before { top: -100px; left: -100px; }
#entrance-overlay::after  { bottom: -100px; right: -100px; }

.entrance-frame {
  border: 1px solid rgba(212,168,67,0.3);
  padding: 52px 44px;
  max-width: 480px;
  width: calc(100% - 48px);
  text-align: center;
  position: relative;
  background: rgba(26,10,14,0.5);
  backdrop-filter: blur(4px);
}

/* Frame corner decorations */
.entrance-frame::before,
.entrance-frame::after,
.entrance-frame .frame-corner-bl,
.entrance-frame .frame-corner-br {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border-color: var(--gold);
  border-style: solid;
}
.entrance-frame::before    { top: -1px;    left: -1px;    border-width: 2px 0 0 2px; }
.entrance-frame::after     { top: -1px;    right: -1px;   border-width: 2px 2px 0 0; }
.entrance-frame .frame-corner-bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.entrance-frame .frame-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.entrance-bismillah {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold-pale);
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 20px;
  animation: fadeDown 1s ease both;
}
.entrance-wedding-of {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  animation: fadeDown 1s 0.15s ease both;
}
.entrance-ornament-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  animation: fadeDown 1s 0.2s ease both;
}
.ornament-line-bar {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.ornament-line-bar.right {
  background: linear-gradient(to left, transparent, var(--gold));
}
.ornament-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.entrance-names {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--gold-bright);
  line-height: 1.3;
  text-shadow: 0 0 30px rgba(240,200,74,0.4);
  margin-bottom: 20px;
  animation: fadeDown 1s 0.3s ease both;
}
.entrance-names .amp {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.7em;
  color: var(--gold);
  font-weight: 400;
}

.entrance-to {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,228,168,0.6);
  display: none;
  margin-bottom: 4px;
  animation: fadeDown 1s 0.4s ease both;
}
.entrance-guest {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-pale);
  margin-bottom: 28px;
  animation: fadeDown 1s 0.45s ease both;
}

.entrance-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  color: var(--burgundy-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 24px var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: fadeDown 1s 0.6s ease both;
}
.entrance-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--shadow-gold);
}

/* ── MAIN CONTENT ─────────────────────────────────────── */
#main-content { display: none; position: relative; z-index: 1; }
#main-content.visible { display: block; animation: fadeIn 0.8s ease; }

/* ── GUEST BANNER ─────────────────────────────────────── */
#guest-banner {
  background: linear-gradient(90deg, var(--burgundy-deep), var(--burgundy), var(--burgundy-deep));
  color: var(--gold-pale);
  text-align: center;
  padding: 18px 24px;
  display: none;
  border-bottom: 2px solid var(--gold);
}
#guest-banner.visible { display: block; }
.guest-banner-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.guest-banner-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-pale);
}

/* ── COVER ────────────────────────────────────────────── */
#cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 80px 24px;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(1.2);
  transform: scale(1.06);
  transition: transform 10s ease;
}
.cover-bg.loaded { transform: scale(1); }
.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(107,26,42,0.7) 0%, transparent 60%),
    radial-gradient(ellipse at center bottom, rgba(74,15,28,0.85) 0%, transparent 70%),
    linear-gradient(180deg, rgba(26,10,14,0.6) 0%, rgba(74,15,28,0.4) 50%, rgba(26,10,14,0.8) 100%);
}

/* Decorative border frame */
.cover-border {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(212,168,67,0.3);
  pointer-events: none;
  z-index: 1;
}
.cover-border::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212,168,67,0.15);
}

/* Corner ornaments for cover */
.cover-corner {
  position: absolute;
  width: 60px; height: 60px;
  z-index: 2;
}
.cover-corner svg { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.7; }
.cover-corner.tl { top: 28px;    left: 28px;    }
.cover-corner.tr { top: 28px;    right: 28px;   transform: scaleX(-1); }
.cover-corner.bl { bottom: 28px; left: 28px;    transform: scaleY(-1); }
.cover-corner.br { bottom: 28px; right: 28px;   transform: scale(-1); }

.cover-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 600px;
}
.cover-bismillah {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold-pale);
  opacity: 0.85;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.cover-wedding-of {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.cover-orn {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.cover-orn-bar { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--gold)); }
.cover-orn-bar.r { background: linear-gradient(to left, transparent, var(--gold)); }
.cover-orn-icon { color: var(--gold); font-size: 1.1rem; }

.cover-names {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.15;
  text-shadow: 0 0 60px rgba(212,168,67,0.5), 0 4px 20px rgba(0,0,0,0.5);
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.cover-names .amp {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--gold-pale);
  margin: 4px 0;
}
.cover-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.cover-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(212,168,67,0.5);
  padding: 0;
  overflow: hidden;
}
.cover-date-box {
  padding: 12px 24px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.7rem;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
}
.cover-date-sep {
  width: 1px;
  height: 40px;
  background: rgba(212,168,67,0.4);
}

.cover-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,228,168,0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── SHARED SECTION STYLES ────────────────────────────── */
.s-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}
.s-header { text-align: center; margin-bottom: 52px; }

.s-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.s-kicker::before, .s-kicker::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--gold-dark);
}

.s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  color: var(--burgundy-deep);
  line-height: 1.15;
  margin-bottom: 20px;
}
.s-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.s-ornament-bar { width: 50px; height: 1.5px; background: var(--gold); }
.s-ornament-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── QUOTE SECTION ────────────────────────────────────── */
#quote-section {
  background:
    linear-gradient(160deg, var(--burgundy-deep) 0%, var(--burgundy) 50%, var(--burgundy-deep) 100%);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#quote-section::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(212,168,67,0.2);
  pointer-events: none;
}
.quote-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 18rem;
  color: rgba(212,168,67,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.quote-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.quote-icon {
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.6;
  display: block;
  margin-bottom: 20px;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-style: italic;
  color: var(--gold-pale);
  line-height: 1.85;
}
.quote-source {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
  opacity: 0.8;
}

/* ── COUPLE SECTION ───────────────────────────────────── */
#couple-section {
  padding: 96px 24px;
  background: var(--cream);
  position: relative;
}
#couple-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
}

.couple-layout {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 0 32px;
  align-items: center;
  margin-top: 0;
}
.couple-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border: 1px solid var(--border-gold);
  position: relative;
  box-shadow: 0 8px 40px var(--shadow-gold), 0 2px 8px rgba(0,0,0,0.06);
}
.couple-card::before, .couple-card::after,
.couple-card .cc-bl, .couple-card .cc-br {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
}
.couple-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.couple-card::after  { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.couple-card .cc-bl  { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.couple-card .cc-br  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.couple-photo-frame {
  width: 160px; height: 160px;
  margin: 0 auto 20px;
  position: relative;
}
.couple-photo-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}
.couple-photo-frame::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.25;
}
.couple-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid var(--gold);
  background: var(--parchment);
}

.couple-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.couple-fullname {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy-deep);
  margin-bottom: 12px;
}
.couple-parent-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
}
.couple-parent-name {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
}
.couple-center-amp {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.amp-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.8rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--shadow-gold);
  line-height: 1;
}
.amp-line { width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }

/* ── EVENTS SECTION ───────────────────────────────────── */
#events-section {
  background:
    linear-gradient(160deg, var(--burgundy-deep) 0%, #3a1020 50%, var(--burgundy-deep) 100%);
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
#events-section .s-title { color: var(--gold-bright); }
#events-section .s-kicker { color: var(--gold); }
#events-section .s-kicker::before,
#events-section .s-kicker::after { background: var(--gold); }

.events-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(212,168,67,0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(212,168,67,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.event-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,168,67,0.3);
  padding: 40px 32px;
  position: relative;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card::before, .event-card::after,
.event-card .ec-bl, .event-card .ec-br {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--gold);
  border-style: solid;
}
.event-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.event-card::after  { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.event-card .ec-bl  { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.event-card .ec-br  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(212,168,67,0.15);
}

.event-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
  background: rgba(212,168,67,0.08);
}
.event-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: var(--burgundy-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 18px;
  margin-bottom: 18px;
}
.event-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 24px;
  text-align: center;
}

.event-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.event-detail-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.event-detail-text {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--gold-pale);
  line-height: 1.6;
}
.event-detail-text small {
  display: block;
  font-size: 0.78rem;
  color: rgba(245,228,168,0.6);
  margin-top: 3px;
}

.event-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.event-maps-btn:hover {
  background: var(--gold);
  color: var(--burgundy-deep);
}

/* ── COUNTDOWN ────────────────────────────────────────── */
#countdown-section {
  padding: 96px 24px;
  background: var(--cream);
  text-align: center;
  position: relative;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 48px;
}
.cd-unit {
  text-align: center;
  padding: 28px 32px;
  background: white;
  border: 1px solid var(--border-gold);
  min-width: 100px;
  position: relative;
  box-shadow: 0 4px 20px var(--shadow-gold);
}
.cd-unit:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  z-index: 1;
}
.cd-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 8px;
}
.cd-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ── LOVE STORY ───────────────────────────────────────── */
#lovestory-section {
  padding: 96px 24px;
  background: var(--parchment);
  position: relative;
}
#lovestory-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
}

.lovestory-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 32px;
}
.lovestory-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(212,168,67,0.1));
}
.story-block {
  position: relative;
  margin-bottom: 40px;
}
.story-block::before {
  content: '';
  position: absolute;
  left: -38px; top: 8px;
  width: 12px; height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.story-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 10px;
  font-style: italic;
}
.story-para {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ── GALLERY ──────────────────────────────────────────── */
#gallery-section {
  padding: 96px 24px;
  background: var(--burgundy-deep);
}
#gallery-section .s-title { color: var(--gold-bright); }
#gallery-section .s-kicker { color: var(--gold); }
#gallery-section .s-kicker::before,
#gallery-section .s-kicker::after { background: var(--gold); }

.gallery-masonry {
  columns: 3;
  column-gap: 12px;
  margin-top: 0;
}
@media (max-width: 640px) { .gallery-masonry { columns: 2; } }
@media (max-width: 400px) { .gallery-masonry { columns: 1; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(212,168,67,0.25);
  cursor: zoom-in;
  position: relative;
}
.gallery-item img {
  display: block;
  width: 100%;
  transition: transform 0.5s ease;
  background: rgba(107,26,42,0.3);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,15,28,0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ── VIDEO ────────────────────────────────────────────── */
#video-section {
  padding: 96px 24px;
  background: var(--cream);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 16px 60px var(--shadow-deep), 0 0 0 8px var(--parchment), 0 0 0 9px var(--border-gold);
  margin-top: 0;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── DRESS CODE ───────────────────────────────────────── */
#dresscode-section {
  padding: 96px 24px;
  background: var(--parchment);
  text-align: center;
  position: relative;
}

.dresscode-showcase {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 56px;
  background: white;
  border: 1px solid var(--border-gold);
  position: relative;
  box-shadow: 0 8px 40px var(--shadow-gold);
  margin-top: 16px;
}
.dresscode-showcase::before, .dresscode-showcase::after,
.dresscode-showcase .ds-bl, .dresscode-showcase .ds-br {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--gold);
  border-style: solid;
}
.dresscode-showcase::before { top:-1px; left:-1px; border-width: 2px 0 0 2px; }
.dresscode-showcase::after  { top:-1px; right:-1px; border-width: 2px 2px 0 0; }
.dresscode-showcase .ds-bl  { bottom:-1px; left:-1px; border-width: 0 0 2px 2px; }
.dresscode-showcase .ds-br  { bottom:-1px; right:-1px; border-width: 0 2px 2px 0; }

.dc-swatch-ring {
  position: relative;
  width: 96px; height: 96px;
}
.dc-swatch-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0.5;
}
.dc-swatch {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.dc-color-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy-deep);
}
.dc-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

/* ── GIFT ─────────────────────────────────────────────── */
#gift-section {
  padding: 96px 24px;
  background: var(--burgundy-deep);
}
#gift-section .s-title { color: var(--gold-bright); }
#gift-section .s-kicker { color: var(--gold); }
#gift-section .s-kicker::before,
#gift-section .s-kicker::after { background: var(--gold); }
#gift-section > .s-inner > .s-header + p {
  color: var(--gold-pale);
  opacity: 0.75;
}

.gift-lead {
  text-align: center;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245,228,168,0.7);
  margin-bottom: 36px;
  margin-top: -16px;
}

.gift-grid {
  display: grid;
  gap: 16px;
}
.gift-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,168,67,0.3);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}
.gift-card:hover { background: rgba(255,255,255,0.08); }

.gift-icon-wrap {
  width: 52px; height: 52px;
  border: 1px solid rgba(212,168,67,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  background: rgba(212,168,67,0.08);
}
.gift-bank-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.gift-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--gold-pale);
  margin-top: 4px;
}
.gift-aname {
  font-size: 0.78rem;
  color: rgba(245,228,168,0.55);
  margin-top: 3px;
  font-family: 'Lora', serif;
}
.copy-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 8px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--gold); color: var(--burgundy-deep); }
.copy-btn.copied { background: var(--gold-dark); color: white; border-color: var(--gold-dark); }

/* ── AD BANNER ────────────────────────────────────────── */
.ad-banner {
  border: 1px solid var(--border-gold);
  padding: 28px 28px;
  margin: 48px auto 0;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  position: relative;
}
/* gold corners */
.ad-banner::before, .ad-banner::after,
.ad-banner .ab-bl, .ad-banner .ab-br {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--gold);
  border-style: solid;
}
.ad-banner::before { top:-1px; left:-1px; border-width: 2px 0 0 2px; }
.ad-banner::after  { top:-1px; right:-1px; border-width: 2px 2px 0 0; }
.ad-banner .ab-bl  { bottom:-1px; left:-1px; border-width: 0 0 2px 2px; }
.ad-banner .ab-br  { bottom:-1px; right:-1px; border-width: 0 2px 2px 0; }

/* Light variant (used on light backgrounds) */
.ad-banner.light {
  background: white;
  border-color: var(--border-gold);
  box-shadow: 0 4px 24px var(--shadow-gold);
}
.ad-banner.light .ad-powered { color: var(--text-muted); }
.ad-banner.light .ad-studio  { color: var(--burgundy); }
.ad-banner.light .ad-tagline { color: var(--text-muted); }
.ad-banner.light .ad-link    { color: var(--burgundy-mid); }
.ad-banner.light .ad-link:hover { color: var(--burgundy-deep); }

.ad-logo-wrap {
  width: 72px; height: 72px;
  border: 2px dashed rgba(212,168,67,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  text-align: center;
  color: var(--gold);
  line-height: 1.4;
  letter-spacing: 0.05em;
  
}
.ad-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: flex;
}

.ad-powered {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.ad-studio {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-style: italic;
}
.ad-tagline {
  font-size: 0.8rem;
  color: rgba(245,228,168,0.7);
  margin-top: 4px;
  font-family: 'Lora', serif;
}
.ad-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.ad-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.ad-link:hover { color: var(--gold-bright); }

/* ── MUSIC PLAYER ─────────────────────────────────────── */
#music-player { position: fixed; bottom: 28px; right: 28px; z-index: 200; display: none; }
#music-player.visible { display: block; }
.music-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy-deep);
  box-shadow: 0 4px 24px var(--shadow-gold), 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.music-btn:hover { transform: scale(1.1); }
.music-btn.playing { animation: musicPulse 2s ease infinite; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background:
    linear-gradient(180deg, var(--burgundy-deep) 0%, var(--warm-dark) 100%);
  padding: 64px 24px 40px;
  text-align: center;
  border-top: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(212,168,67,0.1);
  pointer-events: none;
}
.footer-orn { color: var(--gold); font-size: 1.5rem; opacity: 0.6; margin-bottom: 16px; }
.footer-names {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(240,200,74,0.3);
  margin-bottom: 16px;
}
.footer-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgba(245,228,168,0.6);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-divider-bar { width: 60px; height: 1px; background: rgba(212,168,67,0.3); }
.footer-credit {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(212,168,67,0.4);
  text-transform: uppercase;
}

/* ── LIGHTBOX ─────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26,10,14,0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--gold);
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: var(--gold-bright); }

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}
@keyframes musicPulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,168,67,0.6), 0 4px 24px var(--shadow-gold); }
  70%  { box-shadow: 0 0 0 14px rgba(212,168,67,0), 0 4px 24px var(--shadow-gold); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,67,0), 0 4px 24px var(--shadow-gold); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .couple-layout {
    grid-template-columns: 1fr;
  }
  .couple-center-amp { flex-direction: row; }
  .amp-line { width: 60px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
  .amp-text { font-size: 2rem; }
  .couple-photo-frame { width: 130px; height: 130px; }
  .cd-unit { padding: 20px 16px; min-width: 72px; }
  .ad-banner { flex-direction: column; text-align: center; }
  .ad-contacts { justify-content: center; }
  .gift-card { flex-wrap: wrap; }
  .copy-btn { margin-left: 0; }
  .cover-date-wrap { flex-direction: column; }
  .cover-date-sep { width: 80px; height: 1px; }
  .dresscode-showcase { padding: 36px 28px; }
}
