/* ==========================================================================
   KRISTINE & MARC WEDDING INVITATION — PLAIN CSS
   Color Palette: old rose / pink (see Details sheet in Kristine.xlsx)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Pinyon+Script&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Dancing+Script:wght@500;600&family=Great+Vibes&family=Playfair+Display:wght@400;600;700&family=Raleway:wght@400;500&family=Poppins:wght@400;500;600&display=swap');

:root {
  /* --- Core Palette --- */
  --color-cream:        #FFF6F2;  /* page background */
  --color-cream-2:      #FCE5CD;  /* alt section background */
  --color-white:        #FFFFFF;

  --color-pink-light:   #F7C9C8;  /* soft blush */
  --color-pink:         #D7A0A6;  /* primary pink */
  --color-pink-deep:    #A8516D;  /* accent / buttons */

  --color-blue-light:   #F4C2C2;  /* soft sky */
  --color-blue:         #C08081;  /* primary blue */

  --color-lavender:     #BBA991;
  --color-gold:         #B38A6D;

  --color-text:         #4A2C36;  /* twilight navy */
  --color-text-soft:    #8A6B73;
  --color-ink:          #2E1F27;  /* warm near-black for hero copy */

  /* --- Gradients (album-cover sky) --- */
  --gradient-hero: linear-gradient(160deg, #FCE5CD 0%, #FBE6D6 30%, #F9DDD3 62%, #F1CCC6 100%);
  --gradient-soft: linear-gradient(180deg, #FFF3EC 0%, #FCE9D8 55%, #FFF1EA 100%);
  --gradient-gold: linear-gradient(90deg, #B38A6D 0%, #D7A0A6 100%);
  --gradient-header: linear-gradient(90deg, #FFF3EC 0%, #FCE5D8 45%, #FBE3DA 75%, #F4D0CA 100%);

  /* --- Type --- */
  --font-display: 'Alex Brush', cursive;      /* big script headline */
  --font-script:  'Dancing Script', cursive;  /* smaller cursive accents */
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    'Poppins', 'Helvetica Neue', Arial, sans-serif;

  /* --- Spacing --- */
  --section-padding: 6rem 1.5rem;
  --header-height: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  padding-top: var(--header-height);
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   SITE HEADER / MENU
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--gradient-header);
  border-bottom: 1px solid rgba(168, 81, 109, 0.2);
  box-shadow: 0 4px 16px rgba(168, 81, 109, 0.16);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(168, 81, 109, 0.18);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-pink-deep);
  line-height: 1;
}

.nav-brand-icon {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-pink-deep);
  transition: width 0.3s;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}
.nav-menu a.active {
  color: var(--color-pink-deep);
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 310;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(51, 51, 77, 0.35);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 800px) {
  :root { --header-height: 50px; }
  .nav-toggle { display: flex; }
  .nav-brand { font-size: 1.3rem; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 75vw);
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 30px rgba(168, 81, 109, 0.15);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a {
    color: var(--color-text) !important;
    text-shadow: none !important;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   NAV DOTS (section indicator)
   ========================================================================== */
.nav-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.nav-dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(51, 51, 77, 0.25);
  display: block;
  transition: background 0.3s, transform 0.3s;
}
.nav-dots a.active,
.nav-dots a:hover {
  background: var(--color-pink-deep);
  transform: scale(1.3);
}
@media (max-width: 700px) {
  .nav-dots { display: none; }
  .container { padding-left: 0.2rem; padding-right: 0.2rem; }
  .section { padding-left: 0.2rem; padding-right: 0.2rem; }
}

/* ==========================================================================
   SHARED SECTION STYLES
   ========================================================================== */
.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 70px;
}
.section--cream   { background: var(--color-cream); }
.section--cream-2 { background: var(--color-cream-2); }
.section--soft    { background: var(--gradient-soft); }

.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-pink-deep);
  margin-bottom: 0.75rem;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto 3rem;
}

.divider {
  width: min(380px, 80%);
  aspect-ratio: 1000 / 65;
  margin: 0.5rem auto 1.75rem;
  background: url('images/divider-rings.png') center / contain no-repeat;
}

/* Image / media placeholder helper — swap these for real photos later */
.img-placeholder {
  background: var(--gradient-soft);
  border: 2px dashed rgba(51, 51, 77, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  min-height: 220px;
}

/* ==========================================================================
   SECTION 1 — HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.4), transparent 35%),
    radial-gradient(circle at 82% 8%, rgba(255,255,255,0.3), transparent 30%),
    var(--gradient-hero);
  overflow: hidden;
  padding: 4.5rem 2rem calc(max(64px, 5.5vw) + 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* scattered hearts & sparkles */
.hero-decor span {
  position: absolute;
  pointer-events: none;
  color: var(--color-pink-deep);
  z-index: 1;
}
.hero-decor .heart { font-size: 1.6rem; opacity: 0.85; }
.hero-decor .heart-outline { font-size: 1.3rem; color: var(--color-pink-deep); opacity: 0.7; }
.hero-decor .sparkle { font-size: 1.1rem; color: var(--color-gold); opacity: 0.85; }
.hero-decor .d1 { top: 12%;  left: 5%; }
.hero-decor .d2 { top: 42%;  left: 3%;  font-size: 1.1rem; opacity: 0.6; }
.hero-decor .d3 { top: 18%;  left: 29%; }
.hero-decor .d4 { top: 10%;  left: 51%; }
.hero-decor .d5 { top: 22%;  left: 55%; }
.hero-decor .d6 { top: 9%;   right: 8%; }
.hero-decor .d7 { top: 60%;  left: 44%; opacity: 0.5; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: block;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}
.hero-script-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--color-pink-deep);
  text-shadow: 0 2px 12px rgba(168,81,109, 0.15);
  margin: 0.25rem 0;
}
.hero-tagline {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.hero-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.hero-divider span.line {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}
.hero-divider span.divider-heart {
  color: var(--color-gold);
  font-size: 0.8rem;
}
.hero-desc {
  color: var(--color-ink);
  font-size: 1rem;
  max-width: 380px;
}
.hero-date {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--color-pink-deep);
  margin: 0.25rem 0;
}
.hero-date .date-sep {
  font-size: 1.1rem;
  color: var(--color-gold);
}
.hero-daytime {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--color-pink-deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.hero-daytime .dot-heart { color: var(--color-pink-deep); font-size: 0.9rem; font-family: var(--font-sans); }
.hero-location {
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Countdown --- */
.hero-countdown--inline {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  width: fit-content;
}
.countdown-numbers {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.4rem;
}
.countdown-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-pink-deep);
}
.countdown-label {
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.countdown-sep {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-gold);
}
.countdown-today { display: none; font-family: var(--font-script); font-size: 1.3rem; color: var(--color-pink-deep); }
.is-today .countdown-numbers { display: none; }
.is-today .countdown-today { display: inline-block; }

@media (max-width: 900px) {
  .hero-countdown--inline { display: none; }
}

/* --- Mobile fixed countdown bar --- */
.mobile-countdown-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 350;
  background: rgba(255, 248, 243, 0.97);
  border-top: 2px solid var(--color-pink-light);
  box-shadow: 0 -4px 16px rgba(74,44,54, 0.1);
  padding: 0.5rem 1rem 0.6rem;
  text-align: center;
}
.mobile-countdown-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
}
.hero-countdown--bar .countdown-numbers { justify-content: center; gap: 0.9rem; }
.hero-countdown--bar .countdown-item { width: 2.6rem; }
.hero-countdown--bar .countdown-num { font-size: 1.15rem; }
.hero-countdown--bar .countdown-sep { font-size: 1.15rem; }
.hero-countdown--bar .countdown-label { font-size: 0.55rem; color: var(--color-text-soft); }
.hero-countdown--bar .countdown-today { font-size: 1rem; }

@media (max-width: 900px) {
  .mobile-countdown-bar { display: block; }
  .music-btn { bottom: 5.75rem; right: 0.5rem; width: 40px; height: 40px; }
}

/* --- Polaroid photo --- */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.polaroid {
  position: relative;
  background: var(--color-white);
  padding: 14px 14px 8px;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(74,44,54, 0.22);
  transform: rotate(4deg);
  width: min(440px, 90%);
}
.polaroid-tape {
  position: absolute;
  top: -16px;
  right: 20%;
  width: 90px;
  height: 32px;
  background: linear-gradient(90deg, rgba(168,81,109,0.35), rgba(168,81,109,0.5));
  transform: rotate(-8deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.polaroid-photo {
  border-radius: 2px;
  min-height: 0;
  width: 100%;
  height: auto;
  display: block;
}
.polaroid-photo--couple { aspect-ratio: 5 / 4; object-fit: cover; object-position: 42% 40%; }
.polaroid-caption {
  font-family: var(--font-display);
  text-align: center;
  color: var(--color-pink-deep);
  font-size: 1.8rem;
  margin-top: 0.75rem;
}
.hero-florals {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 240px;
  height: 180px;
  object-fit: contain;
  object-position: bottom right;
  z-index: 3;
  opacity: 0.6;
  pointer-events: none;
}

/* --- Quote --- */
.hero-quote {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 3.5rem auto 0;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 1.1rem 1.75rem;
  box-shadow: 0 8px 24px rgba(74,44,54, 0.1);
}
.hero-quote p {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--color-pink-deep);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.hero-quote .quote-heart { font-size: 1rem; }
.hero-quote .quote-cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-pink-deep);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-eyebrow, .hero-desc, .hero-location { margin-left: auto; margin-right: auto; }
  .hero-divider, .hero-daytime, .hero-location { justify-content: center; }
  .hero-date { justify-content: center; }
  .hero-photo-wrap { order: -1; margin-top: 0; margin-bottom: 2rem; }
  .hero-florals { display: none; }
}

/* ==========================================================================
   HERO — "Front" design (cream/peach, deep-brown + rose accents)
   ========================================================================== */
:root {
  --hero-brown:  #6B2A18;
  --hero-brown-2:#7F3320;
  --hero-rose:   #C0545F;
  --hero-gold:   #C9A27A;
  --hero-cream:  #FBEADD;
  --font-hero-script: 'Pinyon Script', 'Alex Brush', cursive;
  --font-hero-serif:  'Cormorant Garamond', Georgia, serif;
}

/* header */
.site-header {
  background: linear-gradient(180deg, #FDF1E6, #F9E6D8);
  border-bottom: 1px solid rgba(107,42,24,0.12);
}
.nav-brand { font-family: var(--font-hero-script); font-size: 2.6rem; color: var(--hero-brown); }
.nav-menu a {
  font-family: var(--font-hero-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--hero-brown);
}
.nav-menu a::after { background: var(--hero-rose); height: 3px; border-radius: 2px; bottom: -6px; }
.nav-menu a.active { color: var(--hero-brown); }
.nav-menu a.nav-rsvp {
  background: linear-gradient(180deg, var(--hero-brown-2), #5A2012);
  color: #fff;
  padding: 0.55rem 1.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(107,42,24,0.3);
}
.nav-menu a.nav-rsvp::after { display: none; }
.nav-menu a.nav-rsvp.active { color: #fff; }
@media (max-width: 800px) {
  .nav-menu a.nav-rsvp { color: #fff !important; padding: 0.5rem 1.4rem; margin-top: 0.5rem; }
  .nav-brand { font-size: 1.9rem; }
}

/* hero background */
.hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,0.55), transparent 38%),
    radial-gradient(circle at 80% 85%, rgba(247,201,200,0.35), transparent 40%),
    linear-gradient(165deg, #FDEFE3 0%, #FBE8DA 55%, #F9E1D3 100%);
  padding: 3.5rem 2rem calc(max(64px, 5.5vw) + 2.5rem);
}
.hero-decor .heart { color: #E3A3A8; opacity: 0.7; }
.hero-decor .heart-outline { color: var(--hero-rose); opacity: 0.55; }
.hero-corner-florals {
  position: absolute; top: -10px; left: -10px;
  width: clamp(120px, 14vw, 210px);
  z-index: 1; pointer-events: none; opacity: 0.95;
}
.hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; }
.hero-text { text-align: center; max-width: 640px; margin: 0 auto; }

.hero-eyebrow {
  font-family: var(--font-hero-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--hero-brown);
}
.hero-script-title {
  font-family: var(--font-hero-script);
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  line-height: 1.05;
  color: var(--hero-brown);
  text-shadow: none;
  white-space: nowrap;
}
.hero-tagline {
  font-family: var(--font-hero-serif);
  font-weight: 700;
  -webkit-text-stroke: 0.6px currentColor;
  letter-spacing: 0.3em;
  font-size: 1.3rem;
  color: var(--hero-rose);
  margin-bottom: 0.4rem;
}
.hero-text .hero-divider { justify-content: center; margin: 0.6rem 0; }
.hero-text .hero-divider span.line { width: 105px; background: var(--hero-gold); opacity: 0.8; }
.hero-text .hero-divider span.divider-heart { color: var(--hero-rose); font-size: 1.3rem; }
.hero-text .hero-divider--plain span.line { width: 62%; max-width: 290px; }
.hero-desc {
  font-family: var(--font-hero-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--hero-brown);
  max-width: none;
}
.hero-date {
  display: block;
  font-family: var(--font-hero-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--hero-brown);
  margin: 0.4rem 0 0;
}
.hero-daytime {
  display: block;
  font-family: var(--font-hero-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--hero-rose);
  margin-bottom: 1rem;
}

.hero-venue-card, .hero-text .hero-countdown--inline {
  background: rgba(255,244,235,0.75);
  border: 1.5px solid #E6C7A6;
  box-shadow: 0 4px 14px rgba(107,42,24,0.08), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.hero-venue-card {
  display: flex; align-items: center; gap: 1.1rem;
  border-radius: 22px; padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  text-align: left; max-width: 560px; margin: 0 auto;
}
.hero-venue-photo {
  width: 130px; height: 80px; object-fit: cover; flex: none;
  border-radius: 12px; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(107,42,24,0.2);
}
.hero-venue-sep { width: 1px; align-self: stretch; background: #E0BE9C; margin: 0.4rem 0; }
.hero-text .hero-location {
  font-family: var(--font-hero-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 1.45;
  color: var(--hero-brown);
  align-items: flex-start;
}
.hero-location .pin { font-size: 1rem; flex: none; filter: hue-rotate(-20deg); }

.hero-text .hero-countdown--inline {
  display: block;
  width: auto; max-width: 590px;
  margin: 0.9rem auto 0;
  border-radius: 24px;
  padding: 0.7rem 1rem;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hero-text .countdown-numbers { justify-content: space-around; align-items: center; gap: 0; }
.hero-text .countdown-item { width: auto; flex: 1; }
.hero-text .countdown-num {
  font-family: var(--font-hero-serif);
  font-size: 2.5rem; font-weight: 700; color: var(--hero-brown);
}
.hero-text .countdown-label {
  font-family: var(--font-hero-serif);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--hero-brown);
}
.hero-text .countdown-sep { width: 1px; height: 2.6rem; background: #E0BE9C; font-size: 0; }
.hero-text .countdown-today { font-family: var(--font-hero-script); font-size: 1.8rem; color: var(--hero-brown); }

.hero-buttons { display: flex; justify-content: center; gap: 1.3rem; margin-top: 1.2rem; flex-wrap: wrap; }
.btn-hero {
  font-family: var(--font-hero-serif);
  font-style: italic; font-weight: 600; font-size: 1.4rem;
  padding: 0.5rem 2.3rem; border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); }
.btn-hero--solid {
  background: linear-gradient(180deg, var(--hero-brown-2), #5A2012);
  color: #fff; box-shadow: 0 5px 12px rgba(107,42,24,0.35);
}
.btn-hero--outline {
  color: var(--hero-brown); border: 1.5px solid var(--hero-brown);
  background: rgba(255,248,242,0.6); box-shadow: 0 4px 10px rgba(107,42,24,0.12);
}

/* photo side */
.hero-photo-wrap { padding: 2rem 1rem 3rem; }
.hero-photo-bg {
  position: absolute; inset: 0 2% 0 6%;
  background: linear-gradient(180deg, #F0D3BC, #EBC9B0);
  border-radius: 48% 48% 45% 45% / 36% 36% 30% 30%;
  opacity: 0.75;
}
.hero-photo-wrap .polaroid {
  background: #FDF1E4;
  border-radius: 6px;
  padding: 16px 16px 14px;
  transform: rotate(-4deg);
  width: min(500px, 92%);
  box-shadow: 0 22px 45px rgba(107,42,24,0.25);
}
.hero-photo-wrap .polaroid-photo--couple { aspect-ratio: 1 / 1; object-position: 50% 40%; border-radius: 3px; }
.hero-photo-wrap .polaroid-tape {
  top: -18px; right: auto; left: 18%;
  width: 110px; height: 36px;
  background: repeating-linear-gradient(45deg, #D9BE98, #D9BE98 3px, #CFAF86 3px, #CFAF86 6px);
  transform: rotate(-4deg); opacity: 0.9;
}
.polaroid-ribbon {
  position: absolute; top: -52px; right: -40px;
  width: 190px; aspect-ratio: 406 / 482; z-index: 4;
  background: url('images/ribbon.png') center / contain no-repeat;
  transform-origin: 79% 23%;
  transform: rotate(8deg);
  filter: drop-shadow(2px 5px 5px rgba(107,42,24,0.28));
  pointer-events: none;
}
.polaroid-roses {
  position: absolute; top: -78px; right: -92px;
  width: 150px; aspect-ratio: 367 / 404; z-index: 3;
  background: url('images/roses.png') center / contain no-repeat;
  transform: rotate(10deg);
  filter: drop-shadow(2px 5px 6px rgba(107,42,24,0.25));
  pointer-events: none;
}
@media (max-width: 600px) {
  .polaroid-ribbon { width: 140px; top: -38px; right: -28px; }
  .polaroid-roses { width: 110px; top: -58px; right: -62px; }
}
.hero-photo-wrap .polaroid-caption {
  font-family: var(--font-hero-script);
  color: var(--hero-brown);
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: 0.6rem; white-space: nowrap;
}
.polaroid-caption .cap-line { flex: 1; max-width: 40px; height: 1px; background: var(--hero-brown); }
.hero-photo-wrap .hero-florals {
  left: 2%; right: auto; bottom: 0;
  width: 190px; height: 150px; opacity: 1;
  object-position: bottom left;
}

/* floating hearts around the hero photo */
.hero-hearts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fh {
  position: absolute;
  line-height: 1;
  opacity: 0;
  animation: heroHeartFloat ease-in-out infinite;
}
.fh.f { color: #E3A3A8; text-shadow: 0 0 10px rgba(227,163,168,0.6); }
.fh.o { color: var(--hero-rose); }
.fh:nth-child(3n) { color: var(--hero-gold); text-shadow: 0 0 8px rgba(201,162,122,0.5); }
@keyframes heroHeartFloat {
  0%   { transform: translate(0, 18px) scale(0.6) rotate(-10deg); opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { transform: translate(10px, -22px) scale(1.15) rotate(8deg); opacity: 0.95; }
  85%  { opacity: 0.7; }
  100% { transform: translate(-6px, -60px) scale(0.8) rotate(-6deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fh { animation: none; opacity: 0.7; } }

@media (max-width: 900px) {
  .hero { padding-top: 2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-script-title { white-space: normal; }
  .hero-photo-wrap { order: -1; padding: 1.5rem 0.5rem 2rem; margin-bottom: 0.5rem; }
  .hero-photo-wrap .hero-florals { display: block; width: 130px; height: 100px; }
  .hero-desc { font-size: 1.35rem; }
  .hero-venue-card { flex-direction: column; text-align: center; padding: 0.8rem; }
  .hero-venue-photo { width: 100%; height: 150px; }
  .hero-venue-sep { display: none; }
  .hero-text .hero-location { justify-content: center; text-align: center; }
  .btn-hero { font-size: 1.2rem; padding: 0.45rem 1.8rem; }
}

/* ==========================================================================
   WEDDING TIMELINE
   ========================================================================== */
.timeline-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline-stop {
  flex: 1 1 160px;
  max-width: 190px;
  background: var(--color-white);
  border-radius: 18px;
  padding: 1.75rem 1rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(168, 81, 109, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.timeline-icon-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.timeline-time {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-pink-deep);
  font-size: 1.1rem;
}
.timeline-label { color: var(--color-text-soft); font-size: 0.85rem; }

@media (max-width: 700px) {
  .timeline-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .timeline-stop { max-width: none; }
  .timeline-stop:last-child { grid-column: 1 / -1; max-width: 190px; justify-self: center; }
}

/* ==========================================================================
   SECTION 2 — PRENUP FILM
   ========================================================================== */
.film-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(168, 81, 109, 0.2);
}
.film-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-blue), var(--color-pink-deep));
}
.film-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SECTION 3 — OUR STORY (photo timeline)
   ========================================================================== */
.story-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-bottom: 8rem;
}

.story-florals {
  position: absolute;
  width: 300px;
  height: 225px;
  object-fit: contain;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}
.story-florals--left  { bottom: 40px; left: -30px; }
.story-florals--right { top: 30%; right: -30px; }

.story-header { position: relative; z-index: 2; text-align: center; margin-bottom: 3rem; }
.story-intro {
  color: var(--color-ink);
  font-size: 1rem;
  margin-top: 1rem;
}

.story-timeline {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}
.story-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--color-gold) 0 6px, transparent 6px 12px);
  transform: translateX(-50%);
  z-index: 0;
}

.story-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.story-item.reverse { flex-direction: row-reverse; }
.story-photo-wrap,
.story-text { flex: 1; min-width: 0; position: relative; }
.story-connector {
  flex: 0 0 44px;
  display: flex;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.story-photo {
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(74,44,54, 0.22);
  transform: rotate(var(--rot, -3deg));
  min-height: 0;
  background: var(--color-white);
  padding: 8px;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  display: block;
}
.story-tape {
  position: absolute;
  top: -14px;
  width: 64px;
  height: 24px;
  transform: rotate(-8deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2;
}
.story-heart-badge {
  position: absolute;
  bottom: -12px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
}

/* --- Love story: scroll-in + parallax for the photos --- */
.story-photo {
  transform: translateY(var(--py, 0px)) rotate(calc(var(--rot, -3deg) + var(--pr, 0deg)));
  transition: box-shadow .4s ease;
  will-change: transform;
}
.story-photo-wrap:hover .story-photo {
  box-shadow: 0 22px 44px rgba(168, 81, 109, 0.32);
}

/* Hidden start state only exists when JS has opted the item in (no-JS shows everything) */
.story-item.story-pre .story-photo-wrap {
  opacity: 0;
  transform: translateX(-70px) scale(0.9) rotate(-6deg);
}
.story-item.story-pre.reverse .story-photo-wrap {
  transform: translateX(70px) scale(0.9) rotate(6deg);
}
.story-item.story-pre .story-text { opacity: 0; transform: translateY(28px); }
.story-item.story-pre .story-tape { opacity: 0; transform: translateY(-26px) rotate(-8deg); }
.story-item.story-pre .story-heart-badge { opacity: 0; transform: scale(0); }
.story-item.story-pre .story-connector { opacity: 0; transform: scale(0.4); }

.story-item.story-in .story-photo-wrap {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}
.story-item.story-in .story-text {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease .35s, transform .8s cubic-bezier(.2, .8, .2, 1) .35s;
}
.story-item.story-in .story-tape {
  opacity: 1;
  transform: rotate(-8deg);
  transition: opacity .4s ease .7s, transform .5s cubic-bezier(.3, 1.6, .5, 1) .7s;
}
.story-item.story-in .story-heart-badge {
  opacity: 1;
  transform: none;
  transition: opacity .3s ease .95s, transform .6s cubic-bezier(.3, 1.8, .5, 1) .95s;
}
.story-item.story-in .story-connector {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease .5s, transform .6s cubic-bezier(.3, 1.8, .5, 1) .5s;
}
.story-item.story-in .story-connector span { display: inline-block; animation: story-beat 1.8s ease-in-out 1.2s infinite; }
@keyframes story-beat {
  0%, 60%, 100% { transform: scale(1); }
  70% { transform: scale(1.3); }
  80% { transform: scale(1); }
  90% { transform: scale(1.18); }
}
@media (max-width: 700px) {
  .story-item.story-pre .story-photo-wrap,
  .story-item.story-pre.reverse .story-photo-wrap { transform: translateY(40px) scale(0.92) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .story-photo { transform: rotate(var(--rot, -3deg)); will-change: auto; }
  .story-item.story-in .story-connector span { animation: none; }
}

/* --- Candid photo: endless rising hearts + heartbeat badge --- */
/* --- Story timeline stages --- */
.story-chapter-title {
  font-family: var(--font-hero-serif, var(--font-serif));
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--hero-brown, var(--color-pink-deep));
  margin-bottom: 0.8rem;
}
.story-text .story-chapter-end {
  font-family: var(--font-hero-serif, var(--font-serif));
  font-style: italic; font-weight: 600;
  font-size: 1.2rem !important;
  color: var(--hero-rose, var(--color-pink-deep)) !important;
}
.story-heart-badge { font-family: var(--font-hero-serif, var(--font-serif)); font-weight: 700; font-size: 0.8rem; }
.story-gift-link { display: inline-block; margin-top: 0.6rem; font-size: 1.15rem; padding: 0.4rem 1.6rem; }
.story-item { margin-bottom: 4.5rem; }

.story-hearts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.story-hearts span {
  position: absolute;
  bottom: 6%;
  left: var(--x);
  font-size: calc(var(--s) * 1.9);
  color: var(--color-pink-deep);
  text-shadow: 0 0 8px rgba(255,255,255,.8), 0 2px 8px rgba(168,81,109,.35);
  opacity: 0;
  animation: story-heart-rise var(--t) ease-in-out var(--d) infinite;
  animation-play-state: paused;
}
.story-item.story-in .story-hearts span { animation-play-state: running; }
@keyframes story-heart-rise {
  0%   { transform: translate(0, 0) scale(.5) rotate(-8deg); opacity: 0; }
  12%  { opacity: .85; }
  50%  { transform: translate(14px, -170px) scale(1) rotate(8deg); }
  85%  { opacity: .5; }
  100% { transform: translate(-10px, -340px) scale(1.15) rotate(-6deg); opacity: 0; }
}
.story-item.story-in .story-heart-badge { animation: story-badge-pulse 1.8s ease-in-out 1.5s infinite; }
@keyframes story-badge-pulse {
  0%, 100% { box-shadow: 0 4px 10px rgba(168,81,109,.25), 0 0 0 0 rgba(168,81,109,.35); }
  50%      { box-shadow: 0 4px 10px rgba(168,81,109,.25), 0 0 0 12px rgba(168,81,109,0); }
}
@media (prefers-reduced-motion: reduce) {
  .story-hearts { display: none; }
  .story-item.story-in .story-heart-badge { animation: none; }
}

/* single-photo love story */
.story-timeline--single::before { display: none; }
.story-photo--candid { max-width: 380px; margin: 0 auto; object-fit: cover; }
.story-text--long p { margin-bottom: 1rem; line-height: 1.8; }
.story-text--long p:last-child { margin-bottom: 0; }
.story-text--long .story-lead { font-size: 0.95rem; font-weight: 400; }
.story-title-row { display: flex; align-items: baseline; gap: 0.6rem; }
.story-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-pink-deep);
  line-height: 1;
}
.story-text h3 { font-size: 1.35rem; color: var(--color-text); }
.story-date {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  margin: 0.3rem 0 0.5rem;
}
.story-text p { color: var(--color-ink); font-size: 0.95rem; }
.story-item.reverse .story-text { text-align: right; }
.story-item.reverse .story-title-row { justify-content: flex-end; }

.story-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 2rem;
}
.story-footer-caps {
  font-family: var(--font-sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-pink-deep);
  font-weight: 600;
}
.story-footer-script {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-pink-deep);
  margin-top: 0.35rem;
}

@media (max-width: 800px) {
  .story-florals { display: none; }
  .story-item,
  .story-item.reverse {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .story-item.reverse .story-text,
  .story-item.reverse .story-title-row {
    text-align: left;
    justify-content: flex-start;
  }
  .story-connector { display: none; }
  .story-timeline::before { display: none; }
  /* single candid photo: smaller, centred, with clear space so the tilt/drift never touches the text */
  .story-photo-wrap { padding: .75rem 1.25rem 0; margin-bottom: 2.75rem; }
  .story-photo--candid { max-width: 270px; }
  .story-hearts { inset: 0 1.25rem; }
  .story-heart-badge { right: 1.25rem; }
}

/* ==========================================================================
   SECTION 4 — GUEST GUIDE
   ========================================================================== */
.guide-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft);
}

/* corner floral placeholders — reuses .story-florals base sizing */
.story-florals--tl { top: -20px; left: -30px; }
.story-florals--tr { top: -20px; right: -30px; }
.story-florals--bl { bottom: -20px; left: -30px; }
.story-florals--br { bottom: -20px; right: -30px; }
@media (max-width: 800px) {
  .story-florals--tl, .story-florals--tr,
  .story-florals--bl, .story-florals--br { display: none; }
}

.guide-list {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-shadow: 0 14px 34px rgba(168, 81, 109, 0.1);
}

.guide-icon-wrap { position: relative; flex: 0 0 130px; }
.guide-icon-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  min-height: 0;
  font-size: 0.68rem;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(74,44,54, 0.18);
}
.guide-icon-circle--phone {
  width: 110px;
  height: 150px;
  border-radius: 20px;
}
.guide-icon-heart {
  position: absolute;
  bottom: -6px;
  left: -6px;
  font-size: 1.4rem;
  color: var(--color-pink-deep);
  opacity: 0.75;
}

.guide-content { flex: 1; min-width: 0; }
.guide-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  font-size: 1.05rem;
}
.guide-content .hero-divider { margin: 0.6rem 0 0.85rem; }
.guide-content p { color: var(--color-ink); font-size: 0.92rem; }
.guide-content strong { color: var(--color-text); }
.guide-content strong.accent-gold { color: #B38A6D; }
.guide-content strong.accent-pink { color: var(--color-pink-deep); text-decoration: underline; }

.guide-decor {
  flex: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.dot-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.dot { width: 13px; height: 13px; border-radius: 50%; }
.guide-sparkle { color: var(--color-gold); font-size: 1.1rem; }
.guide-emoji-decor { font-size: 1.8rem; }
.guide-heart-doodle { font-size: 2.2rem; color: var(--color-gold); opacity: 0.8; }

@media (max-width: 700px) {
  .guide-card { flex-direction: column; text-align: center; }
  .guide-content .hero-divider { justify-content: center; }
  .guide-decor { flex: 0 0 auto; flex-direction: row; justify-content: center; gap: 0.85rem; }
  .dot-stack { flex-direction: row; gap: 0.6rem; }
  .dot { width: 15px; height: 15px; }
  .guide-sparkle { font-size: 1.35rem; }
  .guide-emoji-decor { font-size: 2.1rem; }
  .guide-heart-doodle { font-size: 2.5rem; }
}

.venue-card {
  max-width: 820px;
  margin: 3rem auto 2rem;
  text-align: center;
}
.venue-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.venue-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  margin-bottom: 0.5rem;
}
.venue-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-text); }
.venue-address { color: var(--color-text-soft); font-size: 0.9rem; margin-top: 0.15rem; }
.venue-time { color: var(--color-pink-deep); font-size: 0.85rem; margin-top: 0.4rem; }
.venue-map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--color-pink-deep);
  border: 1.5px solid var(--color-pink-deep);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  transition: background 0.3s, color 0.3s;
}
.venue-map-link:hover { background: var(--color-pink-deep); color: var(--color-white); }
.venue-divider { color: var(--color-gold); font-size: 1.3rem; }

@media (max-width: 700px) {
  .venue-grid { grid-template-columns: 1fr; gap: 2rem; }
  .venue-divider { transform: rotate(90deg); }
}

/* ==========================================================================
   SECTION 5 — WEDDING GIFTS
   ========================================================================== */
.gifts-quote {
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--color-pink-deep);
  margin-bottom: 2.5rem;
}

.gifts-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 22px;
  padding: 2.25rem;
  box-shadow: 0 16px 40px rgba(168, 81, 109, 0.1);
}
.gifts-col-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.gifts-qr-col { text-align: center; }
.gifts-note {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-pink-deep);
  margin-bottom: 0.35rem;
}
.gifts-subnote {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin-bottom: 0.35rem;
}
.gifts-hint {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  margin-bottom: 1.25rem;
}

.qr-options {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}
.qr-option { width: 150px; flex: none; }
.qr-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  margin-bottom: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.qr-logo-btn img { max-height: 22px; width: auto; object-fit: contain; }
.qr-thumb-btn {
  display: block;
  width: 100%;
  padding: 0.4rem;
  margin-bottom: 0.5rem;
  background: var(--color-cream);
  border: 1px solid var(--color-pink-light);
  border-radius: 8px;
  cursor: pointer;
}
.qr-thumb-btn img { width: 100%; display: block; border-radius: 4px; }
.qr-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
}
.qr-download--bpi { background: #C8102E; }
.qr-download--gcash { background: #007AFF; }
.qr-download--bdo { background: #0A4BA0; }
.qr-download--gotyme { background: #2B2B3C; }
.qr-thumb-btn img { aspect-ratio: 2 / 3; object-fit: cover; }

.gifts-givers-col {
  border-left: 1px solid var(--color-pink-light);
  padding-left: 2rem;
}
.gifts-givers-note {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.gift-givers-list { list-style: none; max-height: 260px; overflow-y: auto; }
.gift-givers-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-cream-2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}
.giver-heart { color: var(--color-gold); }
.giver-flag { font-size: 1.1rem; margin-left: 0.3rem; vertical-align: middle; }
.gift-givers-list li.gift-givers-empty {
  display: block;
  text-align: center;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-soft);
  border-bottom: none;
  padding: 0.75rem 0;
}

@media (max-width: 700px) {
  .gifts-panel { grid-template-columns: 1fr; padding: 1.75rem; }
  .gifts-givers-col {
    border-left: none;
    border-top: 1px solid var(--color-pink-light);
    padding-left: 0;
    padding-top: 1.75rem;
  }
  .gift-givers-list { max-height: none; overflow-y: visible; }
}

/* --- QR modal --- */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 31, 39, 0.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.qr-modal.open { display: flex; }
.qr-modal-card {
  position: relative;
  background: var(--color-white);
  border-radius: 18px;
  padding: 1.75rem;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.qr-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-soft);
  cursor: pointer;
}
.qr-modal-label {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  margin-bottom: 1rem;
}
.qr-modal-img {
  width: 100%;
  border-radius: 10px;
}
.qr-modal-placeholder {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 10px;
}

/* ==========================================================================
   SECTION 6 — GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(168, 81, 109, 0.12);
  cursor: pointer;
  transition: transform .2s;
}
.gallery-photo:hover {
  transform: scale(1.03);
}
@media (min-width: 701px) {
  /* 4 photos: tall portrait on the left, wide shot top-right, two more underneath */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; max-width: 1000px; }
  .gallery-grid .gallery-photo:nth-child(1) { grid-row: span 2; object-position: 50% 30%; }
  .gallery-grid .gallery-photo:nth-child(2) { grid-column: span 2; object-position: 50% 22%; }
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .gallery-photo:nth-child(1) { grid-column: span 2; grid-row: span 3; object-position: 50% 30%; }
  .gallery-grid .gallery-photo:nth-child(2) { grid-column: span 2; grid-row: span 2; }
}

/* --- Infinite filmstrip below the gallery --- */
.filmstrip {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  background: var(--color-pink-deep);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(168, 81, 109, 0.28);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.filmstrip-track {
  position: relative;
  display: flex;
  width: max-content;
  padding: 30px 0;
  animation: filmstrip-scroll 60s linear infinite;
}
.filmstrip:hover .filmstrip-track { animation-play-state: paused; }
/* Sprocket holes ride along with the film (28px period divides the 1848px loop evenly) */
.filmstrip-track::before,
.filmstrip-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Crect x='7' y='1' width='14' height='10' rx='2.5' fill='%23FFF6F2'/%3E%3C/svg%3E") 0 0 / 28px 12px repeat-x;
}
.filmstrip-track::before { top: 9px; }
.filmstrip-track::after { bottom: 9px; }
.filmstrip-frame {
  flex: none;
  width: 140px;
  height: 190px;
  margin-right: 14px; /* 140 + 14 = 154px per frame */
  object-fit: cover;
  border: 2px solid var(--color-cream-2);
  border-radius: 3px;
}
@keyframes filmstrip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .filmstrip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .filmstrip-track { animation: none; }
}
@media (max-width: 600px) {
  .filmstrip { margin-top: 1.75rem; border-radius: 0; }
}

/* --- Gallery lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 31, 39, 0.9);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-white);
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: .8rem;
  letter-spacing: .05em;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ==========================================================================
   SECTION 7 — ENTOURAGE
   ========================================================================== */
.entourage-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft);
  padding-top: 5rem;
}

/* --- Header: polaroid + script title --- */
.entourage-header {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  z-index: 2;
}
.entourage-photo-wrap { display: flex; justify-content: flex-start; }
.polaroid--small {
  width: 200px;
  padding: 10px 10px 44px;
  transform: rotate(-6deg);
}
.polaroid--small .polaroid-caption { font-size: 1.3rem; margin-top: 0.4rem; }
.polaroid--small .polaroid-tape { width: 60px; height: 24px; right: 15%; }

.entourage-title-wrap { text-align: center; }
.entourage-script-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--color-pink-deep);
  text-shadow: 0 2px 10px rgba(168,81,109, 0.15);
  line-height: 1;
}
.entourage-couple {
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-pink-deep);
  margin-top: 0.5rem;
  font-size: 1rem;
}
.entourage-florals {
  width: 240px;
  height: 180px;
  object-fit: contain;
  object-position: top right;
  justify-self: end;
  opacity: 0.6;
  pointer-events: none;
}

/* --- Shared card look --- */
.entourage-card {
  background: var(--color-white);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 34px rgba(168, 81, 109, 0.1);
  position: relative;
  z-index: 2;
}
.entourage-card-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--color-pink-deep);
  margin-bottom: 1.25rem;
}

/* --- Parents --- */
.entourage-parents {
  max-width: 640px;
  margin: 0 auto 3rem;
}
.parents-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.parents-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  margin-bottom: 0.5rem;
}
.parents-col p { color: var(--color-text-soft); }
.parents-divider { color: var(--color-gold); font-size: 1.3rem; }

/* --- Principal role cards --- */
.role-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.role-card {
  background: var(--color-white);
  border-radius: 100px 100px 14px 14px;
  padding: 2rem 0.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(168, 81, 109, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.role-icon { font-size: 1.6rem; }
.role-title {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  font-weight: 600;
  line-height: 1.3;
}
.role-name { font-size: 0.85rem; color: var(--color-text-soft); }
.role-heart { font-size: 0.75rem; }

/* --- Two-column rows --- */
.entourage-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

/* Flower girls */
.flower-girls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.flower-girl {
  background: var(--color-cream);
  border-radius: 10px;
  padding: 0.9rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}
.flower-girl span { display: block; font-size: 1.3rem; margin-bottom: 0.35rem; }

/* Secondary sponsors */
.sponsors-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}
.sponsor-icon { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.sponsor-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  margin-bottom: 0.35rem;
}
.sponsor-col p { font-size: 0.85rem; color: var(--color-text-soft); }

/* Team bride / groom */
.team-card { position: relative; text-align: center; }
.team-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.team-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  text-align: left;
}
.team-names ul { list-style: none; color: var(--color-text-soft); font-size: 0.9rem; }
.team-names li { padding: 0.3rem 0; }

/* Principal sponsors */
.principal-sponsors { max-width: 1100px; margin: 0 auto; }
.principal-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
}
.principal-label {
  text-align: center;
  font-family: var(--font-serif);
  color: var(--color-pink-deep);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.principal-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}
.principal-names ul { list-style: none; color: var(--color-text-soft); font-size: 0.88rem; }
.principal-names li { padding: 0.25rem 0; }
.principal-divider { color: var(--color-gold); font-size: 1.4rem; align-self: center; }

/* --- Entourage: taped paper cards --- */
#entourage.entourage-section {
  --ent-gold: var(--color-gold);
  --ent-line: rgba(179,138,109,.28);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(circle, rgba(168,81,109,.10) 1px, transparent 1px),
    radial-gradient(ellipse at 12% 55%, rgba(247,201,200,.40) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 18%, rgba(252,229,205,.55) 0%, transparent 48%);
  background-size: 32px 32px, 100% 100%, 100% 100%;
  padding: 5rem 0 6rem;
}
.ent-header { text-align: center; margin-bottom: 2.75rem; }
.ent-eyebrow {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--color-gold);
  margin-bottom: .1rem;
}
.ent-script {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.25rem);
  color: var(--color-pink-deep);
  text-shadow: 0 2px 10px rgba(168,81,109,.15);
  line-height: 1.1;
  margin-bottom: .35rem;
}
.ent-leaves { width: 170px; height: 38px; stroke-width: 1.3; color: var(--color-pink); display: block; margin: 0 auto; }

.ent-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 2.5rem 3rem;
  background: none;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 4px rgba(74,44,54,.12)) drop-shadow(0 14px 22px rgba(168,81,109,.16));
  z-index: 2;
  transition: filter .35s ease;
}
.ent-card { --tilt: 0deg; transform: rotate(var(--tilt)); }
.ent-card:nth-of-type(odd)  { --tilt: -0.6deg; }
.ent-card:nth-of-type(even) { --tilt: 0.6deg; }
.ent-card::before,
.ent-card::after {
  content: '';
  position: absolute;
  width: 78px;
  height: 22px;
  background: rgba(215,160,166,.62);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 3px, rgba(255,255,255,.10) 3px, rgba(255,255,255,.10) 5px);
  transform: rotate(44deg);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,.22);
  z-index: 3;
}
.ent-card::before { top: 2px; left: -16px; --tape-r: 44deg; }
.ent-card::after  { bottom: 2px; right: -16px; }
.ent-card--hero { padding: 2.6rem 3rem; }


/* torn paper: outer layer = pale ripped fibre edge, inner layer = the sheet (different jaggedness) */
.ent-paper {
  position: absolute;
  inset: 0;
  background: #fffdfb;
  clip-path: polygon(0.0% 1.6px, 3.57% 6.7px, 7.14% 0.9px, 10.71% 4.9px, 14.29% 0.6px, 17.86% 1.7px, 21.43% 7.0px, 25.0% 1.5px, 28.57% 4.5px, 32.14% 3.2px, 35.71% 3.2px, 39.29% 3.5px, 42.86% 1.3px, 46.43% 5.8px, 50.0% 0.6px, 53.57% 1.6px, 57.14% 0.1px, 60.71% 1.9px, 64.29% 2.9px, 67.86% 6.3px, 71.43% 2.7px, 75.0% 0.8px, 78.57% 1.8px, 82.14% 6.9px, 85.71% 0.4px, 89.29% 4.3px, 92.86% 2.6px, 96.43% 4.6px, 100.0% 2.4px, 100.0% calc(100% - 5.5px), 96.43% calc(100% - 4.0px), 92.86% calc(100% - 5.2px), 89.29% calc(100% - 7.2px), 85.71% calc(100% - 4.7px), 82.14% calc(100% - 1.1px), 78.57% calc(100% - 0.5px), 75.0% calc(100% - 7.6px), 71.43% calc(100% - 3.9px), 67.86% calc(100% - 1.6px), 64.29% calc(100% - 7.6px), 60.71% calc(100% - 4.6px), 57.14% calc(100% - 5.8px), 53.57% calc(100% - 7.0px), 50.0% calc(100% - 2.3px), 46.43% calc(100% - 2.9px), 42.86% calc(100% - 7.0px), 39.29% calc(100% - 1.1px), 35.71% calc(100% - 6.1px), 32.14% calc(100% - 0.8px), 28.57% calc(100% - 5.5px), 25.0% calc(100% - 5.6px), 21.43% calc(100% - 7.6px), 17.86% calc(100% - 6.7px), 14.29% calc(100% - 4.0px), 10.71% calc(100% - 1.6px), 7.14% calc(100% - 1.2px), 3.57% calc(100% - 4.2px), 0.0% calc(100% - 4.1px));
  z-index: 0;
}
.ent-paper::after {
  content: '';
  position: absolute;
  inset: 4px 0 4px 0;
  background-color: #fff6f2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .66 0 0 0 0 .32 0 0 0 0 .43 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fffaf7 0%, #fff4ef 100%);
  clip-path: polygon(0.0% 1.8px, 3.57% 4.8px, 7.14% 4.2px, 10.71% 1.6px, 14.29% 1.5px, 17.86% 3.1px, 21.43% 4.2px, 25.0% 3.4px, 28.57% 4.7px, 32.14% 3.6px, 35.71% 4.1px, 39.29% 3.0px, 42.86% 1.8px, 46.43% 2.1px, 50.0% 2.4px, 53.57% 2.6px, 57.14% 4.2px, 60.71% 1.3px, 64.29% 0.3px, 67.86% 3.7px, 71.43% 1.4px, 75.0% 2.1px, 78.57% 0.6px, 82.14% 4.1px, 85.71% 1.4px, 89.29% 1.5px, 92.86% 4.0px, 96.43% 2.5px, 100.0% 1.4px, 100.0% calc(100% - 5.3px), 96.43% calc(100% - 2.5px), 92.86% calc(100% - 2.2px), 89.29% calc(100% - 5.8px), 85.71% calc(100% - 4.7px), 82.14% calc(100% - 4.5px), 78.57% calc(100% - 1.5px), 75.0% calc(100% - 4.9px), 71.43% calc(100% - 3.6px), 67.86% calc(100% - 5.0px), 64.29% calc(100% - 2.2px), 60.71% calc(100% - 4.7px), 57.14% calc(100% - 4.8px), 53.57% calc(100% - 2.3px), 50.0% calc(100% - 3.9px), 46.43% calc(100% - 4.7px), 42.86% calc(100% - 6.0px), 39.29% calc(100% - 5.5px), 35.71% calc(100% - 4.7px), 32.14% calc(100% - 0.8px), 28.57% calc(100% - 3.7px), 25.0% calc(100% - 4.1px), 21.43% calc(100% - 0.5px), 17.86% calc(100% - 2.8px), 14.29% calc(100% - 5.2px), 10.71% calc(100% - 5.4px), 7.14% calc(100% - 5.6px), 3.57% calc(100% - 0.6px), 0.0% calc(100% - 3.6px));
}
.ent-card:nth-of-type(3n+2) .ent-paper { clip-path: polygon(0.0% 0.5px, 3.57% 6.3px, 7.14% 3.6px, 10.71% 4.9px, 14.29% 1.5px, 17.86% 1.7px, 21.43% 0.1px, 25.0% 2.4px, 28.57% 1.9px, 32.14% 3.0px, 35.71% 2.6px, 39.29% 5.8px, 42.86% 6.2px, 46.43% 1.2px, 50.0% 2.8px, 53.57% 1.2px, 57.14% 4.6px, 60.71% 6.8px, 64.29% 1.4px, 67.86% 5.4px, 71.43% 2.1px, 75.0% 0.1px, 78.57% 5.4px, 82.14% 2.4px, 85.71% 1.2px, 89.29% 3.0px, 92.86% 1.6px, 96.43% 2.9px, 100.0% 3.1px, 100.0% calc(100% - 3.3px), 96.43% calc(100% - 4.7px), 92.86% calc(100% - 2.3px), 89.29% calc(100% - 0.8px), 85.71% calc(100% - 0.7px), 82.14% calc(100% - 0.9px), 78.57% calc(100% - 4.2px), 75.0% calc(100% - 2.9px), 71.43% calc(100% - 6.5px), 67.86% calc(100% - 4.0px), 64.29% calc(100% - 5.7px), 60.71% calc(100% - 7.8px), 57.14% calc(100% - 0.5px), 53.57% calc(100% - 0.1px), 50.0% calc(100% - 1.1px), 46.43% calc(100% - 3.1px), 42.86% calc(100% - 4.6px), 39.29% calc(100% - 6.0px), 35.71% calc(100% - 2.8px), 32.14% calc(100% - 7.7px), 28.57% calc(100% - 0.0px), 25.0% calc(100% - 6.7px), 21.43% calc(100% - 1.7px), 17.86% calc(100% - 7.0px), 14.29% calc(100% - 0.3px), 10.71% calc(100% - 7.7px), 7.14% calc(100% - 6.1px), 3.57% calc(100% - 7.9px), 0.0% calc(100% - 4.6px)); }
.ent-card:nth-of-type(3n+2) .ent-paper::after { clip-path: polygon(0.0% 4.3px, 3.57% 3.3px, 7.14% 1.6px, 10.71% 0.2px, 14.29% 4.6px, 17.86% 4.3px, 21.43% 3.3px, 25.0% 1.8px, 28.57% 4.1px, 32.14% 4.1px, 35.71% 3.6px, 39.29% 3.0px, 42.86% 1.6px, 46.43% 1.5px, 50.0% 1.8px, 53.57% 1.6px, 57.14% 2.6px, 60.71% 0.6px, 64.29% 3.6px, 67.86% 1.7px, 71.43% 0.8px, 75.0% 1.3px, 78.57% 1.9px, 82.14% 2.2px, 85.71% 3.9px, 89.29% 0.5px, 92.86% 1.1px, 96.43% 1.5px, 100.0% 0.9px, 100.0% calc(100% - 4.5px), 96.43% calc(100% - 0.7px), 92.86% calc(100% - 0.3px), 89.29% calc(100% - 3.3px), 85.71% calc(100% - 4.4px), 82.14% calc(100% - 5.0px), 78.57% calc(100% - 3.4px), 75.0% calc(100% - 2.0px), 71.43% calc(100% - 5.3px), 67.86% calc(100% - 4.4px), 64.29% calc(100% - 2.9px), 60.71% calc(100% - 3.4px), 57.14% calc(100% - 5.6px), 53.57% calc(100% - 6.0px), 50.0% calc(100% - 5.6px), 46.43% calc(100% - 0.8px), 42.86% calc(100% - 2.0px), 39.29% calc(100% - 2.4px), 35.71% calc(100% - 1.0px), 32.14% calc(100% - 4.6px), 28.57% calc(100% - 0.4px), 25.0% calc(100% - 5.3px), 21.43% calc(100% - 3.5px), 17.86% calc(100% - 3.7px), 14.29% calc(100% - 2.5px), 10.71% calc(100% - 5.6px), 7.14% calc(100% - 3.5px), 3.57% calc(100% - 5.4px), 0.0% calc(100% - 5.5px)); }
.ent-card:nth-of-type(3n) .ent-paper { clip-path: polygon(0.0% 1.2px, 3.57% 6.8px, 7.14% 3.1px, 10.71% 0.6px, 14.29% 4.2px, 17.86% 3.5px, 21.43% 3.3px, 25.0% 1.1px, 28.57% 0.9px, 32.14% 4.1px, 35.71% 3.2px, 39.29% 0.9px, 42.86% 3.1px, 46.43% 5.1px, 50.0% 5.0px, 53.57% 3.3px, 57.14% 2.8px, 60.71% 2.5px, 64.29% 1.6px, 67.86% 1.4px, 71.43% 3.1px, 75.0% 0.8px, 78.57% 5.1px, 82.14% 5.0px, 85.71% 4.3px, 89.29% 0.2px, 92.86% 2.5px, 96.43% 3.0px, 100.0% 0.7px, 100.0% calc(100% - 7.7px), 96.43% calc(100% - 6.0px), 92.86% calc(100% - 4.0px), 89.29% calc(100% - 5.6px), 85.71% calc(100% - 1.6px), 82.14% calc(100% - 1.8px), 78.57% calc(100% - 4.2px), 75.0% calc(100% - 6.0px), 71.43% calc(100% - 5.2px), 67.86% calc(100% - 0.1px), 64.29% calc(100% - 4.9px), 60.71% calc(100% - 7.3px), 57.14% calc(100% - 5.9px), 53.57% calc(100% - 7.4px), 50.0% calc(100% - 7.9px), 46.43% calc(100% - 1.8px), 42.86% calc(100% - 2.4px), 39.29% calc(100% - 4.4px), 35.71% calc(100% - 7.8px), 32.14% calc(100% - 3.0px), 28.57% calc(100% - 7.5px), 25.0% calc(100% - 6.8px), 21.43% calc(100% - 4.1px), 17.86% calc(100% - 5.0px), 14.29% calc(100% - 7.7px), 10.71% calc(100% - 6.3px), 7.14% calc(100% - 2.4px), 3.57% calc(100% - 6.8px), 0.0% calc(100% - 1.6px)); }
.ent-card:nth-of-type(3n) .ent-paper::after { clip-path: polygon(0.0% 3.5px, 3.57% 4.9px, 7.14% 2.4px, 10.71% 1.8px, 14.29% 4.2px, 17.86% 2.6px, 21.43% 1.5px, 25.0% 3.4px, 28.57% 2.4px, 32.14% 0.6px, 35.71% 4.2px, 39.29% 2.5px, 42.86% 4.9px, 46.43% 2.7px, 50.0% 4.7px, 53.57% 1.4px, 57.14% 1.1px, 60.71% 2.6px, 64.29% 3.8px, 67.86% 4.1px, 71.43% 3.2px, 75.0% 0.6px, 78.57% 2.0px, 82.14% 0.2px, 85.71% 1.9px, 89.29% 4.7px, 92.86% 1.7px, 96.43% 3.5px, 100.0% 3.1px, 100.0% calc(100% - 0.9px), 96.43% calc(100% - 4.1px), 92.86% calc(100% - 0.5px), 89.29% calc(100% - 1.1px), 85.71% calc(100% - 3.5px), 82.14% calc(100% - 0.8px), 78.57% calc(100% - 5.8px), 75.0% calc(100% - 2.6px), 71.43% calc(100% - 3.8px), 67.86% calc(100% - 5.8px), 64.29% calc(100% - 0.6px), 60.71% calc(100% - 6.0px), 57.14% calc(100% - 0.2px), 53.57% calc(100% - 3.6px), 50.0% calc(100% - 3.9px), 46.43% calc(100% - 5.9px), 42.86% calc(100% - 2.1px), 39.29% calc(100% - 5.7px), 35.71% calc(100% - 3.9px), 32.14% calc(100% - 2.9px), 28.57% calc(100% - 1.0px), 25.0% calc(100% - 1.4px), 21.43% calc(100% - 2.2px), 17.86% calc(100% - 2.1px), 14.29% calc(100% - 2.2px), 10.71% calc(100% - 4.8px), 7.14% calc(100% - 2.2px), 3.57% calc(100% - 3.8px), 0.0% calc(100% - 0.2px)); }
.ent-card > *:not(.ent-paper) { position: relative; z-index: 1; }

/* vary the tape a little */
.ent-card:nth-of-type(3n+1)::before { background-color: rgba(179,138,109,.55); }
.ent-card:nth-of-type(3n+2)::after  { background-color: rgba(179,138,109,.55); }

@media (hover: hover) {
  .ent-card.in:hover { filter: drop-shadow(0 6px 6px rgba(74,44,54,.14)) drop-shadow(0 22px 30px rgba(168,81,109,.24)); }
}

.ent-icon { text-align: center; color: var(--color-pink-deep); margin: 0 auto .7rem; line-height: 1; }
.ent-icon svg { width: 38px; height: 38px; }

.ent-row { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; text-align: center; }
.ent-row--hero { align-items: center; }
.ent-col { flex: 1; min-width: 0; }
.ent-col--divider { border-right: 1px solid var(--ent-line); padding-right: 1rem; }
/* right-aligned left column, left-aligned right column (like the sponsor lists) */
.ent-row--split { gap: 0; }
.ent-row--split .ent-col { text-align: left; padding-left: 1.1rem; }
.ent-row--split .ent-col--divider { text-align: right; padding-left: 0; padding-right: 1.1rem; }
.ent-row--split .ent-label,
.ent-row--split .ent-sub-label { justify-content: flex-end; }
.ent-row--split .ent-col:not(.ent-col--divider) .ent-label,
.ent-row--split .ent-col:not(.ent-col--divider) .ent-sub-label { justify-content: flex-start; }
.ent-row--split .ent-label::before, .ent-row--split .ent-label::after,
.ent-row--split .ent-sub-label::before, .ent-row--split .ent-sub-label::after { display: none; }

.ent-label, .ent-sub-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
  margin-bottom: .4rem;
}
.ent-label { font-size: clamp(.67rem, 2vw, .76rem); }
.ent-label--solo { margin-bottom: 1rem; }
.ent-sub-label { font-size: .69rem; font-weight: 600; letter-spacing: .18em; color: var(--color-gold); }
.ent-label::before, .ent-label::after,
.ent-sub-label::before, .ent-sub-label::after {
  content: '';
  height: 1px;
  width: 26px;
  flex-shrink: 0;
  background: linear-gradient(to right, transparent, var(--color-pink));
}
.ent-label::after, .ent-sub-label::after { background: linear-gradient(to left, transparent, var(--color-pink)); }

.ent-main-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 3.4vw, 1.35rem);
  font-weight: 600;
  color: var(--color-pink-deep);
  line-height: 1.4;
}
.ent-name {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(.83rem, 2.2vw, .94rem);
  color: var(--color-text);
  line-height: 1.8;
}
.ent-amp {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.2rem);
  color: var(--ent-gold);
  opacity: .7;
  line-height: 1;
  padding: 0 .5rem;
}
@media (max-width: 575px) {
  #entourage.entourage-section { padding: 3.5rem 0 4.5rem; }
  .ent-card { padding: 2rem 1.5rem; }
  .ent-card--hero { padding: 2rem 1rem; }
  .ent-card::before { width: 58px; height: 18px; left: -10px; top: 4px; }
  .ent-card::after  { width: 58px; height: 18px; right: -10px; bottom: 4px; }
  .ent-row:not(.ent-row--hero):not(.ent-row--split) { flex-wrap: wrap; }
  .ent-row:not(.ent-row--hero):not(.ent-row--split) .ent-col { flex: 1 1 100%; }
  .ent-row:not(.ent-row--split) .ent-col--divider { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--ent-line); padding-bottom: 1rem; }
  .ent-label, .ent-sub-label { letter-spacing: .14em; white-space: normal; }
  .ent-label::before, .ent-label::after, .ent-sub-label::before, .ent-sub-label::after { width: 12px; }
}


/* --- Scroll animation (JS adds .ent-anim to the section, then .in to each item as it enters view) --- */
.ent-anim .ent-header > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ent-anim .ent-header.in > * { opacity: 1; transform: none; }
.ent-anim .ent-header.in > *:nth-child(2) { transition-delay: .12s; }
.ent-anim .ent-header.in > *:nth-child(3) { transition-delay: .26s; }
.ent-anim .ent-leaves path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.6s ease .4s; }
.ent-anim .ent-header.in .ent-leaves path { stroke-dashoffset: 0; }

.ent-anim .ent-card {
  opacity: 0;
  transform: translateY(46px) rotate(calc(var(--tilt) * 4));
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.25,1);
}
.ent-anim .ent-card.in { opacity: 1; transform: rotate(var(--tilt)); }
/* tape "sticks" on after the card lands */
.ent-anim .ent-card::before, .ent-anim .ent-card::after {
  opacity: 0;
  transform: rotate(44deg) scale(.4);
  transition: opacity .35s ease .5s, transform .5s cubic-bezier(.3,1.5,.5,1) .5s;
}
.ent-anim .ent-card.in::before, .ent-anim .ent-card.in::after { opacity: 1; transform: rotate(44deg) scale(1); }
.ent-anim .ent-card.in::after { transition-delay: .7s; }
/* contents rise in one after another */
.ent-anim .ent-card .ent-icon,
.ent-anim .ent-card .ent-label,
.ent-anim .ent-card .ent-sub-label,
.ent-anim .ent-card .ent-name,
.ent-anim .ent-card .ent-main-name,
.ent-anim .ent-card .ent-amp {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(.35s + var(--i, 0) * 70ms);
}
.ent-anim .ent-card.in .ent-icon,
.ent-anim .ent-card.in .ent-label,
.ent-anim .ent-card.in .ent-sub-label,
.ent-anim .ent-card.in .ent-name,
.ent-anim .ent-card.in .ent-main-name,
.ent-anim .ent-card.in .ent-amp { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ent-anim .ent-header > *, .ent-anim .ent-card, .ent-anim .ent-card *, .ent-anim .ent-card::before, .ent-anim .ent-card::after {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .ent-anim .ent-card { transform: rotate(var(--tilt)) !important; }
  .ent-anim .ent-card::before, .ent-anim .ent-card::after { transform: rotate(44deg) !important; }
}

@media (max-width: 900px) {
  .entourage-header { grid-template-columns: 1fr; text-align: center; }
  .entourage-photo-wrap, .entourage-florals { justify-content: center; justify-self: center; }
  .entourage-florals { display: none; }
  .parents-grid { grid-template-columns: 1fr; }
  .parents-divider { transform: rotate(90deg); }
  .entourage-two-col { grid-template-columns: 1fr; }
  .principal-grid { grid-template-columns: 1fr; }
  .principal-divider { transform: rotate(90deg); }
}

@media (max-width: 700px) {
  .flower-girls-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsors-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION 8 — RSVP
   ========================================================================== */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(168, 81, 109, 0.15);
}

@media (max-width: 700px) {
  .rsvp-form { padding: 1rem; }
}
.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.form-row input,
.form-row select,
.form-row textarea {
  border: 1.5px solid var(--color-pink-light);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-pink-deep);
}
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.rsvp-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: var(--color-white);
  border: 1.5px solid var(--color-pink-light);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(168, 81, 109, 0.18);
  max-height: 220px;
  overflow-y: auto;
}
.rsvp-suggestions li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-cream);
}
.rsvp-suggestions li:last-child { border-bottom: none; }
.rsvp-suggestions li:hover { background: var(--color-cream); }
.rsvp-suggestions li .sugg-group {
  font-size: 0.72rem;
  color: var(--color-pink-deep);
  white-space: nowrap;
}
.rsvp-suggestions li.sugg-taken .sugg-group { color: var(--color-text-soft); }

.attend-toggle { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.attend-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  border: 1.5px solid var(--color-pink-deep);
  background: var(--color-white);
  color: var(--color-pink-deep);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.attend-btn--active {
  background: var(--color-pink-deep);
  color: var(--color-white);
}

.rsvp-form-msg {
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}
.rsvp-form-msg.ok  { color: #2e7d32; }
.rsvp-form-msg.err { color: #b00020; }

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 30px;
  background: var(--gradient-gold);
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-submit:hover { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.rsvp-deadline {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.recaptcha-note {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--color-text-soft);
}
.recaptcha-note a {
  color: var(--color-text-soft);
}

.grecaptcha-badge {
  visibility: hidden;
}

footer {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.8rem;
  background: var(--color-cream-2);
}
.footer-parallax {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  align-items: stretch;
  background: linear-gradient(165deg, #FDEFE3 0%, #FBE8DA 55%, #F4D3C6 100%);
}
.footer-photo { background: #3a2730; display: flex; }
.footer-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
  display: block;
}
.footer-content {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 0.6rem;
}
.footer-florals {
  position: absolute; top: -10px; right: -10px;
  width: clamp(120px, 16vw, 220px);
  transform: scaleX(-1);
  opacity: 0.9; pointer-events: none;
}
.footer-eyebrow {
  font-family: var(--font-hero-serif);
  font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase;
  font-size: 0.95rem; color: var(--hero-rose);
}
.footer-names {
  font-family: var(--font-hero-script);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.1;
  color: var(--hero-brown);
}
.footer-content .hero-divider { justify-content: center; margin: 0.2rem 0; }
.footer-content .hero-divider span.line { width: 90px; background: var(--hero-gold); }
.footer-content .hero-divider span.divider-heart { color: var(--hero-rose); font-size: 1.2rem; }
.footer-parallax-text {
  font-family: var(--font-hero-serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--hero-brown);
  max-width: 24ch;
}
.footer-date {
  font-family: var(--font-hero-serif);
  font-weight: 700; font-size: 1.7rem; color: var(--hero-brown);
  margin-top: 0.6rem;
}
.footer-place {
  font-family: var(--font-hero-serif);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.9rem; color: var(--hero-brown); max-width: 32ch;
  margin-bottom: 0.8rem;
}
.footer-credit {
  font-family: var(--font-hero-script);
  font-size: 1.8rem; color: var(--hero-rose); margin-top: 1rem;
}
@media (max-width: 900px) {
  .footer-parallax { grid-template-columns: 1fr; margin-bottom: 4.5rem; }
  .footer-photo img { max-height: 80vh; margin: 0 auto; object-position: center top; }
  .footer-content { padding: 2.5rem 1.5rem; }
}

/* ==========================================================================
   MUSIC TOGGLE BUTTON
   ========================================================================== */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 0.5rem;
  z-index: 400;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-pink-deep);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-pink-deep);
  box-shadow: 0 4px 14px rgba(74,44,54, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.music-btn:hover { transform: scale(1.08); }


/* ==========================================================================
   KRISTINE & MARC additions
   ========================================================================== */
.polaroid-photo--empty {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-cream-2) 0%, var(--color-pink-light) 55%, var(--color-blue-light) 100%);
}
.polaroid-photo--empty .monogram {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-pink-deep);
}
.polaroid-photo--empty .monogram em { font-style: normal; color: var(--color-gold); font-size: 3rem; }

.coming-soon {
  max-width: 520px;
  margin: 2rem auto 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--color-pink);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}
.coming-soon-icon { display: block; font-size: 2rem; color: var(--color-pink-deep); margin-bottom: 0.5rem; }
.coming-soon h3 { font-family: var(--font-display); font-size: 2.2rem; color: var(--color-pink-deep); }
.coming-soon p { color: var(--color-text-soft); margin-top: 0.5rem; }

.details-date { text-align: center; font-family: var(--font-serif); font-size: 1.6rem; color: var(--color-text); }
.details-time { text-align: center; color: var(--color-pink-deep); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; margin-top: 0.25rem; }

.guide-card--colour { justify-content: center; text-align: center; }
.guide-card--colour .guide-content { width: 100%; }
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 3px 10px rgba(74, 44, 54, 0.18);
}

/* Hidden YouTube audio player (must stay in the DOM and non-zero size to play) */
.yt-player-wrap { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; overflow: hidden; pointer-events: none; }

.story-photo--empty {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-cream-2), var(--color-pink-light) 60%, var(--color-blue-light));
  background-clip: content-box;
}
.story-photo--empty span { font-size: 3rem; color: var(--color-pink-deep); opacity: 0.7; }

/* Wordmark logo */
.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s ease;
}
.logo-name {
  font-size: 2.5rem;
  color: var(--color-pink-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 8px rgba(255, 246, 242, 0.5);
}
.logo-amp {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--color-gold);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-0.12em);
}
.nav-brand:hover .logo-wordmark { transform: scale(1.04); }
@media (max-width: 600px) {
  .logo-name { font-size: 2rem; }
  .logo-amp { font-size: 1.4rem; }
}

.qr-soon-box {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-soft);
  border: 1px dashed var(--color-pink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.qr-option--soon { width: auto; }

/* ==========================================================================
   Section separator: flowing gold/white wave with roses (images/sep-*.svg).
   The lower area is filled with the next section's colour; the upper area is
   transparent and overlaps the bottom of the previous section.
   ========================================================================== */
.wave-sep {
  position: relative;
  z-index: 3;
  /* 5.5vw = the SVG's 2000:110 ratio, so wide screens show the whole wave (no top crop) */
  height: max(64px, 5.5vw);
  margin-top: calc(-1 * max(64px, 5.5vw) + 1px);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
}
.wave-sep--peach { background-image: url('images/sep-peach.svg'); }
.wave-sep--blush { background-image: url('images/sep-blush.svg'); }
.wave-sep--cream { background-image: url('images/sep-cream.svg'); }

/* leave room for the rose separator that overlaps the bottom of each section */
/* wave height + clear gap so content never crowds the separator */
.section { padding-bottom: calc(max(64px, 5.5vw) + 4.5rem); }
#rsvp { padding-bottom: calc(max(64px, 5.5vw) + 4rem); }

/* Rings divider sitting on the boundary between two sections (no extra height) */
.ring-sep {
  position: relative;
  z-index: 3;
  width: min(380px, 80%);
  aspect-ratio: 1000 / 65;
  height: auto;
  margin: calc(-1 * min(380px, 80%) * 0.0325) auto;
  background: url('images/divider-rings.png') center / contain no-repeat;
  pointer-events: none;
}

/* breathing room between a separator and the first content of the next section */
.wave-sep + .section,
.ring-sep + .section { padding-top: 8.5rem; }

/* ==========================================================================
   Details section — soft blush cards with ring dividers between them
   ========================================================================== */
#details .venue-card,
#details .guide-card--colour,
#details .guide-card--dress {
  background: linear-gradient(160deg, #FFFFFF 0%, rgba(252, 229, 205, 0.45) 100%);
  border: 1px solid rgba(215, 160, 166, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55), 0 14px 36px rgba(168, 81, 109, 0.14);
  border-radius: 22px;
  overflow: hidden;
}
#details .venue-card { margin: 0 auto; }
#details .guide-list { margin-top: 0; }
#details .guide-card--colour,
#details .guide-card--dress { padding: 1.75rem 2rem; }
#details .guide-content .hero-divider { display: none; }
#details .guide-content h3 {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-pink-deep);
  text-align: center;
}
#details .details-date { font-size: clamp(1.5rem, 4vw, 2.1rem); }
#details .details-time { margin-top: 0.75rem; }
#details .details-time span {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border-radius: 999px;
  background: rgba(244, 194, 194, 0.45);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}
#details .venue-label {
  display: inline-block;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  background: rgba(252, 229, 205, 0.8);
  color: var(--color-pink-deep);
}
#details .venue-map-link {
  border: 1.5px solid var(--color-pink-deep);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  color: var(--color-pink-deep);
  background: transparent;
}
.card-floral {
  position: absolute;
  width: 150px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}
.card-floral--tl { top: -12px; left: -12px; }
.card-floral--br { bottom: -12px; right: -12px; transform: rotate(180deg); }
@media (max-width: 600px) { .card-floral { width: 90px; } }

.details-ring {
  width: min(420px, 80%);
  aspect-ratio: 1000 / 65;
  margin: 1.25rem auto;
  background: url('images/divider-rings.png') center / contain no-repeat;
}

/* ==========================================================================
   Animations — gallery reveal + hover, footer drift
   ========================================================================== */
.gallery-photo.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), box-shadow .3s;
}
.gallery-photo.reveal.in { opacity: 1; transform: none; }
.gallery-photo.reveal.in:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 34px rgba(168, 81, 109, 0.28);
  transition-delay: 0ms;
  transition-duration: .3s;
}
.gallery-photo { border: 4px solid #fff; }

@keyframes footerDrift {
  from { background-position: 50% 15%; background-size: 108%; }
  to   { background-position: 50% 38%; background-size: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo.reveal { opacity: 1; transform: none; transition: none; }
  .footer-parallax { animation: none; }
}

/* Music button: gentle pulse until the music has started */
.music-btn--hint { animation: music-hint 2s ease-in-out infinite; }
@keyframes music-hint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 81, 109, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(168, 81, 109, 0); }
}
@media (prefers-reduced-motion: reduce) { .music-btn--hint { animation: none; } }

/* --- Dress guide --- */
.guide-card--dress { justify-content: center; text-align: center; }
.guide-card--dress .guide-content { width: 100%; }
.dress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.dress-look { margin: 0; }
.dress-look img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(168, 81, 109, 0.2);
  transition: transform .35s ease, box-shadow .35s ease;
}
.dress-look:hover img { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 32px rgba(168, 81, 109, 0.3); }
.dress-look figcaption { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.dress-look figcaption strong {
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-pink-deep);
}
.dress-look figcaption span { font-size: 0.85rem; color: var(--color-text-soft); line-height: 1.5; }
@media (max-width: 700px) {
  .dress-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}

/* Dress guide: Formal and Semi-formal shown together */
.dress-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-pink-deep);
}
.dress-level::before,
.dress-level::after { content: ""; flex: 1; height: 1px; background: rgba(215, 160, 166, 0.7); }
.dress-level + .dress-grid { margin-top: 1.1rem; }

/* Header logo: same script as the hero, with room so swashes and the & are never clipped */
.logo-wordmark {
  font-family: var(--font-hero-script);
  line-height: 1.3;
  padding: 0.1em 0.3em 0.15em 0.1em;
  align-items: center;
  gap: 0.2rem;
}
.logo-name { font-size: 2.6rem; color: var(--hero-brown); text-shadow: none; }
.logo-amp {
  font-family: var(--font-hero-script);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--hero-brown);
  text-shadow: none;
  transform: none;
  padding: 0 0.05em;
}
.hero-script-title { padding: 0.08em 0.15em 0.12em; }
@media (max-width: 600px) {
  .logo-name { font-size: 1.9rem; }
  .logo-amp { font-size: 1.7rem; }
}

/* Hero: bolder time and location */
.hero-daytime { font-weight: 700; -webkit-text-stroke: 0.4px currentColor; }
.hero-text .hero-location { font-weight: 700; -webkit-text-stroke: 0.4px currentColor; }

/* Story chapters: always left-aligned text, even when the photo is on the right */
.story-item.reverse .story-text { text-align: left; }

.gifts-intro { max-width: 680px; }
.gifts-intro p { margin-bottom: 1rem; line-height: 1.8; }
.gifts-intro p:last-child { margin-bottom: 0; }

/* Details: bolder time text */
#details .details-time span { font-weight: 700; color: var(--hero-brown); }

/* ==========================================================================
   ENVELOPE INTRO
   ========================================================================== */
body.env-locked { overflow: hidden; }
.env-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 1rem;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.6), transparent 40%),
    linear-gradient(165deg, #FDEFE3 0%, #FBE8DA 55%, #F4D3C6 100%);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.env-overlay.env-done { opacity: 0; visibility: hidden; pointer-events: none; }
.env-top {
  font-family: var(--font-hero-serif); font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.85rem;
  color: var(--hero-brown); text-align: center;
}
.env-names {
  font-family: var(--font-hero-script); font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 4.8rem); line-height: 1.15;
  color: var(--hero-brown); margin-bottom: 1.6rem; text-align: center;
}
.env-scene { perspective: 1000px; padding-top: 3.2rem; }
.envelope {
  position: relative; width: min(340px, 82vw); aspect-ratio: 3 / 2;
  cursor: pointer; outline: none;
  filter: drop-shadow(0 18px 24px rgba(107,42,24,0.28));
  animation: envBob 3s ease-in-out infinite;
}
.envelope:focus-visible { outline: 3px solid var(--hero-rose); outline-offset: 8px; }
@keyframes envBob { 50% { transform: translateY(-8px); } }
.env-back { position: absolute; inset: 0; background: #E3AE9E; border-radius: 6px; }
.env-letter {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 88%;
  background: #FFF8F1; border-radius: 4px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 0.9rem; text-align: center; gap: 0.2rem;
  border: 1px solid #EBD3BE;
  transition: transform 0.6s ease 0.3s;
}
.env-letter-small { font-family: var(--font-hero-serif); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hero-rose); }
.env-letter-names { font-family: var(--font-hero-script); font-size: 2.1rem; line-height: 1.1; color: var(--hero-brown); }
.env-letter-date { font-family: var(--font-hero-serif); font-weight: 700; font-size: 0.95rem; color: var(--hero-brown); }
.env-pocket {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  background: linear-gradient(160deg, #F2C3B3, #E7AE9D);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 58%;
  background: linear-gradient(180deg, #EFB9A8, #E3A594);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 4;
  transition: transform 0.45s ease, z-index 0s 0.22s;
}
.env-seal {
  position: absolute; left: 50%; top: 58%; z-index: 5;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.5rem; color: #FBE3DA;
  background: radial-gradient(circle at 35% 30%, #A8402F, #6B2A18);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 0 0 3px rgba(255,255,255,0.12);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.env-hint {
  margin-top: 1.4rem; font-family: var(--font-hero-serif); font-style: italic;
  font-size: 1.2rem; color: var(--hero-rose);
  animation: envPulse 1.8s ease-in-out infinite;
}
@keyframes envPulse { 50% { opacity: 0.45; } }
.env-petals span {
  position: absolute; bottom: -2rem; color: var(--hero-rose); opacity: 0;
  animation: envRise 9s ease-in infinite;
}
.env-petals span:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 1.4rem; }
.env-petals span:nth-child(2) { left: 28%; animation-delay: 2s; font-size: 1rem; }
.env-petals span:nth-child(3) { left: 46%; animation-delay: 4.5s; font-size: 1.6rem; }
.env-petals span:nth-child(4) { left: 64%; animation-delay: 1s; font-size: 1.1rem; }
.env-petals span:nth-child(5) { left: 80%; animation-delay: 3.2s; font-size: 1.5rem; }
.env-petals span:nth-child(6) { left: 92%; animation-delay: 5.5s; font-size: 1rem; }
@keyframes envRise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.6; } 100% { transform: translateY(-105vh) rotate(25deg); opacity: 0; } }

/* opened state */
.env-overlay.env-open .envelope { animation: none; cursor: default; }
.env-overlay.env-open .env-seal { transform: scale(0.2); opacity: 0; }
.env-overlay.env-open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env-overlay.env-open .env-letter { transform: translateY(-62%); }
.env-overlay.env-open .env-hint { opacity: 0; animation: none; transition: opacity 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .envelope, .env-hint, .env-petals span { animation: none; }
}
