:root {
  --midnight: #647a5c;
  --navy: #829779;
  --blue: #b6c8a3;
  --pearl: #fffdf4;
  --champagne: #c49b4a;
  --champagne-light: #f3d995;
  --mist: #f4f8ea;
  --ink: #3e5137;
  --line: rgba(218, 178, 91, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -5%, rgba(246, 251, 230, .8), transparent 34rem),
    linear-gradient(145deg, #71876a, #a9bc9d 52%, #61775a);
  color: var(--pearl);
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 32%, rgba(217,183,110,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 74%, rgba(255,255,255,.45) 0 1px, transparent 1.5px);
  background-size: 190px 210px, 270px 290px, 230px 250px;
}

button, a { font: inherit; }
a { color: inherit; }
button { border: 0; }

.music-control {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  cursor: pointer;
  border: 1px solid rgba(243,217,149,.72);
  border-radius: 999px;
  background: rgba(55,72,48,.9);
  color: var(--pearl);
  box-shadow: 0 12px 36px rgba(30,42,25,.34);
  backdrop-filter: blur(12px);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.music-control[hidden] { display: none; }
#backgroundMusic {
  position: fixed;
  left: -10px;
  bottom: -10px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: .01;
  pointer-events: none;
}
.music-bars { height: 16px; display: flex; align-items: flex-end; gap: 2px; }
.music-bars i { width: 2px; height: 7px; background: var(--champagne-light); }
.music-control.playing .music-bars i { animation: music-wave .8s ease-in-out infinite alternate; }
.music-control.playing .music-bars i:nth-child(2) { animation-delay: -.4s; }
.music-control.playing .music-bars i:nth-child(3) { animation-delay: -.2s; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px 20px 64px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 249, 222, .9), transparent 27rem),
    linear-gradient(150deg, #607557, #a9bd9b 55%, #708667);
  transition: opacity 1s ease, visibility 1s ease;
}

.intro::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16vmin;
  aspect-ratio: 1;
  border: 1px solid rgba(241, 217, 158, .8);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
}

.intro.opening::after { animation: halo 1.2s ease-out both; }
.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-stars {
  position: absolute;
  inset: 0;
  opacity: .75;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle, var(--champagne-light) 0 1px, transparent 1.6px);
  background-position: 0 0, 36px 64px;
  background-size: 96px 108px, 144px 162px;
  animation: star-drift 24s linear infinite;
}

.intro-card {
  position: relative;
  width: min(86vw, 390px);
  min-height: min(70vh, 590px);
  padding: 48px 28px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  border: 1px solid rgba(241, 217, 158, .75);
  background:
    linear-gradient(125deg, rgba(255,255,255,.07), transparent 28%),
    linear-gradient(155deg, rgba(187,205,160,.98), rgba(94,116,84,.98));
  box-shadow:
    0 0 0 7px rgba(49,65,42,.88),
    0 0 0 8px rgba(217,183,110,.24),
    0 28px 80px rgba(0,0,0,.58),
    0 0 90px rgba(175,196,130,.18);
  animation: card-enter 1.1s cubic-bezier(.16,.84,.44,1) both;
  transition: opacity .7s ease, transform .8s ease, filter .7s ease;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: -1;
  border: 1px solid rgba(217,183,110,.28);
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: -40% -100%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 46%, rgba(255,245,217,.18) 50%, transparent 54%);
  transform: translateX(-32%) rotate(8deg);
  animation: sheen 5.5s ease-in-out 1.2s infinite;
}

.intro.opening .intro-card {
  opacity: 0;
  filter: blur(5px);
  transform: scale(1.035);
}

.intro-eyebrow, .eyebrow, .section-kicker, .event-type {
  color: var(--champagne-light);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.intro-day {
  position: absolute;
  color: rgba(247, 242, 232, .035);
  font-family: "Italiana", serif;
  font-size: clamp(13rem, 55vw, 19rem);
  line-height: .8;
  z-index: -1;
}

.intro-monogram {
  width: 150px;
  aspect-ratio: 1;
  margin: 30px 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 217, 158, .66);
  border-radius: 76px 76px 12px 12px;
  color: var(--pearl);
  font-family: "Italiana", serif;
  font-size: 3rem;
  letter-spacing: -.1em;
  text-indent: -.1em;
  box-shadow: inset 0 0 0 7px rgba(217,183,110,.05), 0 0 44px rgba(217,183,110,.1);
}

.intro-name {
  color: var(--pearl);
  font-family: "Parisienne", cursive;
  font-size: clamp(2.5rem, 11vw, 4rem);
  line-height: 1;
  text-align: center;
}

.intro-date {
  margin-top: 14px;
  color: var(--champagne-light);
  font-size: .68rem;
  letter-spacing: .4em;
}

.intro-action {
  margin-top: 36px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  color: var(--champagne-light);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.intro-hint {
  position: absolute;
  bottom: 25px;
  color: rgba(241,217,158,.75);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: hint 2s ease-in-out infinite;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(241,217,158,.75);
}
.corner-a { left: 23px; top: 23px; border-left: 1px solid; border-top: 1px solid; }
.corner-b { right: 23px; top: 23px; border-right: 1px solid; border-top: 1px solid; }
.corner-c { left: 23px; bottom: 23px; border-left: 1px solid; border-bottom: 1px solid; }
.corner-d { right: 23px; bottom: 23px; border-right: 1px solid; border-bottom: 1px solid; }

main {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

main.visible { opacity: 1; visibility: visible; }

.hero {
  position: relative;
  min-height: min(1180px, 112svh);
  margin-top: 24px;
  padding: clamp(72px, 9vh, 112px) 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(196,155,74,.42);
  isolation: isolate;
  background: linear-gradient(90deg, #edf3e3, #fffdf6 28%, #fffdf6 72%, #edf3e3);
  box-shadow: 0 24px 70px rgba(43,62,37,.2);
  text-align: center;
}

.hero-details {
  position: relative;
  isolation: isolate;
  margin: 28px 0 34px;
  padding: clamp(42px, 7vw, 72px) clamp(22px, 7vw, 70px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(243,217,149,.16), transparent 38%),
    linear-gradient(145deg, rgba(46,66,40,.96), rgba(87,112,77,.96));
  box-shadow: 0 20px 55px rgba(43,62,37,.18);
  text-align: center;
}

.hero-details::before,
.hero-details::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(243,217,149,.28);
  transform: rotate(45deg);
}

.hero-details::before { top: -92px; left: -70px; }
.hero-details::after { right: -70px; bottom: -92px; }

.hero-details .section-kicker { color: var(--champagne-light); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,253,246,.08), rgba(255,253,246,.12) 48%, transparent 73%);
}

.hero > :not(.hero-scene) { position: relative; z-index: 3; }

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  left: 50%;
  display: block;
  max-width: none;
  user-select: none;
  will-change: transform;
}

.hero-palace {
  bottom: -1%;
  width: max(100%, 590px);
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: translateX(-50%) scale(1.015);
  animation: palace-breathe 12s ease-in-out infinite alternate;
}

.hero-girl {
  bottom: -4.5%;
  width: clamp(440px, 60%, 660px);
  filter: drop-shadow(0 18px 28px rgba(67,82,57,.1));
  transform: translateX(-50%);
  transform-origin: center bottom;
  animation: girl-arrive 2.1s cubic-bezier(.22,.8,.3,1) both, dress-breathe 7s 2.1s ease-in-out infinite alternate;
}

.hero-florals {
  inset: 0 auto auto 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%) scale(1.015);
  filter: drop-shadow(0 8px 14px rgba(55,75,49,.06));
  animation: floral-arrive 1.8s .15s ease-out both;
}

.hero-glint {
  position: absolute;
  z-index: 2;
  color: #c49b4a;
  text-shadow: 0 0 14px rgba(217,183,110,.8);
  animation: glint 3.2s ease-in-out infinite;
}
.glint-a { left: 24%; top: 31%; font-size: 1.2rem; }
.glint-b { right: 22%; top: 43%; font-size: .8rem; animation-delay: 1.1s; }
.glint-c { left: 17%; bottom: 30%; font-size: 1rem; animation-delay: 2s; }

.hero-orbit {
  display: none;
}

.hero-orbit::before {
  content: "DY";
  color: var(--pearl);
  font-family: "Italiana", serif;
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  letter-spacing: -.12em;
  text-indent: -.12em;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217,183,110,.65);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(201,156,69,.03), 0 0 90px rgba(176,198,131,.17);
}

.orbit-star {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--champagne-light);
  animation: orbit 10s linear infinite;
}

.hero h1 {
  margin-top: 14px;
  color: #40533a;
  font-family: "Italiana", serif;
  font-size: clamp(3.5rem, 11vw, 7.6rem);
  font-weight: 400;
  line-height: .9;
}

.hero h1 span {
  display: block;
  color: #9b702b;
  font-family: "Parisienne", cursive;
  font-size: .72em;
}

.last-name {
  margin-top: 22px;
  color: #526748;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5em;
}

.date-lockup {
  max-width: 520px;
  margin: 34px auto 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  color: var(--champagne-light);
}

.date-lockup strong {
  position: relative;
  z-index: 5;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(196,155,74,.72);
  border-radius: 50%;
  background: rgba(255,253,246,.92);
  color: #40533a;
  font-family: "Italiana", serif;
  font-size: 5rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(63,81,55,.18);
}

.date-lockup span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: right;
}
.date-lockup span:last-child { text-align: left; }

.hero-copy, .center-copy {
  max-width: 650px;
  color: var(--mist);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
}

.hero-details .hero-copy {
  max-width: 690px;
  margin-inline: auto;
  color: var(--pearl);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.55;
}

.scroll-cue {
  display: inline-block;
  margin-top: 30px;
  color: var(--champagne-light);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue span { display: block; margin-top: 8px; font-size: 1.2rem; animation: bob 1.8s ease-in-out infinite; }

.panel, .family, .events, .split, .pending-summary, .share {
  margin: 34px 0;
}

.panel, .pending-summary, .share {
  padding: clamp(32px, 7vw, 68px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), transparent 35%),
    rgba(68,87,59,.72);
  box-shadow: 0 20px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
  text-align: center;
}

h2 {
  margin: 8px 0 30px;
  color: var(--pearl);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 760px;
  margin: 0 auto;
}

.countdown div {
  padding: 24px 8px;
  border: 1px solid rgba(217,183,110,.5);
  background: linear-gradient(145deg, rgba(123,143,91,.82), rgba(42,56,32,.9));
}
.countdown strong { display: block; color: var(--champagne-light); font-family: "Italiana", serif; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 400; line-height: 1; }
.countdown span { display: block; margin-top: 9px; color: var(--mist); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }

.family {
  min-height: 380px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(201,156,69,.15), rgba(48,64,37,.88) 52%);
}

.family-mark {
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  color: rgba(241,217,158,.78);
  font-family: "Parisienne", cursive;
  font-size: clamp(9rem, 25vw, 15rem);
  background: radial-gradient(circle, rgba(150,171,108,.54), transparent 64%);
}
.family > div:last-child { padding: 42px; text-align: center; }
.featured-name { color: var(--champagne-light); font-family: "Parisienne", cursive; font-size: clamp(2rem, 5vw, 3.3rem); }

.pending-card {
  max-width: 570px;
  margin: 0 auto;
  padding: 30px;
  border: 1px dashed rgba(185,201,216,.4);
  color: var(--mist);
}
.pending-card strong { display: block; margin: 8px 0; color: var(--pearl); font-family: "Italiana", serif; font-size: 1.35rem; }
.pending-icon { color: var(--champagne); font-size: 2rem; }

.events { padding: clamp(20px, 4vw, 42px) 0; }
.section-heading { text-align: center; }

.event-card {
  min-height: 370px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(28,39,22,.84);
}
.event-card-reverse { grid-template-columns: 1.3fr .7fr; }
.event-card-reverse .event-number { order: 2; }

.event-number {
  display: grid;
  place-items: center;
  color: rgba(217,183,110,.8);
  font-family: "Italiana", serif;
  font-size: clamp(7rem, 18vw, 12rem);
  background:
    radial-gradient(circle, rgba(168,187,126,.64), transparent 62%),
    linear-gradient(145deg, rgba(112,132,80,.82), rgba(35,48,27,.94));
}

.event-content {
  padding: clamp(34px, 7vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.event-content h3 { margin: 9px 0; color: var(--pearl); font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; }
.event-room { color: var(--champagne-light); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.event-time { color: var(--champagne-light); font-family: "Cormorant Garamond", serif; font-size: 1.65rem; font-weight: 600; }
address { margin: 16px 0 24px; color: var(--mist); font-style: normal; }

.disabled-action {
  display: inline-block;
  padding: 10px 15px;
  border: 1px dashed rgba(185,201,216,.38);
  color: var(--mist);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.disabled-action.large { margin-top: 26px; padding: 13px 22px; }

.map-action {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid rgba(239,213,143,.72);
  background: linear-gradient(145deg, var(--champagne-light), #b98635);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(22,30,16,.24);
  transition: transform .25s ease, box-shadow .25s ease;
}
.map-action:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(201,156,69,.22); }

.timeline { max-width: 760px; margin: 0 auto; text-align: left; }
.timeline-row { display: grid; grid-template-columns: 110px 20px 1fr; gap: 18px; min-height: 105px; }
.timeline-row time { padding-top: 2px; color: var(--champagne-light); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-align: right; }
.timeline-dot { position: relative; width: 11px; height: 11px; margin-top: 5px; border: 2px solid var(--champagne); border-radius: 50%; }
.timeline-dot::after { content: ""; position: absolute; left: 3px; top: 13px; width: 1px; height: 82px; background: var(--line); }
.timeline-row:last-child .timeline-dot::after { display: none; }
.timeline-row strong { color: var(--pearl); font-family: "Italiana", serif; font-size: 1.25rem; font-weight: 400; }
.timeline-row p { color: var(--mist); }
.timeline-pending { opacity: .66; }

.message-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 34px 0;
}
.message-pair article {
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 45%),
    rgba(77,98,66,.78);
  text-align: center;
  box-shadow: 0 20px 55px rgba(37,52,31,.2);
}
.message-pair h2 { margin-bottom: 18px; }
.message-pair p:last-child { color: var(--mist); }
.message-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--champagne-light);
  font-family: "Italiana", serif;
  font-size: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split article { padding: 46px 30px; border: 1px solid var(--line); background: rgba(29,39,23,.76); text-align: center; }
.split h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.split-icon { display: block; margin-bottom: 20px; color: var(--champagne-light); font-size: 2.2rem; }
.pending-copy { color: var(--mist); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.palette-copy { color: var(--mist); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.palette-panel .center-copy { margin: 0 auto 14px; }
.palette-swatches { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.palette-swatches span {
  width: 31px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,249,233,.52);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
}
.palette-swatches span:nth-child(1) { background: #cbd6a6; }
.palette-swatches span:nth-child(2) { background: #aebb82; }
.palette-swatches span:nth-child(3) { background: #6f7a49; }
.palette-swatches span:nth-child(4) { background: #c99c45; }
.palette-swatches span:nth-child(5) { background: #fff6df; }

.memories {
  position: relative;
  margin: 34px 0;
  padding: clamp(46px, 8vw, 86px) clamp(22px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 18%, rgba(239,213,143,.13), transparent 28%),
    linear-gradient(145deg, rgba(115,139,82,.92), rgba(46,62,37,.98));
  box-shadow: 0 22px 60px rgba(37,52,31,.24);
}
.memories::before {
  content: "15";
  position: absolute;
  right: -18px;
  top: -50px;
  color: rgba(255,255,255,.035);
  font-family: "Italiana", serif;
  font-size: clamp(13rem, 32vw, 24rem);
  line-height: 1;
}
.memories-heading { position: relative; z-index: 1; max-width: 610px; margin: 0 auto 40px; text-align: center; }
.memories-heading > p:last-child { max-width: 520px; margin: 14px auto 0; color: var(--mist); }
.memory-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: repeat(3, minmax(190px, 23vw));
  gap: 16px;
}
.memory-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(239,213,143,.62);
  background: #40533a;
  box-shadow: 0 16px 38px rgba(18,29,14,.28);
}
.memory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid rgba(255,253,246,.07);
  pointer-events: none;
}
.memory-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.memory-card:hover img { transform: scale(1.045); filter: saturate(1.06); }
.memory-card span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 11px;
  background: rgba(31,43,25,.78);
  color: var(--champagne-light);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}
.memory-current { grid-row: 1 / 4; transform: rotate(-.7deg); }
.memory-current img { object-position: center 28%; }
.memory-one { transform: rotate(.8deg); }
.memory-two { transform: rotate(-.55deg); }
.memory-three { transform: rotate(.45deg); }

.story-beat {
  min-height: 440px;
  margin: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(46,62,37,.94), rgba(104,128,77,.78));
  box-shadow: 0 20px 58px rgba(37,52,31,.22);
}
.story-photo {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  cursor: zoom-in;
  background: #33452b;
}
.story-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(243,217,149,.62);
  pointer-events: none;
}
.story-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.story-photo:hover img { transform: scale(1.035); }
.story-copy { align-self: center; padding: clamp(38px, 7vw, 76px); }
.story-copy > span { color: var(--champagne-light); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.story-copy h2 { margin: 12px 0 20px; }
.story-copy p { max-width: 520px; color: var(--mist); font-size: 1rem; font-weight: 500; }
.story-beat:nth-of-type(even) { background: linear-gradient(225deg, rgba(48,65,38,.96), rgba(116,139,86,.76)); }

@media (min-width: 701px) {
  .story-beat-reverse .story-photo { order: 2; }
  .story-beat-reverse .story-copy { order: 1; text-align: right; }
  .story-beat-reverse .story-copy p { margin-left: auto; }
}

.dress-code-panel { text-align: center; }
.dress-code-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(239,213,143,.58);
  border-radius: 50%;
  color: var(--champagne-light);
  font-size: 1.8rem;
}
.dress-code-panel .center-copy { margin: 14px auto 0; }
.dress-code-panel strong { color: var(--champagne-light); font-weight: 600; }

.photo-lightbox {
  width: min(92vw, 760px);
  max-height: 92vh;
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(239,213,143,.8);
  background: #26341f;
  box-shadow: 0 28px 90px rgba(0,0,0,.6);
}
.photo-lightbox::backdrop { background: rgba(13,20,10,.88); backdrop-filter: blur(8px); }
.photo-lightbox img { display: block; width: 100%; max-height: calc(92vh - 20px); object-fit: contain; }
.photo-lightbox button {
  position: absolute;
  z-index: 2;
  right: -12px;
  top: -12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border: 1px solid var(--champagne-light);
  border-radius: 50%;
  background: #40533a;
  color: #fff9e9;
  font-size: 1.6rem;
}

.rsvp-intro { margin: 0 auto 30px; }
.rsvp-contact {
  margin: -16px auto 28px;
  color: var(--champagne-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.personalized-welcome {
  max-width: 650px;
  margin: 0 auto 28px;
  padding: 22px;
  border: 1px solid rgba(239,213,143,.68);
  background: linear-gradient(135deg, rgba(166,187,123,.24), rgba(201,156,69,.08));
}
.personalized-welcome[hidden] { display: none; }
.personalized-welcome > span { display: block; color: var(--champagne-light); font-size: 1.4rem; }
.personalized-welcome strong { display: block; margin: 7px 0; color: var(--pearl); font-family: "Italiana", serif; font-size: 1.35rem; font-weight: 400; }
.personalized-welcome p { color: var(--champagne-light); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rsvp-form { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; text-align: left; }
.rsvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rsvp-grid-single { grid-template-columns: 1fr; }
.rsvp-form label { display: grid; gap: 7px; }
.rsvp-form label > span { color: var(--champagne-light); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form small { color: var(--mist); font-weight: 400; letter-spacing: 0; text-transform: none; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(239,213,143,.46);
  border-radius: 0;
  outline: 0;
  background: rgba(13,20,10,.58);
  color: var(--pearl);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--champagne-light); box-shadow: 0 0 0 3px rgba(239,213,143,.12); }
.rsvp-form select option { color: #1d2717; background: #fff9e9; }
.rsvp-form textarea { resize: vertical; min-height: 96px; }
.rsvp-submit {
  padding: 15px 22px;
  cursor: pointer;
  border: 1px solid rgba(241,217,158,.8);
  background: linear-gradient(145deg, var(--champagne-light), #b58b42);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .05em;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.rsvp-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(217,183,110,.2); }
.rsvp-submit:disabled { cursor: wait; opacity: .64; transform: none; }
.rsvp-note { color: rgba(220,229,200,.72); font-size: .72rem; text-align: center; }
.rsvp-result {
  max-width: 650px;
  margin: 26px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(107,131,76,.2);
  color: var(--mist);
}
.rsvp-result[hidden] { display: none; }
.rsvp-result strong { display: block; margin-bottom: 8px; color: var(--champagne-light); font-family: "Italiana", serif; font-size: 1.55rem; font-weight: 400; }
.rsvp-result a { display: inline-block; margin-top: 15px; color: var(--champagne-light); font-weight: 700; }

.pending-summary ul {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  list-style: none;
  text-align: left;
}
.pending-summary li { padding: 9px 0 9px 22px; border-bottom: 1px solid rgba(185,201,216,.12); color: var(--mist); position: relative; }
.pending-summary li::before { content: "◇"; position: absolute; left: 0; color: var(--champagne); }

.share button {
  margin-top: 7px;
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid rgba(241,217,158,.75);
  background: linear-gradient(145deg, var(--champagne-light), #b58b42);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .25s ease, box-shadow .25s ease;
}
.share button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(217,183,110,.22); }
.share > p { color: var(--champagne-light); font-size: .75rem; letter-spacing: .25em; }

footer { padding: 80px 20px 100px; text-align: center; color: var(--mist); }
.footer-script { color: var(--champagne-light); font-family: "Parisienne", cursive; font-size: 3rem; }
footer span { display: block; margin-top: 14px; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.44,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes card-enter { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0%,68% { transform: translateX(-32%) rotate(8deg); opacity: 0; } 76% { opacity: 1; } 94%,100% { transform: translateX(32%) rotate(8deg); opacity: 0; } }
@keyframes halo { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.5); } 25% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(9); box-shadow: 0 0 70px rgba(217,183,110,.2); } }
@keyframes star-drift { to { background-position: 96px 108px, -108px 226px; } }
@keyframes orbit { from { transform: translate(-50%,-50%) rotate(0) translateX(125px) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg) translateX(125px) rotate(-360deg); } }
@keyframes hint { 50% { opacity: .45; } }
@keyframes bob { 50% { transform: translateY(7px); } }
@keyframes music-wave { to { height: 16px; } }
@keyframes palace-breathe { from { transform: translateX(-50%) scale(1.015); } to { transform: translateX(-50%) scale(1.045); } }
@keyframes girl-arrive { from { opacity: 0; transform: translate(-50%, 48px) scale(.96); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes dress-breathe { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.012); } }
@keyframes floral-arrive { from { opacity: 0; transform: translateX(-50%) scale(1.09); } to { opacity: 1; transform: translateX(-50%) scale(1.015); } }
@keyframes glint { 0%,100% { opacity: .16; transform: scale(.65) rotate(0); } 45% { opacity: .9; transform: scale(1.25) rotate(20deg); } }

:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: 5px; }

@media (max-width: 700px) {
  main { width: min(100% - 24px, 560px); }
  .intro-card { min-height: min(72vh, 560px); }
  .hero { min-height: max(760px, 100svh); padding: 78px 14px 55px; }
  .hero-palace { width: max(135%, 610px); height: 96%; bottom: 0; }
  .hero-girl { bottom: -2%; width: clamp(410px, 116vw, 540px); }
  .hero-florals { width: max(118%, 530px); left: 50%; }
  .hero-details { margin-top: 18px; padding: 38px 20px 42px; }
  .hero-details .hero-copy { max-width: 440px; }
  .scroll-cue { margin-top: 28px; }
  .date-lockup { gap: 12px; }
  .date-lockup strong { width: 82px; height: 82px; padding: 0; font-size: 3.65rem; }
  .family { grid-template-columns: 1fr; }
  .family-mark { height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .event-card, .event-card-reverse { grid-template-columns: 1fr; }
  .event-card-reverse .event-number { order: 0; }
  .event-number { min-height: 155px; font-size: 7rem; }
  .event-content { align-items: center; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .message-pair { grid-template-columns: 1fr; }
  .rsvp-grid { grid-template-columns: 1fr; }
  .pending-summary ul { grid-template-columns: 1fr; }
  .memory-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 430px 230px 230px; gap: 10px; }
  .memory-current { grid-column: 1 / 3; grid-row: auto; transform: none; }
  .memory-one, .memory-two, .memory-three { transform: none; }
  .memory-three { display: block; grid-column: 1 / 3; }
  .memory-three img { object-position: center 42%; }
  .story-beat { min-height: 0; grid-template-columns: 1fr; }
  .story-photo { min-height: 390px; }
  .story-copy { padding: 36px 26px 42px; text-align: center; }
  .story-copy p { margin-inline: auto; }
}

/* Tema rojo: conserva la composición original y sustituye únicamente la paleta. */
:root {
  --midnight: #650a18;
  --navy: #841426;
  --blue: #b9394f;
  --pearl: #fff8f3;
  --champagne: #d2a14b;
  --champagne-light: #f6d995;
  --mist: #ffe8e5;
  --ink: #4c0711;
  --line: rgba(238, 173, 92, .52);
}

body {
  background:
    radial-gradient(circle at 50% -5%, rgba(255, 224, 220, .38), transparent 34rem),
    linear-gradient(145deg, #620916, #a01d31 52%, #520711);
}

.music-control { background: rgba(83, 5, 18, .92); box-shadow: 0 12px 36px rgba(52, 0, 8, .38); }

.intro {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 226, 219, .38), transparent 27rem),
    linear-gradient(150deg, #5a0714, #a51e35 55%, #6c0b1d);
}

.intro-card {
  background:
    linear-gradient(125deg, rgba(255,255,255,.07), transparent 28%),
    linear-gradient(155deg, rgba(177, 38, 59, .98), rgba(82, 5, 19, .98));
  box-shadow:
    0 0 0 7px rgba(77, 4, 17, .9),
    0 0 0 8px rgba(217,183,110,.25),
    0 28px 80px rgba(37,0,7,.62),
    0 0 90px rgba(198,48,70,.2);
}

.hero { background: linear-gradient(90deg, #f8e3df, #fffaf4 28%, #fffaf4 72%, #f8e3df); box-shadow: 0 24px 70px rgba(82, 5, 18, .22); }
.hero h1, .last-name, .date-lockup strong { color: #650a18; }
.hero h1 span { color: #a57023; }
.hero-palace { filter: sepia(.22) saturate(1.45) hue-rotate(310deg); }
.hero-florals { filter: sepia(.32) saturate(1.85) hue-rotate(305deg); }

.hero-details {
  background:
    radial-gradient(circle at 50% 0, rgba(246,217,149,.16), transparent 38%),
    linear-gradient(145deg, rgba(82, 5, 18, .97), rgba(139, 19, 38, .96));
  box-shadow: 0 20px 55px rgba(62, 3, 14, .24);
}

.panel, .pending-summary, .share { background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 35%), rgba(110, 10, 27, .78); }
.countdown div { background: linear-gradient(145deg, rgba(159, 30, 49, .88), rgba(72, 4, 17, .94)); }
.family { background: linear-gradient(125deg, rgba(201,156,69,.15), rgba(82, 5, 18, .9) 52%); }
.family-mark { background: radial-gradient(circle, rgba(187, 40, 62, .58), transparent 64%); }
.event-card { background: rgba(64, 3, 14, .88); }
.event-number { background: radial-gradient(circle, rgba(190, 44, 66, .7), transparent 62%), linear-gradient(145deg, rgba(145, 20, 40, .9), rgba(63, 3, 14, .96)); }
.message-pair article { background: linear-gradient(145deg, rgba(255,255,255,.11), transparent 45%), rgba(126, 13, 31, .82); box-shadow: 0 20px 55px rgba(64, 3, 14, .25); }
.split article { background: rgba(70, 3, 16, .8); }
.memories { background: radial-gradient(circle at 75% 18%, rgba(239,213,143,.13), transparent 28%), linear-gradient(145deg, rgba(148, 20, 42, .94), rgba(67, 3, 15, .98)); box-shadow: 0 22px 60px rgba(58, 2, 12, .28); }
.memory-card { background: #6d0a1d; box-shadow: 0 16px 38px rgba(46, 0, 9, .3); }
.memory-card span { background: rgba(64, 3, 14, .82); }
.story-beat { background: linear-gradient(135deg, rgba(73, 4, 16, .96), rgba(151, 22, 43, .82)); box-shadow: 0 20px 58px rgba(57, 2, 12, .25); }
.story-beat:nth-of-type(even) { background: linear-gradient(225deg, rgba(77, 4, 17, .97), rgba(164, 25, 47, .8)); }
.story-photo { background: #6d0a1d; }
.photo-lightbox { background: #45030f; }
.photo-lightbox::backdrop { background: rgba(35,0,7,.9); }
.photo-lightbox button { background: #740b1f; }
.personalized-welcome { background: linear-gradient(135deg, rgba(180, 38, 61, .26), rgba(201,156,69,.08)); }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { background: rgba(50, 1, 10, .64); }
.rsvp-form select option { color: #45030f; background: #fff8f3; }
.rsvp-result { background: rgba(158, 24, 46, .24); }
.rsvp-note { color: rgba(255, 226, 221, .76); }

.palette-swatches span:nth-child(1) { background: #f08a96; }
.palette-swatches span:nth-child(2) { background: #cf3e54; }
.palette-swatches span:nth-child(3) { background: #8c1027; }
.palette-swatches span:nth-child(4) { background: #c99c45; }
.palette-swatches span:nth-child(5) { background: #fff1e4; }

@media (max-width: 440px) {
  .intro { padding-inline: 16px; }
  .intro-card { width: min(88vw, 350px); min-height: 500px; padding-inline: 20px; }
  .intro-monogram { width: 124px; }
  .countdown { grid-template-columns: 1fr 1fr; }
  .timeline-row { grid-template-columns: 78px 16px 1fr; gap: 10px; }
  .panel, .pending-summary, .share { padding: 30px 20px; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 4.8rem); }
  .last-name { letter-spacing: .34em; }
  .date-lockup { margin-block: 34px 24px; }
  .hero-girl { width: max(430px, 128vw); }
  .memories { padding-inline: 12px; }
  .memory-grid { grid-template-rows: 390px 210px 250px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
