/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --ivory: #fbf6ee;
  --paper: #fffaf3;
  --ink: #3b2a26;
  --muted: #7a6660;
  --maroon: #6b1d2f;
  --maroon-deep: #3f0d1a;
  --gold: #c19a4b;
  --gold-light: #e7cf93;
  --gold-pale: #f5e4b0;
  --gold-dark: #8e6b24;
  --blush: #f6e4df;
  --marigold: #e38a14;

  --gold-text: linear-gradient(120deg, #8e6b24 0%, #c9a24b 28%, #e9d49a 50%, #c19a4b 72%, #8e6b24 100%);

  --f-script: "Great Vibes", "Brush Script MT", cursive;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --f-arabic: "Amiri", "Traditional Arabic", serif;
}

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

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

body {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-variant-numeric: lining-nums;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6 C33 18 38 23 50 28 C38 33 33 38 28 50 C23 38 18 33 6 28 C18 23 23 18 28 6Z' fill='none' stroke='%23c19a4b' stroke-opacity='.13'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ───────────────────────── Intro: ribbon-tied gatefold card ───────────────────────── */
.gatefold {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  perspective: 2000px;
  transition: opacity .3s ease, visibility .3s;
}
.js .gatefold { display: block; }
.gatefold.gone { opacity: 0; visibility: hidden; }

.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  backface-visibility: hidden;
  transition: transform 1.25s cubic-bezier(.6, .04, .3, 1) .75s, opacity .4s ease 1.6s;
}
.panel--left {
  left: 0;
  transform-origin: left center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6 C33 18 38 23 50 28 C38 33 33 38 28 50 C23 38 18 33 6 28 C18 23 23 18 28 6Z' fill='none' stroke='%23e7cf93' stroke-opacity='.14'/%3E%3C/svg%3E"), radial-gradient(ellipse at 100% 50%, #8e2a40, #5a1426 55%, #3a0a16 100%);
  box-shadow: inset -18px 0 30px -18px rgba(0, 0, 0, .55);
}
.panel--right {
  right: 0;
  transform-origin: right center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6 C33 18 38 23 50 28 C38 33 33 38 28 50 C23 38 18 33 6 28 C18 23 23 18 28 6Z' fill='none' stroke='%23e7cf93' stroke-opacity='.14'/%3E%3C/svg%3E"), radial-gradient(ellipse at 0% 50%, #8e2a40, #5a1426 55%, #3a0a16 100%);
  box-shadow: inset 18px 0 30px -18px rgba(0, 0, 0, .55);
}
/* gold double border on the three outer edges of each panel */
.panel-frame {
  position: absolute;
  inset: 18px 0 18px 18px;
  border: 1px solid rgba(231, 207, 147, .6);
  border-right: 0;
  box-shadow: -7px 0 0 -6px rgba(231, 207, 147, .3);
}
.panel--right .panel-frame {
  inset: 18px 18px 18px 0;
  border-left: 0;
  border-right: 1px solid rgba(231, 207, 147, .6);
}

.gf-top,
.gf-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 3;
  text-align: center;
  color: var(--gold-light);
  transition: opacity .35s ease;
}
.gf-top {
  bottom: calc(50% + 90px);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.gf-guest { display: block; margin-top: 14px; }
.gf-for { display: block; font-size: .66rem; opacity: .7; }
.gf-guest [data-guest] {
  display: block;
  margin-top: 6px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-pale);
}
.gf-bottom { top: calc(50% + 96px); }
.gf-hint {
  font-style: italic;
  font-size: 1.1rem;
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; } }

/* satin ribbon wrapped around the closed card */
.ribbon {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50%;
  height: 30px;
  margin-top: -15px;
  background: linear-gradient(180deg, #9c7630, #f3dfaa 30%, #cfa758 52%, #fff1cc 74%, #a07a33);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  transition: transform .75s cubic-bezier(.5, 0, .3, 1) .3s, opacity .4s ease .65s;
}
.ribbon::before {
  /* stitching along both edges */
  content: "";
  position: absolute;
  inset: 4px 0;
  border-top: 1px dashed rgba(120, 85, 30, .45);
  border-bottom: 1px dashed rgba(120, 85, 30, .45);
}
.ribbon--left { left: 0; }
.ribbon--right { right: 0; }

.bow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(52vw, 230px);
  translate: -50% -48%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(30, 0, 8, .45));
  animation: bowPulse 2.6s ease-in-out infinite;
}
.bow svg { width: 100%; height: auto; overflow: visible; }
.bow .loop,
.bow .tail,
.bow .knot { transform-box: view-box; transition: transform .7s cubic-bezier(.5, 0, .4, 1), opacity .5s ease .2s; }
.bow .loop { transform-origin: 110px 81px; }
.bow .tail { transform-origin: 110px 90px; }
.bow .knot { transform-origin: 110px 81px; transition-delay: .25s; }
@keyframes bowPulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.04; }
}

/* opening: untie the bow, slide the ribbon off, swing the panels open */
.gatefold.open .gf-top,
.gatefold.open .gf-bottom { opacity: 0; }
.gatefold.open .bow { animation: none; pointer-events: none; }
.gatefold.open .loop--left { transform: translate(40px, 6px) scale(.15) rotate(40deg); opacity: 0; }
.gatefold.open .loop--right { transform: translate(-40px, 6px) scale(.15) rotate(-40deg); opacity: 0; }
.gatefold.open .tail--left { transform: translate(-24px, 70px) rotate(18deg); opacity: 0; }
.gatefold.open .tail--right { transform: translate(24px, 70px) rotate(-18deg); opacity: 0; }
.gatefold.open .knot { transform: scale(.2); opacity: 0; }
.gatefold.open .ribbon--left { transform: translateX(-105%); opacity: 0; }
.gatefold.open .ribbon--right { transform: translateX(105%); opacity: 0; }
.gatefold.open .panel--left { transform: rotateY(-100deg); opacity: 0; }
.gatefold.open .panel--right { transform: rotateY(100deg); opacity: 0; }

/* ───────────────────────── Petals ───────────────────────── */
#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 16px 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(231, 207, 147, .38), transparent 72%);
}

.garlands {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 1.5%;
  pointer-events: none;
}
.garlands::before {
  /* the rope the strands hang from */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.strand {
  --b: 19px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  transform-origin: top center;
  animation: sway var(--dur, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}
.strand::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 1px;
  background: rgba(142, 107, 36, .55);
}
.strand .rose {
  position: relative;
  width: var(--b);
  height: var(--b);
  margin-top: calc(var(--b) * -.2);
  filter: drop-shadow(0 1.5px 1.5px rgba(60, 0, 10, .35));
}
.strand .rose.sm { width: calc(var(--b) * .8); height: calc(var(--b) * .8); }
.strand .leaves {
  position: relative;
  display: flex;
  gap: 1px;
  margin-top: -3px;
}
.strand .leaves svg { width: calc(var(--b) * .7); height: calc(var(--b) * .35); }
.strand .leaves svg:first-child { transform: rotate(155deg); }
.strand .leaves svg:last-child { transform: rotate(25deg); }
.tassel {
  width: 5px;
  height: 18px;
  margin-top: 1px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(var(--gold-light), var(--gold-dark));
}
@keyframes sway {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}

.arch {
  position: relative;
  z-index: 2;
  /* fit inside the first screen on short/wide displays */
  width: min(92vw, 500px, calc((100vh - 200px) * .6726));
  width: min(92vw, 500px, calc((100svh - 200px) * .6726));
  min-width: min(92vw, 330px);
  aspect-ratio: 300 / 446;
  container-type: inline-size;
}
.arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 24px 40px rgba(107, 29, 47, .16));
}
.arch-vines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arch-content {
  position: absolute;
  inset: 24% 12% 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.8cqi;
  text-align: center;
}
.bismillah {
  font-family: var(--f-arabic);
  font-size: 6.4cqi;
  line-height: 1.5;
  color: var(--maroon);
}
.eyebrow {
  font-family: var(--f-sans);
  font-size: max(2.6cqi, 10px);
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3cqi;
  font-weight: 400;
  line-height: 1.1;
}
.names .name {
  /* a readable italic serif rather than script, in solid maroon for contrast */
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 12cqi;
  white-space: nowrap;
  color: var(--maroon);
}
.names .heart {
  flex: none;
  width: 7.5cqi;
  height: 7.5cqi;
  fill: #a3162d;
  filter: drop-shadow(0 2px 3px rgba(107, 29, 47, .25));
  animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.12); }
  48% { transform: scale(1); }
}
.invite-line {
  max-width: 30em;
  font-style: italic;
  font-size: 4.5cqi;
  line-height: 1.55;
  text-wrap: pretty;
}
.forever-line {
  margin-top: 1cqi;
  padding-top: 3cqi;
  border-top: 1px solid var(--gold);
  font-style: italic;
  font-weight: 600;
  font-size: 5.4cqi;
  line-height: 1.3;
  color: var(--maroon);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  text-decoration: none;
  font-family: var(--f-sans);
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.scroll-cue i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ───────────────────────── Sections ───────────────────────── */
.section { position: relative; padding: clamp(80px, 11vw, 130px) 16px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: clamp(44px, 6vw, 68px); }
.kicker {
  font-family: var(--f-sans);
  font-size: .72rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.title {
  margin: .15em 0 .25em;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.7rem, 8vw, 4.4rem);
  line-height: 1.1;
  color: var(--maroon);
}
.divider {
  width: 200px;
  height: 20px;
  margin: 0 auto;
  color: var(--gold);
}

/* Verse */
.section--verse {
  background: linear-gradient(180deg, transparent, rgba(246, 228, 223, .55) 30%, rgba(246, 228, 223, .55) 70%, transparent);
}
.verse { max-width: 780px; text-align: center; }
.verse-ar {
  margin: 36px 0 22px;
  font-family: var(--f-arabic);
  font-size: clamp(1.55rem, 4.4vw, 2.3rem);
  line-height: 2;
  color: var(--maroon);
}
.verse-en {
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.6;
}
.verse-ref {
  margin: 18px 0 36px;
  font-family: var(--f-sans);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Couple */
.couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(20px, 5vw, 64px);
  max-width: 900px;
  margin: 0 auto;
}
.person { text-align: center; }
.medallion {
  position: relative;
  width: clamp(160px, 22vw, 210px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fffdf8, #f3e6d1);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 0 9px var(--paper),
    0 0 0 10px var(--gold-light),
    0 26px 50px -18px rgba(107, 29, 47, .3);
}
.medallion::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  z-index: 1;
  pointer-events: none;
}
.medallion span {
  font-family: var(--f-script);
  font-size: clamp(4.4rem, 9vw, 6rem);
  line-height: 1.2;
  padding: 0 .4em; /* room for the script swashes, which overflow the glyph box */
  transform: translateY(.06em);
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.medallion img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.role {
  font-family: var(--f-sans);
  font-size: .7rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.person h3 {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  text-wrap: balance;
  line-height: 1.2;
  color: var(--maroon);
}
.parents { font-style: italic; color: var(--muted); }
.couple-amp {
  justify-self: center;
  /* line up with the centre of the medallions */
  margin-top: calc(clamp(160px, 22vw, 210px) / 2 - .55em);
  font-family: var(--f-script);
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  line-height: 1;
  padding: 0 .1em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Then & now */
.section--now .now-frame { margin-bottom: 8px; }
.now { text-align: center; }
.now-frame {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 240px 240px 18px 18px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 0 9px var(--paper),
    0 0 0 10px var(--gold-light),
    0 40px 70px -36px rgba(107, 29, 47, .45);
}
.now-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 230px 230px 12px 12px;
}
/* Countdown */
.section--dark {
  color: var(--gold-light);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6 C33 18 38 23 50 28 C38 33 33 38 28 50 C23 38 18 33 6 28 C18 23 23 18 28 6Z' fill='none' stroke='%23e7cf93' stroke-opacity='.08'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #8a2a40, #4a1020 70%);
}
.section--dark .kicker { color: var(--gold-light); }
.section--dark .title { color: var(--gold-pale); }
.section--dark .divider { color: var(--gold-light); }

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 30px);
}
.cd-unit {
  flex: 1;
  max-width: 150px;
  min-width: 0;
  padding: clamp(22px, 4vw, 36px) 4px clamp(16px, 3vw, 24px);
  text-align: center;
  border: 1px solid rgba(231, 207, 147, .4);
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
}
.cd-num {
  display: block;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-pale);
}
.cd-label {
  display: block;
  margin-top: 10px;
  font-family: var(--f-sans);
  font-size: clamp(.56rem, 1.8vw, .72rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .8;
}
.cd-done {
  text-align: center;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--gold-pale);
}

/* Ceremony */
.ceremony {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
.map-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 240px 240px 18px 18px;
  background: var(--blush);
  box-shadow: 0 0 0 1px var(--gold-light), 0 0 0 9px var(--paper), 0 0 0 10px rgba(193, 154, 75, .4),
    0 30px 50px -28px rgba(107, 29, 47, .35);
}
/* Google's place card sits in the embed's top-left corner, where the arch clips it.
   Oversize the map equally above and below so the card falls outside the frame
   while the venue pin stays centred; our own button replaces it. */
.map-frame iframe[data-map-embed] {
  position: absolute;
  left: 0;
  top: -260px;
  height: calc(100% + 520px);
}
.map-open {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(63, 13, 26, .6);
}
@media (max-width: 820px) {
  .ceremony { grid-template-columns: 1fr; max-width: 520px; }
  .map-frame { min-height: 320px; border-radius: 18px; }
}
.event {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 58px 26px 32px;
  text-align: center;
  border-radius: 240px 240px 18px 18px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--gold-light), 0 30px 50px -28px rgba(107, 29, 47, .35);
}
.event::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 230px 230px 12px 12px;
  border: 1px solid rgba(193, 154, 75, .4);
  pointer-events: none;
}
.event-icon { width: 60px; height: 60px; margin: 0 auto 16px; color: var(--gold); }
.event-icon svg { width: 100%; height: 100%; }
.event-kicker {
  font-family: var(--f-sans);
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.event-title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 2.9rem;
  line-height: 1.15;
  color: var(--maroon);
}
.event-sub { font-style: italic; color: var(--muted); margin-bottom: 18px; }
.event .divider { width: 140px; height: 16px; }
.event-meta { display: grid; gap: 14px; margin: 22px 0 8px; }
.event-meta dt {
  font-family: var(--f-sans);
  font-size: .64rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.event-meta dd { font-size: 1.18rem; line-height: 1.4; }
.event-meta dd small { display: block; font-size: .98rem; color: var(--muted); }
.event-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* the ceremony card uses the deep maroon treatment */
.event {
  color: var(--gold-light);
  background: radial-gradient(ellipse at 50% 0%, #8a2a40, #4f1222 75%);
  box-shadow: 0 0 0 1px var(--gold), 0 34px 60px -26px rgba(63, 13, 26, .6);
}
.event::before { border-color: rgba(231, 207, 147, .45); }
.event .event-icon { color: var(--gold-light); }
.event .event-kicker,
.event .event-meta dt { color: var(--gold-light); opacity: .85; }
.event .event-title { color: var(--gold-pale); }
.event .event-meta dd small { color: rgba(245, 228, 176, .7); }
.event .divider { color: var(--gold-light); }
.event .btn { color: var(--gold-pale); border-color: rgba(231, 207, 147, .6); }
.event .btn:hover { background: var(--gold-pale); color: var(--maroon-deep); border-color: var(--gold-pale); }

.tz-note {
  margin-top: 34px;
  text-align: center;
  font-style: italic;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--f-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--maroon);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--maroon); color: var(--gold-pale); border-color: var(--maroon); }
.btn::-webkit-details-marker { display: none; }
.btn-solid { background: var(--maroon); color: var(--gold-pale); border-color: var(--maroon); }
.btn-solid:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn-lg { padding: 16px 34px; font-size: .78rem; }
.btn-light { color: var(--gold-pale); border-color: rgba(231, 207, 147, .6); }
.btn-light:hover { background: var(--gold-pale); color: var(--maroon-deep); border-color: var(--gold-pale); }

/* Calendar dropdown */
.cal { position: relative; }
.cal-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  min-width: 220px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--gold-light), 0 18px 40px rgba(63, 13, 26, .25);
}
.cal-menu a,
.cal-menu button {
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--ink);
}
.cal-menu a:hover,
.cal-menu button:hover { background: var(--blush); }

/* RSVP */
.section--rsvp {
  background: linear-gradient(180deg, transparent, rgba(246, 228, 223, .6) 25%, rgba(246, 228, 223, .6));
}
.rsvp-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 18px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--gold-light),
    0 0 0 9px var(--paper),
    0 0 0 10px rgba(193, 154, 75, .4),
    0 40px 70px -40px rgba(107, 29, 47, .4);
}
.rsvp-note {
  margin-bottom: 30px;
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}
.field { margin-bottom: 26px; border: 0; min-width: 0; }
.lbl {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--f-sans);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 8px 2px;
  font: inherit;
  font-size: 1.2rem;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-light);
  border-radius: 0;
  outline: none;
  transition: border-color .25s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e6b24' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--maroon); }
.field input::placeholder,
.field textarea::placeholder { color: #b5a39a; font-style: italic; }
.invalid .field-name input { border-bottom-color: #b3261e; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 18px;
  font-size: 1.05rem;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--maroon); color: var(--gold-pale); border-color: var(--maroon); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.rsvp-actions { text-align: center; margin-top: 8px; }
.form-status { min-height: 1.6em; margin-top: 16px; text-align: center; font-style: italic; color: var(--maroon); }

/* Footer */
.footer {
  padding: 90px 16px 60px;
  text-align: center;
  color: var(--gold-light);
  background: radial-gradient(ellipse at 50% 100%, #6b1d2f, #3f0d1a 75%);
}
.footer .divider { color: var(--gold-light); margin-bottom: 26px; }
.footer-names {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  line-height: 1.2;
  color: var(--gold-pale);
}
.hashtag {
  margin: 8px 0 10px;
  font-family: var(--f-sans);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: .14em;
  color: var(--gold-light);
}
.footer-text { font-style: italic; opacity: .8; margin-bottom: 28px; }
.footer-small {
  margin-top: 46px;
  font-family: var(--f-sans);
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .5;
}

/* Music toggle */
.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-pale);
  background: var(--maroon);
  box-shadow: 0 10px 24px rgba(63, 13, 26, .35);
}
.music-btn svg { width: 22px; height: 22px; }
.music-btn.playing svg { animation: bob 1.2s ease-in-out infinite; }
.music-btn:not(.playing)::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: var(--gold-pale);
  rotate: -45deg;
}
@keyframes bob { 50% { transform: translateY(-3px) rotate(-6deg); } }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 720px) {
  .couple { grid-template-columns: 1fr; }
  .couple-amp { margin-top: 0; }
  .strand { --b: 15px; }
  .hero { padding-top: 104px; }
}

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