:root {
  --wine: #5a1a2b;
  --wine-deep: #3a0f1b;
  --rose: #c96f7f;
  --blush: #f6dfe0;
  --cream: #fdf7f0;
  --gold: #c9a24b;
  --gold-light: #f2dc9b;
  --ink: #3b2a2f;
  --gold-grad: linear-gradient(135deg, #f7e3a1 0%, #c9a24b 45%, #8a6a22 100%);
  --font-script: "Courgette", cursive;
  --font-fancy: "Cinzel Decorative", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --radius: 22px;
}

html[lang="ar"],
[lang="ar"] {
  --font-script: "Marhey", sans-serif;
  --font-serif: "Amiri", serif;
  --font-body: "Cairo", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 111, 127, .18), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(201, 162, 75, .15), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(201, 111, 127, .15), transparent 45%),
    var(--cream);
  font-size: 1.15rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

html[lang="ar"] body { font-size: 1.05rem; }

body.locked { overflow: hidden; height: 100vh; }

.hidden { display: none !important; }

#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

main, .topbar, .footer { position: relative; z-index: 2; }

/* ============ INTRO / ENVELOPE ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: radial-gradient(circle at center, #7a2a3e 0%, var(--wine-deep) 75%);
  transition: opacity 1s ease, visibility 1s ease;
}

.intro.gone { opacity: 0; visibility: hidden; }

.intro-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 220, 155, .25), transparent 65%);
  animation: breathe 4s ease-in-out infinite;
}

.envelope {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 16 / 10.5;
  cursor: pointer;
  perspective: 1200px;
  animation: float 4s ease-in-out infinite;
  outline: none;
}

.env-back,
.env-front,
.env-flap {
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.env-back { background: #e9cdbf; z-index: 1; box-shadow: 0 25px 60px rgba(0, 0, 0, .45); }

.env-letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  bottom: 6%;
  z-index: 2;
  background: var(--cream);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 9%;
  gap: .2rem;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(201, 162, 75, .5), inset 0 0 0 7px var(--cream), inset 0 0 0 8px rgba(201, 162, 75, .4);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) .6s;
}

.letter-small { font-family: var(--font-fancy); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--rose); }
html[lang="ar"] .letter-small { letter-spacing: 0; font-family: var(--font-body); }
.letter-names { font-family: var(--font-script); font-weight: 400; font-size: clamp(1.7rem, 6.5vw, 2.3rem); color: var(--wine); }

.env-front {
  z-index: 3;
  background: linear-gradient(160deg, #f1d9cc, #dcb6a6);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}

.env-flap {
  z-index: 4;
  background: linear-gradient(180deg, #e7c4b4, #d4a898);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top center;
  transition: transform .7s ease, z-index 0s linear .35s;
}

.seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 52%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #b23a52, #6e1426 70%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 -4px 8px rgba(0, 0, 0, .3), inset 0 3px 6px rgba(255, 255, 255, .25);
  color: var(--gold-light);
  font-family: "Yellowtail", cursive;
  font-size: 1.45rem;
  transition: transform .5s ease, opacity .5s ease;
  animation: pulse-seal 2s ease-in-out infinite;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(242, 220, 155, .5);
}

.seal i { font-style: normal; font-size: .9rem; margin: 0 2px; color: #ffb3c1; }

.envelope.open { animation: none; }
.envelope.open .seal { transform: translate(-50%, -50%) scale(1.6); opacity: 0; animation: none; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .env-letter { transform: translateY(-58%); }

.intro-hint {
  color: var(--gold-light);
  font-size: 1.1rem;
  letter-spacing: .15em;
  animation: blink 2s ease-in-out infinite;
  z-index: 1;
}
html[lang="ar"] .intro-hint { letter-spacing: 0; }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  transition: background .4s, box-shadow .4s, padding .4s;
}

.topbar.scrolled {
  background: rgba(253, 247, 240, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(90, 26, 43, .08);
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.mini-logo {
  font-family: "Yellowtail", cursive;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--wine);
  text-decoration: none;
}
.mini-logo span { color: var(--gold); margin: 0 2px; }

.amp-char {
  font-family: "Indie Flower", cursive;
  font-weight: 400;
  font-size: 1.2em;
  color: var(--gold);
  margin: 0 .15em;
}

.nav { display: flex; gap: 1.8rem; }
.nav a {
  color: var(--wine);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold-grad);
  transition: width .3s;
}
.nav a:hover::after { width: 100%; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .25s, box-shadow .25s, background .3s;
  user-select: none;
  -webkit-user-select: none;
}

.btn-gold {
  background: var(--gold-grad);
  background-size: 200% 200%;
  color: var(--wine-deep);
  box-shadow: 0 10px 25px rgba(201, 162, 75, .4);
  animation: shimmer 4s ease infinite;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201, 162, 75, .55); }

.btn-outline {
  background: rgba(255, 255, 255, .7);
  color: var(--wine);
  border: 1.5px solid var(--wine);
}
.btn-outline:hover { background: var(--wine); color: var(--cream); transform: translateY(-2px); }
.btn.small { padding: .55rem 1.3rem; font-size: .95rem; }

/* ============ SECTIONS ============ */
section { padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 5vw, 3rem); text-align: center; scroll-margin-top: 10px; }
#location { padding-top: clamp(5rem, 11vw, 7rem); }

.section-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--wine);
  line-height: 1.25;
  margin-bottom: .5rem;
}
html[lang="ar"] .section-title { font-size: clamp(2.1rem, 6.5vw, 3rem); font-weight: 600; }

.section-title::after {
  content: "❦";
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: .2rem;
}

.section-sub { color: var(--rose); font-weight: 600; margin-bottom: 2.2rem; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5.5rem;
}

.hero-frame {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 720px;
  width: 100%;
  border: 1px solid rgba(201, 162, 75, .5);
  border-radius: 200px 200px 24px 24px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 30px 80px rgba(90, 26, 43, .12), inset 0 0 0 8px rgba(255, 255, 255, .5);
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
}
.corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; display: none; }
.corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; display: none; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

.pre-title {
  font-family: var(--font-fancy);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--rose);
  font-weight: 700;
}
html[lang="ar"] .pre-title {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 460px;
  margin: 2.8rem auto 0;
}

.rings { width: 130px; margin: 1rem auto .2rem; }
.ring {
  fill: none;
  stroke: url(#gold);
  stroke-width: 6;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
}
.revealed .ring.r1 { animation: draw 1.6s ease forwards .2s; }
.revealed .ring.r2 { animation: draw 1.6s ease forwards .7s; }
.diamond {
  fill: #e8f4ff;
  stroke: #b9d6ee;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.revealed .diamond { animation: pop-in .6s ease forwards 2s, sparkle 2.5s ease-in-out infinite 2.6s; }

.names {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--wine);
  font-size: clamp(3.2rem, 12vw, 6rem);
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 1.2rem;
}
html[lang="ar"] .letter-names,
html[lang="ar"] .footer-names { font-weight: 600; }
html[lang="ar"] .names { font-size: clamp(3rem, 12vw, 5.2rem); font-weight: 600; }

.names .name {
  display: inline-block;
  padding: .2em .25em .15em;
  margin: -.2em -.25em -.15em;
  background: linear-gradient(120deg, var(--wine) 0%, var(--rose) 50%, var(--wine) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 5s linear infinite;
  opacity: 0;
}
.names .amp {
  color: var(--gold);
  font-size: 1.15em;
  opacity: 0;
}

body.started .n1 { animation: slide-in-l 1.2s cubic-bezier(.2, .8, .2, 1) forwards .3s, text-shine 5s linear infinite 1.5s; }
body.started .amp { animation: zoom-in 1s ease forwards 1s; }
body.started .n2 { animation: slide-in-r 1.2s cubic-bezier(.2, .8, .2, 1) forwards .3s, text-shine 5s linear infinite 1.5s; }

.subtitle { font-size: 1.4rem; font-weight: 600; color: var(--ink); }
html[lang="ar"] .subtitle { font-size: 1.3rem; }

.hero-date {
  font-family: var(--font-fancy);
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: .15em;
  color: var(--gold);
  font-weight: 700;
  margin: .8rem 0 1.8rem;
}
html[lang="ar"] .hero-date { letter-spacing: .05em; font-family: "Cairo", sans-serif; }
.date-dot { color: var(--wine); font-weight: 700; }

.scroll-down {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid var(--wine);
  border-radius: 20px;
  opacity: .6;
}
.scroll-down span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--wine);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* ============ QUOTE ============ */
.quote-section {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.quote-section::before,
.quote-section::after {
  content: "❀";
  position: absolute;
  font-size: 12rem;
  color: rgba(242, 220, 155, .06);
  line-height: 1;
}
.quote-section::before { top: -2rem; left: -1rem; }
.quote-section::after { bottom: -3rem; right: -1rem; }

.quote {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.9;
}
.quote-ref { font-family: var(--font-body); color: var(--gold-light); margin-top: 1rem; }

/* ============ SCRATCH ============ */
.scratch-wrap {
  position: relative;
  width: min(320px, 85vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(90, 26, 43, .2), 0 0 0 6px #fff, 0 0 0 8px var(--gold);
}

.scratch-under {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #fff 0%, var(--blush) 100%);
  color: var(--wine);
}
.s-label { font-size: .95rem; font-weight: 600; color: var(--rose); line-height: 1.4; }
.s-names {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--wine);
  margin-bottom: .4rem;
  padding-bottom: .4rem;
  border-bottom: 1.5px solid var(--gold);
}
.s-day { font-size: 1.3rem; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
html[lang="ar"] .s-day { letter-spacing: 0; }
.s-num { font-family: var(--font-fancy); font-weight: 700; font-size: 5rem; line-height: 1; color: var(--wine); }
.s-month { font-size: 1.3rem; font-weight: 700; letter-spacing: .1em; }

#scratch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: opacity .8s ease;
}
#scratch.cleared { opacity: 0; pointer-events: none; }

/* ============ COUNTDOWN ============ */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(.6rem, 3vw, 1.6rem);
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.cd-box {
  width: clamp(72px, 19vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .5);
  box-shadow: 0 12px 30px rgba(90, 26, 43, .1), inset 0 0 0 5px var(--cream);
  position: relative;
}
.cd-box::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 111, 127, .35);
  animation: spin 30s linear infinite;
}
.cd-num {
  font-family: var(--font-fancy);
  font-size: clamp(1.5rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
}
html[lang="ar"] .cd-num,
html[lang="ar"] .s-num { font-family: var(--font-script); font-weight: 600; }
.cd-num.tick { animation: tick .5s ease; }
.cd-label { font-size: clamp(.7rem, 2.4vw, .95rem); color: var(--rose); text-transform: uppercase; letter-spacing: .12em; }
html[lang="ar"] .cd-label { letter-spacing: 0; }
.cd-done { font-family: var(--font-script); font-weight: 400; font-size: 2.4rem; color: var(--wine); margin-top: 1rem; }

/* ============ DETAILS ============ */
.details { background: linear-gradient(180deg, transparent, rgba(246, 223, 224, .55), transparent); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 2rem auto 2.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  box-shadow: 0 15px 40px rgba(90, 26, 43, .08);
  border-top: 4px solid var(--gold);
  transition: transform .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 25px 50px rgba(90, 26, 43, .15); }
.card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.card-link:active { transform: scale(.97); }
.card-icon { font-size: 2.4rem; margin-bottom: .6rem; display: inline-block; animation: bob 3s ease-in-out infinite; }
.card:nth-child(2) .card-icon { animation-delay: .4s; }
.card:nth-child(3) .card-icon { animation-delay: .8s; }
.card h3 { font-family: var(--font-script); font-weight: 400; font-size: 1.9rem; color: var(--wine); }
html[lang="ar"] .card h3 { font-size: 1.6rem; font-weight: 600; }
.card p { font-size: 1.15rem; font-weight: 600; }

.card-hint { display: block; margin-top: .35rem; font-size: .95rem; color: var(--rose); }

.cal-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ LOCATION ============ */
.map-card {
  max-width: 760px;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 60px rgba(90, 26, 43, .14);
}
.map-art {
  position: relative;
  height: 220px;
  background:
    linear-gradient(rgba(201, 162, 75, .08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(201, 162, 75, .08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #fbeee9, #f3dcd6);
}
.map-art svg { width: 100%; height: 100%; }
.road { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; }
.road.thin { stroke-width: 6; }
.route {
  fill: none;
  stroke: var(--rose);
  stroke-width: 4;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  animation: route-move 1s linear infinite;
}
.pin {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -100%);
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: var(--wine);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(90, 26, 43, .4);
  animation: pin-drop 2.4s ease-in-out infinite;
  z-index: 2;
}
.pin span { rotate: 45deg; font-size: 1.4rem; }
.pin-pulse {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 30px;
  height: 12px;
  margin-left: -15px;
  border-radius: 50%;
  background: rgba(90, 26, 43, .35);
  animation: pulse-ring 2.4s ease-out infinite;
}
.map-body { padding: 2rem 1.5rem 2.4rem; }
.map-body p { margin-bottom: 1.4rem; max-width: 520px; margin-inline: auto; }
.map-body .venue-name {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--wine);
}
.map-body .venue-club {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ============ RSVP ============ */
.rsvp { position: relative; }

.rsvp-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 25px 60px rgba(90, 26, 43, .12);
  border: 1px solid rgba(201, 162, 75, .4);
  position: relative;
}

.rsvp-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 60px;
}

.btn-yes {
  background: linear-gradient(135deg, #7a2a3e, var(--wine));
  color: #fff;
  box-shadow: 0 10px 25px rgba(90, 26, 43, .35);
}
.btn-yes:hover { transform: translateY(-3px) scale(1.04); }

.btn-no {
  background: #fff;
  color: var(--ink);
  border: 1.5px dashed var(--rose);
}

.btn.runaway {
  position: fixed;
  z-index: 60;
  transition: left .35s cubic-bezier(.3, 1.6, .5, 1), top .35s cubic-bezier(.3, 1.6, .5, 1), transform .3s;
  white-space: nowrap;
}
.tease {
  min-height: 1.8rem;
  margin-top: 1.2rem;
  font-weight: 700;
  color: var(--rose);
  font-size: 1.15rem;
}
.tease.pop { animation: tick .45s ease; }

.rsvp-result {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 25px 60px rgba(90, 26, 43, .14);
  border: 1px solid rgba(201, 162, 75, .4);
  animation: zoom-in .6s cubic-bezier(.3, 1.5, .5, 1);
}
.result-emoji { font-size: 4rem; animation: bob 2s ease-in-out infinite; }
.rsvp-result h3 { font-family: var(--font-script); font-weight: 400; font-size: 2.4rem; color: var(--wine); line-height: 1.3; margin: .5rem 0; }
.rsvp-result h3[lang="ar"] { font-size: 2.1rem; font-weight: 600; }
.tease[lang="ar"],
#result-text[lang="ar"] { font-family: var(--font-body); }
.rsvp-result p { margin-bottom: 1.5rem; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background: var(--wine-deep);
  color: var(--blush);
}
.footer-names { font-family: var(--font-script); font-weight: 400; font-size: 2.5rem; color: var(--gold-light); line-height: 1.3; }

/* sparkle trail & confetti */
.spark {
  position: fixed;
  pointer-events: none;
  z-index: 300;
  font-size: 14px;
  animation: spark-fade 1s ease-out forwards;
}

.confetti {
  position: fixed;
  top: -20px;
  z-index: 250;
  pointer-events: none;
  will-change: transform;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.reveal.revealed { opacity: 1; transform: none; }

/* ============ KEYFRAMES ============ */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes pulse-seal { 0%, 100% { box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 0 0 0 rgba(242,220,155,.5), inset 0 -4px 8px rgba(0,0,0,.3); } 50% { box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 0 0 14px rgba(242,220,155,0), inset 0 -4px 8px rgba(0,0,0,.3); } }
@keyframes blink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sparkle { 0%, 100% { filter: drop-shadow(0 0 0 #fff); } 50% { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #bfe3ff); } }
@keyframes text-shine { to { background-position: 200% center; } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-80px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(80px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.3) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes scroll-dot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes route-move { to { stroke-dashoffset: -16; } }
@keyframes pin-drop { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -125%); } }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes spark-fade { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, 20px) scale(.2) rotate(90deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .nav { display: none; }
  .hero-frame { border-radius: 140px 140px 20px 20px; }
  .rings { width: 100px; }
  .btn { padding: .85rem 1.5rem; font-size: 1rem; }
  .rsvp-buttons { flex-direction: column; align-items: stretch; }
  .s-num { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
