:root {
  --bg-1: #1a1325;
  --bg-2: #2a1c33;
  --bg-3: #3d2230;
  --gold: #d6b27c;
  --gold-soft: #e7d3b1;
  --cream: #f6efe6;
  --rose: #e8b4b8;
  --text-dim: rgba(246, 239, 230, 0.72);
  --panel: rgba(20, 14, 28, 0.45);
  --border: rgba(214, 178, 124, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Italiana", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--bg-1);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Backdrop */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-1));
  background-size: 300% 300%;
  animation: drift 22s ease infinite;
}
.bg-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(214, 178, 124, 0.16), transparent 55%);
}
@keyframes drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -8%; opacity: 0; animation: fall linear infinite; will-change: transform, opacity; }
@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(110vh) translateX(40px) rotate(360deg); opacity: 0; }
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  transition: padding 0.4s ease;
}
/* The scrolled background + blur live on a pseudo-element instead of .nav
   itself. A backdrop-filter on an ancestor turns it into the containing
   block for position:fixed descendants, which would collapse the mobile
   slide-in menu to the nav's height once the page is scrolled. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 14, 28, 0);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled::before {
  background: rgba(20, 14, 28, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.nav.scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-img {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}
.nav__brand:hover .brand-img { transform: scale(1.06); }
.brand-img--footer { height: 84px; margin: 0 auto; }
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
.nav__links a {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.rsvp-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  color: var(--gold-soft);
}
.nav__links a.rsvp-link::after { display: none; }
.nav__links a.rsvp-link:hover { background: rgba(214, 178, 124, 0.12); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 60; /* stay above the slide-in menu panel so the X is visible */
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    padding: 4rem 2rem;
    background: rgba(18, 12, 24, 0.97);
    backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.7);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 0.95rem; }
  .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); }
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-bg.has-image { opacity: 1; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* overlay darkness is set inline from config (heroOverlay) */
  background: rgba(18, 12, 24, var(--hero-overlay, 0.55));
}
.hero .card { position: relative; z-index: 1; }
.card {
  width: 100%;
  max-width: 720px;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(20, 14, 28, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(214, 178, 124, 0.18);
  border-radius: 2px;
  pointer-events: none;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: clamp(0.62rem, 2.4vw, 0.8rem);
  color: var(--gold);
  margin-bottom: clamp(1.2rem, 4vw, 2rem);
  animation: fadeUp 1s 0.2s both;
}
.names { font-family: var(--display); font-weight: 400; line-height: 1.05; display: flex; flex-direction: column; align-items: center; gap: 0.1em; }
.name { font-size: clamp(2.8rem, 13vw, 5.5rem); color: var(--cream); letter-spacing: 0.02em; }
.name-one { animation: fadeUp 1s 0.35s both; }
.name-two { animation: fadeUp 1s 0.65s both; }
.amp { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 7vw, 2.6rem); color: var(--gold); margin: 0.05em 0; animation: fadeUp 1s 0.5s both, pulse 4s 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: 0.85; } }
.sub-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 4vw, 1.5rem); color: var(--text-dim); margin-top: clamp(1rem, 4vw, 1.6rem); animation: fadeUp 1s 0.8s both; }

.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: clamp(1.6rem, 5vw, 2.6rem) auto; max-width: 320px; animation: fadeUp 1s 0.95s both; }
.divider .line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider .diamond { color: var(--gold); font-size: 0.9rem; }

.countdown[hidden] { display: none; }
.countdown { display: flex; justify-content: center; gap: clamp(0.6rem, 3vw, 1.6rem); margin: clamp(0.5rem, 3vw, 1rem) 0 0.5rem; animation: fadeUp 1s 1.05s both; }
.unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(54px, 16vw, 80px); padding: clamp(0.6rem, 2.5vw, 1rem) clamp(0.3rem, 2vw, 0.6rem); border: 1px solid rgba(214, 178, 124, 0.22); border-radius: 3px; background: rgba(214, 178, 124, 0.05); }
.unit .num { font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.6rem); color: var(--gold-soft); font-variant-numeric: tabular-nums; line-height: 1; }
.unit .label { font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; font-size: clamp(0.55rem, 2.2vw, 0.68rem); color: var(--text-dim); margin-top: 0.6rem; }

.coming-soon { font-family: var(--serif); font-size: clamp(1.1rem, 4.5vw, 1.6rem); letter-spacing: 0.04em; color: var(--gold-soft); margin-top: 0.5rem; animation: fadeUp 1s 1.05s both; }
.meta { font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; font-size: clamp(0.62rem, 2.6vw, 0.78rem); color: var(--text-dim); margin-top: clamp(1.2rem, 4vw, 1.8rem); }
.meta:empty { display: none; }
.hashtag { font-family: var(--serif); font-style: italic; font-size: clamp(0.95rem, 3.6vw, 1.2rem); color: var(--rose); margin-top: clamp(1rem, 3vw, 1.4rem); animation: fadeUp 1s 1.2s both; }
.hashtag:empty { display: none; }

/* Add to Calendar */
.calendar-cta { margin-top: clamp(1.4rem, 4vw, 2rem); position: relative; display: inline-block; }
.calendar-cta:empty { display: none; }
.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.cal-btn:hover { background: rgba(214, 178, 124, 0.12); transform: translateY(-2px); color: var(--cream); }
.cal-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: rgba(24, 16, 30, 0.97);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 5;
}
.cal-menu.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cal-menu a {
  display: block;
  text-align: left;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--cream);
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.cal-menu a:hover { background: rgba(214, 178, 124, 0.14); }

.scroll-cue {
  display: inline-block;
  margin-top: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold);
  text-decoration: none;
  font-size: 1.3rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 6vw, 3rem); position: relative; }
.section[hidden] { display: none; }
.section--alt { background: rgba(20, 14, 28, 0.4); }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 6vw, 3.5rem); }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.2rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 1.2rem auto 0;
  line-height: 1.6;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Story */
.story-text { max-width: 680px; margin: 0 auto; text-align: center; }
.story-text p { font-family: var(--serif); font-size: clamp(1.1rem, 3.6vw, 1.4rem); line-height: 1.7; color: var(--cream); margin-bottom: 1.1rem; }
.story-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
  max-width: 880px;
  margin: clamp(2rem, 6vw, 3rem) auto 0;
}
.story-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 8px;
  background: var(--panel);
}
.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  transition: transform 0.5s ease;
}
.story-photo:hover img { transform: scale(1.04); }
.timeline { max-width: 640px; margin: clamp(2rem, 6vw, 3rem) auto 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline-item { position: relative; padding: 0 0 1.8rem 3rem; }
.timeline-item::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--gold); font-size: 0.9rem; }
.timeline-item .t-date { font-family: var(--display); font-size: 1.25rem; color: var(--gold-soft); }
.timeline-item .t-text { font-family: var(--serif); font-size: 1.05rem; color: var(--text-dim); margin-top: 0.2rem; }

/* Events grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1rem, 3vw, 1.6rem); }
.event-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.4rem, 4vw, 2rem);
  background: var(--panel);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.event-card:hover { transform: translateY(-6px); border-color: rgba(214, 178, 124, 0.55); }
.event-card .e-icon { font-size: 1.9rem; }
.event-card .e-name { font-family: var(--display); font-size: 1.5rem; color: var(--cream); margin-top: 0.6rem; }
.event-card .e-date { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-soft); margin-top: 0.5rem; }
.event-card .e-time { font-size: 0.82rem; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 0.3rem; }
.event-card .e-venue { font-family: var(--serif); font-size: 1rem; color: var(--cream); margin-top: 0.8rem; }
.event-card .e-address { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.2rem; }
.event-card .e-map { display: inline-block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(214,178,124,0.4); padding-bottom: 2px; }
/* Bottom actions row: View Map + per-event Add to Calendar */
.event-card .e-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.3rem;
}
.event-card .cal { position: relative; display: inline-block; }
.event-card .cal-btn { padding: 0.62rem 1.3rem; font-size: 0.68rem; }

/* Travel */
.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 3vw, 1.6rem); }
.travel-card { border: 1px solid var(--border); border-radius: 4px; padding: clamp(1.4rem, 4vw, 2rem); background: var(--panel); }
.travel-card h3 { font-family: var(--display); font-size: 1.35rem; color: var(--gold-soft); margin-bottom: 0.6rem; }
.travel-card p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; color: var(--text-dim); }

/* Blessings */
.blessings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 3vw, 1.6rem); }
.blessing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.8rem, 4vw, 2.4rem);
  background: var(--panel);
  text-align: center;
}
.blessing-card::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.6;
  color: rgba(214, 178, 124, 0.4);
  display: block;
  margin-bottom: 0.4rem;
}
.blessing-card .b-msg { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3.4vw, 1.35rem); line-height: 1.6; color: var(--cream); }
.blessing-card .b-from { margin-top: 1.1rem; font-family: var(--sans); font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.74rem; color: var(--gold-soft); }
.blessing-card .b-from::before { content: "— "; }

/* On-brand embedded form (RSVP) */
.blessing-form-wrap {
  max-width: 600px;
  margin: clamp(1.2rem, 4vw, 2rem) auto 0;
}
.bf-intro {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  color: var(--text-dim);
  margin: 0 auto 1.8rem;
  max-width: 480px;
  line-height: 1.6;
}
.blessing-form { display: flex; flex-direction: column; gap: 1.3rem; }
.bf-field { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.bf-label {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold-soft);
}
.bf-input {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream);
  background: rgba(214, 178, 124, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.bf-input::placeholder { color: rgba(246, 239, 230, 0.4); font-style: italic; }
.bf-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(214, 178, 124, 0.09);
  box-shadow: 0 0 0 3px rgba(214, 178, 124, 0.12);
}
.bf-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* Select dropdown — styled to match, custom gold chevron */
.bf-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23d6b27c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}
.bf-select option { background: var(--bg-2); color: var(--cream); }

/* Radio options — pill cards */
.bf-options { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.bf-option {
  flex: 1 1 0;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(214, 178, 124, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.bf-option:hover { border-color: var(--gold); background: rgba(214, 178, 124, 0.1); }
.bf-option input { position: absolute; opacity: 0; pointer-events: none; }
.bf-radio-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.bf-radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.2s ease;
}
.bf-option-text { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.bf-option input:checked ~ .bf-radio-dot { background: rgba(214, 178, 124, 0.15); }
.bf-option input:checked ~ .bf-radio-dot::after { transform: scale(1); }
.bf-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(214, 178, 124, 0.14);
  box-shadow: 0 0 0 3px rgba(214, 178, 124, 0.12);
}
.bf-option input:focus-visible ~ .bf-radio-dot { box-shadow: 0 0 0 3px rgba(214, 178, 124, 0.25); }

.blessing-form .cta-row { margin-top: 1rem; }
.blessing-form .btn {
  border: 0;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  padding: 1.05rem 2rem;
  font-size: 0.82rem;
}
.blessing-form .btn:disabled { opacity: 0.75; cursor: default; transform: none; }
.bf-sink { display: none; }
.bf-thanks {
  display: none;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--gold-soft);
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.bf-thanks.show { display: block; animation: fadeUp 0.6s ease both; }

/* Embeds (music + rsvp) */
.embed-wrap { max-width: 720px; margin: 0 auto; }
.music-block { margin-top: clamp(2.5rem, 7vw, 4rem); }
.music-label {
  font-family: var(--display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--gold-soft);
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}
.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
}
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-frame { width: 100%; border: 0; border-radius: 12px; background: rgba(0,0,0,0.2); display: block; box-shadow: 0 20px 50px -25px rgba(0,0,0,0.7); }
.spotify-frame { height: 420px; }
.form-frame { height: 760px; border-radius: 8px; background: var(--cream); }
.cta-row { text-align: center; margin-top: clamp(1.4rem, 4vw, 2rem); }
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--bg-1);
  background: linear-gradient(120deg, #f3e1c0 0%, var(--gold-soft) 35%, var(--gold) 70%, #c79e64 100%);
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 14px 34px -14px rgba(214, 178, 124, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
/* shine sweep */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 22px 46px -14px rgba(214, 178, 124, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost::before { display: none; }
.btn--ghost:hover { background: rgba(214,178,124,0.1); box-shadow: none; filter: none; }

.placeholder-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2.2rem 1.5rem;
}
.deadline { text-align: center; font-size: 0.82rem; letter-spacing: 0.1em; color: var(--gold-soft); margin-top: 1.2rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(0.5rem, 2vw, 1rem); }
.gallery-grid button.g-item { padding: 0; border: 0; background: none; cursor: pointer; display: block; overflow: hidden; border-radius: 4px; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; transition: transform 0.4s ease, filter 0.4s ease; filter: saturate(0.95); }
.gallery-grid button.g-item:hover img,
.gallery-grid button.g-item:focus-visible img { transform: scale(1.06); filter: saturate(1.1); }

/* Background music toggle */
.music-toggle {
  position: fixed;
  bottom: clamp(1rem, 4vw, 1.8rem);
  right: clamp(1rem, 4vw, 1.8rem);
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 14, 28, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.music-toggle[hidden] { display: none; }
.music-toggle:hover { transform: translateY(-3px); background: rgba(214, 178, 124, 0.16); border-color: rgba(214, 178, 124, 0.5); }
.mt-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.mt-bars span {
  width: 3px;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 2px;
  transform-origin: bottom;
}
.music-toggle.playing .mt-bars span { animation: eq 1s ease-in-out infinite; }
.music-toggle.playing .mt-bars span:nth-child(1) { animation-delay: -0.2s; }
.music-toggle.playing .mt-bars span:nth-child(2) { animation-delay: -0.5s; }
.music-toggle.playing .mt-bars span:nth-child(3) { animation-delay: -0.1s; }
.music-toggle.playing .mt-bars span:nth-child(4) { animation-delay: -0.4s; }
/* muted/paused state: bars flat + a slash */
.music-toggle:not(.playing) .mt-bars span { height: 6px; opacity: 0.6; }
.music-toggle:not(.playing)::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 1.5px;
  background: var(--gold-soft);
  transform: rotate(-45deg);
  opacity: 0.85;
}
@keyframes eq {
  0%, 100% { height: 5px; }
  50% { height: 20px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 8, 16, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  transform: scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lb-img { transform: scale(1); }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(20, 14, 28, 0.6);
  border: 1px solid var(--border);
  color: var(--cream);
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.lb-close:hover, .lb-nav:hover { background: rgba(214, 178, 124, 0.2); color: var(--gold-soft); }
.lb-close {
  top: clamp(1rem, 3vw, 1.8rem);
  right: clamp(1rem, 3vw, 1.8rem);
  width: 46px; height: 46px;
  font-size: 1.8rem;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: clamp(0.5rem, 2vw, 1.6rem); }
.lb-next { right: clamp(0.5rem, 2vw, 1.6rem); }
.lb-counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--text-dim);
}
@media (max-width: 600px) {
  .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(214, 178, 124, 0.18); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  padding: 1.3rem 2.5rem 1.3rem 0;
  position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; color: var(--text-dim); padding: 0 0 1.3rem; }

/* Footer */
.site-footer { padding: clamp(3rem, 8vw, 4.5rem) 1.5rem; text-align: center; border-top: 1px solid rgba(214, 178, 124, 0.18); }
.footer-mono { font-family: var(--display); font-size: 2rem; color: var(--gold-soft); letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer p { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 3.4vw, 1.2rem); color: var(--text-dim); }
.site-footer .contact { margin-top: 0.5rem; font-style: normal; font-family: var(--sans); font-weight: 300; letter-spacing: 0.1em; }
.site-footer .contact:empty { display: none; }
.site-footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(214, 178, 124, 0.4); }
.footer-hashtag { margin-top: 1rem; color: var(--rose); }
.footer-hashtag:empty { display: none; }

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

/* ---------------- Intro: envelope + scratch card ---------------- */
body.intro-active { overflow: hidden; }
.intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(214, 178, 124, 0.18), transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-1));
  background-size: auto, 300% 300%;
  animation: drift 22s ease infinite;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.intro-stage[hidden] { display: none; }
.btn[hidden] { display: none; }
.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 480px;
}
.intro-eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-soft);
  margin-bottom: clamp(1.6rem, 5vw, 2.6rem);
  padding-left: 0.45em;
  animation: fadeUp 0.9s ease both;
}

/* ----- envelope ----- */
.envelope {
  position: relative;
  width: clamp(290px, 82vw, 360px);
  height: clamp(193px, 55vw, 240px);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1400px;
  animation: fadeUp 1s ease both;
}
.env-letter {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  height: 128%;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #fdf6ea 0%, #f4e7d2 100%);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 12%;
  z-index: 2;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s linear 0.45s;
}
.env-letter-mono { font-family: var(--display); font-size: 2.4rem; color: #7a3b52; letter-spacing: 0.08em; }
.env-letter-text { font-family: var(--serif); font-style: italic; color: #9a6a52; font-size: 1rem; }
.env-body-base,
.env-pocket,
.env-flap { position: absolute; left: 0; right: 0; }
/* back/base of envelope */
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(150deg, #5e2c40, #3c2030);
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.75);
  z-index: 1;
}
/* front pocket (bottom V) */
.env-pocket {
  bottom: 0;
  top: 0;
  border-radius: 10px;
  background: linear-gradient(150deg, #6d3349, #47273a);
  clip-path: polygon(0 36%, 50% 86%, 100% 36%, 100% 100%, 0 100%);
  z-index: 4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.env-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.18));
}
/* top flap */
.env-flap {
  top: 0;
  height: 64%;
  background: linear-gradient(160deg, #7a3a52, #5a2a3c);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.85s cubic-bezier(0.6, 0.05, 0.2, 1), z-index 0s linear 0.42s;
  z-index: 5;
  backface-visibility: hidden;
  border-radius: 10px 10px 0 0;
}
.env-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(160deg, rgba(214, 178, 124, 0.25), transparent 55%);
}
/* wax seal */
.env-seal {
  position: absolute;
  top: 47%;
  left: 50%;
  width: clamp(54px, 16vw, 66px);
  height: clamp(54px, 16vw, 66px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e7d3b1, var(--gold) 55%, #b48a52);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.env-seal span { font-family: var(--display); color: #5a2a3c; font-size: 1.1rem; letter-spacing: 0.04em; }
.envelope:hover .env-seal { transform: translate(-50%, -50%) scale(1.05); }

/* open states */
.envelope.is-open { cursor: default; }
.envelope.is-open .env-flap { transform: rotateX(-178deg); z-index: 0; }
.envelope.is-open .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
.envelope.letter-up .env-letter { transform: translateY(-86%); z-index: 7; box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.7); }

.env-open-btn { margin-top: clamp(1.8rem, 6vw, 2.8rem); animation: fadeUp 1.1s ease both; }
.env-open-btn.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }

/* ----- scratch card ----- */
.intro-stage--scratch { animation: fadeUp 0.7s ease both; }
.scratch-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
  transition: opacity 0.4s ease;
}
.scratch-hint.is-hidden { opacity: 0; }
.scratch-card {
  position: relative;
  width: clamp(280px, 84vw, 380px);
  height: clamp(180px, 52vw, 230px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
}
.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #fdf6ea, #f1e2cc);
  text-align: center;
  padding: 1rem;
}
.sr-label {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #a06a52;
}
.sr-date {
  font-family: var(--display);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  color: #7a3b52;
  line-height: 1.05;
}
.sr-deco { color: var(--gold); font-size: 1.2rem; }
.scratch-card.revealed .sr-date { animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.6s ease;
}
.scratch-canvas:active { cursor: grabbing; }
.scratch-card.revealed .scratch-canvas { opacity: 0; pointer-events: none; }
.enter-btn { margin-top: clamp(1.6rem, 5vw, 2.4rem); animation: fadeUp 0.6s ease both; }

@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .petals, .intro-petals { display: none; }
  .reveal { opacity: 1; transform: none; }
  .intro.is-leaving { display: none; }
}
