:root {
  --ivory: #faf6f0;
  --paper: #fffaf5;
  --navy: #0d1b2a;
  --navy-2: #1d2d44;
  --gold: #d4af37;
  --gold-2: #a47d1f;
  --rose: #c59aa0;
  --muted: #5f6673;
  --max: 1180px;
  --radius: 30px;
  --header-h: 72px;
  --shadow: 0 24px 55px rgba(13, 27, 42, .14);
  --shadow-soft: 0 18px 40px rgba(13, 27, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(212,175,55,.11), transparent 25%),
    radial-gradient(circle at 100% 10%, rgba(244,214,216,.30), transparent 18%),
    linear-gradient(180deg, #fffdf8, var(--ivory));
  color: var(--navy);
  font-family: "Montserrat", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  padding-bottom: 72px;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(212, 175, 55, .35); color: var(--navy); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  z-index: 100;
}
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(840px, calc(100% - 32px)); }
.section { position: relative; padding: clamp(72px, 8vw, 118px) 0; z-index: 1; }
.soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.4)),
    radial-gradient(circle at 15% 25%, rgba(212, 175, 55, .12), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(244, 214, 216, .42), transparent 32%);
}

.wedding-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 250, 245, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(13, 27, 42, .07);
}
.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.demo-brand img { border-radius: 50%; box-shadow: 0 8px 20px rgba(13, 27, 42, .14); }
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 100%;
}
.demo-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, .72);
  transition: .25s ease;
}
.demo-nav a:hover { background: rgba(212, 175, 55, .14); color: var(--navy); }
.demo-nav .nav-cta { background: var(--navy); color: var(--ivory); box-shadow: 0 12px 24px rgba(13, 27, 42, .12); }
.demo-nav .nav-cta:hover { background: var(--gold); color: var(--navy); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ivory);
  transition: .25s ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 26px) 16px 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13,27,42,.70), rgba(13,27,42,.32) 55%, rgba(250,246,240,.92) 100%),
    radial-gradient(circle at 50% 10%, rgba(212, 175, 55, .28), transparent 27%),
    linear-gradient(135deg, rgba(13,27,42,.98), rgba(30, 42, 62, .82) 48%, rgba(250,246,240,.88) 100%);
  color: var(--ivory);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(212,175,55,.55) 0 1px, transparent 2px),
    linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.08) 40% 41%, transparent 42% 100%);
  background-size: 140px 140px, 90px 90px, auto;
  opacity: .5;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 115%;
  height: 18vh;
  background: var(--ivory);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: -1;
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(8px); opacity: .6; z-index: -2; }
.glow-a { width: min(520px, 80vw); height: min(520px, 80vw); top: 12%; left: -120px; background: radial-gradient(circle, rgba(244,214,216,.22), transparent 62%); }
.glow-b { width: min(460px, 75vw); height: min(460px, 75vw); right: -90px; top: 16%; background: radial-gradient(circle, rgba(212,175,55,.18), transparent 62%); }
.hero-ornament { position: absolute; font-size: clamp(2rem, 5vw, 4.5rem); color: rgba(212,175,55,.78); text-shadow: 0 10px 40px rgba(212,175,55,.25); }
.ornament-left { left: clamp(18px, 8vw, 110px); top: 24%; }
.ornament-right { right: clamp(18px, 8vw, 110px); bottom: 25%; }
.hero-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero-copy { text-align: left; }
.kicker, .section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
  font-size: clamp(.72rem, 1.4vw, .82rem);
}
.demo-label {
  margin: 0 0 8px;
  color: rgba(250,246,240,.8);
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.mini-script, .signature {
  margin: 0;
  font-family: "Great Vibes", cursive;
  color: var(--gold);
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: .9;
  text-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.hero h1 {
  margin: 10px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 9.4rem);
  line-height: .86;
  font-weight: 600;
  letter-spacing: -.06em;
}
.wedding-date {
  margin: 0;
  color: rgba(250, 246, 240, .9);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(.82rem, 1.8vw, 1rem);
  font-weight: 700;
}
.hero-message {
  width: min(660px, 100%);
  margin: 24px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: rgba(250,246,240,.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border .25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #f0d47e); color: var(--navy); box-shadow: 0 18px 40px rgba(212, 175, 55, .24); }
.btn-secondary { background: rgba(255,250,245,.94); color: var(--navy); border-color: rgba(250,246,240,.56); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.btn-outline { width: max-content; background: rgba(255,255,255,.76); border-color: rgba(212, 175, 55, .35); color: var(--navy); }
.btn.full { width: 100%; }

.hero-visual {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(430px, 100%);
  transform: rotate(1.5deg);
  filter: drop-shadow(0 30px 55px rgba(0,0,0,.24));
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 34px;
  border: 1px solid rgba(250,246,240,.45);
}
.hero-visual figcaption {
  position: absolute;
  left: -22px;
  bottom: 30px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  gap: 0;
  border-radius: 50%;
  background: rgba(13,27,42,.92);
  color: var(--ivory);
  border: 2px solid rgba(212,175,55,.65);
  box-shadow: 0 18px 40px rgba(13,27,42,.22);
}
.hero-visual figcaption span { font-family: "Cormorant Garamond", serif; font-size: 3rem; line-height: .72; color: var(--gold); }
.hero-visual figcaption strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-visual figcaption small { font-weight: 700; opacity: .75; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 34px;
  height: 56px;
  border: 1px solid rgba(250,246,240,.55);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 9px;
}
.scroll-cue span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: cue 1.7s infinite; }
@keyframes cue { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(24px);opacity:0} }

.center-heading { text-align: center; width: min(760px, 100%); margin: 0 auto 42px; }
.center-heading h2, .intro h2, .split-title h2, .detail-card h2, .rsvp-copy h2, .final-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.45rem, 7vw, 5rem);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.04em;
}
.center-heading p:not(.section-kicker), .lead, .split-title p, .detail-card p, .rsvp-copy p, .final-section p:not(.mini-script) { color: var(--muted); font-size: clamp(1rem, 2.1vw, 1.12rem); }
.intro { text-align: center; }
.intro .narrow { position: relative; }
.intro .narrow::before,
.intro .narrow::after,
.family-card::before,
.family-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  opacity: .18;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.intro .narrow::before,
.family-card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 104c24-18 34-44 36-84'/%3E%3Cpath d='M31 82c16 0 24-12 28-24'/%3E%3Cpath d='M26 62c12 0 18-8 21-17'/%3E%3Cpath d='M45 47c10 0 16-6 18-12'/%3E%3Cpath d='M56 33c6 0 10-4 12-8'/%3E%3Cpath d='M18 92c10-2 16-8 20-15'/%3E%3Cpath d='M39 75c8 2 15 0 21-5'/%3E%3Cpath d='M53 57c7 2 12 1 17-3'/%3E%3C/g%3E%3C/svg%3E");
}
.intro .narrow::after,
.family-card::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M106 104C82 86 72 60 70 20'/%3E%3Cpath d='M89 82c-16 0-24-12-28-24'/%3E%3Cpath d='M94 62c-12 0-18-8-21-17'/%3E%3Cpath d='M75 47c-10 0-16-6-18-12'/%3E%3Cpath d='M64 33c-6 0-10-4-12-8'/%3E%3Cpath d='M102 92c-10-2-16-8-20-15'/%3E%3Cpath d='M81 75c-8 2-15 0-21-5'/%3E%3Cpath d='M67 57c-7 2-12 1-17-3'/%3E%3C/g%3E%3C/svg%3E");
}
.intro .narrow::before { left: -24px; top: 48px; }
.intro .narrow::after { right: -24px; top: 48px; }
.lead { margin: 24px auto 0; width: min(760px, 100%); }
.signature { margin-top: 24px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 14px);
  width: min(760px, 100%);
  margin: 0 auto;
}
.countdown div {
  padding: clamp(14px, 3vw, 30px) clamp(6px, 1.4vw, 12px);
  border: 1px solid rgba(212,175,55,.32);
  border-radius: clamp(16px, 2vw, 24px);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
  text-align: center;
  min-width: 0;
}
.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.15rem, 9vw, 5.2rem);
  line-height: .86;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.06em;
}
.countdown span {
  display: block;
  margin-top: 6px;
  color: var(--gold-2);
  font-size: clamp(.62rem, 1.7vw, .82rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.two-col, .event-grid, .details-grid, .rsvp-grid { display: grid; gap: 22px; }
.two-col { grid-template-columns: repeat(2, 1fr); }
.family-card, .detail-card, .rsvp-form, .rsvp-note {
  border: 1px solid rgba(212,175,55,.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-soft);
}
.family-card {
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.family-card::before { left: 12px; top: 14px; }
.family-card::after { right: 12px; top: 14px; }
.family-card span { color: var(--gold-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; }
.family-card h3 { margin: 12px 0 10px; font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .96; font-weight: 600; position: relative; z-index: 1; }
.family-card p { margin: 0; color: var(--muted); position: relative; z-index: 1; }

.event-grid { grid-template-columns: repeat(2, 1fr); }
.event-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,27,42,.04), rgba(13,27,42,.66)),
    url("assets/gallery-walk.png") center/cover no-repeat;
  z-index: 0;
}
.event-card.reception::before {
  background:
    linear-gradient(180deg, rgba(13,27,42,.04), rgba(13,27,42,.68)),
    url("assets/gallery-venue-real.png") center/cover no-repeat;
}
.event-card > * { position: relative; z-index: 1; }
.event-icon {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13,27,42,.9);
  color: var(--gold);
  font-size: 1.9rem;
  border: 1px solid rgba(212,175,55,.45);
}
.event-card p { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 800; }
.event-card h3 { margin: 0 0 8px; font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .96; color: #fff; text-shadow: 0 10px 28px rgba(0,0,0,.28); }
.event-card span { margin-bottom: 22px; color: rgba(255,255,255,.86); }

.split-title { display: grid; grid-template-columns: .8fr 1fr; gap: 34px; align-items: end; margin-bottom: 38px; }
.timeline { display: grid; gap: 14px; position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 58px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 30px rgba(13,27,42,.06);
}
.timeline-item time { color: var(--gold-2); font-weight: 900; font-size: clamp(1rem, 2.2vw, 1.2rem); }
.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,.5);
  box-shadow: 0 10px 24px rgba(13,27,42,.14);
  font-size: 1.35rem;
}
.timeline-item p { margin: 0; color: var(--navy); }
.timeline-item p strong { display: block; font-size: clamp(1.24rem, 2.8vw, 1.55rem); line-height: 1.16; }
.timeline-item p small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; font-size: 1rem; }

.details-grid { grid-template-columns: 1fr 1fr 1.05fr; }
.detail-card { padding: clamp(24px, 4vw, 38px); position: relative; overflow: hidden; }
.detail-card::before { content: ""; position: absolute; inset: auto -30px -55px auto; width: 160px; height: 160px; border-radius: 50%; background: rgba(212,175,55,.1); }
.detail-card > * { position: relative; }
.detail-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(13,27,42,.16);
}
.dress-badge { display: inline-flex; margin: 18px 0 16px; padding: 12px 18px; border-radius: 999px; background: var(--navy); color: var(--ivory); font-weight: 800; box-shadow: 0 14px 30px rgba(13,27,42,.16); }
.detail-card small { display: block; color: var(--rose); font-weight: 700; }
.text-link { display: inline-flex; margin-top: 12px; color: var(--gold-2); font-weight: 900; }
.calendar-card {
  margin: 18px 0;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13,27,42,.07);
}
.calendar-top { padding: 12px; text-align: center; background: var(--navy); color: var(--ivory); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.calendar-week { padding: 10px 12px 0; color: var(--gold-2); font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-align: center; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px; }
.calendar-days span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; color: var(--muted); font-weight: 800; }
.calendar-days .marked { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 5px rgba(212,175,55,.18); }

.gallery-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.84);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(13,27,42,.08);
}
.carousel-btn:hover { background: var(--navy); color: var(--gold); }
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.gallery-slide {
  margin: 0;
  position: relative;
  flex: 0 0 min(78%, 860px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(212,175,55,.24);
  box-shadow: var(--shadow-soft);
  background: #fffaf5;
  scroll-snap-align: center;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-slide:hover img { transform: scale(1.03); }
.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(13,27,42,.62));
  pointer-events: none;
}
.gallery-slide figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  font-family: "Great Vibes", cursive;
  color: #fff;
  font-size: 2.6rem;
  text-shadow: 0 10px 25px rgba(0,0,0,.24);
}

.rsvp-grid { grid-template-columns: .82fr 1.18fr; align-items: start; }
.rsvp-note { margin-top: 24px; padding: 18px; color: var(--muted); background: rgba(244,214,216,.22); }
.rsvp-note strong { color: var(--navy); }
.rsvp-form { padding: clamp(22px, 4vw, 36px); }
.rsvp-form label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--navy); font-weight: 800; font-size: .9rem; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(13, 27, 42, .12);
  border-radius: 16px;
  padding: 15px 15px;
  background: rgba(255,255,255,.86);
  color: var(--navy);
  outline: none;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: rgba(212,175,55,.7); box-shadow: 0 0 0 4px rgba(212,175,55,.12); background: #fff; }
.rsvp-form textarea { resize: vertical; min-height: 110px; }
.final-section {
  text-align: center;
  background: linear-gradient(180deg, rgba(13,27,42,.82), rgba(13,27,42,.9)), radial-gradient(circle at 50% 10%, rgba(212,175,55,.22), transparent 26%);
  color: var(--ivory);
}
.final-section h2 { color: var(--ivory); }
.final-section .wedding-date { margin-top: 26px; color: rgba(250,246,240,.72); }

.sales-bar {
  position: fixed;
  z-index: 48;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(650px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 14px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 16px;
  background: rgba(13,27,42,.94);
  color: var(--ivory);
  box-shadow: 0 18px 50px rgba(13,27,42,.2);
  backdrop-filter: blur(18px);
}
.sales-bar strong { display: block; font-size: .82rem; line-height: 1.12; }
.sales-bar span { display: block; color: rgba(250,246,240,.72); font-size: .72rem; line-height: 1.14; }
.sales-bar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}
.music-float {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 49;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 50%;
  background: rgba(255,250,245,.9);
  color: var(--gold-2);
  box-shadow: 0 16px 36px rgba(13,27,42,.14);
  cursor: pointer;
}
.music-float span { display: inline-block; font-size: 1.2rem; transition: .25s ease; }
.music-float.active span { transform: rotate(14deg) scale(1.2); color: var(--rose); }
.music-float.active { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 16px 36px rgba(13,27,42,.14)} 50%{box-shadow:0 16px 36px rgba(197,154,160,.32)} }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .wedding-header { padding-inline: 12px; }
  .menu-toggle { display: block; }
  .demo-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: auto;
    display: grid;
    gap: 6px;
    padding: 12px;
    background: rgba(255,250,245,.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  body.menu-open .demo-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .demo-nav a { text-align: center; padding: 13px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 820px; }
  .hero-copy { text-align: center; }
  .hero-message { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-self: center; width: min(360px, 72vw); }
  .split-title, .rsvp-grid, .details-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .details-grid { gap: 18px; }
  .gallery-slide { flex-basis: 86%; }
}
@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 24px, var(--max)); }
  .demo-brand span { font-size: 1.12rem; }
  .hero { min-height: 100svh; padding-left: 12px; padding-right: 12px; }
  .hero h1 { font-size: clamp(3.8rem, 20vw, 6.4rem); }
  .hero-message { font-size: 1.22rem; }
  .wedding-date { letter-spacing: .14em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { width: min(286px, 80vw); }
  .hero-visual figcaption { width: 92px; height: 92px; left: -10px; bottom: 18px; }
  .hero-visual figcaption span { font-size: 2.25rem; }
  .section { padding: 68px 0; }
  .intro .narrow::before,
  .intro .narrow::after { width: 82px; height: 82px; top: 62px; }
  .countdown { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .countdown strong { font-size: clamp(1.85rem, 13vw, 3.1rem); }
  .countdown span { letter-spacing: .08em; }
  .two-col { grid-template-columns: 1fr; }
  .event-card { min-height: 300px; padding: 26px; }
  .timeline-item { grid-template-columns: 78px 44px 1fr; padding: 16px 14px; gap: 10px; }
  .timeline-item time { font-size: .9rem; }
  .timeline-icon { width: 40px; height: 40px; font-size: 1.12rem; }
  .timeline-item p strong { font-size: 1.1rem; }
  .timeline-item p small { font-size: .84rem; }
  .gallery-carousel { grid-template-columns: 1fr; gap: 10px; }
  .carousel-btn { display: none; }
  .gallery-slide { flex-basis: 90%; }
  .sales-bar { bottom: 8px; border-radius: 16px; }
  .sales-bar div { min-width: 0; }
  .sales-bar strong { font-size: .78rem; }
  .sales-bar span { display: none; }
  .sales-bar a { min-height: 34px; padding-inline: 14px; }
  .music-float { right: 14px; bottom: 72px; width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  .hero h1 { letter-spacing: -.075em; }
  .countdown div { border-radius: 16px; padding-inline: 4px; }
  .countdown strong { font-size: clamp(1.7rem, 12vw, 2.6rem); }
  .center-heading h2, .intro h2, .split-title h2, .detail-card h2, .rsvp-copy h2, .final-section h2 { font-size: 2.35rem; }
  .family-card h3, .event-card h3 { font-size: 2.15rem; }
  .rsvp-form { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Ramas sutiles visibles desde el HTML */
.branch-wrap {
  position: relative;
  isolation: isolate;
}
.wedding-branch {
  position: absolute;
  width: clamp(82px, 14vw, 138px);
  height: auto;
  opacity: .22;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.branch-left { left: clamp(-22px, -2vw, 8px); top: clamp(18px, 4vw, 34px); }
.branch-right { right: clamp(-22px, -2vw, 8px); top: clamp(18px, 4vw, 34px); }
.branch-wrap > :not(.wedding-branch) {
  position: relative;
  z-index: 1;
}
.family-card .wedding-branch {
  width: clamp(76px, 12vw, 120px);
  opacity: .18;
}
