:root {
  --blush-50: #fff9f8;
  --blush-100: #fceded;
  --blush-200: #f3d4d7;
  --rose: #c97f8d;
  --rose-deep: #8e4355;
  --wine: #5a2735;
  --gold: #c7a15b;
  --gold-soft: #edd9a3;
  --ink: #372c30;
  --paper: #fffdf9;
  --serif: Georgia, "Times New Roman", serif;
  --script: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  --sans: "Avenir Next", Avenir, Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(142, 67, 85, 0.42);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(145deg, #f8dfe2 0%, #f4cdd3 42%, #ddb6b8 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.invitation-gate--open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-glow {
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(201, 161, 91, 0.8) 0 1.2px, transparent 2px);
  background-position: 0 0, 38px 56px;
  background-size: 90px 90px, 130px 130px;
  animation: drift 18s linear infinite;
}

.gate-card {
  position: relative;
  width: min(100%, 480px);
  padding: 72px 28px 54px;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(199, 161, 91, 0.66);
  border-radius: 220px 220px 26px 26px;
  box-shadow: 0 26px 80px rgba(90, 39, 53, 0.24), inset 0 0 0 7px rgba(255, 255, 255, 0.62);
  animation: gateIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate-card::before,
.gate-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(199, 161, 91, 0.3);
  border-radius: 50%;
}

.gate-card::before { top: -94px; left: -70px; }
.gate-card::after { right: -84px; bottom: -110px; }

.gate-flower {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.78;
  background:
    radial-gradient(ellipse at 50% 18%, #d98d9a 0 16%, transparent 17%),
    radial-gradient(ellipse at 82% 50%, #edb8c1 0 16%, transparent 17%),
    radial-gradient(ellipse at 50% 82%, #d98d9a 0 16%, transparent 17%),
    radial-gradient(ellipse at 18% 50%, #edb8c1 0 16%, transparent 17%),
    radial-gradient(circle, #c7a15b 0 8%, #fff0c8 9% 14%, transparent 15%);
  filter: drop-shadow(0 8px 10px rgba(90, 39, 53, 0.12));
}

.gate-flower--left { left: -35px; bottom: 26px; transform: rotate(-18deg); }
.gate-flower--right { right: -36px; top: 58px; transform: rotate(22deg) scale(0.8); }

.gate-monogram {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(199, 161, 91, 0.42);
}

.gate-card h1 {
  margin: 10px 0 16px;
  color: var(--rose-deep);
  font-family: var(--script);
  font-size: clamp(3rem, 13vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.gate-name {
  margin: -3px 0 10px;
  color: var(--rose-deep);
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gate-date {
  margin: 18px 0 30px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.04rem;
  letter-spacing: 0.26em;
}

.gate-hint {
  margin: 17px 0 0;
  color: #8f767c;
  font-size: 0.7rem;
}

.gold-rule {
  display: flex;
  width: min(230px, 72%);
  margin: 18px auto;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.gold-rule::before,
.gold-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-rule::after { transform: scaleX(-1); }

.primary-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #a75869, #7f3548);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 11px 28px rgba(90, 39, 53, 0.24), inset 0 0 0 1px rgba(199, 161, 91, 0.52);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(90, 39, 53, 0.31), inset 0 0 0 1px rgba(199, 161, 91, 0.65);
}

.primary-button--small {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 0.7rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #20191b;
}

.hero-media,
.hero-media img,
.hero-shade,
.hero-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 40%;
  animation: heroZoom 16s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(26, 17, 19, 0.62) 0%, rgba(31, 18, 22, 0.15) 38%, rgba(31, 18, 22, 0.72) 100%),
    linear-gradient(90deg, rgba(51, 25, 33, 0.24), transparent 50%, rgba(51, 25, 33, 0.18));
}

.hero-sparkles {
  opacity: 0.65;
  background-image:
    radial-gradient(circle, #fff9d9 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(232, 197, 119, 0.9) 0 1px, transparent 1.8px);
  background-position: 8% 12%, 73% 31%;
  background-size: 125px 125px, 180px 180px;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  padding: 11vh 24px 13vh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.hero-kicker {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 0.76rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero-name {
  width: min(1100px, 96vw);
  margin: 0;
  font-family: var(--script);
  font-size: clamp(3.25rem, 7.7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-divider {
  display: flex;
  width: min(280px, 74vw);
  margin: 18px 0;
  align-items: center;
  gap: 11px;
  color: var(--gold-soft);
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.hero-divider::after { transform: scaleX(-1); }

.hero-date,
.hero-time {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-date { font-size: clamp(0.72rem, 2.4vw, 0.95rem); }
.hero-time { margin-top: 8px; font-size: 0.78rem; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.23em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 1.8s ease-in-out infinite;
}

.section-shell {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
}

.section-shell--wide { width: min(100% - 28px, 1160px); }
.section-shell.narrow { max-width: 760px; }

.welcome-section,
.countdown-section,
.rsvp-section {
  padding: 100px 0;
  text-align: center;
}

.floral-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at -8% 14%, rgba(226, 164, 175, 0.2) 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 108% 88%, rgba(226, 164, 175, 0.18) 0 9%, transparent 9.5%),
    linear-gradient(180deg, var(--paper), var(--blush-50));
}

.floral-section::before,
.floral-section::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  pointer-events: none;
  opacity: 0.25;
  background:
    radial-gradient(ellipse at 50% 15%, var(--rose) 0 14%, transparent 15%),
    radial-gradient(ellipse at 85% 50%, #eab2bb 0 14%, transparent 15%),
    radial-gradient(ellipse at 50% 85%, var(--rose) 0 14%, transparent 15%),
    radial-gradient(ellipse at 15% 50%, #eab2bb 0 14%, transparent 15%),
    radial-gradient(circle, var(--gold) 0 7%, transparent 8%);
}

.floral-section::before { top: -120px; left: -110px; transform: rotate(22deg); }
.floral-section::after { right: -125px; bottom: -112px; transform: rotate(-18deg) scale(0.86); }

.section-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 2rem;
}

.section-heading {
  margin-bottom: 44px;
  text-align: center;
}

.welcome-section h2,
.countdown-section h2,
.rsvp-section h2,
.section-heading h2 {
  margin: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 400;
  line-height: 1.18;
}

.lead-copy {
  max-width: 650px;
  margin: 26px auto 0;
  color: #67585c;
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.9;
}

.signature {
  margin-top: 25px;
  color: var(--rose-deep);
  font-family: var(--script);
  font-size: 2.9rem;
}

.family-section,
.event-section,
.gallery-section {
  padding: 100px 0;
}

.family-section {
  background:
    linear-gradient(rgba(255, 253, 249, 0.96), rgba(255, 253, 249, 0.96)),
    repeating-linear-gradient(45deg, rgba(199, 161, 91, 0.06) 0 1px, transparent 1px 18px);
}

.parents-grid,
.grandparents-grid {
  display: grid;
  gap: 18px;
}

.parents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grandparents-grid { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.name-card,
.grandparent-card {
  position: relative;
  padding: 36px 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(145deg, #fff, #fff8f6);
  border: 1px solid rgba(199, 161, 91, 0.34);
  box-shadow: 0 16px 45px rgba(92, 49, 59, 0.08);
}

.name-card::before,
.grandparent-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(201, 127, 141, 0.18);
}

.family-label {
  display: block;
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.name-card h3,
.grandparent-card p {
  margin: 0;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
}

.ampersand {
  display: block;
  margin: 5px 0;
  color: var(--gold);
  font-family: var(--script);
  font-size: 1.8rem;
}

.portrait-break {
  position: relative;
  height: min(68vw, 650px);
  min-height: 390px;
  overflow: hidden;
  background: #253324;
}

.portrait-break > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.portrait-overlay,
.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 18, 22, 0.08), rgba(35, 20, 25, 0.75));
}

.portrait-copy {
  position: absolute;
  inset: auto 20px 42px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.portrait-copy span {
  font-size: 0.69rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.portrait-copy h2 {
  margin: 8px 0 0;
  font-family: var(--script);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 400;
}

.portrait-copy--countdown {
  inset: 0;
  display: flex;
  width: min(920px, calc(100% - 32px));
  margin: auto;
  padding: clamp(30px, 6vw, 70px) 0 34px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.countdown--overlay {
  width: min(720px, 100%);
  margin: 16px auto 4px;
  gap: clamp(6px, 1.5vw, 14px);
}

.countdown--overlay .countdown-unit {
  padding: clamp(12px, 2.2vw, 20px) 8px;
  background: rgba(38, 21, 27, 0.46);
  border-color: rgba(240, 207, 133, 0.55);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.countdown--overlay .countdown-unit strong { color: #fff; }
.countdown--overlay .countdown-unit span { color: rgba(255, 255, 255, 0.82); }

.portrait-calendar-button {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.9);
  font: 700 0.64rem var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(42, 23, 29, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.countdown {
  display: grid;
  margin: 42px 0 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-unit {
  position: relative;
  padding: 23px 10px 19px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(199, 161, 91, 0.4);
  box-shadow: 0 10px 28px rgba(91, 47, 57, 0.07);
}

.countdown-unit strong {
  display: block;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 7vw, 3.1rem);
  font-weight: 400;
}

.countdown-unit span {
  color: #7f696e;
  font-size: clamp(0.52rem, 1.7vw, 0.66rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-button {
  padding: 10px;
  color: var(--rose-deep);
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(142, 67, 85, 0.35);
}

.event-section { background: #fff; }

.dress-code-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 11vw, 118px);
  text-align: center;
}

.dress-code-section::after {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(199, 161, 91, 0.16), transparent 68%);
}

.dress-code-icon {
  color: var(--gold);
  border-color: rgba(199, 161, 91, 0.48);
}

.dress-code-section h2 {
  margin: 8px 0 14px;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
}

.reserved-colors {
  display: flex;
  max-width: 570px;
  margin: 34px auto 0;
  padding: 20px 24px;
  align-items: center;
  gap: 20px;
  color: var(--rose-deep);
  text-align: left;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(199, 161, 91, 0.42);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(91, 47, 57, 0.08);
}

.reserved-colors strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.reserved-colors p { margin: 4px 0 0; color: #80676e; }
.color-swatches { display: flex; flex-shrink: 0; gap: 9px; }
.color-swatch {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(103, 62, 72, 0.2);
}
.color-swatch::after {
  position: absolute;
  top: 18px;
  left: -5px;
  width: 52px;
  height: 4px;
  content: "";
  background: #fff;
  box-shadow: 0 1px 3px rgba(74, 30, 40, 0.35);
  transform: rotate(-45deg);
}
.color-swatch--red { background: #a51f2d; }
.color-swatch--pink { background: #e4a0af; }

.event-card {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  background: var(--blush-50);
  border: 1px solid rgba(199, 161, 91, 0.45);
  box-shadow: 0 24px 60px rgba(77, 42, 50, 0.12);
}

.event-date-block {
  display: flex;
  min-height: 350px;
  padding: 32px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(155deg, #c98a95, #8d4354);
}

.event-date-block span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.event-date-block strong {
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 400;
  line-height: 1;
}

.event-details {
  padding: 48px;
  align-self: center;
}

.event-type {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-details h3 {
  margin: 0 0 14px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
}

.event-details > p:not(.event-type) {
  color: #6c5d61;
  font-family: var(--serif);
  line-height: 1.7;
}

.event-details .direct-note {
  margin: 22px 0;
  padding-left: 16px;
  font-size: 0.94rem;
  border-left: 2px solid var(--gold-soft);
}

.gallery-section {
  background: linear-gradient(180deg, #faecee, #fff9f8);
}

.photo-carousel {
  max-width: 980px;
  margin: 0 auto;
}

.carousel-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #2d2024;
  border: 1px solid rgba(199, 161, 91, 0.55);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(76, 42, 49, 0.18);
}

.carousel-stage::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.carousel-track {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  min-width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.carousel-slide:nth-child(1) { left: 0%; }
.carousel-slide:nth-child(2) { left: 100%; }
.carousel-slide:nth-child(3) { left: 200%; }
.carousel-slide:nth-child(4) { left: 300%; }
.carousel-slide:nth-child(5) { left: 400%; }
.carousel-slide:nth-child(6) { left: 500%; }
.carousel-slide:nth-child(7) { left: 600%; }
.carousel-slide:nth-child(8) { left: 700%; }
.carousel-slide:nth-child(9) { left: 800%; }
.carousel-slide:nth-child(10) { left: 900%; }
.carousel-slide:nth-child(11) { left: 1000%; }

.carousel-backdrop,
.carousel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-backdrop {
  object-fit: cover;
  filter: blur(24px) brightness(0.46) saturate(0.85);
  transform: scale(1.13);
}

.carousel-photo {
  z-index: 2;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide:hover .carousel-photo { transform: scale(1.018); }

.carousel-zoom {
  position: absolute;
  z-index: 5;
  right: 23px;
  bottom: 22px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(90, 39, 53, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.carousel-control {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(64, 31, 40, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-control:hover {
  background: rgba(142, 67, 85, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control--left { left: 20px; }
.carousel-control--right { right: 20px; }

.carousel-counter {
  position: absolute;
  z-index: 6;
  top: 22px;
  right: 22px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: rgba(50, 27, 34, 0.68);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.carousel-dots {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  cursor: pointer;
  background: rgba(142, 67, 85, 0.25);
  border: 0;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dots button.is-active {
  width: 27px;
  background: var(--rose-deep);
}

.rsvp-section { padding-block: 120px; }
.rsvp-section .primary-button { margin-top: 32px; }

.footer {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #231a1d;
}

.footer > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.footer-overlay {
  background: linear-gradient(180deg, rgba(35, 19, 24, 0.12), rgba(35, 19, 24, 0.82));
}

.footer-content {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 66px;
  left: 24px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.54);
}

.footer-content > p:nth-child(2) {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
}

.footer-flourish { margin: 22px 0; color: var(--gold-soft); font-size: 1.4rem; }
.footer-content > span { font-family: var(--serif); font-size: 1rem; }

.footer .hero-name {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.youtube-audio-player {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

.music-button {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(145deg, #c77b8a, #81374a);
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(73, 33, 43, 0.28), 0 0 0 4px rgba(199, 161, 91, 0.34);
}

.music-button span { font-size: 1.35rem; line-height: 1; }
.music-button em {
  position: absolute;
  right: 71px;
  padding: 7px 10px;
  color: var(--wine);
  font: normal 700 0.56rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(66, 38, 45, 0.12);
}

.music-button--playing { animation: musicPulse 2.2s ease-in-out infinite; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  padding: 60px 48px;
  place-items: center;
  background: rgba(25, 14, 18, 0.94);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.25s ease both;
}

.lightbox > img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.8rem; }
.lightbox-arrow { top: 50%; width: 50px; height: 50px; font-size: 2.4rem; transform: translateY(-50%); }
.lightbox-arrow--left { left: 18px; }
.lightbox-arrow--right { right: 18px; }
.lightbox > p { position: absolute; bottom: 18px; margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; letter-spacing: 0.14em; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes gateIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drift {
  to { transform: translate3d(70px, 50px, 0) rotate(4deg); }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes twinkle {
  from { opacity: 0.35; transform: translateY(0); }
  to { opacity: 0.78; transform: translateY(-8px); }
}

@keyframes scrollLine {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(73, 33, 43, 0.28), 0 0 0 4px rgba(199, 161, 91, 0.34); }
  50% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(73, 33, 43, 0.3), 0 0 0 9px rgba(199, 161, 91, 0.12); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
  .hero-content {
    padding-top: 17vh;
    justify-content: flex-start;
  }

  .hero-media img { object-position: center 48%; }
}

@media (max-width: 767px) {
  .gate-card { padding-top: 60px; }
  .hero-content { padding-top: 9vh; }
  .hero-name {
    max-width: 96vw;
    font-size: clamp(2.8rem, 12vw, 4.8rem);
    line-height: 0.98;
  }

  .welcome-section,
  .countdown-section,
  .rsvp-section,
  .family-section,
  .event-section,
  .gallery-section { padding-block: 78px; }

  .parents-grid,
  .grandparents-grid { grid-template-columns: 1fr; }
  .grandparents-grid { margin-top: 18px; }

  .event-card { grid-template-columns: 1fr; }
  .event-date-block { min-height: 0; padding: 28px 20px; }
  .event-date-block strong { font-size: 4.4rem; }
  .event-details { padding: 34px 26px 38px; text-align: center; }
  .event-details .direct-note { padding-left: 0; border-left: 0; }

  .carousel-stage { aspect-ratio: 4 / 5; }
  .carousel-control { width: 42px; height: 42px; font-size: 2rem; }
  .carousel-control--left { left: 12px; }
  .carousel-control--right { right: 12px; }
  .carousel-counter { top: 16px; right: 16px; }
  .carousel-zoom { right: 17px; bottom: 16px; }

  .footer { min-height: 620px; }
  .footer > img { object-position: 45% 40%; }
  .footer .hero-name { font-size: clamp(2.7rem, 11vw, 4.5rem); }

  .lightbox { padding: 62px 14px; }
  .lightbox-arrow { top: auto; bottom: 18px; width: 44px; height: 44px; transform: none; }
  .lightbox-arrow--left { left: 18px; }
  .lightbox-arrow--right { right: 18px; }
  .lightbox > p { bottom: 31px; }
}

.event-form{display:grid;gap:1.1rem;margin-top:2rem;padding:clamp(1.3rem,4vw,2rem);text-align:left;background:rgba(255,255,255,.72);border:1px solid rgba(176,131,57,.25);border-radius:1.5rem;box-shadow:0 18px 45px rgba(106,54,67,.09)}
.event-form h3{margin:0;color:#75404d;font-family:var(--font-display,Georgia,serif);font-size:1.55rem}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.event-form label{display:grid;gap:.45rem;color:#704653;font-size:.88rem;font-weight:700}
.event-form input,.event-form select,.event-form textarea{width:100%;padding:.9rem 1rem;color:#5a3540;background:#fff;border:1px solid rgba(142,67,85,.24);border-radius:.8rem;font:inherit;outline:none}
.event-form input:focus,.event-form select:focus,.event-form textarea:focus{border-color:#b38439;box-shadow:0 0 0 3px rgba(179,132,57,.14)}
.event-form textarea{resize:vertical}
.event-form button:disabled{cursor:wait;opacity:.65}
.form-status{min-height:1.2rem;margin:0;text-align:center;font-weight:700}
.form-status.is-success{color:#24795d}.form-status.is-error{color:#a53145}
.guest-gallery-section{padding:clamp(4rem,8vw,7rem) 0;background:linear-gradient(180deg,#fffaf9,#f8e9ec)}
.guest-gallery-layout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.45fr);gap:2rem;align-items:start}
.upload-card{margin:0;position:sticky;top:1rem}
.file-drop{padding:1.2rem;border:1px dashed rgba(142,67,85,.4);border-radius:1rem;background:#fff9fa}
.file-drop small{color:#9b7881;font-weight:400}
.approved-gallery{min-height:360px;padding:clamp(1.2rem,3vw,2rem);background:rgba(255,255,255,.68);border:1px solid rgba(176,131,57,.2);border-radius:1.5rem}
.approved-gallery__heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.4rem}
.approved-gallery__heading h3{margin:.2rem 0 0;color:#75404d;font:2rem/1.1 var(--font-display,Georgia,serif)}
.guest-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.guest-photo{position:relative;overflow:hidden;aspect-ratio:4/5;border-radius:1rem;background:#ead8dd;box-shadow:0 12px 28px rgba(82,44,54,.12)}
.guest-photo img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.guest-photo:hover img{transform:scale(1.04)}
.guest-photo span{position:absolute;inset:auto 0 0;padding:1.4rem .8rem .75rem;color:#fff;background:linear-gradient(transparent,rgba(48,22,30,.82));font-size:.86rem;font-weight:700}
.gallery-empty{text-align:center;color:#8b6d76;margin:5rem auto}
@media(max-width:800px){.guest-gallery-layout{grid-template-columns:1fr}.upload-card{position:static}.guest-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.form-grid{grid-template-columns:1fr}.guest-photo-grid{grid-template-columns:1fr 1fr}.approved-gallery__heading{align-items:flex-start;flex-direction:column}}

@media (max-width: 420px) {
  .section-shell { width: min(100% - 28px, 1040px); }
  .countdown { gap: 6px; }
  .countdown-unit { padding: 18px 4px 15px; }
  .countdown--overlay { gap: 5px; }
  .countdown--overlay .countdown-unit { padding: 12px 2px 10px; }
  .countdown--overlay .countdown-unit strong { font-size: 1.55rem; }
  .countdown--overlay .countdown-unit span { font-size: 0.48rem; letter-spacing: 0.07em; }
  .portrait-copy--countdown { padding-bottom: 24px; }
  .portrait-copy--countdown h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .reserved-colors { padding: 17px; gap: 14px; }
  .color-swatch { width: 36px; height: 36px; }
  .color-swatch::after { top: 15px; }
  .music-button em { display: none; }
}

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

  .reveal { opacity: 1; transform: none; }
}

.reserved-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 710px;
  margin: 34px auto 0;
  padding: 20px 24px;
  gap: 28px;

  color: var(--rose-deep);
  text-align: left;

  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(199, 161, 91, 0.42);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(91, 47, 57, 0.08);
}

.color-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.color-option .color-swatch {
  flex-shrink: 0;
}

.color-option strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

/* AdaptaciÃ³n para celulares */
@media (max-width: 560px) {
  .reserved-colors {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
}


/* Escritorio: texto a la derecha, rostro despejado */
@media (min-width: 900px) {
  .hero-content {
    align-items: flex-end;
    justify-content: center;
    padding: 4rem 6vw 5rem 54%;
    text-align: right;
  }

  .hero-name {
    max-width: 760px;
    margin: 12px 0;
    font-size: clamp(4rem, 5.5vw, 6.7rem);
    line-height: 0.9;
  }

  .hero-kicker,
  .hero-date,
  .hero-time {
    text-align: right;
  }

  .hero-divider {
    margin-right: 0;
    margin-left: auto;
  }

  /* Oscurece ¨²nicamente donde est¨¢ el texto */
  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(25, 13, 18, 0.08) 0%,
      rgba(25, 13, 18, 0.12) 43%,
      rgba(25, 13, 18, 0.72) 100%
    );
  }
}

@media (max-width: 899px) {
  .hero-content {
    align-items: center;
    justify-content: flex-end;
    padding: 0 18px 90px;
    text-align: center;
  }

  .hero-name {
    max-width: 100%;
    margin: 8px auto;
    font-size: clamp(3rem, 13vw, 4.8rem);
    line-height: 0.9;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(25, 13, 18, 0.08) 0%,
      rgba(25, 13, 18, 0.18) 45%,
      rgba(25, 13, 18, 0.82) 100%
    );
  }
}


.wishlist-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 130px);
  color: #fff;
  text-align: center;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(215, 173, 93, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(228, 160, 175, 0.16),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #7d4252 0%,
      #5f3040 48%,
      #3d2029 100%
    );
}

.wishlist-section::before,
.wishlist-section::after {
  position: absolute;
  width: 260px;
  height: 260px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(221, 184, 111, 0.18);
  border-radius: 50%;
}

.wishlist-section::before {
  top: -170px;
  left: -90px;
}

.wishlist-section::after {
  right: -100px;
  bottom: -190px;
}

.wishlist-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 62px) clamp(22px, 6vw, 52px);

  background: rgba(47, 22, 30, 0.28);
  border: 1px solid rgba(231, 198, 132, 0.45);
  border-radius: 30px;

  box-shadow:
    0 30px 70px rgba(30, 12, 18, 0.25),
    inset 0 0 45px rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(8px);
}

.wishlist-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  place-items: center;

  color: #f0cf8d;
  border: 1px solid rgba(240, 207, 141, 0.6);
  border-radius: 50%;

  font-family: var(--serif);
  font-size: 2.2rem;
}

.wishlist-section .eyebrow {
  color: #f0cf8d;
}

.wishlist-content h2 {
  margin: 10px 0 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.wishlist-gold-rule {
  display: flex;
  max-width: 220px;
  margin: 24px auto;
  align-items: center;
  gap: 14px;
  color: #f0cf8d;
}

.wishlist-gold-rule::before,
.wishlist-gold-rule::after {
  height: 1px;
  content: "";
  flex: 1;
  background: rgba(240, 207, 141, 0.55);
}

.wishlist-main-copy {
  margin: 28px 0 10px;
  color: #fff7f2;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.45;
}

.wishlist-secondary-copy {
  max-width: 590px;
  margin: 0 auto 30px;
  color: rgba(255, 244, 240, 0.78);
  font-size: 0.97rem;
  line-height: 1.8;
}

.gift-options {
  display: grid;
  margin: 0 auto 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gift-option {
  display: grid;
  min-height: 100px;
  padding: 16px 10px;
  place-items: center;
  align-content: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(240, 207, 141, 0.28);
  border-radius: 16px;
}

.gift-option span {
  color: #f0cf8d;
  font-size: 1.65rem;
}

.gift-option strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}

.wishlist-button {
  display: inline-flex;
  min-height: 52px;
  padding: 14px 26px;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: #59303c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;

  background: linear-gradient(135deg, #f2d99d, #d7ad5d);
  border: 1px solid rgba(255, 245, 207, 0.7);
  border-radius: 999px;

  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;

  box-shadow: 0 14px 30px rgba(28, 11, 16, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.wishlist-button:hover {
  box-shadow: 0 18px 36px rgba(28, 11, 16, 0.32);
  transform: translateY(-3px);
}

@media (max-width: 560px) {
  .wishlist-content {
    border-radius: 22px;
  }

  .gift-options {
    grid-template-columns: 1fr;
  }

  .gift-option {
    display: flex;
    min-height: auto;
    justify-content: center;
  }

  .wishlist-button {
    width: 100%;
  }
}