/* =========================================================
   Indian wedding invitation · ivory, burgundy & gold
   Mobile-first; larger screens simply centre the column.
   ========================================================= */

:root {
  --ivory: #fbf5e9;
  --ivory-2: #f4ead3;
  --paper: #fffaf0;
  --burgundy: #6b1424;
  --burgundy-deep: #470c17;
  --burgundy-soft: #84192e;
  --gold: #c9a24a;
  --gold-light: #ecd48d;
  --gold-deep: #9c7a2c;
  --ink: #3d2118;
  --ink-soft: #6d4c3d;

  --gold-gradient: linear-gradient(120deg, #a6782a 0%, #f3dc8e 28%, #b88a32 52%, #f6e3a1 76%, #9c6f22 100%);

  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-display: "Cinzel", "Trajan Pro", serif;
  --font-body: "Cormorant Garamond", "Garamond", Georgia, serif;
  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .7), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 0L44 22L22 44L0 22Z' fill='none' stroke='%23c9a24a' stroke-opacity='.16'/%3E%3Ccircle cx='22' cy='22' r='1.6' fill='%23c9a24a' fill-opacity='.28'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; height: 100svh; }

p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.gold-text,
.landing-names,
.footer-names,
.rsvp-title {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Landing / envelope
   ========================================================= */

.landing {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at center, rgba(255, 252, 244, .9) 0%, rgba(251, 245, 233, 0) 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(156, 122, 44, .18) 100%);
  transition: opacity 1s var(--ease-in-out), transform 1.2s var(--ease-in-out), visibility 0s linear 1.2s;
}

.landing-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 74, .7);
  pointer-events: none;
}
.landing-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 74, .35);
}

.landing-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-header {
  transition: opacity .6s ease, transform .9s var(--ease-out);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.landing-names {
  margin: 4px 0 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(44px, 13vw, 60px);
  line-height: 1.15;
  padding: .15em .1em 0;
}
.landing-names .amp { font-size: .7em; padding: 0 .08em; }

.envelope-stage {
  width: 100%;
  margin-top: clamp(64px, 12vh, 120px);
  transition: transform 1.2s var(--ease-out);
}

.envelope {
  position: relative;
  width: min(88vw, 400px);
  aspect-ratio: 400 / 280;
  margin: 0 auto;
  perspective: 1400px;
  cursor: pointer;
  animation: float 5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.env-back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #4f0d1a, #3d0913);
  box-shadow: 0 22px 34px rgba(71, 12, 23, .3), 0 4px 8px rgba(71, 12, 23, .22);
  z-index: 1;
}

.env-card {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 5%;
  height: 90%;
  z-index: 2;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .15);
  transition: transform 1.3s var(--ease-out);
}
.env-card-inner {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 162, 74, .4);
  outline-offset: -5px;
  padding-top: 7%;
  text-align: center;
}
.mini-lotus { width: 34px; height: 20px; color: var(--gold); }
.mini-eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.mini-names {
  font-family: var(--font-script);
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.2;
  color: var(--burgundy);
}

.env-pocket {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: visible;
}
.sparkle {
  opacity: 0;
  animation: twinkle 5.3s ease-in-out infinite;
}
.sparkle-b { animation-duration: 6.7s; animation-delay: -2.1s; }
.sparkle-c { animation-duration: 4.9s; animation-delay: -3.8s; }
.sparkle-d { animation-duration: 7.6s; animation-delay: -5.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 0; }
  62% { opacity: .55; }
  76% { opacity: 0; }
}

.env-flap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 62.5%;
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-in-out);
}
.flap-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: visible;
}
.flap-outside { filter: drop-shadow(0 3px 3px rgba(40, 5, 12, .35)); }
.flap-inside { transform: rotateX(180deg); opacity: 0; }
/* Swap faces at the midpoint of the flip; backface-visibility alone is unreliable on some mobile browsers. */
.flap-outside,
.flap-inside { transition: opacity 0s linear .45s; }
.envelope.flap-open .flap-outside { opacity: 0; }
.envelope.flap-open .flap-inside { opacity: 1; }

.env-seal {
  position: absolute;
  left: 50%;
  top: 62.5%;
  z-index: 5;
  width: 21%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background:
    radial-gradient(circle at 35% 30%, #fff3c4 0%, #e9c96f 22%, #b98b2f 55%, #8a6220 80%, #6e4c17 100%);
  box-shadow:
    0 4px 10px rgba(40, 5, 12, .45),
    inset 0 -3px 6px rgba(0, 0, 0, .25),
    inset 0 2px 4px rgba(255, 255, 255, .5);
  transition: transform .5s var(--ease-out), opacity .45s ease;
  -webkit-tap-highlight-color: transparent;
}
.seal-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1.5px dashed rgba(90, 58, 14, .55);
  box-shadow: inset 0 0 0 3px rgba(255, 240, 190, .35);
}
.seal-logo {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 1px 0 rgba(255, 245, 205, .7));
  pointer-events: none;
}
.env-seal:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }

.btn-open {
  position: relative;
  margin-top: 44px;
  padding: 15px 38px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(180deg, var(--burgundy-soft), var(--burgundy-deep));
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--ivory), 0 0 0 5px rgba(201, 162, 74, .6), 0 10px 24px rgba(71, 12, 23, .3);
  cursor: pointer;
  overflow: hidden;
  transition: opacity .4s ease, transform .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-open::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 233, 170, .45), transparent);
  animation: shimmer 3.2s ease-in-out infinite;
}
.btn-open:active { transform: scale(.97); }
.btn-open:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 8px; }

@keyframes shimmer {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

.landing-hint {
  margin-top: 16px;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  transition: opacity .4s ease;
}

/* ---- Intro: landing elements fade in in layers on page load ---- */

.landing-frame { animation: intro-fade 1.7s ease both; }
.eyebrow { animation: intro-rise 1.3s var(--ease-out) .35s both; }
.landing-names { animation: intro-names 1.7s var(--ease-out) 1.2s both; }
.envelope-stage { animation: intro-envelope 1.9s var(--ease-out) 2.25s both; }
.btn-open { animation: intro-rise 1.3s var(--ease-out) 2.95s both; }
.landing-hint { animation: intro-fade 1.3s ease 3.3s both; }

@keyframes intro-fade {
  from { opacity: 0; }
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes intro-names {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
}
@keyframes intro-envelope {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
}

/* ---- Opening sequence (classes added by main.js) ---- */

.is-opening .eyebrow,
.is-opening .landing-names,
.is-opening .envelope-stage,
.is-opening .btn-open,
.is-opening .landing-hint { animation: none; }

.is-opening .landing-header { opacity: 0; transform: translateY(-24px); }
.is-opening .btn-open,
.is-opening .landing-hint { opacity: 0; pointer-events: none; }
.is-opening .envelope { animation: none; cursor: default; }
.is-opening .envelope-stage { transform: translateY(14%); }
.is-opening .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(1.5); pointer-events: none; }

.envelope.flap-open .env-flap { transform: rotateX(180deg); }
.envelope.flap-behind .env-flap { z-index: 1; }
.envelope.card-out .env-card { transform: translateY(-62%); }

.is-revealed .landing {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   Invitation
   ========================================================= */

.invitation {
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out) .2s;
}
.is-revealed .invitation { opacity: 1; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 14px 24px;
}

.hero-card {
  container-type: inline-size;
  position: relative;
  width: min(92vw, 440px, calc((100svh - 110px) * 682 / 1024));
  min-width: min(92vw, 300px);
  aspect-ratio: 682 / 1024;
  background: url("/assets/card-background.jpg") center / cover no-repeat;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(201, 162, 74, .6),
    0 24px 50px rgba(71, 12, 23, .22),
    0 6px 14px rgba(71, 12, 23, .12);
  transform: translateY(24px) scale(.94);
  opacity: 0;
  transition: transform 1.4s var(--ease-out) .35s, opacity 1.2s ease .35s;
}
.is-revealed .hero-card { transform: none; opacity: 1; }

.gem-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gem {
  position: absolute;
  width: 4cqw;
  height: 4cqw;
  margin: -2cqw 0 0 -2cqw;
  opacity: 0;
}
.gem::before,
.gem::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gem::before {
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 225, .85) 0%, rgba(233, 201, 111, .35) 35%, transparent 65%);
}
.gem::after {
  background: linear-gradient(135deg, #fffdf2, #f3dc94);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.is-revealed .gem {
  animation: gem-glint var(--duration, 7s) ease-in-out var(--delay, 4s) infinite;
}
@keyframes gem-glint {
  0% { opacity: 0; transform: scale(.2) rotate(0deg); }
  10% { opacity: 1; transform: scale(1) rotate(45deg); }
  20%, 100% { opacity: 0; transform: scale(.35) rotate(90deg); }
}

.hero-text {
  position: absolute;
  top: 19%;
  left: 11%;
  right: 11%;
  text-align: center;
}
.hero-eyebrow {
  margin-top: 4cqw;
  font-family: var(--font-display);
  font-size: 3cqw;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--burgundy);
}
.hero-names {
  margin: 3.5cqw 0 0;
  font-weight: 400;
  line-height: 1;
}
.hero-names .name {
  display: block;
  font-family: var(--font-script);
  font-size: 14cqw;
  line-height: 1.08;
  color: var(--burgundy);
}
.hero-amp {
  display: block;
  font-family: var(--font-script);
  font-size: 8cqw;
  line-height: .9;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-line {
  margin-top: 1.5cqw;
  font-style: italic;
  font-size: 4.6cqw;
  line-height: 1.3;
  color: var(--ink);
}

.hero-date {
  position: absolute;
  top: 64%;
  left: 32%;
  right: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--burgundy);
}
.d-day {
  font-family: var(--font-display);
  font-size: 2.8cqw;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.d-num {
  font-family: var(--font-display);
  font-size: 11cqw;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
}
.d-num.is-range { font-size: 8.5cqw; }
.d-month {
  font-family: var(--font-display);
  font-size: 3cqw;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.d-rule {
  width: 60%;
  height: 1px;
  margin: 2cqw 0 1.5cqw;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.d-city {
  font-style: italic;
  font-size: 3.8cqw;
  line-height: 1.2;
  color: var(--ink);
}

.scroll-hint {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  animation: nudge 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---- Content sections ---- */

.section {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 22px;
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 28px;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { transform: scaleX(-1); }
.divider svg { width: 36px; height: 21px; overflow: visible; }

/* ---- Lotus blooms open as its section scrolls into view ---- */

.divider.will-bloom::before,
.divider.will-bloom::after {
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) 1.2s;
}
.divider.will-bloom::before { transform-origin: 100% 50%; }
.divider.will-bloom::after {
  transform-origin: 0 50%;
  background: linear-gradient(270deg, transparent, var(--gold));
}
.divider.will-bloom.is-open::before,
.divider.will-bloom.is-open::after { transform: scaleX(1); }

.divider.will-bloom path {
  transform-box: view-box;
  transform-origin: 24px 24px;
  opacity: 0;
  transition: transform 1.4s var(--ease-out), opacity .7s ease;
}
.divider.will-bloom path:nth-child(1) { transform: scaleY(0); transition-delay: .15s; }
.divider.will-bloom path:nth-child(2) { transform: rotate(40deg) scale(.6); transition-delay: .5s; }
.divider.will-bloom path:nth-child(3) { transform: rotate(-40deg) scale(.6); transition-delay: .5s; }
.divider.will-bloom path:nth-child(4) { transform: rotate(70deg) scale(.6); transition-delay: .85s; }
.divider.will-bloom path:nth-child(5) { transform: rotate(-70deg) scale(.6); transition-delay: .85s; }
.divider.will-bloom.is-open path { opacity: 1; transform: none; }

.blessing {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}
.families {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.5;
  color: var(--burgundy);
}
.families-amp {
  display: block;
  margin: 4px 0;
  font-family: var(--font-script);
  font-size: 28px;
  line-height: 1;
  color: var(--gold-deep);
}
.invite-message {
  max-width: 30em;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.55;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
.countdown > div {
  padding: 12px 4px 10px;
  border: 1px solid rgba(201, 162, 74, .55);
  border-radius: 10px;
  background: rgba(255, 250, 240, .8);
}
.countdown span {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.countdown.is-done { display: block; font-style: italic; font-size: 20px; color: var(--burgundy); }

/* ---- Schedule timeline ---- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  text-align: left;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent);
  transform-origin: 50% 0;
}
.timeline.is-drawing::before { transform: scaleY(var(--drawn, 0)); }

.details-note {
  max-width: 30em;
  margin: 32px auto 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.details-note a {
  color: var(--burgundy);
  text-decoration-color: rgba(201, 162, 74, .7);
  text-underline-offset: 3px;
}

.timeline-date {
  position: relative;
  margin: 26px 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.timeline-date:first-child { margin-top: 0; }
.timeline-date::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  transform: rotate(45deg);
  background: var(--gold-gradient);
  box-shadow: 0 0 0 3px var(--ivory);
  transition: transform .6s var(--ease-out), opacity .4s ease, box-shadow .9s ease;
}
.timeline.is-drawing .timeline-date::before {
  opacity: 0;
  transform: rotate(45deg) scale(0);
}
.timeline.is-drawing .timeline-date.is-reached::before {
  opacity: 1;
  transform: rotate(45deg) scale(1);
  animation: diamond-glow 1.2s ease-out;
}
@keyframes diamond-glow {
  0% { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 3px rgba(233, 201, 111, .7); }
  100% { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 14px rgba(233, 201, 111, 0); }
}

.event {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(201, 162, 74, .5);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 250, 240, .9)),
    var(--paper);
  box-shadow: 0 8px 22px rgba(107, 20, 36, .07);
}
.event::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 162, 74, .18);
  border-radius: 11px;
  pointer-events: none;
}
.event-name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  color: var(--burgundy);
}
.event-desc {
  margin-top: 2px;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}
.event-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(201, 162, 74, .5);
  font-size: 17px;
}
.event-meta div { display: flex; gap: 10px; align-items: flex-start; }
.event-meta svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--gold-deep);
}

/* ---- Venues ---- */

.venue-list { display: grid; gap: 16px; }
.venue {
  padding: 22px 20px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid rgba(201, 162, 74, .5);
  border-top: 3px solid var(--burgundy);
  box-shadow: 0 8px 22px rgba(107, 20, 36, .07);
}
.venue-name {
  margin: 0;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.2;
  color: var(--burgundy);
}
.venue-events {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.venue-address { margin-top: 8px; font-size: 17px; color: var(--ink-soft); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--burgundy);
  transition: background .25s ease;
}
.btn-outline:hover, .btn-outline:active { background: rgba(201, 162, 74, .14); }
.btn-outline svg { width: 15px; height: 15px; }

/* ---- RSVP ---- */

.rsvp {
  padding: 56px 18px;
  background-color: var(--burgundy);
  background-image:
    radial-gradient(ellipse at center, rgba(132, 25, 46, .9), rgba(71, 12, 23, .95) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 0L32 16L16 32L0 16Z' fill='none' stroke='%23e7c978' stroke-opacity='.25'/%3E%3Ccircle cx='16' cy='16' r='1.4' fill='%23e7c978' fill-opacity='.4'/%3E%3C/svg%3E");
  background-blend-mode: normal;
}
.rsvp-inner {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 22px;
  text-align: center;
  border: 1px solid rgba(231, 201, 120, .75);
  outline: 1px solid rgba(231, 201, 120, .35);
  outline-offset: 5px;
  color: var(--ivory);
}
.rsvp-lotus { width: 48px; height: 28px; color: var(--gold-light); }
.rsvp-title {
  margin: 8px 0 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 50px;
  line-height: 1.1;
}
.rsvp-text { margin-top: 10px; font-size: 19px; color: rgba(251, 245, 233, .9); }
.rsvp-text strong { font-weight: 600; color: var(--gold-light); }

.btn-rsvp {
  position: relative;
  display: inline-block;
  margin-top: 26px;
  padding: 18px 54px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--burgundy-deep);
  background: var(--gold-gradient);
  background-size: 160% 100%;
  box-shadow: 0 0 0 4px rgba(71, 12, 23, .6), 0 0 0 5px rgba(231, 201, 120, .7), 0 14px 28px rgba(0, 0, 0, .35);
  overflow: hidden;
  transition: transform .2s ease, background-position .6s ease;
}
.btn-rsvp::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shimmer 3.6s ease-in-out infinite;
}
.btn-rsvp:hover { background-position: 100% 0; }

.rsvp-password {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
}
.rsvp-password[hidden] { display: none; }
.rsvp-password-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(251, 245, 233, .75);
}
.password-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px dashed rgba(231, 201, 120, .8);
  border-radius: 10px;
  background: rgba(30, 4, 11, .35);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--gold-light);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.password-chip svg { width: 17px; height: 17px; opacity: .8; }
.password-chip:active { transform: scale(.97); }
.copy-status {
  font-style: italic;
  font-size: 14px;
  color: rgba(251, 245, 233, .6);
}
.btn-rsvp:active { transform: scale(.97); }

/* ---- Footer ---- */

.footer {
  padding: 44px 20px calc(110px + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--burgundy-deep);
  color: var(--gold-light);
}
.footer-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
}
.footer-names {
  margin-top: 4px;
  font-family: var(--font-script);
  font-size: 44px;
  line-height: 1.2;
}
.footer-hashtag {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  opacity: .8;
}

/* ---- Floating controls ---- */

.music-toggle {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--gold-light);
  background: linear-gradient(180deg, var(--burgundy-soft), var(--burgundy-deep));
  box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(71, 12, 23, .35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.music-toggle[hidden] { display: none; }
.music-toggle svg { width: 22px; height: 22px; }
.music-toggle .icon-off { display: none; }
.music-toggle[aria-pressed="true"] .icon-on { display: none; }
.music-toggle[aria-pressed="true"] .icon-off { display: block; }
.music-toggle:not([aria-pressed="true"])::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Prototype preview switcher ---- */

.preview-bar {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 12px;
  z-index: 50;
  display: flex;
  gap: 2px;
  max-width: calc(100vw - 84px);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 3px;
  border-radius: 999px;
  background: rgba(61, 33, 24, .82);
  backdrop-filter: blur(6px);
  font-family: system-ui, sans-serif;
  font-size: 11px;
}
.preview-bar[hidden] { display: none; }
.preview-bar a {
  padding: 6px 9px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
}
.preview-bar a[aria-current="page"] { background: var(--gold); color: var(--burgundy-deep); font-weight: 600; }

/* ---- Petals ---- */

.petals {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -40px;
  width: var(--size, 14px);
  height: calc(var(--size, 14px) * .8);
  border-radius: 150% 0 150% 0;
  background: var(--color, #f2a81d);
  opacity: 0;
  animation: fall var(--duration, 9s) linear var(--delay, 0s) forwards;
}
@keyframes fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  8% { opacity: .9; }
  85% { opacity: .85; }
  100% { opacity: 0; transform: translate(var(--drift, 40px), 105vh) rotate(var(--spin, 540deg)); }
}

/* ---- Scroll reveals ---- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform 1s var(--ease-out);
}
.reveal-on-scroll.in-view { opacity: 1; transform: none; }

/* ---- Larger screens ---- */

@media (min-width: 720px) {
  body { font-size: 19px; }
  .section { padding: 72px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .2s !important;
    transition-delay: 0s !important;
  }
  .petals,
  .gem-sparkles { display: none; }
}
