/* ============================================================
   styles.css — Deepshikha & Capt Akhilesh Wedding Page
   ============================================================

   TABLE OF CONTENTS
   1.  Design Tokens
   2.  Reset & Base
   3.  Scroll-Reveal Utilities
   4.  Section Headers
   5.  Mandala Background
   6.  Card Corners
   7.  Envelope Scene
   8.  Flash & Confetti Canvas
   9.  Main Wrapper, Nav Dots & Music Toggle
   10. Hero Section (parallax reveal)
   11. Save the Date Section
   12. Couple Section
   13. Story Section
   14. Events / Timeline Section
   15. Venue Section (with embedded map)
   16. RSVP Section (with host photo)
   17. Page Footer
   18. Keyframe Animations
   19. Media Queries
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --gold:      #C9A84C;
  --gold-2:    #E8C97A;
  --gold-3:    #F5E6B0;
  --maroon:    #7B1C2E;
  --maroon-2:  #A0243C;
  --cream:     #FDF6EC;
  --cream-2:   #FAF0DC;
  --orange:    #D4700A;
  --saffron:   #E8871A;
  --dark:      #1a0508;
  --dark-deep: #080205;
  --dark-mid:  #2d0a14;
  --dark-env:  #3d0e1c;

  --font-script: 'Great Vibes', cursive;
  --font-serif:  'Playfair Display', serif;
  --font-body:   'Cormorant Garamond', serif;

  --t-base: 0.3s ease;
  --t-slow: 0.7s ease;

  /* Responsive envelope */
  --env-w: min(82vw, 720px);
  --env-h: calc(var(--env-w) * 0.65);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #111;
  color: #3a1a0a;
  overflow-x: hidden;
}

img     { display: block; max-width: 100%; }
address { font-style: normal; }
button  { font-family: inherit; cursor: pointer; }


/* ============================================================
   3. SCROLL-REVEAL UTILITIES
   Bidirectional: elements animate IN when entering viewport
   and animate OUT (reverse) when leaving.
   The transition handles both directions automatically.
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
/* .visible is toggled ON/OFF by JS on every scroll */
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}


/* ============================================================
   4. SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; padding: 60px 20px 20px; }

.section-tag {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--maroon-2);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-script);
  font-size: 50px;
  color: var(--maroon);
  line-height: 1.2;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto;
}
.section-divider span { font-size: 14px; color: var(--gold); }
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 70px;
  height: 1px;
}
.section-divider::before { background: linear-gradient(to right, transparent, var(--gold)); }
.section-divider::after  { background: linear-gradient(to left,  transparent, var(--gold)); }

.section-header--light .section-tag   { color: var(--gold-3); }
.section-header--light .section-title { color: var(--gold-2); }


/* ============================================================
   5. MANDALA BACKGROUND
   ============================================================ */
.mandala-bg { position: relative; }
.mandala-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.3' opacity='0.12'%3E%3Ccircle cx='40' cy='40' r='35'/%3E%3Ccircle cx='40' cy='40' r='25'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3Cline x1='40' y1='5' x2='40' y2='75'/%3E%3Cline x1='5' y1='40' x2='75' y2='40'/%3E%3Cline x1='15' y1='15' x2='65' y2='65'/%3E%3Cline x1='65' y1='15' x2='15' y2='65'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}


/* ============================================================
   6. CARD CORNERS
   ============================================================ */
.card-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold);
  border-style: solid;
}
.card-corner--tl { top: 0;    left:  0; border-width: 2px 0 0 2px; }
.card-corner--tr { top: 0;    right: 0; border-width: 2px 2px 0 0; }
.card-corner--bl { bottom: 0; left:  0; border-width: 0 0 2px 2px; }
.card-corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }


/* ============================================================
   7. ENVELOPE SCENE
   ============================================================ */
#env-scene {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(ellipse at center, var(--dark-env) 0%, var(--dark-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
#env-scene.fade-out {
  animation: env-explode 0.85s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.env-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08), transparent 65%);
  animation: glow-pulse 3s infinite;
}

.env-center {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── "Click to view Invitation" prompt ── */
.env-click-prompt {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-2);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 0 20px rgba(201,168,76,0.6);
  animation: prompt-pulse 2.4s ease-in-out infinite;
}

/* ── Light rays ── */
.env-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.env-rays.is-active {
  opacity: 1;
  animation: spin-rays 22s linear infinite;
}
.env-ray {
  position: absolute;
  width: 2px;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(201,168,76,0.35) 25%,
    rgba(245,230,176,0.18) 60%,
    transparent 100%
  );
  transform-origin: 50% 100%;
  bottom: 0;
  left: -1px;
  animation: ray-pulse 2.5s ease-in-out infinite;
}

.env-wrap {
  position: relative;
  width: var(--env-w);
  perspective: 1400px;
  user-select: none;
}

.env-body {
  width: var(--env-w);
  height: var(--env-h);
  background: linear-gradient(160deg, var(--dark-env) 0%, #5c1a2a 50%, var(--dark-env) 100%);
  border: 1px solid rgba(201,168,76,0.45);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(201,168,76,0.15),
    inset 0 0 60px rgba(0,0,0,0.4);
}
.env-tri { position: absolute; inset: 0; }
.env-tri--left   { background: rgba(10,2,6,0.35); clip-path: polygon(0% 0%, 50% 50%, 0% 100%); z-index: 1; }
.env-tri--right  { background: rgba(10,2,6,0.35); clip-path: polygon(100% 0%, 50% 50%, 100% 100%); z-index: 1; }
.env-tri--bottom { background: rgba(5,1,3,0.45);  clip-path: polygon(0% 100%, 50% 50%, 100% 100%); z-index: 1; }

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--env-w);
  height: calc(var(--env-h) * 0.58);
  background: linear-gradient(170deg, #6a1e30 0%, #5c1a2a 45%, #4a1420 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  z-index: 8;
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 1.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.env-flap::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background: linear-gradient(160deg, rgba(201,168,76,0.22) 0%, transparent 55%);
}
.env-flap.is-open { transform: rotateX(180deg); }

.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 9vw, 86px);
  height: clamp(60px, 9vw, 86px);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c0001a, #6b000e);
  border: 2px solid var(--gold);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--gold-2);
  box-shadow: 0 0 30px rgba(139,0,0,0.7), 0 0 8px rgba(201,168,76,0.3);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.env-wrap:hover .wax-seal {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 44px rgba(201,168,76,0.4), 0 0 10px rgba(201,168,76,0.25);
}

.env-hint {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.45);
  white-space: nowrap;
  animation: blink 2.5s infinite;
}

.env-particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-rise linear infinite;
  pointer-events: none;
}


/* ============================================================
   8. FLASH & CONFETTI CANVAS
   ============================================================ */
#flash {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 997;
  background: white;
  transition: opacity 0.08s;
}
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 996;
  display: none;
}


/* ============================================================
   9. MAIN WRAPPER, NAV DOTS & MUSIC TOGGLE
   ============================================================ */
#main {
  opacity: 0;
  display: none;
  background: var(--cream);
}
#main.is-visible {
  opacity: 1;
  animation: page-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Vertical nav dots */
.ndots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s;
}
.ndots.is-visible { opacity: 1; }

.nd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  border: 1px solid var(--gold);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--t-base);
}
.nd.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* Music toggle button (fixed bottom-right) */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26,5,8,0.8);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-2);
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 101;
  transition: all var(--t-base);
  backdrop-filter: blur(8px);
}
.music-toggle.is-visible { display: flex; }
.music-toggle:hover {
  background: rgba(123,28,46,0.9);
  border-color: var(--gold);
  transform: scale(1.1);
}
.music-toggle.is-paused .music-icon::after { content: ''; }


/* ============================================================
   10. HERO SECTION — parallax reveal
   ============================================================ */
/* Hero is tall (200vh) to give scroll room for the parallax reveal */
#hero {
  height: 200vh;
  position: relative;
}

/* The visible 100vh window — sticks to the top while parent scrolls */
.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Full-bleed background — JS controls blur dynamically */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  max-width: none;
  min-width: 100%;
  /* Start blurred; JS removes blur as user scrolls */
  filter: blur(14px);
  transform: scale(1.08); /* prevent edge artifacts from blur */
  will-change: filter, transform;
}
/* Mobile: image was drifting left — force true centre */
@media (max-width: 640px) {
  .hero-bg {
    object-position: 50% 20%;
    left: 50%;
    transform: translateX(-50%) scale(1.08);
  }
}

/* Dark gradient overlay — lightens slightly as image unblurs (via JS on overlay opacity) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,2,4,0.55) 0%,
    rgba(10,2,4,0.35) 35%,
    rgba(10,2,4,0.45) 65%,
    rgba(10,2,4,0.75) 100%
  );
  will-change: opacity;
}

/* Invitation text on top — JS translates it upward on scroll */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  will-change: transform, opacity;
  /* Frosted pill behind text for extra legibility at any scroll position */
}

/* Subtle text backdrop */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 88vw);
  height: 72%;
  background: radial-gradient(ellipse at center, rgba(10,2,4,0.45) 0%, transparent 75%);
  pointer-events: none;
}

.hero-gold-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2), var(--gold), transparent);
}

.hero-ganesh { display: block; margin: 0 auto 6px; filter: drop-shadow(0 0 8px rgba(201,168,76,0.5)); }

.hero-om      { font-size: 38px; color: var(--gold-2); text-shadow: 0 0 18px rgba(201,168,76,0.8); }
.hero-mantra  {
  font-size: 11px; letter-spacing: 4px; color: var(--gold-3); text-transform: uppercase;
  margin-bottom: 18px; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.hero-host    {
  font-size: 17px; letter-spacing: 3px; color: #F5E6B0; text-transform: uppercase;
  margin-bottom: 4px; font-weight: 700;
  font-family: var(--font-serif);
  text-shadow: 0 2px 16px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.8);
}
.hero-occasion {
  font-size: 12px; letter-spacing: 2px; color: var(--gold-2); text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.hero-names {
  font-family: var(--font-script);
  line-height: 1.05;
  margin: 8px 0;
}
.hero-bride   {
  font-size: 72px; color: #fff; display: block;
  text-shadow:
    0 0 30px rgba(201,168,76,0.9),
    0 2px 20px rgba(0,0,0,0.9),
    0 0 60px rgba(201,168,76,0.4);
}
.hero-amp     {
  font-size: 36px; color: var(--gold-2); display: block; margin: 2px 0;
  text-shadow: 0 0 20px rgba(201,168,76,0.8), 0 2px 12px rgba(0,0,0,0.8);
}
.hero-groom   {
  font-size: 72px; color: #fff; display: block;
  text-shadow:
    0 0 30px rgba(201,168,76,0.9),
    0 2px 20px rgba(0,0,0,0.9),
    0 0 60px rgba(201,168,76,0.4);
}
.hero-tagline {
  font-size: 12px; letter-spacing: 4px; color: var(--gold-3); text-transform: uppercase;
  margin-top: 10px; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.scroll-cue { margin-top: 28px; animation: bounce 2s infinite; }
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
}
.scroll-cue__text {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}


/* ============================================================
   11. SAVE THE DATE SECTION
   ============================================================ */
#save-the-date {
  background: linear-gradient(160deg, var(--dark-deep) 0%, var(--dark-env) 40%, var(--dark-mid) 70%, var(--dark-deep) 100%);
  padding: 80px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#save-the-date::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06), transparent 65%);
  pointer-events: none;
}

.std-inner { position: relative; max-width: 680px; margin: 0 auto; }

.std-supertag { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-3); margin-bottom: 10px; }
.std-heading  { font-family: var(--font-script); font-size: 58px; color: var(--gold-2); line-height: 1.1; text-shadow: 0 0 40px rgba(201,168,76,0.3); }

.std-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 14px auto 36px;
}
.std-rule span { font-size: 14px; color: var(--gold); }
.std-rule::before,
.std-rule::after { content: ''; flex: 1; max-width: 80px; height: 1px; }
.std-rule::before { background: linear-gradient(to right, transparent, var(--gold)); }
.std-rule::after  { background: linear-gradient(to left,  transparent, var(--gold)); }

.std-date-display { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 18px; flex-wrap: wrap; }
.std-date-block   { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.std-day   { font-family: var(--font-serif); font-size: 80px; font-weight: 600; color: var(--gold-2); line-height: 1; text-shadow: 0 0 30px rgba(201,168,76,0.4); }
.std-month { font-family: var(--font-script); font-size: 64px; color: var(--gold-2); line-height: 1; text-shadow: 0 0 30px rgba(201,168,76,0.4); }
.std-year  { font-family: var(--font-serif); font-size: 52px; font-weight: 400; color: rgba(232,201,122,0.8); line-height: 1; }
.std-day-label, .std-month-label, .std-year-label { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(201,168,76,0.5); }
.std-dot { font-size: 18px; color: var(--maroon-2); opacity: 0.7; margin-top: -20px; }

.std-names    { font-family: var(--font-script); font-size: 38px; color: var(--gold-3); margin-top: 10px; }
.std-location { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(201,168,76,0.5); margin-top: 6px; margin-bottom: 44px; }

.countdown { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; }
.countdown-value { font-family: var(--font-serif); font-size: 52px; font-weight: 600; color: var(--gold-2); line-height: 1; text-shadow: 0 0 20px rgba(201,168,76,0.35); letter-spacing: 2px; min-width: 3ch; display: block; text-align: center; }
.countdown-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(201,168,76,0.55); }
.countdown-sep   { font-family: var(--font-serif); font-size: 44px; color: var(--maroon-2); opacity: 0.6; line-height: 1; padding-bottom: 20px; align-self: center; }


/* ============================================================
   12. COUPLE SECTION
   ============================================================ */
#couple { background: var(--cream); padding: 10px 20px 60px; position: relative; }

.couple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 780px; margin: 0 auto; padding: 0 16px; }

.person-card { text-align: center; padding: 34px 26px; border: 1px solid rgba(201,168,76,0.4); background: linear-gradient(135deg, #fff8ee, #fdf2e0); position: relative; }
.person-card::before { content: ''; position: absolute; inset: 7px; border: 1px dashed rgba(201,168,76,0.28); pointer-events: none; }

.person-photo { width: 155px; height: 185px; margin: 0 auto 18px; overflow: hidden; border: 3px solid var(--gold); position: relative; box-shadow: 0 4px 20px rgba(123,28,46,0.2); background: linear-gradient(160deg, var(--cream) 0%, var(--gold-2) 40%, var(--maroon) 100%); display: flex; align-items: center; justify-content: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person-photo img[src=""], .person-photo img:not([src]) { display: none; }

.photo-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-script); font-size: 22px; color: rgba(201,168,76,0.35); pointer-events: none; }

.person-role    { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.person-name    { font-family: var(--font-script); font-size: 38px; color: var(--maroon); line-height: 1.2; margin-bottom: 9px; }
.person-desc    { font-size: 15px; color: #5a3020; font-style: italic; line-height: 1.7; }
.person-parents { font-size: 13px; color: #8a5030; margin-top: 11px; }


/* ============================================================
   13. STORY SECTION
   ============================================================ */
/* No bottom padding — story hands off directly to next section after last card */
#story { background: linear-gradient(180deg, var(--dark), var(--dark-mid)); padding: 0; position: relative; }

.story-intro { text-align: center; font-size: 17px; font-style: italic; color: var(--gold-3); max-width: 480px; margin: 0 auto; padding: 60px 20px 50px; line-height: 1.8; opacity: 0.85; }

.story-scroll-wrap { position: relative; }

.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden; padding: 60px 20px 40px; }

.story-progress-bar  { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(201,168,76,0.2); z-index: 10; }
.story-progress-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.1s linear; }

.story-fixed-header { text-align: center; flex-shrink: 0; }
.story-fixed-tag    { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-3); margin-bottom: 8px; }
.story-fixed-title  { font-family: var(--font-script); font-size: 52px; color: var(--gold-2); line-height: 1.15; }

.story-fixed-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.story-fixed-rule span { font-size: 14px; color: var(--gold); }
.story-fixed-rule::before,
.story-fixed-rule::after { content: ''; flex: 1; max-width: 60px; height: 1px; }
.story-fixed-rule::before { background: linear-gradient(to right, transparent, rgba(201,168,76,0.5)); }
.story-fixed-rule::after  { background: linear-gradient(to left,  transparent, rgba(201,168,76,0.5)); }

.story-pile { position: relative; width: 320px; height: 400px; flex-shrink: 0; }

.story-card { position: absolute; inset: 0; border: 3px solid var(--gold-2); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.7); will-change: transform, opacity; }
.story-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.story-card__caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(10,2,6,0.92) 0%, transparent 100%); padding: 28px 20px 18px; }
.story-card__title { font-family: var(--font-script); font-size: 30px; color: var(--gold-2); margin-bottom: 3px; }
.story-card__sub   { font-size: 11px; color: var(--gold-3); letter-spacing: 2px; text-transform: uppercase; }
.story-card__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; }
.story-card__placeholder span { font-size: 48px; color: rgba(245,230,176,0.3); }
.story-card__placeholder p    { font-family: var(--font-script); font-size: 32px; color: var(--gold-2); }


/* ============================================================
   14. EVENTS / TIMELINE SECTION
   ============================================================ */
#events { background: linear-gradient(180deg, var(--cream-2), #fff8ee); padding: 20px 20px 80px; }

.events-subtitle { font-size: 15px; color: #7a4030; font-style: italic; margin-top: 8px; }

.timeline { max-width: 680px; margin: 0 auto; position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent); transform: translateX(-50%); }

.event-card { display: flex; align-items: center; margin-bottom: 56px; position: relative; }
.event-card:nth-child(even) { flex-direction: row-reverse; }

.event-dot { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--maroon), var(--maroon-2)); border: 2px solid var(--gold); flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; }

.event-content { width: calc(50% - 46px); padding: 26px; background: white; border: 1px solid rgba(201,168,76,0.3); box-shadow: 0 2px 18px rgba(123,28,46,0.06); }
.event-card:nth-child(odd)  .event-content { margin-right: auto; }
.event-card:nth-child(even) .event-content { margin-left: auto; }

/* ── Decorative event icon inside card ── */
.event-art {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.event-art svg {
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.45));
  transition: transform 0.3s ease;
}
.event-content:hover .event-art svg { transform: scale(1.08); }

.event-label    { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.event-title    { font-family: var(--font-script); font-size: 32px; color: var(--maroon); margin-bottom: 6px; }
.event-rule     { width: 34px; height: 2px; background: var(--gold); margin: 6px 0; }
.event-date     { font-size: 16px; font-weight: 600; color: var(--maroon-2); font-family: var(--font-serif); }
.event-time     { font-size: 12px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin: 3px 0 7px; }
.event-location { font-size: 13px; color: #6a3520; line-height: 1.6; }


/* ============================================================
   15. VENUE SECTION (with embedded map)
   ============================================================ */
#venue { background: linear-gradient(135deg, var(--dark), var(--dark-mid)); padding: 60px 20px 80px; text-align: center; }

.venue-card { max-width: 600px; margin: 28px auto; padding: 38px; border: 1px solid rgba(201,168,76,0.4); position: relative; background: rgba(255,255,255,0.04); }

.venue-icon    { display: block; margin: 0 auto 14px; }
.venue-name    { font-size: 21px; font-weight: 600; color: var(--gold-2); font-family: var(--font-serif); margin-bottom: 5px; }
.venue-sub     { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-3); margin-bottom: 10px; }
.venue-address { font-size: 15px; color: var(--gold-3); line-height: 1.8; margin-bottom: 24px; }

/* ── Embedded map ── */
.venue-map-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 20px;
}

/* Clickable overlay that intercepts the click and opens Maps */
.venue-map-link {
  display: block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.venue-map-iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  pointer-events: none; /* Map is decorative; click goes to the anchor */
}

/* "Open in Maps" badge that appears on hover */
.venue-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(10,2,6,0.55) 0%, transparent 50%);
  transition: background var(--t-base);
}
.venue-map-link:hover .venue-map-overlay {
  background: linear-gradient(to top, rgba(10,2,6,0.75) 0%, rgba(10,2,6,0.15) 60%);
}

.venue-map-cta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(10,2,6,0.7);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 6px 14px;
  font-weight: 600;
}

.map-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--dark);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  transition: all var(--t-base);
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }


/* ============================================================
   16. RSVP SECTION (with host photo)
   ============================================================ */
#rsvp { background: var(--cream); padding: 60px 20px 80px; text-align: center; position: relative; }

.rsvp-card { max-width: 460px; margin: 0 auto; padding: 44px 32px; border: 1px solid rgba(201,168,76,0.4); background: linear-gradient(135deg, #fff8ee, #fdf2e0); position: relative; }
.rsvp-card::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(201,168,76,0.25); pointer-events: none; }

/* ── Host photo — wide landscape format to show both people ── */
.rsvp-host-photo {
  width: min(440px, 94%);
  height: auto;
  aspect-ratio: 4 / 3;   /* landscape; natural for two people standing */
  margin: 0 auto 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(123,28,46,0.3), 0 0 0 6px rgba(201,168,76,0.08);
  background: linear-gradient(160deg, var(--cream), var(--gold-2) 50%, var(--maroon));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rsvp-host-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keeps faces in frame */
}
.rsvp-host-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(201,168,76,0.4);
}

.rsvp-message       { font-style: italic; font-size: 17px; color: #5a3020; line-height: 1.8; margin-bottom: 20px; }
.rsvp-divider       { width: 46px; height: 1px; background: var(--gold); margin: 14px auto; }
.rsvp-contact-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.rsvp-name          { font-family: var(--font-script); font-size: 34px; color: var(--maroon); margin-bottom: 7px; }
.rsvp-phones        { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 5px; }
.rsvp-phone         { font-size: 17px; color: var(--maroon-2); font-family: var(--font-serif); font-weight: 600; text-decoration: none; transition: color var(--t-base); }
.rsvp-phone:hover   { color: var(--gold); }
.rsvp-blessing      { font-size: 15px; letter-spacing: 2px; color: var(--gold); margin-top: 24px; opacity: 0.7; }


/* ============================================================
   17. PAGE FOOTER
   ============================================================ */
.page-footer  { text-align: center; margin-top: 46px; }
.footer-names { font-family: var(--font-script); font-size: 26px; color: var(--maroon); }
.footer-sub   { font-size: 10px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-top: 5px; opacity: 0.6; }


/* ============================================================
   18. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}
@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.9; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(7px); }
}
@keyframes particle-rise {
  0%   { transform: translateY(100vh); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(-80px);  opacity: 0; }
}
@keyframes spin-rays {
  from { transform: translate(-50%, -50%) rotate(0deg);   }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes ray-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}
@keyframes env-explode {
  0%   { transform: scale(1);    opacity: 1; filter: brightness(1); }
  25%  { transform: scale(1.05); opacity: 1; filter: brightness(2); }
  100% { transform: scale(1.2);  opacity: 0; filter: brightness(3); }
}
@keyframes page-reveal {
  0%   { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1);    }
}
@keyframes prompt-pulse {
  0%, 100% { opacity: 0.7; transform: translateY(0);    }
  50%       { opacity: 1;   transform: translateY(-4px); }
}


/* ============================================================
   19. MEDIA QUERIES
   ============================================================ */
@media (max-width: 640px) {
  .std-day   { font-size: 58px; }
  .std-month { font-size: 48px; }
  .std-year  { font-size: 38px; }
  .countdown-value { font-size: 38px; }
  .countdown-unit  { padding: 0 10px; }

  .couple-grid { grid-template-columns: 1fr; gap: 20px; }

  .timeline::before { left: 26px; }
  .event-card,
  .event-card:nth-child(even) { flex-direction: row; padding-left: 60px; }
  .event-dot { left: 26px; transform: translateX(-50%); }
  .event-content,
  .event-card:nth-child(even) .event-content { width: 100%; margin: 0; }

  .story-pile        { width: min(280px, 86vw); height: 340px; }
  .story-fixed-title { font-size: 42px; }

  .hero-bride, .hero-groom { font-size: 54px; }

  .venue-map-iframe  { height: 220px; }
}

@media (max-width: 380px) {
  .std-date-display { gap: 16px; }
  .countdown-value  { font-size: 30px; }
  .countdown-sep    { font-size: 26px; }
}
