/* ═══════════════════════════════════════════════════════════
   TOKENS & RESET
════════════════════════════════════════════════════════════ */
:root {
  --gold:       #C9A96E;
  --gold-light: #E2C899;
  --gold-dark:  #A07840;
  --pink:       #F4C2C2;
  --pink-light: #FAE0E0;
  --pink-dark:  #D9999A;
  --ivory:      #FAF5EE;
  --ivory-2:    #F2EBE0;
  --blush:      #E8D5B7;
  --brown-dark: #2C1F12;
  --brown-mid:  #4A3826;
  --text-dark:  #3B2A1A;
  --text-mid:   #6B5040;
  --text-light: #9A8070;
  --white:      #FFFFFF;

  --ff-script:  'Great Vibes', cursive;
  --ff-serif:   'Cormorant Garamond', Georgia, serif;
  --ff-sans:    'Jost', 'Helvetica Neue', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.6s var(--ease-out-expo);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   SITE WRAPPER
═══════════════════════════════════════════════════════════ */
#siteWrapper {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#siteWrapper.visible {
  display: block;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════════════════════════ */
.intro-reveal-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.intro-reveal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: sepia(15%) contrast(1.05) brightness(0.65) saturate(0.85);
  transform: scale(1.04);
  transition: transform 0.8s ease;
}

.intro-reveal-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13, 0, 4, 0.25) 0%, rgba(13, 0, 4, 0.72) 100%);
  pointer-events: none;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0d0004;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

#intro-overlay.fade-out {
  animation: introFadeOut 1.2s ease forwards;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(160deg, #0d0805 0%, #1f130a 40%, #3a2415 100%);
  z-index: 2;
  display: flex;
  align-items: center;
}

.intro-curtain.left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  animation: curtainLeft 1.4s cubic-bezier(0.77, 0, 0.175, 1) 3.2s forwards;
}

.intro-curtain.right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  animation: curtainRight 1.4s cubic-bezier(0.77, 0, 0.175, 1) 3.2s forwards;
}

.intro-curtain::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

.intro-curtain::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3) 30%, rgba(212, 175, 55, 0.3) 70%, transparent);
}

.intro-curtain.left::after { right: 40px; }
.intro-curtain.right::after { left: 40px; }

.intro-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.intro-ring {
  width: 200px;
  height: 200px;
  position: relative;
  margin-bottom: 32px;
}

.intro-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-ring-outer {
  animation: introRingSpin 12s linear infinite;
  transform-origin: center;
}

.intro-ring-inner {
  animation: introRingSpin 8s linear infinite reverse;
  transform-origin: center;
}

.intro-photo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 0 40px rgba(212, 175, 55, 0.2), 0 0 80px rgba(212, 175, 55, 0.08);
  animation: introMonogram 1.6s ease both 0.5s;
}

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

.intro-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(13px, 2vw, 17px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(212, 175, 55, 0.8);
  animation: introFadeSlide 1.4s ease both 1.2s;
  margin-bottom: 10px;
}

.intro-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  animation: introFadeSlide 1.4s ease both 1.4s;
  text-shadow: 0 2px 40px rgba(212, 175, 55, 0.28), 0 0 80px rgba(212, 175, 55, 0.1);
}

.intro-and {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(38px, 6vw, 68px);
  color: #D4AF37;
  margin: -4px 0;
  display: block;
  animation: introFadeSlide 1.4s ease both 1.6s;
  opacity: 0.9;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.4);
}

.intro-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px auto;
  width: min(340px, 80%);
  animation: introFadeSlide 1.4s ease both 1.8s;
}

.intro-rule::before,
.intro-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.intro-rule span {
  color: #D4AF37;
  font-size: 9px;
  letter-spacing: 5px;
}

.intro-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(9px, 1.4vw, 12px);
  letter-spacing: 0.32em;
  color: rgba(212, 175, 55, 0.75);
  text-transform: uppercase;
  animation: introFadeSlide 1.4s ease both 2.0s;
}

.intro-hint {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.4em;
  color: rgba(212, 175, 55, 0.38);
  text-transform: uppercase;
  margin-top: 16px;
  animation: introFadeSlide 1.4s ease both 2.6s, introPulse 2.5s ease-in-out 3.5s infinite;
}

.intro-open-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 36px;
  background: transparent;
  color: #D4AF37;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: introFadeSlide 1.4s ease both 2.8s;
  transition: all 0.3s;
  z-index: 10;
}

.intro-open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #D4AF37;
  transform: translateX(-101%);
  transition: transform 0.35s;
  z-index: 0;
}

.intro-open-btn:hover::before { transform: translateX(0); }
.intro-open-btn:hover { color: #800020; }

.intro-open-btn span {
  position: relative;
  z-index: 1;
}

.intro-hline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.35) 30%, rgba(212, 175, 55, 0.35) 70%, transparent 100%);
  animation: introFadeSlide 1.8s ease both 1.0s;
}

.intro-hline.top    { top: 52px; }
.intro-hline.bottom { bottom: 52px; }

@media (max-width: 600px) {
  .intro-ring { width: 140px; height: 140px; }
  .intro-photo-wrap { width: 76px; height: 76px; }
  .intro-hline.top    { top: 32px; }
  .intro-hline.bottom { bottom: 32px; }
}

@keyframes introFadeOut {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.08); pointer-events: none; }
}

@keyframes curtainLeft  { to { transform: translateX(-100%); } }
@keyframes curtainRight { to { transform: translateX(100%); } }

@keyframes introRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes introMonogram {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); filter: blur(12px); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1);   filter: blur(0); }
}

@keyframes introFadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes introPulse {
  0%, 100% { opacity: 0.38; }
  50%       { opacity: 0.7; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════
   MUSIC PLAYER
════════════════════════════════════════════════════════════ */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(28, 18, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 50px;
  padding: 0.6rem 1.1rem 0.6rem 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s, transform 0.6s var(--ease-out-expo), box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(201,169,110,0);
  transform: translateY(8px);
}

.music-player.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.music-player:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.45), 0 0 0 3px rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.55);
}

/* Icon circle button */
.music-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--gold-light);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  padding: 0;
}

.music-btn:hover {
  background: rgba(201,169,110,0.28);
  border-color: var(--gold);
}

.music-icon { flex-shrink: 0; }

/* Track info column */
.music-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.music-label {
  font-family: var(--ff-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.6);
  line-height: 1;
}

.music-track {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}

.music-bars span {
  display: block;
  width: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transform-origin: bottom;
  animation: bar var(--s, 0.8s) ease-in-out infinite alternate;
}

.music-bars span:nth-child(1) { --s: 0.7s; height: 6px; }
.music-bars span:nth-child(2) { --s: 0.5s; height: 13px; animation-delay: 0.1s; }
.music-bars span:nth-child(3) { --s: 0.9s; height: 9px;  animation-delay: 0.2s; }
.music-bars span:nth-child(4) { --s: 0.6s; height: 15px; animation-delay: 0.05s; }
.music-bars span:nth-child(5) { --s: 0.8s; height: 6px;  animation-delay: 0.15s; }

@keyframes bar {
  from { transform: scaleY(0.25); opacity: 0.5; }
  to   { transform: scaleY(1);    opacity: 1; }
}

.music-player.paused .music-bars span { animation-play-state: paused; }
.music-player.paused .music-label { color: rgba(201,169,110,0.4); }

@media (max-width: 480px) {
  .music-player { bottom: 1rem; right: 1rem; padding: 0.5rem 0.9rem 0.5rem 0.7rem; }
  .music-track  { max-width: 90px; font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(250, 245, 238, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 2.5rem;
  box-shadow: 0 1px 20px rgba(44, 31, 18, 0.08);
}

.nav-monogram {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,169,110,0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-monogram:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.nav-monogram-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Shown only if photo fails to load */
.nav-monogram-fallback {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.nav-monogram-photo + .nav-monogram-fallback {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}

.nav.scrolled .nav-links a { color: var(--text-mid); }

.nav-links a:hover { color: var(--gold); }
.nav.scrolled .nav-links a:hover { color: var(--gold-dark); }

.nav-rsvp {
  border: 1px solid currentColor;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s;
}

.nav.scrolled .nav-hamburger span { background: var(--text-dark); }

.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 790;
  background: rgba(44, 31, 18, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 6rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.nav-mobile-menu.open { transform: translateY(0); }

.nav-mobile-menu a {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 0.05em;
}

.nav-mobile-menu a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 31, 18, 0.3) 0%,
    rgba(44, 31, 18, 0.2) 40%,
    rgba(44, 31, 18, 0.65) 100%
  );
  z-index: 2;
}

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

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
}

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-weight: 200;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-hashtag {
  font-family: var(--ff-sans);
  font-weight: 200;
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-script {
  font-family: var(--ff-script);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(44, 31, 18, 0.4);
  opacity: 0;
  animation: fadeUp 1.2s 0.7s forwards;
  margin-bottom: 1.2rem;
}

.hero-script span {
  color: var(--gold-light);
  font-style: normal;
}

.hero-date-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-date {
  font-family: var(--ff-sans);
  font-weight: 200;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-venue {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.4s forwards;
  transition: background 0.35s, color 0.35s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

.hero-slide-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slide-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  border-color: var(--gold);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-hint span {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   PHOTOSTRIP
════════════════════════════════════════════════════════════ */
.photostrip-section {
  overflow: hidden;
  padding: 2rem 0;
  background: var(--ivory-2);
  border-top: 1px solid var(--blush);
  border-bottom: 1px solid var(--blush);
}

.photostrip-track {
  display: flex;
  gap: 1rem;
  animation: scrollStrip 40s linear infinite;
  width: max-content;
}

.photostrip-track:hover { animation-play-state: paused; }

@keyframes scrollStrip {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip-item {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(44, 31, 18, 0.12);
  width: 200px;
  height: 280px;
  background-size: cover;
  background-position: center;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.strip-item:hover img { transform: scale(1.05); }

.strip-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44, 31, 18, 0.6));
  padding: 1rem 0.75rem 0.6rem;
  font-family: var(--ff-script);
  font-size: 1rem;
  color: var(--white);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTION COMMON
════════════════════════════════════════════════════════════ */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 6vw, 4rem);
}

.section-eyebrow {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}

.section-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin: 1.5rem auto 3rem;
}

.section-divider-ornament span {
  display: block;
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   DETAILS / VENUES
════════════════════════════════════════════════════════════ */
.details-section { background: var(--ivory); }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.venue-card {
  border: 1px solid var(--blush);
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(44, 31, 18, 0.1);
}

.venue-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blush);
}

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

.venue-body {
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.venue-label {
  font-family: var(--ff-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.venue-name {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.venue-sub {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 200;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}

.venue-time {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-light);
}

.venue-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 2px;
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
}

.venue-map-btn:hover {
  background: var(--gold);
  color: var(--brown-dark);
  border-color: var(--gold);
}

@media (max-width: 600px) {
  .venue-grid { grid-template-columns: 1fr; }
}

/* Countdown — standalone section between photostrip and details */
.countdown-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--ivory-2);
  border-top: 1px solid var(--blush);
  border-bottom: 1px solid var(--blush);
  width: 100%;
  max-width: 100%;
}

.countdown-label {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-unit span {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--gold-dark);
  line-height: 1;
}

.countdown-unit small {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-family: var(--ff-serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  padding-bottom: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE
════════════════════════════════════════════════════════════ */
.timeline-section {
  background: var(--ivory-2);
}

.timeline {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: translateX(-50%);
  opacity: 0.4;
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.tl-item:nth-child(odd) .tl-time { text-align: right; order: 0; }
.tl-item:nth-child(odd) .tl-dot  { order: 1; }
.tl-item:nth-child(odd) .tl-event { order: 2; text-align: left; }

.tl-item:nth-child(even) .tl-event { text-align: right; order: 0; }
.tl-item:nth-child(even) .tl-dot   { order: 1; }
.tl-item:nth-child(even) .tl-time  { order: 2; text-align: left; }

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ivory-2);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.25);
  flex-shrink: 0;
}

.tl-time {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.tl-event {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* ═══════════════════════════════════════════════════════════
   ENTOURAGE
════════════════════════════════════════════════════════════ */
.entourage-section { background: var(--ivory); }

/* Each row is its own flex/grid container */
.ent-row {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  display: grid;
  gap: 1.5rem;
}

/* 3-col row: Parents | Sponsors | Parents */
.ent-row--three {
  grid-template-columns: 1fr 1.4fr 1fr;
}

/* 2-col row: symmetric pair */
.ent-row--two {
  grid-template-columns: 1fr 1fr;
  max-width: 680px;
}

/* Full-width row */
.ent-row--full {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.ent-group {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--blush);
}

/* Sponsors gets a slightly tinted card so it reads as "featured" */
.ent-group--sponsors {
  background: rgba(232, 213, 183, 0.18);
  border-top-color: var(--gold-light);
}

.ent-role {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.ent-group ul li {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.9;
}

.ent-group ul li em {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* Ceremonial section */
.ent-ceremonial {
  border-top: 1px solid var(--blush);
}

.ent-ceremonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.ent-ceremonial-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ent-full {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
  border-top: 1px solid var(--blush);
  margin-top: 0.5rem;
}

.ent-ceremony-role {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.15rem;
}

.ent-ceremonial-grid span:not(.ent-ceremony-role) {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Mobile */
@media (max-width: 768px) {
  .ent-row--three,
  .ent-row--two {
    grid-template-columns: 1fr;
  }

  .ent-ceremonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   DRESS CODE
════════════════════════════════════════════════════════════ */
.dresscode-section { background: var(--ivory-2); }

.dresscode-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.dresscode-type {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.dresscode-note {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.dresscode-note.strict {
  color: var(--pink-dark);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.palette-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 0.75rem;
}

.palette-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(44,31,18,0.12);
  transition: transform 0.3s;
}

.palette-swatch:hover { transform: scale(1.15); }

.palette-labels {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.palette-labels span {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  width: 56px;
  text-align: center;
}

/* Dress Inspiration Grid */
.dresscode-inspo-label {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3rem 0 1.5rem;
}

.dresscode-inspo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 860px;
  margin: 0 auto;
}

.dresscode-inspo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.dresscode-inspo-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ivory-2);
  border: 1px solid var(--blush);
}

.dresscode-inspo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Placeholder overlay — shows when image is missing/broken */
.dresscode-inspo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--ivory-2);
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
}

/* Show overlay if img fails to load */
.dresscode-inspo-photo img:not([src]),
.dresscode-inspo-photo img[src=""],
.dresscode-inspo-photo img.broken { opacity: 0; }
.dresscode-inspo-photo img:not([src]) ~ .dresscode-inspo-overlay,
.dresscode-inspo-photo img[src=""] ~ .dresscode-inspo-overlay,
.dresscode-inspo-photo img.broken ~ .dresscode-inspo-overlay { opacity: 1; }

.dresscode-inspo-overlay svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.6;
}

.dresscode-inspo-overlay span {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.dresscode-inspo-photo:hover .dresscode-inspo-overlay { opacity: 1; }

.dresscode-inspo-name {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
}

@media (max-width: 640px) {
  .dresscode-inspo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   GIFTS
════════════════════════════════════════════════════════════ */
.gifts-section {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--blush) 100%);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4rem);
}

.gifts-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.gifts-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 2px;
}

.gifts-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
}

.gifts-icon svg { width: 100%; height: 100%; }

.gifts-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.gifts-card p {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   HASHTAG SECTION
════════════════════════════════════════════════════════════ */
.hashtag-section {
  background: linear-gradient(160deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hashtag-section::before {
  content: '#';
  position: absolute;
  font-family: var(--ff-serif);
  font-size: 30vw;
  font-weight: 300;
  color: rgba(201,169,110,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.hashtag-section .section-eyebrow { color: var(--gold); }
.hashtag-section .section-title   { color: var(--ivory); }
.hashtag-section .section-divider-ornament { color: var(--gold); }

.hashtag-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hashtag-desc {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin: 1.5rem auto 2.5rem;
  max-width: 480px;
}

.hashtag-tag-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.hashtag-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--gold-light);
  border: 1px solid rgba(201,169,110,0.35);
  padding: 1rem 2.2rem;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  backdrop-filter: blur(4px);
  background: rgba(201,169,110,0.05);
  flex-wrap: wrap;
  justify-content: center;
}

.hashtag-tag:hover {
  background: rgba(201,169,110,0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.hashtag-symbol {
  color: var(--gold);
  font-style: italic;
}

.hashtag-copy-hint {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--ff-sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.5);
  margin-top: 0.5rem;
}

.hashtag-copied {
  display: none;
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gold);
  white-space: nowrap;
}

.hashtag-copied.show { display: block; animation: fadeUp 0.4s forwards; }

.hashtag-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hashtag-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
  cursor: default;
}

.hashtag-platform:hover { color: var(--gold); }

.hashtag-platform svg {
  width: 28px;
  height: 28px;
}

.hashtag-platform span {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   RSVP
════════════════════════════════════════════════════════════ */
.rsvp-section {
  background: var(--brown-dark);
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(201,169,110,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(244,194,194,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.rsvp-deadline {
  text-align: center;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
}

.rsvp-deadline strong {
  color: var(--gold-light);
  font-weight: 400;
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--ivory);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0;
  text-transform: none;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.rsvp-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 3.5rem;
  background: var(--gold);
  color: var(--brown-dark);
  border: none;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.35s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.rsvp-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.25);
}

.rsvp-btn:active { transform: translateY(0); }

.rsvp-success {
  display: none;
  text-align: center;
  color: var(--ivory);
  padding: 3rem;
}

.rsvp-success.show { display: block; }

.rsvp-success-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.rsvp-success h3 {
  font-family: var(--ff-script);
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.rsvp-success p {
  font-family: var(--ff-serif);
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════════
   LANDSCAPE PHOTO DIVIDERS
════════════════════════════════════════════════════════════ */
.landscape-divider {
  width: 100%;
  line-height: 0; /* removes inline-block gap under img */
}

.landscape-divider img {
  width: 100%;
  height: auto;       /* never crops — shrinks to fit on mobile */
  display: block;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  background-image: url('footerpic.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 5, 2, 0.62) 0%,
    rgba(13, 5, 2, 0.72) 100%
  );
  pointer-events: none;
}

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

.footer-script {
  font-family: var(--ff-script);
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.footer-date {
  font-family: var(--ff-sans);
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}

.footer-hashtag {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.5rem;
}

.footer-credit {
  font-family: var(--ff-sans);
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   INTRO — ENHANCED: light rays, petals, shimmer
════════════════════════════════════════════════════════════ */

/* Ambient light rays behind the curtains */
.intro-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.intro-rays span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 70%;
  background: linear-gradient(to top, transparent, rgba(212,175,55,0.06), transparent);
  transform-origin: bottom center;
  animation: rayPulse 4s ease-in-out infinite alternate;
}

.intro-rays span:nth-child(1) { transform: rotate(-35deg) translateX(-200px); animation-delay: 0s;   animation-duration: 4.2s; }
.intro-rays span:nth-child(2) { transform: rotate(-22deg) translateX(-100px); animation-delay: 0.4s; animation-duration: 3.8s; }
.intro-rays span:nth-child(3) { transform: rotate(-10deg) translateX(-40px);  animation-delay: 0.8s; animation-duration: 4.5s; width: 3px; background: linear-gradient(to top, transparent, rgba(212,175,55,0.09), transparent); }
.intro-rays span:nth-child(4) { transform: rotate(10deg)  translateX(40px);   animation-delay: 1.2s; animation-duration: 3.6s; width: 3px; background: linear-gradient(to top, transparent, rgba(212,175,55,0.09), transparent); }
.intro-rays span:nth-child(5) { transform: rotate(22deg)  translateX(100px);  animation-delay: 0.6s; animation-duration: 4.1s; }
.intro-rays span:nth-child(6) { transform: rotate(35deg)  translateX(200px);  animation-delay: 0.2s; animation-duration: 3.9s; }

@keyframes rayPulse {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* Falling petals canvas */
#intro-petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Gold shimmer line that sweeps across the intro names */
.intro-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.intro-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(212,175,55,0.08) 50%, transparent 60%);
  animation: shimmerSweep 5s ease-in-out 2s infinite;
}

@keyframes shimmerSweep {
  0%   { left: -100%; }
  100% { left: 150%; }
}

/* Upgraded intro ring — scale-in on load */
.intro-ring {
  animation: ringReveal 1.2s var(--ease-out-expo) 0.2s both;
}

@keyframes ringReveal {
  from { opacity: 0; transform: scale(0.8) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Floating ring glow */
.intro-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Names letter-by-letter shimmer */
.intro-names {
  background: linear-gradient(135deg, #fff 40%, #D4AF37 55%, #fff 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: introFadeSlide 1.4s ease both 1.4s, nameShimmer 4s linear 3s infinite;
}

@keyframes nameShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Pulsing open-btn border */
.intro-open-btn {
  animation: introFadeSlide 1.4s ease both 2.8s, btnGlow 2.5s ease-in-out 4s infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
  50%       { box-shadow: 0 0 18px 4px rgba(212,175,55,0.22); }
}

/* Curtain edge glow on open */
.intro-curtain.left  { box-shadow: inset -30px 0 60px rgba(212,175,55,0.04); }
.intro-curtain.right { box-shadow: inset  30px 0 60px rgba(212,175,55,0.04); }

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS — stagger system
════════════════════════════════════════════════════════════ */

/* Base hidden state */
.will-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

/* Slide from left */
.will-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

/* Slide from right */
.will-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

/* Scale in */
.will-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

/* Visible state — same class for all variants */
.will-reveal.revealed,
.will-reveal-left.revealed,
.will-reveal-right.revealed,
.will-reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delays applied via nth-child or data-delay */
.stagger-1  { transition-delay: 0.05s !important; }
.stagger-2  { transition-delay: 0.12s !important; }
.stagger-3  { transition-delay: 0.19s !important; }
.stagger-4  { transition-delay: 0.26s !important; }
.stagger-5  { transition-delay: 0.33s !important; }
.stagger-6  { transition-delay: 0.40s !important; }
.stagger-7  { transition-delay: 0.47s !important; }
.stagger-8  { transition-delay: 0.54s !important; }
.stagger-9  { transition-delay: 0.61s !important; }

/* Section header trio — eyebrow → title → ornament fade-up */
.section-eyebrow,
.section-title,
.section-divider-ornament {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.section-eyebrow.revealed    { opacity: 1; transform: none; }
.section-title.revealed      { opacity: 1; transform: none; transition-delay: 0.1s; }
.section-divider-ornament.revealed { opacity: 1; transform: none; transition-delay: 0.2s; }

/* Countdown numbers count-up feel */
.countdown-unit {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.countdown-unit.revealed { opacity: 1; transform: none; }

/* Timeline items alternate left/right */
.tl-item:nth-child(odd)  { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.tl-item:nth-child(even) { opacity: 0; transform: translateX(30px);  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.tl-item.revealed        { opacity: 1; transform: none; }

/* Venue cards scale-in */
.venue-card {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), box-shadow 0.35s ease;
}

.venue-card.revealed { opacity: 1; transform: none; }

/* Gifts cards */
.gifts-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.gifts-card.revealed { opacity: 1; transform: none; }

/* Entourage groups */
.ent-group {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.ent-group.revealed { opacity: 1; transform: none; }

/* Palette swatches pop */
.palette-swatch {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.palette-swatch.revealed { opacity: 1; transform: scale(1); }

/* Dress inspo cards */
.dresscode-inspo-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.dresscode-inspo-card.revealed { opacity: 1; transform: none; }

/* Hashtag tag */
.hashtag-tag-wrap {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.hashtag-tag-wrap.revealed { opacity: 1; transform: none; }

/* Social platforms */
.hashtag-platform {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.hashtag-platform.revealed { opacity: 1; transform: none; }

/* RSVP button */
.rsvp-btn-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  text-align: center;
  width: 100%;
}

.rsvp-btn-wrap.revealed { opacity: 1; transform: none; }

/* Landscape dividers parallax feel */
.landscape-divider {
  overflow: hidden;
}

.landscape-divider img {
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Countdown section fade */
.countdown-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.countdown-wrap.revealed { opacity: 1; transform: none; }

/* Photo strip shimmer on enter */
.photostrip-section {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.photostrip-section.revealed { opacity: 1; }


@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; transform: none; }

  .tl-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .tl-item:nth-child(odd) .tl-time,
  .tl-item:nth-child(even) .tl-time { text-align: left; order: 2; color: var(--text-light); font-size: 0.65rem; }

  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot  { order: 0; }

  .tl-item:nth-child(odd) .tl-event,
  .tl-item:nth-child(even) .tl-event { order: 1; text-align: left; grid-column: 2; }

  .tl-item:nth-child(odd) .tl-time,
  .tl-item:nth-child(even) .tl-time { grid-column: 2; grid-row: 2; }

  .tl-item { grid-template-rows: auto auto; }

  .tl-dot { grid-row: 1 / 3; align-self: start; margin-top: 0.2rem; margin-left: 14px; }

  .intro-names { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 480px) {
  .countdown { gap: 0.5rem; }
  .countdown-unit { min-width: 60px; }
  .countdown-sep { font-size: 1.5rem; padding-bottom: 1rem; }

  .strip-item { width: 140px; height: 196px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}