:root {
  --paper: #fbfaf7;
  --ivory: #f4f0e7;
  --white: #fffefb;
  --ink: #181612;
  --ink-soft: #4f4a41;
  --charcoal: #171614;
  --gold: #b89655;
  --gold-light: #dbc69a;
  --rose: #b97d78;
  --rose-dark: #8f5754;
  --rose-soft: #ecd9d5;
  --line: rgba(24, 22, 18, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Parisienne", "Brush Script MT", cursive;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 26px 80px rgba(19, 17, 14, 0.2);
}

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

html {
  scroll-behavior: smooth;
  background: #dedbd4;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.92), transparent 34rem),
    linear-gradient(145deg, #d9d6d0, #f3f0e9);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.locked {
  overflow: hidden;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 2500;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--charcoal);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(184, 150, 85, 0.75);
  outline-offset: 4px;
}

.watermark-layer {
  position: fixed;
  z-index: 1900;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  width: auto;
  pointer-events: none;
  transform: translateX(-50%);
}

.watermark-layer span {
  display: block;
  padding: 5px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.opening {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #19130f;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.opening.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Photographic cotton paper and pearl wax; only the opening is restyled. */
.envelope-stage {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  place-content: center;
  justify-items: center;
  gap: 25px;
  padding: 42px 24px calc(42px + env(safe-area-inset-bottom));
  color: var(--ink);
  isolation: isolate;
  background: #f4f0e7;
  transition: opacity 0.65s ease 0.75s, visibility 0.65s ease 0.75s;
}

.envelope-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("rosas-blancas.webp") center / cover no-repeat;
}

.envelope-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(251, 248, 241, 0.35), rgba(251, 248, 241, 0.08) 70%);
}

/* Rotate the same floral photograph on wide screens so roses frame both sides. */
@media (min-aspect-ratio: 1 / 1) {
  .envelope-stage::before {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 100svh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.envelope-stage.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-stage .eyebrow {
  margin: 0;
  padding: 8px 14px;
  color: #665746;
  background: rgba(251, 248, 241, 0.92);
}

.envelope-button {
  width: min(76vw, 590px, 95svh);
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.envelope-button:disabled {
  cursor: wait;
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  display: block;
  transform: translateY(0) rotate(-0.4deg);
  transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .envelope-button:not(:disabled):hover .envelope {
    transform: translateY(-4px) rotate(-0.4deg);
  }
}

.envelope-photo {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 15px rgba(65, 47, 27, 0.24));
  transition: opacity 0.45s ease 0.12s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-letter {
  position: absolute;
  z-index: 2;
  top: 10%;
  right: 8%;
  bottom: 8%;
  left: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4% 5%;
  color: var(--ink-soft);
  background: #fffdf8;
  box-shadow: 0 14px 24px rgba(65, 47, 27, 0.14);
  opacity: 0;
  transform: translateY(10%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.4s ease 0.2s;
}

.envelope-letter img {
  width: 21%;
  height: auto;
  margin-bottom: 1%;
}

.envelope-letter span {
  font-family: var(--script);
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  line-height: 1;
}

.envelope-letter small {
  margin-top: 3%;
  font-family: var(--sans);
  font-size: clamp(0.48rem, 1.6vw, 0.72rem);
  letter-spacing: 0.17em;
}

/* The wax itself is photographed. The original monogram remains an overlay. */
.wax-seal {
  position: absolute;
  z-index: 6;
  top: 55%;
  left: 49.5%;
  width: 8.5%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.wax-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.67) drop-shadow(0 1px 0 rgba(255, 248, 224, 0.9));
}

.envelope-instruction {
  margin: 0;
  padding: 8px 14px;
  color: #665746;
  background: rgba(251, 248, 241, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.envelope-stage.is-opening .envelope-photo {
  opacity: 0;
  transform: translateY(8%) scale(0.97);
}

.envelope-stage.is-opening .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
}

.envelope-stage.is-opening .envelope-letter {
  opacity: 1;
  transform: translateY(-8%);
}

@media (prefers-reduced-motion: reduce) {
  .envelope,
  .envelope-photo,
  .wax-seal,
  .envelope-letter {
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold-light);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--charcoal);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.button-dark {
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 10px 26px rgba(23, 22, 20, 0.17);
}

.button-gold {
  color: var(--charcoal);
  background: var(--gold-light);
}

.site-shell {
  position: relative;
  width: min(100%, 780px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-shell:focus {
  outline: none;
}

.section {
  position: relative;
  padding: 92px 56px;
}

.section.centered,
.centered {
  text-align: center;
}

.section-content {
  position: relative;
  z-index: 1;
}

.intro {
  min-height: 890px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.64) 42%, transparent 68%),
    var(--paper);
}

.hero-intro {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 92px;
  padding-bottom: 70px;
  color: #fff;
  background: #17120f;
}

.hero-intro-photo,
.hero-intro-shade,
.hero-intro-frame {
  position: absolute;
  inset: 0;
}

.hero-intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: opening-image 12s ease-out both;
}

.hero-intro-shade {
  background:
    linear-gradient(to bottom, rgba(13, 10, 8, 0.22), rgba(13, 10, 8, 0.12) 35%, rgba(13, 10, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(13, 10, 8, 0.2), transparent 46%, rgba(13, 10, 8, 0.16));
}

.hero-intro-frame {
  inset: 18px;
  border: 1px solid rgba(219, 198, 154, 0.62);
  pointer-events: none;
}

.hero-intro .section-content {
  align-self: end;
  width: 100%;
}

.hero-intro .monogram {
  width: 118px;
  height: 118px;
  margin-bottom: 4px;
}

.hero-intro .display-names {
  color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.48);
}

.hero-intro .display-names span,
.hero-intro .countdown span {
  color: var(--gold-light);
}

.hero-intro .date-lockup {
  margin-top: 26px;
  margin-bottom: 0;
}


.countdown-section {
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #171411;
}

.countdown-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("karla-guillermo-hero.webp") center 78% / cover no-repeat;
  filter: saturate(0.72);
  transform: scale(1.02);
}

.countdown-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 12, 10, 0.74), rgba(14, 12, 10, 0.91)),
    linear-gradient(90deg, rgba(14, 12, 10, 0.36), transparent 50%, rgba(14, 12, 10, 0.36));
}

.countdown-section .section-content {
  width: 100%;
}

.countdown-section .lead {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.countdown-section .countdown {
  gap: 0;
  max-width: 650px;
  margin-top: 58px;
  border-top: 1px solid rgba(219, 198, 154, 0.72);
  border-bottom: 1px solid rgba(219, 198, 154, 0.72);
}

.countdown-section .countdown > div {
  padding: 24px 8px 21px;
  border: 0;
  background: rgba(10, 9, 8, 0.2);
}

.countdown-section .countdown > div + div {
  border-left: 1px solid rgba(219, 198, 154, 0.56);
}

.countdown-section .countdown strong {
  color: #fff;
}

.countdown-section .countdown span {
  color: var(--gold-light);
}

.arch {
  position: absolute;
  border: 1px solid rgba(184, 150, 85, 0.2);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.arch-one {
  top: 55px;
  left: 50%;
  width: 520px;
  height: 700px;
  transform: translateX(-50%);
}

.arch-two {
  top: 74px;
  left: 50%;
  width: 480px;
  height: 662px;
  border-color: rgba(24, 22, 18, 0.08);
  transform: translateX(-50%);
}

.monogram {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.display-names {
  margin: 0;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(4.2rem, 14vw, 7.2rem);
  font-weight: 400;
  line-height: 0.84;
}

.display-names span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.53em;
  font-style: italic;
}

.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(100%, 490px);
  margin: 36px auto 28px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

.date-lockup::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lead {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-style: italic;
  line-height: 1.45;
}

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

.countdown > div {
  padding: 17px 7px 14px;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-photo {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 680px;
  background: var(--charcoal);
  color: #fff;
}

.editorial-image-wrap {
  min-height: 680px;
  overflow: hidden;
}

.editorial-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.editorial-copy {
  align-self: center;
  padding: 58px 42px;
}

.chapter {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2.5rem;
}

.script-quote {
  margin: 16px 0 24px;
  color: #fff;
  font-family: var(--script);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 0.96;
}

.editorial-copy > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.95rem;
  line-height: 1.85;
}

.family-section {
  background: var(--ivory);
}

.section-header {
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
}

.section-copy {
  max-width: 560px;
  margin: 19px auto 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.ornament {
  width: 100px;
  height: 16px;
  display: grid;
  margin: 28px auto 0;
  place-items: center;
}

.ornament::before {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament span {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: var(--ivory);
  transform: rotate(45deg);
}

.couple-family {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

.couple-family article {
  min-width: 0;
}

.couple-family h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.couple-family p,
.padrinos p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.family-label {
  margin-bottom: 8px !important;
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-amp {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
}

.padrinos {
  max-width: 500px;
  margin: 54px auto 0;
  padding: 27px 22px;
  border-top: 1px solid rgba(184, 150, 85, 0.34);
  border-bottom: 1px solid rgba(184, 150, 85, 0.34);
}

.venues {
  background: var(--white);
}

.venue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.venue-card {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 28px;
  overflow: hidden;
  border: 1px solid rgba(184, 150, 85, 0.34);
  text-align: center;
}

.venue-card.inverse {
  color: #fff;
  background: var(--charcoal);
}

.venue-number {
  position: absolute;
  top: -24px;
  right: 14px;
  color: rgba(184, 150, 85, 0.17);
  font-family: var(--serif);
  font-size: 8.5rem;
  line-height: 1;
}

.venue-card .eyebrow {
  position: relative;
}

.venue-card h3 {
  position: relative;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
}

.venue-card.inverse h3 {
  color: #fff;
}

.venue-meta,
.venue-address {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.venue-address {
  min-height: 78px;
  margin-bottom: 28px;
}

.venue-card.inverse .venue-meta,
.venue-card.inverse .venue-address {
  color: rgba(255, 255, 255, 0.7);
}

.venue-meta svg,
.venue-address svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-note {
  padding: 82px 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.guest-note > div {
  max-width: 570px;
  margin: 0 auto;
}

.guest-note h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  font-weight: 400;
}

.guest-note > div > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
}

.adult-note {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 31px auto 0;
  padding-top: 27px;
  border-top: 1px solid rgba(184, 150, 85, 0.36);
  text-align: center;
}

.adult-note svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
}

.adult-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
}

.itinerary {
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(184, 150, 85, 0.13), transparent 32%),
    var(--charcoal);
}

.itinerary .section-title {
  color: #fff;
}

.itinerary .section-copy {
  color: rgba(255, 255, 255, 0.64);
}

.rose-line {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline {
  position: relative;
  max-width: 590px;
  margin: 0 auto;
  padding: 4px 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 132px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(219, 198, 154, 0.22));
}

.timeline li {
  display: grid;
  grid-template-columns: 105px 20px 1fr;
  gap: 17px;
  align-items: center;
  min-height: 86px;
}

.timeline time {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.timeline li > span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  justify-self: center;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline li > div {
  padding: 16px 0;
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.timeline small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.traditions {
  max-width: 620px;
  margin: 58px auto 0;
  padding: 31px 28px 27px;
  border: 1px solid rgba(219, 198, 154, 0.32);
  background: rgba(255, 255, 255, 0.035);
}

.traditions-title {
  margin: 0 0 27px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-align: center;
  text-transform: uppercase;
}

.traditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.traditions-grid article {
  min-width: 0;
  padding: 0 19px;
  text-align: center;
}

.traditions-grid article + article {
  border-left: 1px solid rgba(219, 198, 154, 0.22);
}

.traditions-grid span,
.traditions-grid strong,
.traditions-grid small {
  display: block;
}

.traditions-grid span {
  min-height: 42px;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1;
}

.traditions-grid strong {
  margin: 8px 0 6px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
}

.traditions-grid small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.69rem;
  line-height: 1.5;
}

.spotlight-photo {
  position: relative;
  min-height: 800px;
  display: grid;
  place-items: end center;
  padding: 54px 36px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.spotlight-photo img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.spotlight-photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(10, 9, 8, 0.82) 100%);
}

.spotlight-caption p {
  max-width: 530px;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.36);
}

.gifts {
  min-height: 520px;
  display: grid;
  place-items: center;
  background: var(--ivory);
}

.gifts .section-copy {
  max-width: 525px;
}

.dress-code {
  padding-top: 75px;
  padding-bottom: 75px;
  background:
    radial-gradient(circle at 10% 8%, rgba(185, 125, 120, 0.13), transparent 23rem),
    var(--white);
}

.dress-code-card {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  padding: 70px 54px 62px;
  overflow: hidden;
  border: 1px solid rgba(184, 150, 85, 0.34);
  background: rgba(255, 254, 251, 0.9);
}

.dress-code-card .section-title {
  margin-bottom: 12px;
}

.dress-code-card .section-copy {
  margin-top: 25px;
}

.dress-rose {
  position: absolute;
  width: 108px;
  height: 108px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.54;
}

.dress-rose-left {
  top: -20px;
  left: -18px;
  transform: rotate(132deg);
}

.dress-rose-right {
  right: -20px;
  bottom: -19px;
  transform: rotate(-44deg);
}

.restricted-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 19px 25px;
  margin-top: 31px;
}

.restricted-colors > span {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 7px;
  min-width: 61px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swatch {
  position: relative;
  width: 36px;
  height: 36px;
  display: block;
  border: 1px solid rgba(24, 22, 18, 0.2);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(24, 22, 18, 0.1);
}

.swatch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 44px;
  height: 1px;
  background: rgba(24, 22, 18, 0.58);
  transform: rotate(-42deg);
}

.swatch-white { background: #fff; }
.swatch-gold { background: #c6a15b; }
.swatch-green { background: #4f6c54; }
.swatch-red { background: #a8433e; }
.swatch-blue { background: #174ba0; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--paper);
}

.gallery figure {
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #e7e3dc;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.8s ease;
}

.gallery figure:nth-child(2) img {
  object-position: center 54%;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.rsvp-section {
  padding: 88px 54px;
  background: var(--white);
}

.rsvp-panel {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding: 58px 44px;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 22px 48px rgba(20, 18, 15, 0.18);
}

.rsvp-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(219, 198, 154, 0.34);
  pointer-events: none;
}

.rsvp-panel > * {
  position: relative;
  z-index: 1;
}

.rsvp-monogram {
  width: 104px;
  height: 104px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.passes-card {
  width: min(100%, 390px);
  margin: 0 auto 37px;
  padding: 28px 20px 25px;
  border-top: 1px solid rgba(219, 198, 154, 0.36);
  border-bottom: 1px solid rgba(219, 198, 154, 0.36);
}

.passes-card span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.passes-card strong {
  display: block;
  margin-top: 6px;
  color: var(--rose-soft);
  font-family: var(--serif);
  font-size: clamp(3.3rem, 10vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.passes-card b,
.passes-card em {
  font: inherit;
}

.passes-card em {
  font-size: 0.82em;
  font-style: normal;
}

.rsvp-panel .section-title {
  color: #fff;
}

.rsvp-panel > p:not(.eyebrow) {
  max-width: 470px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.72);
}

.rsvp-panel .button {
  margin-top: 30px;
}

.closing {
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, #fff 0 24%, rgba(255, 255, 255, 0.66) 47%, transparent 70%),
    var(--ivory);
}

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 500px;
  height: 670px;
  border: 1px solid rgba(184, 150, 85, 0.18);
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.closing::after {
  width: 460px;
  height: 630px;
  border-color: rgba(24, 22, 18, 0.07);
}

.closing-monogram {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.closing h2 {
  margin: 12px 0 22px;
  font-family: var(--script);
  font-size: clamp(4.2rem, 14vw, 7.3rem);
  font-weight: 400;
  line-height: 0.84;
}

.closing h2 span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.52em;
  font-style: italic;
}

.closing .section-content > p:last-child {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

footer {
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  color: rgba(24, 22, 18, 0.62);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.music-toggle {
  position: fixed;
  z-index: 950;
  right: max(16px, calc((100vw - 780px) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(219, 198, 154, 0.56);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(23, 22, 20, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

body:not(.locked) .music-toggle {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-toggle:hover {
  background: #0d0c0b;
}

.music-toggle[aria-pressed="true"] span {
  animation: music-pulse 1.8s ease-in-out infinite;
}

.music-player-shell {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 200px;
  height: 200px;
  border: 0;
  opacity: 0.001;
  pointer-events: none;
}

.music-player-shell iframe {
  width: 200px;
  height: 200px;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes opening-image {
  from { transform: scale(1.08); }
  to { transform: scale(1.01); }
}

@keyframes opening-copy {
  from { opacity: 0; transform: translateY(calc(20vh + 20px)); }
  to { opacity: 1; transform: translateY(20vh); }
}

@keyframes music-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18) rotate(-6deg); }
}

@media (max-width: 680px) {
  .envelope-stage {
    gap: 21px;
  }

  .envelope-button {
    width: min(86vw, 590px, 95svh);
  }

  .envelope-instruction {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  .section {
    padding: 76px 26px;
  }

  .intro {
    min-height: 820px;
    padding-top: 95px;
    padding-bottom: 95px;
  }

  .hero-intro {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 82px;
    padding-bottom: 52px;
  }

  .hero-intro-frame {
    inset: 12px;
  }

  .intro .section-content {
    width: 100%;
    max-width: 370px;
    margin-inline: auto;
  }

  .arch-one {
    width: 390px;
    height: 670px;
  }

  .arch-two {
    width: 350px;
    height: 630px;
  }

  .monogram {
    width: 132px;
    height: 132px;
  }

  .display-names {
    font-size: clamp(4rem, 18vw, 5.7rem);
  }

  .date-lockup {
    grid-template-columns: 1fr;
    gap: 7px;
    max-width: 300px;
    margin-top: 31px;
    text-align: center;
  }

  .date-lockup::before,
  .date-lockup::after {
    width: 92px;
    justify-self: center;
  }

  .lead {
    max-width: 340px;
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
    line-height: 1.42;
  }

  .countdown {
    gap: 0;
    width: 100%;
    max-width: 360px;
    margin-top: 42px;
    border-top: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
  }

  .countdown > div {
    padding: 17px 3px 15px;
    border: 0;
  }

  .countdown > div + div {
    border-left: 1px solid rgba(184, 150, 85, 0.24);
  }

  .countdown span {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
  }

  .editorial-photo {
    grid-template-columns: 1fr;
  }

  .editorial-image-wrap {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .editorial-image-wrap img {
    object-position: center top;
  }

  .editorial-copy {
    padding: 56px 29px 64px;
    text-align: center;
  }

  .script-quote {
    max-width: 430px;
    margin-inline: auto;
  }

  .couple-family {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .family-amp {
    height: 47px;
    line-height: 0.95;
  }

  .couple-family article + .family-amp + article {
    margin-top: 6px;
  }

  .padrinos {
    margin-top: 44px;
  }

  .venue-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .venue-card {
    min-height: 475px;
    padding: 45px 27px;
  }

  .venue-card h3 {
    font-size: 2.15rem;
  }

  .venue-address {
    max-width: 320px;
    min-height: auto;
  }

  .venue-card .button {
    width: min(100%, 270px);
  }

  .guest-note {
    padding: 70px 27px;
  }

  .adult-note {
    max-width: 390px;
  }

  .timeline::before {
    left: 101px;
  }

  .timeline li {
    grid-template-columns: 80px 16px 1fr;
    gap: 13px;
    text-align: left;
  }

  .timeline time {
    font-size: 0.94rem;
  }

  .timeline strong {
    font-size: 1.23rem;
  }

  .timeline small {
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  .traditions {
    margin-top: 45px;
    padding: 28px 18px 24px;
  }

  .traditions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .traditions-grid article {
    padding: 0 12px 20px;
  }

  .traditions-grid article + article {
    padding-top: 20px;
    border-top: 1px solid rgba(219, 198, 154, 0.22);
    border-left: 0;
  }

  .traditions-grid span {
    min-height: 0;
  }

  .dress-code {
    padding: 65px 22px;
  }

  .dress-code-card {
    padding: 62px 24px 55px;
  }

  .restricted-colors {
    gap: 17px 18px;
  }

  .spotlight-photo {
    min-height: 690px;
    padding-inline: 25px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .rsvp-section {
    padding: 72px 22px;
  }

  .rsvp-panel {
    padding: 52px 25px;
  }

  .rsvp-panel .button {
    width: min(100%, 315px);
  }

  .closing::before {
    width: 390px;
  }

  .closing::after {
    width: 350px;
  }
}

@media (max-width: 410px) {
  .section {
    padding-right: 21px;
    padding-left: 21px;
  }

  .envelope-button {
    width: min(91vw, 95svh);
  }

  .envelope-letter {
    padding-top: 8%;
  }

  .countdown strong {
    font-size: 1.55rem;
  }

  .countdown span {
    font-size: 0.59rem;
    letter-spacing: 0.045em;
  }

  .timeline::before {
    left: 89px;
  }

  .timeline li {
    grid-template-columns: 70px 15px 1fr;
    gap: 10px;
  }

  .timeline time {
    font-size: 0.84rem;
  }

  .passes-card strong {
    font-size: 3.35rem;
  }

  .gallery figure {
    height: auto;
  }
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
