:root {
  --blush: #f2b8b0;
  --rose: #e8877a;
  --petal: #f9e8e4;
  --beige: #f5ede8;
  --cream: #fdf8f5;
  --bark: #8b4a42;
  --bark-light: #b06b5e;
  --warm-white: #fffaf8;
  --text: #5a3830;
  --text-light: #9a6b62;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── INTRO ─── */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background-color: var(--petal);
  background-image: url('intro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
#intro::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 20% 15%, rgba(242,184,176,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 85%, rgba(232,135,122,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 60% 30%, rgba(245,237,232,0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
#intro::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(249, 232, 228, 0.55);
  pointer-events: none;
  z-index: 0;
}
#intro > * { position: relative; z-index: 1; }
#intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 300; font-style: italic;
  color: var(--bark); letter-spacing: 0.02em;
  opacity: 0; transform: translateY(28px);
  animation: rise 1.4s cubic-bezier(.16,1,.3,1) 0.4s forwards;
}
.intro-date {
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--bark-light); margin-top: 1rem;
  opacity: 0; transform: translateY(12px);
  animation: rise 1.2s ease 1.2s forwards;
}
.intro-rule {
  width: 0; height: 1px; background: var(--blush);
  animation: widen 1s ease 1.8s forwards;
  margin: 1.2rem 0;
}
.intro-sub {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--bark-light); opacity: 0;
  animation: fadein 1s ease 2.2s forwards;
  letter-spacing: 0.04em; text-align: center; padding: 0 2rem;
}
.intro-btn {
  margin-top: 2.5rem;
  padding: 0.75rem 2.8rem;
  background: transparent; border: 1px solid var(--blush);
  color: var(--bark); font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.35em;
  text-transform: uppercase; cursor: pointer;
  opacity: 0; animation: fadein 1s ease 2.8s forwards;
  transition: background 0.3s, color 0.3s;
}
.intro-btn:hover { background: var(--blush); color: #fff; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes widen { to { width: 70px; } }
@keyframes fadein { to { opacity: 1; } }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(253,248,245,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242,184,176,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
nav.visible { opacity: 1; pointer-events: all; }
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.6rem; color: var(--bark);
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-light);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--bark); }
.music-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--blush); background: none;
  color: var(--bark); font-size: 0.85rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
}
.music-btn:hover { background: var(--petal); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background: var(--petal);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-circle {
  position: absolute; top: -10%; right: -8%;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,184,176,0.22) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.hero-content { text-align: center; position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--bark-light); margin-bottom: 1rem;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 300; font-style: italic;
  color: var(--bark); line-height: 0.9;
}
.hero-amp { color: var(--blush); font-size: 0.65em; padding: 0 0.1em; }
.hero-dateline {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin: 2rem 0;
}
.hero-dateline-rule { width: 50px; height: 1px; background: var(--blush); }
.hero-dateline-text {
  font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bark-light);
}
.hero-sub {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--text-light); margin-bottom: 2.5rem;
}
.hero-scroll {
  margin-top: 3rem; font-size: 0.75rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--bark-light);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ─── PHOTO STRIP ─── */
.photostrip-wrapper {
  overflow: hidden;
  width: 100%;
  background: var(--cream);
  padding: 2.5rem 0;
  line-height: 0;
}
.photostrip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: strip-scroll 32s linear infinite;
}
.photostrip-track:hover { animation-play-state: paused; }
.photostrip-item {
  flex-shrink: 0;
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.photostrip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── COUNTDOWN SECTION ─── */
#countdown-section {
  background: var(--bark);
  padding: 5rem 2rem;
  text-align: center;
}
.countdown-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
}
.countdown-headline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--petal); font-weight: 300; margin-bottom: 3rem;
}
.countdown-track {
  display: inline-flex; align-items: flex-start;
  gap: clamp(0.6rem, 2vw, 3rem);
}
.cd-unit { text-align: center; }
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300; color: #fff;
  line-height: 1; display: block;
  min-width: 2ch;
}
.cd-label {
  display: block; font-size: 0.72rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--blush); margin-top: 0.5rem;
}
.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--blush); opacity: 0.5;
  padding-top: 0.1em; line-height: 1;
}
.countdown-tagline {
  margin-top: 2.5rem;
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ─── SHARED SECTION STYLES ─── */
.sec { padding: 5.5rem 2rem; }
.sec-inner { max-width: 840px; margin: 0 auto; }
.sec-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--bark-light);
  text-align: center; margin-bottom: 0.5rem;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 300; font-style: italic;
  color: var(--bark); text-align: center; margin-bottom: 1.2rem;
}
.sec-rule { width: 55px; height: 1px; background: var(--blush); margin: 0 auto 2.5rem; }
.sec-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem; line-height: 1.9;
  text-align: center; color: var(--text-light);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── DETAILS / JOIN US ─── */
#details { background: var(--beige); }
.detail-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2rem;
}
.detail-card {
  background: var(--warm-white);
  border: 1px solid rgba(242,184,176,0.3);
  padding: 2.5rem 2rem; text-align: center;
  position: relative;
}
.detail-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blush), transparent);
}
.detail-icon { font-size: 1.4rem; display: block; margin-bottom: 1rem; }
.detail-label {
  font-size: 0.72rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--bark-light); margin-bottom: 0.5rem;
}
.detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 500; color: var(--bark); margin-bottom: 0.3rem;
}
.detail-sub {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1.05rem; color: var(--text-light);
}
.adult-box {
  background: var(--warm-white);
  border: 1px solid rgba(242,184,176,0.35);
  padding: 2rem 2.5rem; text-align: center; margin-top: 1.5rem;
}
.adult-box-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.5rem;
  color: var(--bark); margin-bottom: 0.7rem;
}
.adult-box p {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem; color: var(--text-light); line-height: 1.8;
}

/* ─── TIMELINE ─── */
#timeline { background: var(--cream); }
.tl-list { position: relative; margin-top: 2rem; }
.tl-list::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--blush) 10%, var(--blush) 90%, transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: grid; grid-template-columns: 1fr 30px 1fr;
  gap: 1.2rem; align-items: center; margin-bottom: 1.8rem;
}
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blush); margin: 0 auto;
  grid-column: 2; position: relative; z-index: 2;
  box-shadow: 0 0 0 4px rgba(242,184,176,0.2);
}
.tl-left { grid-column: 1; text-align: right; }
.tl-right { grid-column: 3; text-align: left; }
.tl-empty { }
.tl-time {
  font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--bark-light); margin-bottom: 0.2rem;
}
.tl-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 500; color: var(--bark);
}

/* ─── ENTOURAGE — Botanical Wallpaper ─── */
#entourage {
  position: relative;
  background-color: #faf6f1;
  background-image: url('Wallpaper.png');
  background-repeat: repeat;
  background-size: 480px auto;
  background-position: left bottom;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
#entourage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 245, 0.84);
  pointer-events: none;
  z-index: 0;
}
#entourage > * {
  position: relative;
  z-index: 1;
}

.ent-group { text-align: center; margin-bottom: 2rem; }
.ent-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bark); margin-bottom: 0.25rem;
}
.ent-role-desc {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1rem; color: var(--bark-light); margin-bottom: 0.6rem;
}
.ent-names {
  font-size: 0.88rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); line-height: 2.1;
}
.ent-two {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
  text-align: center;
}
.ent-divider { width: 40px; height: 1px; background: var(--blush); margin: 1rem auto 2rem; }

/* ─── DRESS CODE ─── */
#dresscode { background: var(--beige); }
.dress-photo {
  width: 100%; max-height: 280px; object-fit: cover;
  margin-bottom: 2rem; display: block;
}
.dress-photo-each {
  width: 75%; max-width: 240px; aspect-ratio: 2 / 3; object-fit: cover;
  margin-top: 1.5rem; display: block; margin-left: auto; margin-right: auto;
}
.dress-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.dress-group { text-align: center; }
.dress-group-label {
  font-size: 0.72rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--bark-light); margin-bottom: 0.4rem;
}
.dress-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.25rem; color: var(--bark); margin-bottom: 0.7rem;
}
.dress-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem; color: var(--text-light); line-height: 1.8;
}
.swatches {
  display: flex; gap: 0.6rem;
  justify-content: center; margin-top: 1rem;
}
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ─── GIFT GUIDE ─── */
#gifts { background: var(--cream); text-align: center; }
.gift-intro {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1.2rem; color: var(--text-light);
  line-height: 1.9; max-width: 520px; margin: 0 auto 2.5rem;
}
.gift-row {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
}
.gift-item { text-align: center; }
.gift-qr {
  width: 110px; height: 110px;
  background: var(--petal); border: 1px solid var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--bark-light);
  font-family: 'Montserrat', sans-serif; text-align: center;
  line-height: 1.5;
}
.gift-name {
  font-size: 0.78rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bark);
  margin-top: 0.7rem;
}

/* ─── RSVP ─── */
#rsvp {
  background: linear-gradient(155deg, var(--petal), var(--beige));
  text-align: center;
}
.rsvp-body {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1.2rem; color: var(--text-light);
  max-width: 480px; margin: 0 auto 1.2rem; line-height: 1.9;
}
.rsvp-deadline {
  font-size: 0.78rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--bark-light); margin-bottom: 2rem;
}
.rsvp-deadline strong { color: var(--bark); font-weight: 500; }
.rsvp-btn {
  display: inline-block; padding: 1rem 3rem;
  background: var(--bark); color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.35em;
  text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: none;
  transition: background 0.3s;
}
.rsvp-btn:hover { background: var(--bark-light); }

/* ─── VENUES ─── */
#venues { background: var(--beige); }
.venue-photo {
  width: 100%; max-height: 300px; object-fit: cover;
  display: block; margin-bottom: 2rem;
}
.venue-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.venue-card {
  background: var(--warm-white);
  border: 1px solid rgba(242,184,176,0.3);
  padding: 2.2rem 2rem; text-align: center;
}
.venue-label {
  font-size: 0.72rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--bark-light); margin-bottom: 0.5rem;
}
.venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 500;
  color: var(--bark); margin-bottom: 0.35rem;
}
.venue-addr {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1.05rem; color: var(--text-light); margin-bottom: 1.2rem;
}
.venue-qr {
  width: 88px; height: 88px; background: var(--petal);
  border: 1px solid var(--blush);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-size: 0.68rem;
  color: var(--bark-light); font-family: 'Montserrat', sans-serif;
  text-align: center; line-height: 1.5;
}
.venue-note {
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--bark-light); margin-top: 0.6rem;
  font-family: 'Montserrat', sans-serif;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bark); color: rgba(255,255,255,0.65);
  text-align: center; padding: 3rem 2rem;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 2.6rem;
  color: var(--petal); margin-bottom: 0.5rem;
}
.footer-date {
  font-size: 0.75rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

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

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--bark); border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: var(--cream);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bark);
  text-decoration: none; font-family: 'Montserrat', sans-serif;
}
.mobile-menu-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 1.6rem;
  color: var(--bark); cursor: pointer;
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {

  /* NAV */
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* HERO */
  #hero { padding: 100px 1.5rem 60px; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.3em; }
  .hero-dateline { gap: 0.8rem; }
  .hero-dateline-rule { width: 25px; }
  .hero-dateline-text { font-size: 0.65rem; letter-spacing: 0.15em; }
  .hero-sub { font-size: 1rem; }

  /* SECTIONS */
  .sec { padding: 4rem 1.5rem; }
  .sec-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .adult-box { padding: 1.5rem; }

  /* COUNTDOWN */
  .countdown-track { gap: 0.8rem; }
  .cd-num { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .cd-sep { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .cd-label { font-size: 0.62rem; letter-spacing: 0.2em; }
  #countdown-section { padding: 4rem 1rem; }

  /* TIMELINE */
  .tl-list::before {
    left: 5px; transform: none; width: 1px;
  }
  .tl-item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  .tl-dot {
    grid-column: 1; grid-row: 1;
    width: 11px; height: 11px;
    margin: 4px 0 0 0;
    position: relative; z-index: 2;
  }
  .tl-left, .tl-right {
    grid-column: 2; grid-row: 1; text-align: left;
  }
  .tl-empty { display: none; }
  .tl-time { font-size: 0.68rem; }
  .tl-event { font-size: 1.1rem; }

  /* ENTOURAGE — mobile tile size */
  #entourage { background-size: 300px auto; }
  .ent-two { grid-template-columns: 1fr; gap: 1.5rem; }
  .ent-names { font-size: 0.8rem; line-height: 2; }

  /* DRESS CODE */
  .dress-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dress-photo-each { width: 60%; }

  /* VENUES & DETAILS */
  .venue-cards { grid-template-columns: 1fr; gap: 1rem; }
  .detail-cards { grid-template-columns: 1fr; gap: 1rem; }

  /* FOOTER */
  .footer-names { font-size: 2rem; }
  .footer-date { font-size: 0.68rem; letter-spacing: 0.25em; }
}

/* ─── QR CODE ─── */
.venue-qr-canvas {
  width: 100px; height: 100px;
  margin: 0 auto 0.4rem;
  display: flex; align-items: center; justify-content: center;
}
.venue-qr-canvas img,
.venue-qr-canvas canvas {
  width: 100px !important;
  height: 100px !important;
  display: block;
  margin: 0 auto;
}