/* ╔══════════════════════════════════════════════
   ║  WEDDING INVITATION — STYLE.CSS
   ║  Mahadev Sunil & Adithya · 03 Sep 2026
   ╚══════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   1. VARIABLES & RESET
────────────────────────────────────────────── */
:root {
  --ivory:          #FAF6F0;
  --cream:          #FDF3E7;
  --cream-mid:      #F0E6CC;
  --champagne:      #C9A84C;
  --champ-light:    #E8D5A3;
  --champ-glow:     rgba(201,168,76,0.35);
  --blush:          #E8B4B8;
  --blush-deep:     #C47B82;
  --rose:           #A0616A;
  --dark:           #2C1810;
  --dark-mid:       #5C3D30;
  --dark-light:     #8A6555;

  --glass-bg:       rgba(253,243,231,0.82);
  --glass-border:   rgba(201,168,76,0.22);
  --glass-shadow:   rgba(44,24,16,0.12);

  --glass-dark-bg:  rgba(44,24,16,0.5);
  --glass-dark-bdr: rgba(201,168,76,0.18);

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr:        0.4s var(--ease-out);

  /* Mobile-only width */
  --mob: 430px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  background: #120703;
  color: var(--dark);
  overflow-x: hidden;
  /* Desktop surrounds mobile frame in dark */
}

/* ──────────────────────────────────────────────
   2. MOBILE FRAME (everything ≤ 430px, centred)
────────────────────────────────────────────── */
#envelope-screen,
#invitation {
  width: 100%;
  max-width: var(--mob);
  margin-inline: auto;
  position: relative;
}

/* ──────────────────────────────────────────────
   3. UTILITY CLASSES
────────────────────────────────────────────── */
.invitation-hidden {
  display: none !important;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.glass-card-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-dark-bdr);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.sec-eyebrow {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--champagne);
  display: block;
  margin-bottom: 10px;
}

.sec-eyebrow.light { color: var(--champ-light); }

.sec-title {
  font-family: var(--ff-serif);
  font-size: 38px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 14px;
}

.sec-title.light { color: var(--ivory); }

.sec-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 44px;
}

.gold-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  margin: 0 auto;
}
.gold-rule.short { width: 36px; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--champagne), var(--blush-deep));
  color: #fff;
  border-radius: 50px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: var(--tr);
  box-shadow: 0 4px 20px var(--champ-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--champ-glow);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--dark);
  color: var(--champ-light);
  border: 1px solid var(--champagne);
  border-radius: 50px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--tr);
  letter-spacing: 0.3px;
}

.btn-dark:hover,
.btn-dark:focus {
  background: var(--champagne);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--champ-glow);
}

.floral-top, .floral-bottom {
  display: block;
  text-align: center;
  font-size: 26px;
  color: var(--champagne);
  opacity: 0.7;
}
.floral-top  { margin-bottom: 16px; }
.floral-bottom { margin-top: 16px; }

/* ──────────────────────────────────────────────
   4. ENVELOPE SCREEN
────────────────────────────────────────────── */
#envelope-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;

  /* Subtle paper texture via SVG noise */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #FAF6F0 0%, #F5ECD8 50%, #EFE0C3 100%);
}

/* Decorative corner flourishes */
.env-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.4;
}

.env-corner--tl {
  top: 16px; left: 16px;
  border-top: 1px solid var(--champagne);
  border-left: 1px solid var(--champagne);
}
.env-corner--tr {
  top: 16px; right: 16px;
  border-top: 1px solid var(--champagne);
  border-right: 1px solid var(--champagne);
}
.env-corner--bl {
  bottom: 16px; left: 16px;
  border-bottom: 1px solid var(--champagne);
  border-left: 1px solid var(--champagne);
}
.env-corner--br {
  bottom: 16px; right: 16px;
  border-bottom: 1px solid var(--champagne);
  border-right: 1px solid var(--champagne);
}

/* ── Envelope Structure ── */
.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.envelope {
  position: relative;
  width: 290px;
  height: 200px;
  /* 3-D perspective for flap rotation */
  perspective: 1200px;
  filter: drop-shadow(0 24px 48px rgba(44,24,16,0.22));
}

/* Envelope body */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #F7E8C0 0%, #EDD39A 45%, #E2C075 100%);
  border-radius: 4px 4px 4px 4px;
  z-index: 1;
}

/* Decorative inner fold lines (triangles) */
.env-fold-left {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0;
  border-bottom: 100px solid rgba(200,160,60,0.28);
  border-right: 145px solid transparent;
  z-index: 2;
}

.env-fold-right {
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-bottom: 100px solid rgba(180,140,50,0.22);
  border-left: 145px solid transparent;
  z-index: 2;
}

.env-fold-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-bottom: 96px solid rgba(240,210,120,0.35);
  border-left: 145px solid transparent;
  border-right: 145px solid transparent;
  z-index: 2;
}

/* ── Letter card (inside envelope) ── */
.env-letter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 170px;
  background: linear-gradient(175deg, #FFFDF8 0%, #FDF5E4 100%);
  border-radius: 3px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 16px rgba(44,24,16,0.08);
  transform-origin: bottom center;
  will-change: transform;
  overflow: hidden;
}

.letter-inner {
  text-align: center;
  padding: 16px;
  opacity: 0;
}

.letter-ornament {
  display: block;
  color: var(--champagne);
  font-size: 16px;
  margin: 4px 0;
}

.letter-pre {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dark-mid);
  margin: 8px 0;
}

.letter-names {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--dark);
  margin: 8px 0;
}

.letter-date {
  font-family: var(--ff-serif);
  font-size: 13px;
  color: var(--champagne);
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ── Envelope Flap (folds open) ── */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Triangle shape via clip-path */
  height: 110px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(170deg, #D4B870 0%, #C9A84C 60%, #B89440 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 15;
  will-change: transform;
}

/* ── Wax Seal ── */
.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #C0392B 0%, #96000A 60%, #6B0007 100%);
  box-shadow:
    0 6px 18px rgba(139,0,0,0.45),
    inset 0 2px 3px rgba(255,200,200,0.2),
    0 0 0 3px rgba(201,168,76,0.3);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealPulse 2.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.seal-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seal-letter {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 600;
  color: #FAD5A5;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.seal-divider {
  width: 1px;
  height: 18px;
  background: rgba(250,213,165,0.4);
}

@keyframes sealPulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(139,0,0,0.45),
                inset 0 2px 3px rgba(255,200,200,0.2),
                0 0 0 0px rgba(201,168,76,0.4);
  }
  50% {
    box-shadow: 0 6px 18px rgba(139,0,0,0.45),
                inset 0 2px 3px rgba(255,200,200,0.2),
                0 0 0 10px rgba(201,168,76,0);
  }
}

/* ── Click Hint ── */
.hint-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--champagne);
  animation: hintPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.hint-text {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark-mid);
}

@keyframes hintPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

/* ──────────────────────────────────────────────
   5. BGM PLAYER (fixed)
────────────────────────────────────────────── */
.bgm-player {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 900;
}

.bgm-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--champagne), var(--blush-deep));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--champ-glow), 0 2px 8px rgba(0,0,0,0.25);
  color: #fff;
  transition: var(--tr);
}

.bgm-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px var(--champ-glow); }

/* Sound wave bars */
.sound-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 22px;
}

.sound-bars span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #fff;
  animation: barAnim 0.8s ease-in-out infinite alternate;
}

.sound-bars span:nth-child(1) { height: 5px;  animation-delay: 0.0s; }
.sound-bars span:nth-child(2) { height: 13px; animation-delay: 0.1s; }
.sound-bars span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.sound-bars span:nth-child(4) { height: 13px; animation-delay: 0.3s; }
.sound-bars span:nth-child(5) { height: 5px;  animation-delay: 0.4s; }

@keyframes barAnim {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

.sound-bars.paused span {
  animation-play-state: paused;
  transform: scaleY(0.3);
}

.icon-play {
  width: 22px;
  height: 22px;
  display: none;
}

.icon-play.visible { display: block; }
.sound-bars.paused { display: none; }

/* ──────────────────────────────────────────────
   6. HERO SECTION
────────────────────────────────────────────── */
.s-hero {
  position: relative;
  width: 100%;
  max-width: var(--mob);
  margin-inline: auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.75) saturate(0.85);
  transform: scale(1.05);
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,24,16,0.0)  0%,
    rgba(44,24,16,0.0)  35%,
    rgba(44,24,16,0.25) 60%,
    rgba(44,24,16,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 28px 88px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--champ-light);
  margin-bottom: 18px;
  opacity: 0;
  will-change: opacity, transform;
}

.hero-names {
  font-family: var(--ff-serif);
  font-size: 46px;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.08;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hn-groom,
.hn-bride {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

.hn-amp {
  display: block;
  font-family: var(--ff-serif);
  font-size: 30px;
  font-style: italic;
  color: var(--champagne);
  opacity: 0;
  will-change: opacity;
}

.hero-date {
  font-family: var(--ff-serif);
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--champ-light);
  opacity: 0;
  will-change: opacity;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: cueBounce 1.8s ease-in-out infinite;
}

.scroll-chevrons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.scroll-chevrons span {
  display: block;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid rgba(201,168,76,0.6);
  border-right:  2px solid rgba(201,168,76,0.6);
  transform: rotate(45deg);
}

.scroll-chevrons span:nth-child(2) {
  opacity: 0.35;
  margin-top: -8px;
}

@keyframes cueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ──────────────────────────────────────────────
   7. DATE SECTION
────────────────────────────────────────────── */
.s-date {
  background: var(--ivory);
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.s-date::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.date-card {
  padding: 52px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.date-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.12), transparent);
  transform: skewX(-15deg);
  animation: cardShimmer 5s ease-in-out infinite;
}

@keyframes cardShimmer {
  0%   { left: -120%; }
  100% { left: 200%; }
}

.date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px 0;
  flex-wrap: nowrap;
}

.date-chunk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.dc-value {
  font-family: var(--ff-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}

.dc-month {
  font-size: 24px;
  font-weight: 300;
}

.dc-label {
  font-family: var(--ff-sans);
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--champagne);
}

.dc-dot {
  font-family: var(--ff-serif);
  font-size: 28px;
  color: var(--champagne);
  line-height: 1;
  margin-bottom: 18px;
  opacity: 0.6;
}

/* ──────────────────────────────────────────────
   7.5. GROOM & BRIDE PROFILE SECTIONS
   ────────────────────────────────────────────── */
.s-profile {
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.s-groom {
  background: var(--cream);
}

.s-bride {
  background: var(--ivory);
}

.profile-card {
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.profile-img-wrapper {
  position: relative;
  width: 210px;
  height: 270px;
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(44, 24, 16, 0.14);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-img-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--champagne);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0.6;
}

.profile-details {
  width: 100%;
}

.profile-name {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}

.profile-parent {
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--dark-light);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.profile-divider {
  font-size: 14px;
  color: var(--champagne);
  opacity: 0.8;
  margin-bottom: 14px;
}

.profile-address-title {
  font-family: var(--ff-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 6px;
}

.profile-address {
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--dark-mid);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   8. COUNTDOWN SECTION
   ────────────────────────────────────────────── */
.s-countdown {
  background: linear-gradient(180deg, #2C1810 0%, #3A1F12 100%);
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.s-countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,76,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.countdown-inner .gold-rule { margin-bottom: 44px; }

.cd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 340px;
  margin-inline: auto;
}

.cd-tile {
  padding: 26px 12px 22px;
  text-align: center;
}

.cd-num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 52px;
  font-weight: 600;
  color: var(--champagne);
  line-height: 1;
  margin-bottom: 10px;
  transition: transform 0.25s var(--ease-spring);
  will-change: transform;
}

.cd-num.pop {
  transform: scale(1.15);
}

.cd-lbl {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(250,246,240,0.45);
}

/* ──────────────────────────────────────────────
   9. LOVE STORY TIMELINE
────────────────────────────────────────────── */
.s-story {
  background: var(--cream);
  padding: 88px 0;
  overflow: hidden;
}

.timeline {
  padding: 0 20px;
}

/* Each timeline item */
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

/* Vertical connecting line */
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;       /* center of 40px dot */
  top: 44px;        /* below the dot */
  bottom: -28px;
  width: 1px;
  background: linear-gradient(180deg, var(--champagne), rgba(201,168,76,0.15));
}

.tl-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ivory), var(--cream-mid));
  border: 1.5px solid var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(201,168,76,0.2);
}

.tl-card {
  flex: 1;
  padding: 18px 20px;
  margin-top: 2px;
}

.tl-year {
  display: block;
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 6px;
}

.tl-heading {
  font-family: var(--ff-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.tl-text {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--dark-mid);
  line-height: 1.75;
}

/* ──────────────────────────────────────────────
   10. EVENT SCHEDULE
────────────────────────────────────────────── */
.s-schedule {
  background: var(--ivory);
  padding: 88px 24px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sch-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}

.sch-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sch-title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.25;
}

.sch-time {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--champagne);
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.sch-desc {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--dark-mid);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   11. VENUE SECTION
────────────────────────────────────────────── */
.s-venue {
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  padding: 88px 24px;
}

.venue-card {
  padding: 36px 24px;
  text-align: center;
}

.venue-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 16px;
}

.venue-name {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.venue-addr {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--dark-mid);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.venue-map {
  width: 100%;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ──────────────────────────────────────────────
   12. GALLERY SECTION
────────────────────────────────────────────── */
.s-gallery {
  background: var(--dark);
  padding: 88px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gal-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

/* First and last span full width */
.gal-item.gal-wide {
  grid-column: span 2;
}

.gal-item.gal-wide img {
  max-height: 260px;
}

.gal-item:not(.gal-wide) img {
  height: 200px;
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(201,168,76,0.0) 0%,
    rgba(201,168,76,0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gal-overlay span {
  color: #fff;
  font-size: 26px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gal-item:hover img       { transform: scale(1.06); }
.gal-item:hover .gal-overlay { opacity: 1; }

/* ──────────────────────────────────────────────
   13. SAVE THE DATE
────────────────────────────────────────────── */
.s-savedate {
  background: var(--ivory);
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.s-savedate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,180,184,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.save-card {
  padding: 52px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.save-title {
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 22px;
}

.save-names {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--rose);
  margin-bottom: 10px;
}

.save-date-text {
  font-family: var(--ff-serif);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--champagne);
  margin-bottom: 34px;
}

/* ──────────────────────────────────────────────
   14. FOOTER
────────────────────────────────────────────── */
.s-footer {
  background: linear-gradient(180deg, #2C1810 0%, #120703 100%);
  padding: 88px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-ornament {
  font-size: 13px;
  letter-spacing: 10px;
  color: var(--champagne);
  opacity: 0.6;
  margin-bottom: 36px;
}

.footer-names {
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 22px;
  line-height: 1.15;
}

.footer-quote {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--blush);
  line-height: 1.65;
  padding: 0 12px;
  margin-bottom: 32px;
}

.footer-thanks {
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 300;
  color: rgba(250,246,240,0.65);
  line-height: 1.9;
  margin: 28px 0;
}

.footer-wdate {
  font-family: var(--ff-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--champagne);
  margin-bottom: 44px;
}

.footer-credit {
  font-family: var(--ff-sans);
  font-size: 11px;
  color: rgba(250,246,240,0.25);
  letter-spacing: 0.5px;
}

.footer-credit a {
  color: var(--champagne);
  opacity: 0.6;
  text-decoration: none;
}

/* ──────────────────────────────────────────────
   15. DESKTOP — show mobile view centred
────────────────────────────────────────────── */
@media (min-width: 431px) {
  #envelope-screen {
    max-width: var(--mob);
    min-height: 100vh;
    /* visible only in 430px column */
    box-shadow: 0 0 100px rgba(0,0,0,0.9);
  }

  #invitation {
    box-shadow: 0 0 100px rgba(0,0,0,0.9);
  }

  .bgm-player {
    /* keep player inside the 430px frame */
    right: calc(50% - 215px + 18px);
  }

  .s-hero {
    /* hero is inside #invitation which is max 430px */
    max-width: var(--mob);
  }
}
