:root {
  --color-envelope: #141215;
  --color-envelope-soft: #2f233b;
  --color-ribbon: #60377a;
  --color-ribbon-light: #8a67a3;
  --color-paper: #f5f0f7;
  --color-paper-soft: #ece4f0;
  --color-paper-line: rgba(118, 86, 139, 0.2);
  --color-floral: rgba(132, 98, 160, 0.16);
  --color-text: #342140;
  --color-text-soft: #6f587c;
  --color-primary: #6b3f82;
  --color-primary-strong: #452357;
  --color-gold: #c8bed6;
  --color-success: #2f6b56;
  --color-danger: #a04646;
  --paper-texture: url("../img/paper-card-texture.png");
  --page-backdrop-image: url("../img/background-fondo-parallax.png");
  --page-backdrop-art:
    radial-gradient(circle at 18% 16%, rgba(167, 146, 194, 0.22), transparent 22%),
    radial-gradient(circle at 78% 14%, rgba(230, 220, 236, 0.42), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(255, 251, 246, 0.34), transparent 34%);
  --paper-grain-size: auto;
  --paper-grain-opacity: 0;
  --paper-card-background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.56), rgba(236, 223, 202, 0.5)),
    linear-gradient(135deg, rgba(182, 146, 92, 0.3), rgba(255, 255, 255, 0.04)),
    linear-gradient(0deg, rgba(120, 92, 62, 0.08), rgba(255, 255, 255, 0)),
    var(--paper-texture),
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 237, 228, 0.95));
  --paper-card-background-size: auto, auto, auto, 170px 170px, 240px 240px, auto;
  --paper-card-background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  --paper-card-background-blend: normal, multiply, multiply, multiply, overlay, normal;
  --paper-surface:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 237, 228, 0.95));
  --paper-surface-soft: var(--paper-surface);
  --ink-emboss:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 -1px 0 rgba(84, 51, 102, 0.16),
    0 8px 16px rgba(34, 18, 45, 0.08);
  --ink-emboss-strong:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 2px 0 rgba(255, 255, 255, 0.38),
    0 -1px 0 rgba(85, 53, 104, 0.2),
    0 -2px 0 rgba(85, 53, 104, 0.1),
    0 10px 18px rgba(34, 18, 45, 0.1);
  --shadow-surface-unified:
    0 2px 4px rgba(24, 14, 34, 0.12),
    0 28px 46px rgba(24, 14, 34, 0.28),
    0 52px 78px rgba(16, 10, 24, 0.18);
  --shadow-soft: var(--shadow-surface-unified);
  --shadow-card: var(--shadow-surface-unified);
  --shadow-paper-soft: var(--shadow-surface-unified);
  --shadow-paper-deep: var(--shadow-surface-unified);
  --shadow-paper-letter: var(--shadow-surface-unified);
  --shadow-paper-raised: var(--shadow-surface-unified);
  --shadow-input:
    0 1px 2px rgba(24, 14, 34, 0.08),
    0 8px 16px rgba(24, 14, 34, 0.12);
  --shadow-envelope: 0 40px 100px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --section-rhythm-primary: clamp(1.55rem, 2.8vw, 2rem);
  --section-rhythm-secondary: clamp(1.15rem, 2.2vw, 1.5rem);
  --container-width: 860px;
  --font-script: "Allura", cursive;
  --font-heading: "Allura", cursive;
  --font-body: "Allura", cursive;
  --font-display: "Allura", cursive;
  --section-space: clamp(4rem, 8vw, 5.6rem);
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(123, 79, 158, 0.34), transparent 34%),
    radial-gradient(circle at 16% 14%, rgba(101, 59, 140, 0.28), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(196, 185, 229, 0.12), transparent 22%),
    linear-gradient(rgba(45, 26, 61, 0.92), rgba(36, 22, 49, 0.96)),
    var(--paper-texture),
    linear-gradient(180deg, #382446 0%, #2b1d39 24%, #332145 58%, #24172f 100%);
  background-size: auto, auto, auto, auto, 520px auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-blend-mode: screen, screen, screen, normal, soft-light, normal;
  color: var(--color-primary-strong);
  font-family: var(--font-body);
  font-size: 1.44rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.invitation-revealed {
  background:
    linear-gradient(rgba(255, 248, 252, 0.9), rgba(244, 235, 247, 0.84)),
    linear-gradient(180deg, #f6f1f7 0%, #ece5f1 100%);
  background-repeat: no-repeat, no-repeat;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(125, 87, 145, 0.18), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255, 243, 222, 0.11), transparent 24%),
    linear-gradient(180deg, #120f15 0%, #09070b 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loading-screen__content {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}

.loading-screen__eyebrow {
  color: rgba(236, 217, 192, 0.82);
  font-size: 1.56rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 180ms ease;
}

.loading-screen__title {
  color: #f0ddc5;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.02;
  text-shadow: 0 0 26px rgba(167, 131, 189, 0.16);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.fonts-ready .loading-screen__title {
  opacity: 1;
}

body.fonts-ready .loading-screen__eyebrow {
  opacity: 1;
}

.loading-screen__line {
  width: min(12rem, 58vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(231, 208, 177, 0.95), rgba(255, 255, 255, 0));
  animation: loadingPulse 1.7s ease-in-out infinite;
}

body:not(.invitation-loading) .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.invitation-loading .entry-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(214, 219, 233, 0.02) 24%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 22%, rgba(214, 219, 233, 0.05) 78%, rgba(255, 255, 255, 0.08));
  opacity: 1;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 2.25rem 1.25rem 2.5rem;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, #000 0%, #050306 100%);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.entry-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(116, 82, 138, 0.18), transparent 24%),
    radial-gradient(circle at 50% 48%, rgba(255, 245, 230, 0.08), transparent 30%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05), transparent 18%);
}

.entry-screen__content {
  display: grid;
  justify-items: center;
  gap: 1.65rem;
  text-align: center;
  width: min(100%, 26rem);
  min-height: min(100dvh - 4.75rem, 42rem);
  align-content: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.entry-screen__eyebrow,
.entry-screen__hint {
  color: rgba(183, 166, 212, 0.9);
}

.entry-screen__guest {
  max-width: 19rem;
  margin-top: -0.35rem;
  color: rgba(196, 180, 222, 0.94);
  font-size: 1.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 -1px 0 rgba(48, 28, 65, 0.38),
    0 0 14px rgba(116, 82, 138, 0.08);
}

.entry-screen__eyebrow {
  color: rgba(221, 212, 239, 0.96);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 -1px 0 rgba(52, 30, 70, 0.46),
    0 0 18px rgba(132, 95, 161, 0.1);
}

.entry-screen__hint {
  max-width: 16rem;
  margin-top: 0.35rem;
  color: rgba(186, 169, 214, 0.9);
  font-size: 1.34rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 -1px 0 rgba(45, 27, 60, 0.34),
    0 0 10px rgba(116, 82, 138, 0.06);
}

.envelope-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.envelope-button:focus-visible {
  outline: none;
}

.envelope {
  position: relative;
  display: block;
  width: min(96vw, 26.5rem);
  aspect-ratio: 3 / 2;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.46));
  transform: translateZ(0);
  transition: transform 900ms cubic-bezier(0.2, 0.82, 0.24, 1), filter 900ms ease;
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  z-index: 9;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 245, 223, 0.34) 0%, rgba(212, 173, 255, 0.12) 44%, transparent 74%);
  filter: blur(18px);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 260ms ease, transform 260ms ease;
}

.envelope::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -7%;
  height: 14%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.envelope__back,
.envelope__flap,
.envelope__letter,
.envelope__poster,
.envelope__video,
.envelope__ribbon,
.envelope__seal {
  position: absolute;
}

.envelope__poster,
.envelope__video {
  inset: 0;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  background: #000;
  pointer-events: none;
}

.envelope__poster {
  z-index: 8;
  background-image: url("../img/envelope-seq2-01.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 520ms cubic-bezier(0.22, 0.78, 0.2, 1), transform 520ms cubic-bezier(0.22, 0.78, 0.2, 1);
  transform-origin: center center;
}

.envelope__video {
  z-index: 7;
  object-fit: contain;
  opacity: 0;
  transition: opacity 320ms ease;
}

.envelope__back,
.envelope__flap,
.envelope__letter,
.envelope__ribbon,
.envelope__seal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.invitation-closed .envelope__poster {
  opacity: 1;
}

body.invitation-closed .envelope::before {
  opacity: 0.58;
  transform: scale(1);
  animation: envelope-glow-pulse 3.5s ease-in-out infinite;
}

body.invitation-closed .envelope__video {
  opacity: 0;
}

body.invitation-closed .envelope-button:hover .envelope,
body.invitation-closed .envelope-button:focus-visible .envelope {
  transform: translateY(-4px) scale(1.012);
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.5));
}

body.invitation-closed .envelope-button:hover .envelope::before,
body.invitation-closed .envelope-button:focus-visible .envelope::before {
  opacity: 0.74;
}

body.invitation-closed .envelope-button:hover .envelope::after,
body.invitation-closed .envelope-button:focus-visible .envelope::after {
  transform: translateY(2px) scale(1.02);
}

body.invitation-closed .envelope-button.is-pressed .envelope,
body.invitation-closed .envelope-button:active .envelope {
  transform: translateY(5px) scale(0.984);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

body.invitation-closed .envelope-button.is-pressed .envelope::before,
body.invitation-closed .envelope-button:active .envelope::before {
  opacity: 0.34;
  transform: scale(0.9);
}

body.invitation-closed .envelope-button.is-pressed .envelope::after,
body.invitation-closed .envelope-button:active .envelope::after {
  opacity: 0.7;
  transform: translateY(4px) scale(0.96);
}

body.invitation-opening .envelope__poster,
body.invitation-revealed .envelope__poster {
  opacity: 0;
  transform: scale(0.988);
}

body.invitation-opening.invitation-video-fallback .envelope__poster {
  opacity: 1;
  animation: envelope-fallback-open 1400ms steps(4, end) forwards;
}

body.invitation-opening .envelope__video.is-visible,
body.invitation-revealed .envelope__video.is-visible {
  opacity: 1;
}

body.invitation-opening .envelope {
  transform: none;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.46));
}

body.invitation-opening .envelope::before,
body.invitation-revealed .envelope::before {
  opacity: 0;
  transform: scale(0.86);
  animation: none;
}

body.invitation-revealed .envelope {
  transform: translateY(-6px) scale(1.01);
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.38));
}

body.invitation-revealed .envelope__video {
  opacity: 0;
}

body.invitation-opening .entry-screen__content {
  animation: none;
}

@keyframes envelope-fallback-open {
  0% {
    background-image: url("../img/envelope-seq2-01.png");
    transform: scale(1);
  }

  25% {
    background-image: url("../img/envelope-seq2-02.png");
  }

  50% {
    background-image: url("../img/envelope-seq2-03.png");
  }

  75% {
    background-image: url("../img/envelope-seq2-04.png");
  }

  100% {
    background-image: url("../img/envelope-seq2-05.png");
    transform: scale(0.988);
  }
}

body.invitation-revealed .entry-screen__content {
  opacity: 0;
  transform: translateY(-10px);
}

.envelope__back {
  inset: 0;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 14%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, #302832 0%, #1d1820 38%, #121014 100%);
  background-size: auto, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 26px rgba(0, 0, 0, 0.24),
    inset 14px 0 20px rgba(255, 255, 255, 0.02),
    inset -14px 0 20px rgba(0, 0, 0, 0.1);
}

.envelope__back::selection {
  background: transparent;
}

.envelope__back::before,
.envelope__back::after,
.envelope__back {
  z-index: 1;
}

.envelope__back::after {
  transition: opacity 500ms ease;
}

.envelope__back::before,
.envelope__back::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 51%;
  height: 72%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16));
  transition: opacity 420ms ease, box-shadow 420ms ease;
}

.envelope__back::before {
  left: -2%;
  clip-path: polygon(0 100%, 100% 12%, 100% 100%);
}

.envelope__back::after {
  right: -2%;
  clip-path: polygon(0 12%, 100% 100%, 0 100%);
}

.envelope__back::before,
.envelope__back::after {
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.08);
}

.envelope::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 5%;
  height: 22%;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0));
  filter: blur(12px);
  pointer-events: none;
}

.envelope::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8%;
  height: 14%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  filter: blur(10px);
  pointer-events: none;
}

.envelope__ribbon {
  top: 48%;
  left: 0;
  right: 0;
  height: 18%;
  transform: translateY(-50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 26%, rgba(0, 0, 0, 0.24)),
    linear-gradient(90deg, rgba(57, 22, 76, 0.92) 0%, rgba(100, 53, 130, 0.88) 16%, rgba(166, 128, 198, 0.8) 50%, rgba(102, 58, 132, 0.88) 84%, rgba(58, 22, 75, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition: box-shadow 500ms ease, opacity 500ms ease;
}

.envelope__ribbon::before,
.envelope__ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
}

.envelope__ribbon::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 22%, rgba(0, 0, 0, 0.22));
}

.envelope__ribbon::after {
  opacity: 0.34;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 6px);
}

.envelope__ribbon span {
  display: none;
}

.envelope__ribbon {
  z-index: 2;
}

.envelope__ribbon::before,
.envelope__ribbon::after {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.envelope__seal {
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(248, 248, 246, 0.98), rgba(184, 184, 184, 0.96) 54%, rgba(98, 98, 98, 0.98));
  border: 1px solid rgba(92, 92, 92, 0.3);
  color: #4d4d4d;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.26),
    0 4px 10px rgba(0, 0, 0, 0.18),
    inset 0 2px 5px rgba(255, 255, 255, 0.42),
    inset 0 -5px 10px rgba(78, 78, 78, 0.26);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    transform 900ms cubic-bezier(0.2, 0.8, 0.24, 1),
    opacity 760ms ease,
    box-shadow 900ms cubic-bezier(0.2, 0.8, 0.24, 1);
}

.envelope__seal::before {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border-radius: inherit;
  border: 1px solid rgba(96, 96, 96, 0.26);
  pointer-events: none;
}

.envelope__seal::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: inherit;
  border: 1px dashed rgba(112, 112, 112, 0.28);
  opacity: 0.55;
  pointer-events: none;
}

.envelope__letter {
  left: 10%;
  right: 10%;
  bottom: 18%;
  z-index: 0;
  height: 62%;
  padding: 0.6rem;
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(246, 236, 225, 0.98));
  border: 1px solid rgba(118, 91, 114, 0.12);
  transform: translateY(54px);
  opacity: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: none;
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform-origin: center center;
  will-change: transform, opacity;
}

.envelope__letter-inner {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(175, 148, 195, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(175, 148, 195, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.08));
}

.envelope__monogram {
  color: var(--color-primary-strong);
  font-family: var(--font-script);
  font-size: 2.1rem;
  opacity: 0.88;
}

.envelope__letter-text {
  color: var(--color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.envelope__flap {
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 53%;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 88%);
  background:
    linear-gradient(180deg, #312937 0%, #1c1720 78%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 14px rgba(0, 0, 0, 0.16);
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
}

.envelope__flap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.12));
}

.envelope__flap::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14%;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  filter: blur(6px);
}

body.invitation-opening .envelope__seal {
  animation: seal-release 420ms cubic-bezier(0.32, 0.02, 0.16, 1) forwards;
}

body.invitation-open .envelope__seal,
body.invitation-revealed .envelope__seal {
  opacity: 0;
  transform: translate(-50%, -62%) scale(0.82);
  pointer-events: none;
}

body.invitation-opening .envelope__ribbon,
body.invitation-open .envelope__ribbon,
body.invitation-revealed .envelope__ribbon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.14);
}

body.invitation-opening .envelope__ribbon {
  animation: ribbon-release 640ms cubic-bezier(0.28, 0.06, 0.18, 1) 110ms forwards;
}

body.invitation-open .envelope__ribbon,
body.invitation-revealed .envelope__ribbon {
  opacity: 0;
  transform: translateY(-50%) scaleX(0.94);
}

body.invitation-open .envelope__flap,
body.invitation-revealed .envelope__flap {
  transform: rotateX(180deg);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

body.invitation-opening .envelope__flap {
  animation: flap-open 1560ms cubic-bezier(0.2, 0.82, 0.24, 1) 180ms forwards;
}

body.invitation-opening .envelope__back::after,
body.invitation-open .envelope__back::after,
body.invitation-revealed .envelope__back::after {
  opacity: 0.55;
}

body.invitation-opening .envelope__back::before,
body.invitation-opening .envelope__back::after,
body.invitation-open .envelope__back::before,
body.invitation-open .envelope__back::after,
body.invitation-revealed .envelope__back::before,
body.invitation-revealed .envelope__back::after {
  opacity: 0.08;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.04);
}

body.invitation-opening .envelope__back,
body.invitation-open .envelope__back,
body.invitation-revealed .envelope__back {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 26px rgba(0, 0, 0, 0.24),
    inset 14px 0 20px rgba(255, 255, 255, 0.02),
    inset -14px 0 20px rgba(0, 0, 0, 0.1),
    inset 0 22px 24px rgba(0, 0, 0, 0.16),
    inset 0 44px 34px rgba(0, 0, 0, 0.18),
    inset 0 72px 20px rgba(0, 0, 0, 0.12);
}

body.invitation-opening .entry-screen__content {
  animation: none;
  opacity: 1;
  transform: none;
}

body.invitation-revealed .entry-screen__content {
  opacity: 0;
  transform: translateY(-10px);
}

body.invitation-revealed .envelope {
  transform: translateY(-12px) scale(1.018);
  filter: drop-shadow(0 34px 66px rgba(0, 0, 0, 0.42));
}

body.invitation-revealed .envelope__letter {
  z-index: 2;
  transform: translateY(-10%) scale(1.44);
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.invitation-revealed .entry-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-orb {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  width: clamp(16rem, 28vw, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(10px);
  mix-blend-mode: screen;
}

.page-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 32%, rgba(243, 245, 255, 0.72), rgba(189, 176, 215, 0.34) 26%, rgba(112, 89, 147, 0.18) 52%, rgba(112, 89, 147, 0) 76%);
}

.page-orb::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  border: 1px solid rgba(212, 217, 233, 0.26);
  opacity: 0.45;
}

.page-orb--top {
  top: 6rem;
  right: -4rem;
}

.page-orb--bottom {
  bottom: 8rem;
  left: -5rem;
  opacity: 0.42;
}

.site-shell {
  position: relative;
}

.site-shell__backdrop,
.site-shell::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-shell__backdrop {
  z-index: -2;
  background:
    var(--page-backdrop-image),
    var(--page-backdrop-art),
    linear-gradient(rgba(255, 248, 252, 0.58), rgba(244, 235, 247, 0.46)),
    radial-gradient(circle at 50% 0%, rgba(163, 144, 194, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(206, 214, 230, 0.08), transparent 26%);
  background-size: cover, auto, auto, auto, auto;
  background-position: center top, center center, center center, center top, center bottom;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-blend-mode: normal, screen, normal, screen, screen;
  opacity: 0.72;
  transform: translate3d(0, var(--parallax-shift, 0px), 0) scale(1.04);
  transform-origin: center top;
  transition: opacity 420ms ease, transform 220ms ease-out;
}

.site-shell::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(rgba(255, 248, 252, 0.34), rgba(244, 235, 247, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0.72;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 60%, rgba(244, 245, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 16% 26%, rgba(190, 177, 221, 0.22) 0 1.5px, transparent 3px),
    radial-gradient(circle at 28% 74%, rgba(222, 226, 240, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 18%, rgba(174, 154, 210, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 48%, rgba(244, 246, 255, 0.22) 0 1.5px, transparent 3px),
    radial-gradient(circle at 72% 24%, rgba(194, 181, 222, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 70%, rgba(232, 236, 247, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 34%, rgba(173, 155, 206, 0.16) 0 1.5px, transparent 3px);
  opacity: 0.48;
  animation: ambientParticlesDrift 20s ease-in-out infinite;
}

.container {
  width: min(calc(100% - 1.5rem), var(--container-width));
  margin: 0 auto;
}

#ubicaciones,
#rsvp-form {
  scroll-margin-top: 5.5rem;
}

#confirmacion {
  scroll-margin-top: 7rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(255, 252, 247, 0.76) 72%, rgba(255, 252, 247, 0));
  border-bottom: 1px solid rgba(176, 149, 130, 0.12);
  box-shadow: 0 10px 28px rgba(86, 60, 76, 0.035);
  transition: opacity 400ms ease;
}

body.invitation-closed .topbar,
body.invitation-fading-envelope .topbar,
body.invitation-opening .topbar,
body.invitation-open .topbar {
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand__eyebrow,
.eyebrow,
.countdown__eyebrow,
.gift-box__label {
  color: var(--color-primary);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.brand__names {
  font-family: var(--font-heading);
  font-size: 2.72rem;
  font-weight: 700;
  line-height: 0.9;
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  width: min(7rem, 34vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 67, 122, 0), rgba(108, 67, 122, 0.18), rgba(108, 67, 122, 0));
  transform: translateX(-50%);
  opacity: 1;
}

.section__content,
.hero__content,
.card-grid,
.content-block,
.timeline,
.form,
.section-heading,
.gift-box,
.rsvp-layout,
.countdown__grid {
  display: grid;
  gap: 1.3rem;
}

.section__content {
  position: relative;
  isolation: isolate;
  gap: clamp(1.45rem, 2.6vw, 1.95rem);
}

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

.section__content > .section-heading {
  margin-bottom: 0;
}

.section__content > .section-heading + .card,
.section__content > .section-heading + .card-grid,
.section__content > .section-heading + .timeline,
.section__content > .section-heading + .rsvp-layout,
.section__content > .section-heading + .countdown {
  margin-top: 0.58rem;
}

.section__content > .card + .card-grid,
.section__content > .countdown + .card-grid {
  margin-top: 0.5rem;
}

.section-heading::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(154, 141, 176, 0.12);
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
}

.section-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
  will-change: transform;
}

.section-atmosphere__glow,
.section-atmosphere__spark {
  position: absolute;
  display: block;
}

.section-atmosphere__glow {
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.4;
}

.section-atmosphere__glow--one {
  top: 2rem;
  left: 12%;
  width: min(13rem, 34vw);
  height: 9rem;
  background: radial-gradient(circle, rgba(230, 220, 244, 0.24), rgba(230, 220, 244, 0));
  animation: glowFloatA 11s ease-in-out infinite;
}

.section-atmosphere__glow--two {
  right: 10%;
  bottom: 2.5rem;
  width: min(16rem, 40vw);
  height: 11rem;
  background: radial-gradient(circle, rgba(214, 192, 236, 0.22), rgba(214, 192, 236, 0));
  animation: glowFloatB 12.5s ease-in-out -2s infinite;
}

.section-atmosphere__spark {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 251, 245, 1), rgba(232, 219, 248, 0.42) 62%, rgba(232, 219, 248, 0));
  box-shadow: 0 0 18px rgba(243, 229, 255, 0.32);
  opacity: 0.52;
  animation: sparkleFloat 10.5s ease-in-out infinite;
}

.section-atmosphere__spark--one {
  top: 24%;
  right: 22%;
  animation-delay: -1.6s;
}

.section-atmosphere__spark--two {
  bottom: 22%;
  left: 18%;
  animation-delay: -4.2s;
}

.section-atmosphere--locations .section-atmosphere__glow--one {
  top: 1.5rem;
  left: 6%;
}

.section-atmosphere--timeline .section-atmosphere__glow--two {
  right: 4%;
  bottom: 10%;
}

.section-atmosphere--rsvp .section-atmosphere__glow--one {
  top: 3rem;
  left: auto;
  right: 8%;
}

.section-atmosphere--gift .section-atmosphere__spark--one {
  top: 18%;
}

.section-atmosphere--info .section-atmosphere__glow--one {
  top: 0.5rem;
}

.section-heading {
  --surface-shadow: var(--shadow-paper-deep);
  position: relative;
  isolation: isolate;
  justify-items: center;
  gap: 0.45rem;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.9rem 1.2rem 0.84rem;
  text-align: center;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-lg);
  transform: perspective(1200px) rotateX(1.75deg) translateY(-3px);
  box-shadow: var(--surface-shadow);
  overflow: hidden;
}

.section-heading::after {
  content: none;
}

.section-heading > * {
  position: relative;
  z-index: 1;
}

#bienvenida .section-heading {
  margin-top: 0;
  padding-top: 1rem;
}

#bienvenida .section-heading::before {
  display: none;
}

#bienvenida .section-heading h2 {
  color: var(--color-text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

.personal-agenda {
  align-items: stretch;
}

.personal-agenda__card {
  min-height: 100%;
  padding: 1.15rem 1rem 1.05rem;
  gap: 0.5rem;
}

.personal-agenda__value {
  color: var(--color-primary-strong);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5.6vw, 2.3rem);
  line-height: 1.02;
  text-shadow: var(--ink-emboss);
}

.display,
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.display {
  font-family: var(--font-script);
  font-size: clamp(4.1rem, 19vw, 7rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero__eyebrow {
  color: rgba(63, 43, 73, 0.78);
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 1;
  text-transform: none;
}

.hero__guest {
  max-width: 22rem;
  margin: -0.1rem auto 0;
  color: rgba(63, 43, 73, 0.88);
  font-family: var(--font-heading);
  font-size: clamp(1.42rem, 3.6vw, 1.72rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.16;
  text-transform: none;
}

.hero__names {
  max-width: 16rem;
  color: #6a3ea0;
  font-size: clamp(4rem, 16vw, 5.55rem);
  line-height: 0.84;
  text-align: center;
  text-wrap: balance;
  -webkit-text-stroke: 0.65px rgba(86, 48, 130, 0.36);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 2px 0 rgba(255, 255, 255, 0.88),
    0 3px 0 rgba(255, 255, 255, 0.62),
    0 4px 0 rgba(255, 255, 255, 0.32),
    0 -1px 0 rgba(86, 48, 130, 0.5),
    0 -2px 0 rgba(86, 48, 130, 0.28),
    0 6px 9px rgba(86, 48, 130, 0.18),
    0 14px 24px rgba(86, 48, 130, 0.12);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

h2 {
  font-size: clamp(2.45rem, 9vw, 3.7rem);
}

h3 {
  font-size: clamp(1.75rem, 6vw, 2.1rem);
}

p {
  color: var(--color-text-soft);
}

.lead {
  max-width: 29rem;
  margin: 0 auto;
  font-size: 1.3rem;
}

.signature,
.closing-script,
.closing-signature {
  font-family: var(--font-script);
}

.signature {
  color: var(--color-primary-strong);
  font-size: 3.2rem;
}

.hero {
  padding-top: clamp(5rem, 12vw, 6.6rem);
}

#hero {
  padding-bottom: clamp(1.35rem, 4vw, 2rem);
}

#bienvenida {
  padding-top: clamp(2rem, 5vw, 2.8rem);
  padding-bottom: clamp(3.4rem, 8vw, 4.8rem);
}

.paper-bloom {
  display: none;
}

.invite-sheet {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.3rem;
  justify-items: center;
  padding: 3.15rem 1.5rem 2.25rem;
  text-align: center;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.invite-sheet::before {
  content: none;
}

.invite-sheet.botanical-corners::before,
.invite-sheet.botanical-corners::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--botanical-size);
  height: var(--botanical-size);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--botanical-opacity);
  filter: saturate(0.92);
}

.invite-sheet.botanical-corners::before {
  top: -0.15rem;
  right: -0.15rem;
  background-position: top right;
  background-image: url("../img/floral-corner-up-right.png");
}

.invite-sheet.botanical-corners::after {
  bottom: -0.15rem;
  left: -0.15rem;
  background-position: bottom left;
  background-image: url("../img/floral-corner-down-left.png");
}

.card--editorial::before,
.content-block--letter::before,
.content-block--closing::before,
.gift-box::after {
  content: none;
}

#evento .event-atmosphere__glow {
  opacity: 0.56;
}

#ubicaciones .section-atmosphere__glow,
#cronograma .section-atmosphere__glow,
#rsvp .section-atmosphere__glow,
#regalo .section-atmosphere__glow,
#info .section-atmosphere__glow {
  opacity: 0.3;
}

#ubicaciones .section-atmosphere__spark,
#cronograma .section-atmosphere__spark,
#rsvp .section-atmosphere__spark,
#regalo .section-atmosphere__spark,
#info .section-atmosphere__spark {
  opacity: 0.36;
}

.hero__divider {
  width: min(4.3rem, 22vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 67, 122, 0), rgba(108, 67, 122, 0.24), rgba(108, 67, 122, 0));
}

.hero__meta {
  display: grid;
  gap: 0.2rem;
}

.hero__date,
.hero__place,
.hero__time {
  color: var(--color-text);
}

.hero__date {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.hero__date--editorial {
  color: #1d1b1c;
  width: max-content;
  max-width: 100%;
  font-size: clamp(1.38rem, 5.8vw, 2.85rem);
  line-height: 1.08;
  white-space: nowrap;
  overflow-wrap: normal;
}

.hero__promise {
  max-width: 19rem;
  color: #1f1b1d;
  font-family: var(--font-script);
  font-size: clamp(2.16rem, 9.6vw, 3.08rem);
  line-height: 1.08;
  margin-top: 0.15rem;
}

.hero__actions {
  width: 100%;
  max-width: 17.25rem;
  margin-top: 0.25rem;
  gap: 0.68rem;
}

.card-grid {
  gap: 0.82rem;
}

.card {
  --surface-shadow: var(--shadow-paper-deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 1.45rem;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-lg);
  transform: perspective(1200px) rotateX(1.75deg) translateY(-3px);
  box-shadow: var(--surface-shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 18%, rgba(103, 65, 128, 0.06) 82%, rgba(103, 65, 128, 0.1));
  background-size: auto, auto;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal, normal;
  opacity: 1;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: -0.9rem;
  height: 1.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(33, 18, 45, 0.24), rgba(33, 18, 45, 0) 76%);
  filter: blur(12px);
  opacity: 0.62;
  pointer-events: none;
}

.card--venue,
.card--gift,
.card--form,
.card--soft,
.card--countdown {
  justify-items: center;
  text-align: center;
}

.card--form,
.card--form p,
.card--form label,
.card--form .field-hint,
.card--form .field-error,
.card--form .form-status {
  text-align: left;
}

.card__text-stack {
  display: grid;
  gap: 0.85rem;
}

.card__text-stack p {
  margin: 0;
}

.section__content--event {
  position: relative;
  isolation: isolate;
}

.section__content--event.reveal {
  transform: translateY(34px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.82, 0.24, 1);
}

.section__content--event > * {
  position: relative;
  z-index: 1;
}

.event-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.event-atmosphere__glow,
.event-atmosphere__spark {
  position: absolute;
  display: block;
  pointer-events: none;
}

.event-atmosphere__glow {
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.56;
}

.event-atmosphere__glow--one {
  top: 2.8rem;
  left: 50%;
  width: min(20rem, 68vw);
  height: 8rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 218, 176, 0.42), rgba(255, 218, 176, 0));
  animation: eventGlowPulse 8.5s ease-in-out infinite;
}

.event-atmosphere__glow--two {
  top: 15.5rem;
  left: 50%;
  width: min(28rem, 88vw);
  height: 12rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(199, 165, 221, 0.18), rgba(199, 165, 221, 0));
  animation: eventGlowPulse 11s ease-in-out -2.8s infinite;
}

.event-atmosphere__spark {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 236, 1), rgba(233, 196, 142, 0.28) 65%, rgba(233, 196, 142, 0));
  box-shadow: 0 0 12px rgba(255, 225, 184, 0.28);
  opacity: 0.5;
  animation: sparkleFloat 8.2s ease-in-out infinite;
}

.event-atmosphere__spark--one {
  top: 5.4rem;
  left: 20%;
  animation-delay: -1.1s;
}

.event-atmosphere__spark--two {
  top: 7.2rem;
  right: 18%;
  animation-delay: -4.2s;
}

.event-atmosphere__spark--three {
  top: 18rem;
  right: 24%;
  animation-delay: -6.1s;
}

.calendar-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.8rem;
  width: 100%;
  padding: 1.28rem 1rem 1.08rem;
  border-radius: var(--radius-lg);
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid rgba(108, 67, 122, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(108, 67, 122, 0.06),
    0 10px 20px rgba(24, 14, 34, 0.1),
    0 18px 32px rgba(24, 14, 34, 0.08);
  overflow: hidden;
}

.calendar-card::before,
.countdown__item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 24%);
}

.card--countdown {
  --surface-shadow: var(--shadow-soft);
  position: relative;
  display: grid;
  gap: 0.8rem;
  overflow: hidden;
  padding: 1.18rem 1rem 1.08rem;
  border-color: rgba(122, 91, 114, 0.12);
  box-shadow: var(--surface-shadow);
  transform: translateY(22px) scale(0.986);
  opacity: 0;
  transition:
    opacity 820ms ease,
    transform 820ms cubic-bezier(0.2, 0.82, 0.24, 1),
    box-shadow 420ms ease;
}

.card--countdown::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: min(18rem, 68%);
  height: 4.8rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(238, 229, 248, 0.34), rgba(238, 229, 248, 0));
  filter: blur(12px);
  opacity: 0.26;
  pointer-events: none;
}

.card--countdown::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 20%, rgba(124, 97, 116, 0.05) 100%);
  opacity: 0.72;
}

.card--countdown > * {
  position: relative;
  z-index: 1;
}

.card--countdown.is-ticking::before {
  animation: countdownHaloPulse 680ms cubic-bezier(0.24, 0.78, 0.26, 1);
}

.card--countdown.is-ticking {
  box-shadow:
    var(--surface-shadow),
    0 0 24px rgba(217, 203, 236, 0.06);
}

.section__content--event.is-visible .card--countdown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section__content--event.is-visible .card--countdown::before {
  animation: eventGlowPulse 4.6s ease-in-out 1 both;
}

.calendar-card__title {
  color: #2a2025;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-style: italic;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 -1px 0 rgba(110, 82, 103, 0.1);
}

.calendar-card.is-ticking {
  animation: calendarBreath 920ms cubic-bezier(0.22, 0.82, 0.24, 1);
}

.section__content--event .section-heading {
  gap: 1rem;
  width: min(100%, 42rem);
  padding: 1.05rem 1.25rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-paper-line);
  box-shadow: var(--shadow-soft);
}

.section__content--event .section-heading .eyebrow,
.section__content--event .countdown__eyebrow {
  position: relative;
  padding: 0;
  letter-spacing: 0.1em;
  color: rgba(103, 79, 118, 0.9);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

.section__content--event .section-heading .eyebrow {
  padding: 0 1.45rem;
}

.section__content--event .section-heading .eyebrow::before,
.section__content--event .section-heading .eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 213, 230, 0), rgba(205, 213, 230, 0.4));
  transform: translateY(-50%);
}

.section__content--event .section-heading .eyebrow::before {
  left: -0.75rem;
}

.section__content--event .section-heading .eyebrow::after {
  right: -0.75rem;
  transform: translateY(-50%) scaleX(-1);
}

.section__content--event .section-heading h2 {
  max-width: 100%;
  color: rgba(46, 34, 53, 0.98);
  font-family: var(--font-heading);
  font-size: clamp(1.38rem, 5.2vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 0.98;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

.card-grid--event {
  position: relative;
  gap: 0.72rem;
  padding-top: 0.3rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 680ms ease 120ms,
    transform 680ms cubic-bezier(0.2, 0.82, 0.24, 1) 120ms;
}

.section__content--event.is-visible .card-grid--event {
  opacity: 1;
  transform: translateY(0);
}

.card--venue {
  position: relative;
  overflow: hidden;
  padding-top: 1.32rem;
}

.card--venue::before {
  content: "";
  position: absolute;
  top: -2.4rem;
  left: 50%;
  width: 9.5rem;
  height: 6rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 224, 197, 0.2), rgba(255, 224, 197, 0));
  filter: blur(12px);
  pointer-events: none;
}

.calendar-card__weekdays,
.calendar-card__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-card__weekday,
.calendar-card__day {
  display: grid;
  place-items: center;
}

.calendar-card__weekday {
  color: #30252b;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.calendar-card__cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2rem;
  color: #2b2127;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 -1px 0 rgba(96, 70, 90, 0.08);
}

.calendar-card__cell--empty {
  min-height: 2rem;
}

.calendar-card__cell--highlight .calendar-card__day {
  color: #7d544f;
  font-weight: 700;
  z-index: 1;
}

.calendar-card__heart {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.95rem;
  height: 2.7rem;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58' fill='none'%3E%3Cpath d='M32 54C30.4 52.6 28.9 51.4 27.5 50.1C16.2 40.6 8 33.8 8 24.1C8 16.7 13.6 11.3 20.7 11.3C24.7 11.3 28.6 13.2 31.1 16.2L32 17.3L32.9 16.2C35.4 13.2 39.3 11.3 43.3 11.3C50.4 11.3 56 16.7 56 24.1C56 33.8 47.8 40.6 36.5 50.1C35.1 51.4 33.6 52.6 32 54Z' stroke='%23b57b74' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

.calendar-card__heart.is-ticking {
  animation: heartSealPulse 920ms ease;
}

.venue__time {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.content-block {
  max-width: 36rem;
  margin: 0 auto;
  gap: 1rem;
}

.story-block {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.72rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 1.85rem 1.35rem 1.75rem;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid rgba(154, 141, 176, 0.16);
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(111, 86, 104, 0.08),
    var(--shadow-soft);
  overflow: hidden;
}

.story-block p:not(.signature) {
  max-width: 34rem;
  margin: 0 auto;
  color: rgba(57, 43, 63, 0.92);
  font-family: var(--font-body);
  font-size: 1.58rem;
  line-height: 1.64;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(90, 68, 96, 0.12);
}

.story-block--cinematic::before,
.story-block--cinematic::after {
  content: none;
}

.story-block--cinematic::before {
  top: 0;
}

.story-block--cinematic::after {
  bottom: 0;
}

.story-block__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.story-block__glow,
.story-block__spark {
  position: absolute;
  display: block;
  pointer-events: none;
}

.story-block__glow {
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.48;
}

.story-block__glow--one {
  top: 8%;
  left: 8%;
  width: 7.5rem;
  height: 7.5rem;
  background: radial-gradient(circle, rgba(255, 218, 186, 0.3), rgba(255, 218, 186, 0));
  animation: glowFloatA 9s ease-in-out infinite;
}

.story-block__glow--two {
  right: 7%;
  bottom: 12%;
  width: 8.5rem;
  height: 8.5rem;
  background: radial-gradient(circle, rgba(224, 212, 245, 0.32), rgba(224, 212, 245, 0));
  animation: glowFloatB 10.5s ease-in-out -1.8s infinite;
}

.story-block__spark {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 251, 244, 0.98), rgba(237, 222, 248, 0.42) 58%, rgba(237, 222, 248, 0));
  box-shadow: 0 0 18px rgba(238, 223, 252, 0.24);
}

.story-block__spark--one {
  top: 18%;
  right: 20%;
  animation: particleFloat 8.2s ease-in-out infinite;
}

.story-block__spark--two {
  bottom: 24%;
  left: 16%;
  animation: particleFloat 9s ease-in-out -1.5s infinite;
}

.story-block__spark--three {
  top: 52%;
  right: 12%;
  animation: particleFloat 7.4s ease-in-out -3s infinite;
}

.story-block > * {
  position: relative;
  z-index: 1;
}

.story-block__line--wide {
  max-width: 35rem;
}

.story-block__line--accent {
  max-width: 31rem;
  margin-top: 0.08rem;
  margin-bottom: 0.08rem;
  color: rgba(57, 43, 63, 0.92);
  padding: 0;
  border-radius: 0;
  background: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(90, 68, 96, 0.12);
}

.text-nowrap {
  white-space: nowrap;
}

.story-block__line--pause {
  margin-top: 0.12rem;
  color: rgba(57, 43, 63, 0.92);
}

.story-block__line--closing {
  max-width: 32rem;
  margin-top: 0.14rem;
  color: rgba(57, 43, 63, 0.92);
}

.story-block .signature {
  margin-top: 0.18rem;
  font-size: 2.18rem;
  line-height: 1;
  color: rgba(91, 63, 107, 0.9);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 -1px 0 rgba(100, 76, 92, 0.12);
}

.content-block--letter,
.content-block--closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.15rem 1.4rem 1.95rem;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(1.65deg) translateY(-3px);
  text-align: center;
}

.content-block--letter {
  box-shadow:
    var(--shadow-soft);
}

.content-block--letter::before {
  content: none;
}

.letter-meta {
  color: rgba(79, 45, 98, 0.8);
  font-size: 0.94rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-block--closing {
  --surface-shadow: var(--shadow-paper-letter);
  overflow: hidden;
  max-width: 34rem;
  padding: 4.6rem 1.6rem 4.2rem;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border-color: var(--color-paper-line);
  box-shadow: var(--surface-shadow);
}

.closing-title {
  max-width: 21rem;
  margin: 0 auto 0.9rem;
  color: rgba(76, 57, 69, 0.78);
  font-size: clamp(1.95rem, 8vw, 2.6rem);
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.closing-title span {
  display: block;
}

.stack-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #fff;
  font-size: 1.48rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(79, 44, 91, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(79, 44, 91, 0.22);
}

.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 8px 18px rgba(79, 44, 91, 0.16);
}

.button--secondary {
  background: linear-gradient(135deg, #2d252c, #181419);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.52);
  color: var(--color-text);
  border-color: rgba(108, 67, 122, 0.18);
  box-shadow: none;
}

.audio-toggle {
  min-height: 2.4rem;
  padding-inline: 0.82rem;
  background: rgba(255, 251, 246, 0.7);
  color: var(--color-primary-strong);
  border-color: rgba(108, 67, 122, 0.08);
  box-shadow: 0 6px 14px rgba(79, 44, 91, 0.045);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  opacity: 0.92;
}

.card {
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.countdown__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
}

.countdown__item {
  --surface-shadow: var(--shadow-paper-raised);
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.24rem;
  padding: 1.08rem 0.35rem 0.96rem;
  border-radius: var(--radius-md);
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid rgba(108, 67, 122, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 6px 14px rgba(24, 14, 34, 0.08),
    0 14px 24px rgba(24, 14, 34, 0.07);
  transition: transform 420ms ease, box-shadow 420ms ease, background-color 420ms ease;
}

.countdown__item.is-changing {
  animation: countdownCardTick 520ms cubic-bezier(0.24, 0.78, 0.26, 1);
}

.countdown__item strong {
  position: relative;
  z-index: 1;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(1.72rem, 7.8vw, 2.35rem);
  line-height: 1;
}

.countdown__item span {
  position: relative;
  z-index: 1;
}

.countdown__item.is-changing strong {
  animation: countdownDigitPulse 460ms cubic-bezier(0.24, 0.78, 0.26, 1);
}

.countdown__item span {
  color: var(--color-text-soft);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.card--dress-code {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  max-width: 29rem;
  margin: 0.08rem auto 0;
  padding: 0.98rem 1.1rem 0.9rem;
}

.card--dress-code h3 {
  color: rgba(103, 79, 118, 0.92);
  margin-bottom: 0.1rem;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

.card--dress-code p:last-child {
  max-width: 23rem;
  color: rgba(56, 42, 66, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

.timeline {
  gap: 0.95rem;
}

.timeline__item {
  --surface-shadow: var(--shadow-paper-deep);
  position: relative;
  isolation: isolate;
  padding: 1.5rem 1.5rem 1.4rem;
  text-align: center;
  overflow: hidden;
  border-left: 0;
  border-radius: 30px;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  transform: perspective(1200px) rotateX(1.55deg) translateY(-3px);
  box-shadow: var(--surface-shadow);
}

.timeline__time {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline__item h3 {
  margin-bottom: 0.28rem;
  font-size: clamp(2rem, 4.2vw, 2.45rem);
  line-height: 1.02;
}

.timeline__item p {
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1.28rem;
  line-height: 1.45;
}

.rsvp-layout {
  gap: 0.9rem;
}

.rsvp-copy {
  gap: 0.55rem;
  padding: 1.35rem 1.25rem 1.2rem;
  text-align: center;
}

.rsvp-copy .eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: none;
}

.rsvp-copy p:last-child {
  max-width: 28rem;
  margin: 0 auto;
  font-size: 1.3rem;
  line-height: 1.5;
}

.rsvp-deadline {
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-primary-strong);
}

.form {
  gap: 1.1rem;
  padding: 1.4rem 1.3rem 1.3rem;
}

.form__group {
  display: grid;
  gap: 0.38rem;
  text-align: left;
}

label {
  color: var(--color-text);
  font-size: 1.34rem;
  font-weight: 400;
}

input,
select,
textarea {
  --surface-shadow: var(--shadow-input);
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(108, 67, 122, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-text);
  box-shadow: var(--surface-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input,
select,
textarea {
  background-image:
    linear-gradient(rgba(255, 252, 247, 0.76), rgba(245, 238, 228, 0.82)),
    var(--paper-texture);
  background-size: auto, 240px auto;
  background-repeat: repeat, repeat;
  background-blend-mode: normal, multiply;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(108, 67, 122, 0.26);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible {
  outline: none;
  border-color: rgba(108, 67, 122, 0.42);
  box-shadow:
    0 0 0 4px rgba(108, 67, 122, 0.1),
    var(--shadow-input);
}

input:disabled {
  background: rgba(235, 227, 218, 0.82);
  color: var(--color-text-soft);
}

.checkbox {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox__box {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(119, 90, 111, 0.28);
  border-radius: 0.38rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 238, 228, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(110, 83, 99, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  flex: 0 0 auto;
}

.checkbox__box::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.38rem;
  width: 0.28rem;
  height: 0.56rem;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0.8);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.checkbox__label {
  color: var(--color-text);
}

.checkbox input:focus-visible + .checkbox__box {
  border-color: rgba(108, 67, 122, 0.46);
  box-shadow:
    0 0 0 4px rgba(108, 67, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(110, 83, 99, 0.08);
}

.checkbox input:checked + .checkbox__box {
  border-color: rgba(108, 67, 122, 0.64);
  background: linear-gradient(180deg, rgba(124, 83, 146, 0.18), rgba(255, 248, 251, 0.98));
}

.checkbox input:checked + .checkbox__box::after {
  border-right-color: #6b437a;
  border-bottom-color: #6b437a;
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.field-hint,
.field-error,
.form-status,
.gift-box__note {
  font-size: 1.18rem;
}

#guest-greeting,
#guest-dedication {
  font-size: 1.48rem;
  line-height: 1.65;
}

#guest-greeting {
  color: rgba(85, 49, 86, 0.92);
  font-weight: 600;
}

#guest-capacity,
.highlight-text--support {
  color: rgba(72, 46, 89, 0.9);
  font-size: 1.24rem;
  line-height: 1.55;
}

#guest-code,
.highlight-text--code {
  color: rgba(79, 45, 98, 0.84);
  font-size: 1.04rem;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

#guest-dedication {
  color: rgba(69, 35, 87, 0.94);
  margin-top: 0.2rem;
}

.field-hint,
.gift-box__note,
.form-status {
  color: var(--color-text-soft);
}

.stack-inline .form-status {
  flex: 1 0 100%;
}

.field-error {
  min-height: 1.1rem;
  color: var(--color-danger);
}

.form-status.is-success {
  color: var(--color-success);
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  max-width: 22rem;
  margin: 0.35rem auto 0;
  padding: 0.9rem 1rem 0.86rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top center, rgba(255, 232, 198, 0.3), rgba(255, 232, 198, 0) 55%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(246, 239, 230, 0.88));
  border: 1px solid rgba(111, 146, 129, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(83, 113, 100, 0.08);
  text-align: center;
}

.form-status.is-error {
  color: var(--color-danger);
}

.form-status__lead {
  color: rgba(56, 91, 75, 0.96);
  font-size: 1.32rem;
  line-height: 1.3;
}

.form-status__detail {
  color: rgba(82, 67, 76, 0.78);
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero__actions .button,
.stack-inline .button {
  min-width: 10.4rem;
}

.gift-box {
  --surface-shadow: var(--shadow-paper-deep);
  position: relative;
  isolation: isolate;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.6rem;
  max-width: 29rem;
  margin-inline: auto;
  padding: 1.35rem 1.15rem;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-lg);
  transform: perspective(1200px) rotateX(1.55deg) translateY(-3px);
  box-shadow: var(--surface-shadow);
}

.gift-box::before {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 5.2rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 231, 249, 0.26), rgba(240, 231, 249, 0));
  filter: blur(12px);
  opacity: 0;
  pointer-events: none;
}

.gift-box__details {
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  padding: 0.95rem 1rem 0.88rem;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border: 1px solid rgba(108, 67, 122, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(108, 67, 122, 0.04),
    0 4px 10px rgba(24, 14, 34, 0.05);
}

.gift-box__iban {
  color: var(--color-primary-strong);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
  word-break: break-word;
}

.promo-code {
  display: inline-block;
  max-width: 100%;
  text-align: center;
  color: var(--color-primary-strong);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accommodation-code {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem;
  box-sizing: border-box;
  width: min(100%, 21rem);
  margin-inline: auto;
  margin-top: 0.2rem;
  padding: 0.6rem 0.85rem 0.52rem;
  color: rgba(72, 46, 89, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(108, 67, 122, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
}

.button--copy {
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  font-size: 1.08rem;
  box-shadow: 0 9px 18px rgba(24, 20, 25, 0.12);
}

#info .button--copy {
  margin-top: 0.45rem;
}

.js-enhanced #regalo .card--gift .gift-box {
  opacity: 0;
  transform: perspective(1200px) rotateX(2.2deg) translateY(14px) scale(0.986);
}

.js-enhanced #regalo .card--gift .gift-box__details,
.js-enhanced #regalo .card--gift .button--copy {
  opacity: 0;
  transform: translateY(10px) scale(0.978);
}

.js-enhanced #regalo .card--gift.is-visible .gift-box {
  animation: giftSettleIn 1040ms cubic-bezier(0.22, 0.82, 0.24, 1) 120ms forwards;
}

.js-enhanced #regalo .card--gift.is-visible .gift-box::before {
  animation: giftGlowSweep 1280ms ease 220ms forwards;
}

.js-enhanced #regalo .card--gift.is-visible .gift-box__details {
  animation: innerPaperLift 900ms cubic-bezier(0.22, 0.82, 0.24, 1) 280ms forwards;
}

.js-enhanced #regalo .card--gift.is-visible .button--copy {
  animation: innerPaperLift 900ms cubic-bezier(0.22, 0.82, 0.24, 1) 420ms forwards;
}

.gift-box__cta {
  max-width: 24rem;
  color: rgba(95, 78, 88, 0.92);
  font-size: 0.98rem;
  line-height: 1.55;
}

.closing-script {
  color: rgba(53, 39, 60, 0.96);
  font-size: clamp(3rem, 13vw, 4.9rem);
  line-height: 0.94;
  margin-top: 0.25rem;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 -1px 0 rgba(94, 63, 100, 0.12),
    0 8px 16px rgba(124, 89, 75, 0.06);
}

.closing-message {
  max-width: 27rem;
  margin: 0.25rem auto 0;
  color: rgba(45, 34, 52, 0.98);
  font-size: clamp(3rem, 13vw, 4.9rem);
  line-height: 0.94;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 -1px 0 rgba(94, 63, 100, 0.12),
    0 8px 16px rgba(124, 89, 75, 0.06);
}

.brand__eyebrow,
.brand__names,
.hero__date--editorial,
.hero__promise,
.hero__guest,
#guest-greeting,
#guest-dedication,
.section-heading h2,
.section-heading .eyebrow,
.card h3,
.card p,
.timeline__item h3,
.timeline__item p,
.timeline__time,
.gift-box__iban,
.promo-code,
.countdown__item strong,
.countdown__item span,
.dress-note__line,
.dress-note__support,
.field-hint,
.field-error,
.form-status,
.gift-box__note,
.rsvp-deadline,
label {
  color: var(--color-text);
  text-shadow: var(--ink-emboss);
}

.section-heading h2,
.section-heading .eyebrow,
.section .card h3,
.section .card p,
.section .timeline__item h3,
.section .timeline__item p,
.section .timeline__time,
.section .gift-box__iban,
.section .promo-code,
.section .countdown__item strong,
.section .countdown__item span,
.section .field-hint,
.section .field-error,
.section .form-status,
.section .gift-box__note,
.section .rsvp-deadline,
.section .content-block--letter p,
.section .content-block--closing p,
.section label {
  color: var(--color-text);
  text-shadow: var(--ink-emboss);
}

.timeline__item,
.timeline__item h3,
.timeline__item p,
.timeline__time {
  filter: none;
}

.timeline__item h3,
.timeline__item p,
.timeline__time {
  color: var(--color-primary-strong);
  text-shadow: var(--ink-emboss);
}

.card h3,
.card p,
.content-block--letter p,
.content-block--closing p,
.gift-box__iban,
.gift-box__label,
.promo-code,
.countdown__item strong,
.countdown__item span,
.rsvp-copy p,
.rsvp-copy .eyebrow,
.form-status__lead,
.form-status__detail,
.field-hint,
.field-error,
.form-status,
.rsvp-deadline,
label {
  color: var(--color-primary-strong);
  text-shadow: var(--ink-emboss);
}

#regalo .card--gift p,
#rsvp .card--form p,
#rsvp .card--soft p,
#info .card p,
#info .promo-code,
#info .accommodation-code,
#info .card a,
#cronograma .timeline__item p,
#cronograma .timeline__item h3,
#cronograma .timeline__time {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42);
}

#rsvp .card--form,
#rsvp .card--soft,
#regalo .card--gift,
#info .card,
#cronograma .timeline__item {
  filter: none;
  will-change: auto;
}

#evento .card--venue,
#evento .card--dress-code {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  padding: 1.45rem 1.25rem 1.3rem;
}

#evento .card--countdown::after,
#evento .card--venue::after,
#evento .card--dress-code::after {
  content: none;
}

#evento .calendar-card {
  box-shadow: var(--shadow-soft);
}

#evento .countdown__item {
  --surface-shadow:
    0 6px 14px rgba(24, 14, 34, 0.08),
    0 12px 22px rgba(24, 14, 34, 0.08);
  transform: none;
}

#cronograma .timeline__item {
  --surface-shadow:
    0 4px 8px rgba(24, 14, 34, 0.14),
    0 30px 50px rgba(24, 14, 34, 0.28),
    0 56px 86px rgba(16, 10, 24, 0.18);
  transform: perspective(1400px) rotateX(2.2deg) translateY(-5px);
}

#rsvp .card--form,
#rsvp .card--soft {
  --surface-shadow:
    0 4px 8px rgba(24, 14, 34, 0.14),
    0 30px 52px rgba(24, 14, 34, 0.28),
    0 56px 86px rgba(16, 10, 24, 0.18);
  transform: perspective(1400px) rotateX(2.1deg) translateY(-5px);
}

#rsvp .card--form::after {
  content: none;
}

#rsvp input,
#rsvp select,
#rsvp textarea {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 3px 5px rgba(24, 14, 34, 0.08),
    0 14px 24px rgba(24, 14, 34, 0.14);
}

#ubicaciones .section-heading h2,
#cronograma .section-heading h2,
#regalo .section-heading h2,
#info .section-heading h2,
#ubicaciones .section-heading .eyebrow,
#cronograma .section-heading .eyebrow,
#regalo .section-heading .eyebrow,
#info .section-heading .eyebrow {
  color: rgba(43, 32, 49, 0.98);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

#regalo #gift-title,
#info .section-heading h2 {
  max-width: 20rem;
}

#regalo #gift-message {
  color: rgba(224, 217, 235, 0.92);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.36);
}

#regalo .section-heading {
  width: min(100%, 34rem);
  max-width: 34rem;
  padding: 0.85rem 1.6rem 0.95rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 34px rgba(12, 9, 18, 0.2);
}

#regalo #gift-eyebrow {
  color: rgba(103, 79, 118, 0.9);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

#regalo #gift-title {
  max-width: 28rem;
  color: rgba(46, 34, 53, 0.98);
  font-size: clamp(2.3rem, 5.2vw, 3.35rem);
  line-height: 1.08;
}

#regalo .card--gift {
  gap: 0.9rem;
  padding: 1.55rem 1.2rem 1.4rem;
  max-width: 54rem;
  margin-inline: auto;
}

#regalo #gift-message {
  max-width: 33rem;
  color: rgba(86, 67, 95, 0.92);
  font-size: 1.34rem;
  line-height: 1.52;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

#regalo .gift-box {
  margin-top: 0;
  max-width: 27rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(108, 67, 122, 0.08),
    0 16px 28px rgba(24, 14, 34, 0.16),
    0 28px 42px rgba(16, 10, 24, 0.1);
}

#regalo .gift-box__details {
  width: 100%;
}

#regalo .gift-box__label {
  color: rgba(101, 79, 113, 0.9);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#info .card-grid--three {
  gap: 0.68rem;
}

#info .card {
  align-content: start;
  gap: 0.45rem;
  padding: 1.08rem 0.96rem 0.98rem;
}

#info .card h3 {
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  line-height: 1.04;
}

#info .card p,
#info .card a,
#info .accommodation-code {
  font-size: 1.16rem;
  line-height: 1.42;
}

.topbar .brand__eyebrow,
.topbar .brand__names {
  color: rgba(63, 48, 80, 0.94);
}

.content-block--closing .closing-title {
  color: #6a3ea0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 2px 0 rgba(255, 255, 255, 0.74),
    0 -1px 0 rgba(86, 48, 130, 0.24),
    0 8px 16px rgba(86, 48, 130, 0.08);
}

.content-block--closing .closing-script,
.content-block--closing .closing-message,
.content-block--closing .closing-signature {
  color: #6a3ea0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 0 rgba(255, 255, 255, 0.8),
    0 -1px 0 rgba(86, 48, 130, 0.28),
    0 -2px 0 rgba(86, 48, 130, 0.14),
    0 8px 16px rgba(86, 48, 130, 0.08);
}

.closing-signature {
  color: #6a3ea0;
  margin-top: 1.15rem;
  font-size: 2.72rem;
  opacity: 0.86;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 2px 0 rgba(255, 255, 255, 0.84),
    0 -1px 0 rgba(95, 70, 94, 0.28),
    0 -2px 0 rgba(95, 70, 94, 0.18);
}

.js-enhanced .content-block--closing.reveal-paper .closing-title,
.js-enhanced .content-block--closing.reveal-paper .closing-script,
.js-enhanced .content-block--closing.reveal-paper .closing-message,
.js-enhanced .content-block--closing.reveal-paper .closing-signature {
  opacity: 0;
  transform: translateY(14px) scale(0.988);
}

.js-enhanced .content-block--closing.reveal-paper.is-visible .closing-title {
  animation: closingLineReveal 960ms cubic-bezier(0.22, 0.82, 0.24, 1) 160ms forwards;
}

.js-enhanced .content-block--closing.reveal-paper.is-visible .closing-script {
  animation: closingLineReveal 1040ms cubic-bezier(0.22, 0.82, 0.24, 1) 320ms forwards;
}

.js-enhanced .content-block--closing.reveal-paper.is-visible .closing-message {
  animation: closingLineReveal 1040ms cubic-bezier(0.22, 0.82, 0.24, 1) 520ms forwards;
}

.js-enhanced .content-block--closing.reveal-paper.is-visible .closing-signature {
  animation: closingLineReveal 960ms cubic-bezier(0.22, 0.82, 0.24, 1) 700ms forwards;
}

.closing-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.invitation-revealed .event-atmosphere,
body.invitation-revealed .closing-atmosphere {
  animation: atmosphereDrift 18s ease-in-out infinite;
}

body.invitation-revealed .site-shell__backdrop {
  opacity: 0.82;
}

body.invitation-revealed .event-atmosphere {
  animation-duration: 15.5s;
}

body.invitation-revealed .closing-atmosphere {
  animation-duration: 20s;
}

.closing-atmosphere::before,
.closing-atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.56;
}

.closing-atmosphere::before {
  top: 10%;
  left: 8%;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(242, 230, 255, 0.34), rgba(242, 230, 255, 0));
  animation: glowFloatA 7.5s ease-in-out infinite;
}

.closing-atmosphere::after {
  right: 6%;
  bottom: 12%;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(231, 210, 248, 0.3), rgba(231, 210, 248, 0));
  animation: glowFloatB 8.5s ease-in-out infinite;
}

.closing-particle {
  position: absolute;
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 247, 238, 0.98), rgba(234, 220, 248, 0.48) 58%, rgba(234, 220, 248, 0));
  box-shadow: 0 0 22px rgba(238, 223, 252, 0.38);
  opacity: 0.66;
}

.closing-particle--2,
.closing-particle--5 {
  opacity: 0.34;
}

.closing-particle--1 {
  top: 18%;
  left: 14%;
  animation: particleFloat 8s ease-in-out infinite;
}

.closing-particle--2 {
  top: 24%;
  right: 18%;
  animation: particleFloat 9s ease-in-out -1.6s infinite;
}

.closing-particle--3 {
  top: 42%;
  left: 22%;
  animation: particleFloat 7.6s ease-in-out -3.2s infinite;
}

.closing-particle--4 {
  top: 58%;
  right: 24%;
  animation: particleFloat 8.8s ease-in-out -2.4s infinite;
}

.closing-particle--5 {
  bottom: 22%;
  left: 18%;
  animation: particleFloat 7.2s ease-in-out -4.1s infinite;
}

.closing-particle--6 {
  bottom: 18%;
  right: 14%;
  animation: particleFloat 8.2s ease-in-out -5s infinite;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 12, 18, 0.42);
}

.modal {
  position: relative;
  isolation: isolate;
  width: min(100%, 32rem);
  padding: 1.7rem;
  background: var(--paper-card-background);
  background-size: var(--paper-card-background-size);
  background-repeat: var(--paper-card-background-repeat);
  background-blend-mode: var(--paper-card-background-blend);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.modal__content {
  display: grid;
  gap: 1rem;
}

.invite-sheet::after,
.calendar-card::after,
.content-block--letter::after,
.content-block--closing::after,
.timeline__item::after,
.countdown__item::after,
.modal::after {
  content: none;
}

.invite-sheet::after {
  content: none;
}

.botanical-corners {
  --botanical-size: 8rem;
  --botanical-opacity: 0.18;
}

.botanical-corner {
  position: absolute;
  z-index: 0;
  width: var(--botanical-size);
  height: var(--botanical-size);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--botanical-opacity);
  filter: saturate(0.92);
}

.botanical-corner--up-left {
  top: -0.15rem;
  left: -0.15rem;
  background-position: top left;
  background-image: url("../img/floral-corner-up-left.png");
}

.botanical-corner--up-right {
  top: -0.15rem;
  right: -0.15rem;
  background-position: top right;
  background-image: url("../img/floral-corner-up-right.png");
}

.botanical-corner--down-left {
  bottom: -0.15rem;
  left: -0.15rem;
  background-position: bottom left;
  background-image: url("../img/floral-corner-down-left.png");
}

.botanical-corner--down-right {
  right: -0.15rem;
  bottom: -0.15rem;
  background-position: bottom right;
  background-image: url("../img/floral-corner-down-right.png");
}

.botanical-corners--story {
  --botanical-size: 9.5rem;
  --botanical-opacity: 0.16;
}

.botanical-corners--hero {
  --botanical-size: 9.5rem;
  --botanical-opacity: 0.16;
}

.botanical-corners--closing {
  --botanical-size: 9.5rem;
  --botanical-opacity: 0.16;
}

#evento .section-heading .eyebrow,
#evento .countdown__eyebrow {
  color: rgba(103, 79, 118, 0.9);
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 3.2vw, 1.28rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 -1px 0 rgba(94, 63, 100, 0.08);
}

.content-block--closing.botanical-corners::before,
.content-block--closing.botanical-corners::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--botanical-size);
  height: var(--botanical-size);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--botanical-opacity);
  filter: saturate(0.92);
}

.content-block--closing.botanical-corners::before {
  top: -0.15rem;
  right: -0.15rem;
  background-position: top right;
  background-image: url("../img/floral-corner-up-right.png");
}

.content-block--closing.botanical-corners::after {
  bottom: -0.15rem;
  left: -0.15rem;
  background-position: bottom left;
  background-image: url("../img/floral-corner-down-left.png");
}

.invite-sheet > *,
.card > *,
.content-block--letter > *,
.content-block--closing > *,
.timeline__item > *,
.gift-box > *,
.modal > * {
  position: relative;
  z-index: 1;
}

.invite-sheet .eyebrow,
.invite-sheet .hero__date--editorial,
.invite-sheet .hero__promise,
.invite-sheet .button,
.card h3,
.card p,
.timeline__item h3,
.timeline__item p,
.timeline__time,
.gift-box__iban,
.section-heading h2,
.section-heading .eyebrow,
.closing-script,
.closing-signature {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 -1px 0 rgba(100, 76, 92, 0.1);
}

.invite-sheet,
.card,
.content-block--letter,
.content-block--closing,
.timeline__item,
.gift-box,
.modal,
.countdown__item,
input,
select,
textarea {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(111, 86, 104, 0.08),
    var(--surface-shadow, var(--shadow-card));
}

.modal__title {
  font-size: 2rem;
}

.site-shell main > .section:not(.hero) {
  transition: opacity 600ms ease, transform 600ms ease;
}

body.invitation-closed .site-shell main > .section,
body.invitation-fading-envelope .site-shell main > .section,
body.invitation-opening .site-shell main > .section,
body.invitation-open .site-shell main > .section {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

body.invitation-revealed .site-shell main > .section {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.invitation-revealed .site-shell main > .section {
  transition-delay: 80ms;
}

@keyframes seal-release {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  36% {
    transform: translate(-50%, -51%) scale(0.96);
    opacity: 1;
  }
  68% {
    transform: translate(-50%, -58%) scale(0.88);
    opacity: 0.74;
  }
  100% {
    transform: translate(-50%, -66%) scale(0.78);
    opacity: 0;
  }
}

@keyframes flap-open {
  0% {
    transform: rotateX(0deg);
  }
  18% {
    transform: rotateX(10deg);
  }
  36% {
    transform: rotateX(48deg);
  }
  68% {
    transform: rotateX(132deg);
  }
  88% {
    transform: rotateX(170deg);
  }
  100% {
    transform: rotateX(180deg);
  }
}

@keyframes letter-emerge {
  0% {
    transform: translateY(54px);
    opacity: 0;
  }
  18% {
    transform: translateY(54px);
    opacity: 0;
  }
  34% {
    transform: translateY(46px);
    opacity: 0.05;
  }
  58% {
    transform: translateY(26px);
    opacity: 0.52;
  }
  82% {
    transform: translateY(4px);
    opacity: 0.82;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0.98;
  }
}

@keyframes envelope-sequence-motion {
  0% {
    transform: translateY(0) scale(1);
  }
  38% {
    transform: translateY(-2px) scale(1.002);
  }
  72% {
    transform: translateY(-8px) scale(1.01);
  }
  100% {
    transform: translateY(-10px) scale(1.06);
  }
}

@keyframes entry-sequence-fade {
  0% {
    opacity: 1;
    transform: translateY(-34px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-46px) scale(1.01);
  }
}

@keyframes glowFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(10px, -12px, 0) scale(1.06);
    opacity: 0.66;
  }
}

@keyframes glowFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(-12px, 10px, 0) scale(1.08);
    opacity: 0.54;
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.28);
    opacity: 0.82;
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.2;
  }

  30% {
    transform: translate3d(3px, -10px, 0) scale(1.12);
    opacity: 0.6;
  }

  65% {
    transform: translate3d(-2px, -18px, 0) scale(0.98);
    opacity: 0.34;
  }
}

@keyframes countdownCardTick {
  0% {
    transform: perspective(1100px) rotateX(1deg) translateY(0) scale(1);
  }
  50% {
    transform: perspective(1100px) rotateX(1.12deg) translateY(-1.5px) scale(1.006);
  }
  100% {
    transform: perspective(1100px) rotateX(1deg) translateY(0) scale(1);
  }
}

@keyframes countdownDigitPulse {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.94;
  }
  45% {
    transform: translateY(-1.5px) scale(1.018);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes countdownHaloPulse {
  0% {
    opacity: 0.42;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.58;
    transform: translateX(-50%) scale(1.03);
  }
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes calendarBreath {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-1px) scale(1.006);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes heartSealPulse {
  0% {
    transform: scale(1);
    opacity: 0.86;
  }
  40% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes giftSettleIn {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateX(2.2deg) translateY(14px) scale(0.986);
  }
  55% {
    opacity: 1;
    transform: perspective(1200px) rotateX(1.2deg) translateY(-2px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateX(1.55deg) translateY(-3px) scale(1);
  }
}

@keyframes innerPaperLift {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.978);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes giftGlowSweep {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  45% {
    opacity: 0.58;
    transform: translateY(0) scale(1.04);
  }
  100% {
    opacity: 0.18;
    transform: translateY(0) scale(1);
  }
}

@keyframes closingLineReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes foilSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  18% {
    opacity: 0.18;
  }
  46% {
    transform: translateX(18%);
    opacity: 0.34;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes eventGlowPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.42;
  }

  50% {
    transform: translateX(-50%) scale(1.06);
    opacity: 0.7;
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    transform: scaleX(0.72);
    opacity: 0.42;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes ribbon-release {
  0% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
  48% {
    opacity: 0.92;
    transform: translateY(-50%) scaleX(0.998);
  }
  100% {
    opacity: 0;
    transform: translateY(-55%) scaleX(0.94);
  }
}

@keyframes envelope-glow-pulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

@keyframes paperFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.003);
  }
}

@keyframes atmosphereDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  50% {
    transform: translate3d(0, -8px, 0);
    opacity: 0.96;
  }
}

@keyframes ambientParticlesDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.015);
    opacity: 0.62;
  }
}

.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.js-enhanced .reveal-paper {
  opacity: 0;
  transform: translateY(30px) scale(0.985) rotateX(4deg);
  transform-origin: center top;
  transition:
    opacity 860ms ease,
    transform 860ms cubic-bezier(0.2, 0.82, 0.24, 1),
    filter 860ms ease;
  filter: saturate(0.94);
}

.js-enhanced .reveal-paper.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: saturate(1);
}

.js-enhanced .reveal-veil {
  opacity: 0;
  transform: translateY(24px) scale(0.992);
  filter: blur(5px);
  transition:
    opacity 780ms ease,
    transform 780ms cubic-bezier(0.2, 0.82, 0.24, 1),
    filter 780ms ease;
}

.js-enhanced .reveal-veil.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.js-enhanced .reveal-ink {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.22, 0.82, 0.24, 1),
    filter 720ms ease;
}

.js-enhanced .reveal-ink.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.js-enhanced .reveal-ceremony {
  opacity: 0;
  transform: translateY(34px) scale(0.978);
  filter: saturate(0.92);
  transition:
    opacity 940ms ease,
    transform 940ms cubic-bezier(0.18, 0.84, 0.22, 1),
    filter 940ms ease,
    box-shadow 480ms ease;
}

.js-enhanced .reveal-ceremony.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.story-block > .reveal:nth-of-type(1) {
  transition-delay: 0ms;
}

.story-block > .reveal:nth-of-type(2) {
  transition-delay: 90ms;
}

.story-block > .reveal:nth-of-type(3) {
  transition-delay: 180ms;
}

.story-block > .reveal:nth-of-type(4) {
  transition-delay: 270ms;
}

.story-block > .reveal:nth-of-type(5) {
  transition-delay: 360ms;
}

.story-block > .reveal:nth-of-type(6) {
  transition-delay: 450ms;
}

.story-block > .reveal:nth-of-type(7) {
  transition-delay: 540ms;
}

.section-heading.reveal-ink {
  transition-delay: 40ms;
}

.card-grid .reveal-veil:nth-child(1),
.rsvp-layout .reveal-veil:nth-child(1) {
  transition-delay: 80ms;
}

.card-grid .reveal-veil:nth-child(2),
.rsvp-layout .reveal-paper:nth-child(2) {
  transition-delay: 160ms;
}

.card-grid .reveal-veil:nth-child(3) {
  transition-delay: 240ms;
}

.timeline .reveal-veil:nth-child(1) {
  transition-delay: 80ms;
}

.timeline .reveal-veil:nth-child(2) {
  transition-delay: 160ms;
}

.timeline .reveal-veil:nth-child(3) {
  transition-delay: 240ms;
}

.timeline .reveal-veil:nth-child(4) {
  transition-delay: 320ms;
}

@media (max-width: 480px) {
  body {
    font-size: 1.42rem;
  }

  .section {
    padding: calc(var(--section-space) * 0.88) 0;
  }

  .topbar {
    gap: 0.72rem;
    padding: 0.85rem 0.9rem 0.72rem;
  }

  .brand__eyebrow {
    font-size: 1.08rem;
  }

  .brand__names {
    font-size: 2.44rem;
  }

  .audio-toggle {
    min-height: 2.18rem;
    padding-inline: 0.72rem;
    font-size: 1.12rem;
  }

  .section__content,
  .hero__content,
  .card-grid,
  .content-block,
  .timeline,
  .form,
  .section-heading,
  .gift-box,
  .rsvp-layout,
  .countdown__grid {
    gap: 1rem;
  }

  .section__content {
    gap: 1.35rem;
  }

  .section__content > .section-heading + .card,
  .section__content > .section-heading + .card-grid,
  .section__content > .section-heading + .timeline,
  .section__content > .section-heading + .rsvp-layout,
  .section__content > .section-heading + .countdown {
    margin-top: 0.3rem;
  }

  .section__content > .card + .card-grid,
  .section__content > .countdown + .card-grid {
    margin-top: 0.3rem;
  }

  .section-heading {
    justify-self: center;
    width: min(100%, 21rem);
    padding: 0.82rem 1rem 0.74rem;
  }

  .section-heading h2 {
    font-size: clamp(2.75rem, 12vw, 3.45rem);
    line-height: 1.02;
  }

  .invite-sheet {
    padding: 2.45rem 1.15rem 2.05rem;
    gap: 1.12rem;
  }

  #hero .invite-sheet {
    padding-inline: 0.85rem;
  }

  .hero__guest {
    max-width: 19rem;
    font-size: clamp(1.18rem, 4.8vw, 1.48rem);
    letter-spacing: 0.01em;
  }

  .hero__date--editorial {
    width: max-content;
    max-width: 100%;
    font-size: clamp(1.38rem, 6.8vw, 2.85rem);
    line-height: 1.1;
  }

  @media (max-width: 380px) {
    #hero .invite-sheet {
      padding-inline: 0.68rem;
    }

    .hero__date--editorial {
      font-size: clamp(1.22rem, 6.2vw, 1.48rem);
    }
  }

  .hero__promise {
    max-width: 18.5rem;
    font-size: clamp(2rem, 8.9vw, 2.75rem);
    line-height: 1.1;
  }

  .hero__actions {
    width: 100%;
    max-width: 15.6rem;
    gap: 0.58rem;
  }

  .hero__actions .button,
  .stack-inline .button {
    width: 100%;
    min-width: 0;
  }

  .card {
    padding: 1.22rem 1.05rem;
  }

  .personal-agenda {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .personal-agenda__card:first-child {
    grid-column: 1 / -1;
  }

  .personal-agenda__card {
    padding: 1.05rem 0.95rem 1rem;
  }

  .card p,
  .timeline__item p,
  .content-block p {
    font-size: 1.56rem;
  }

  .card:hover {
    transform: none;
  }

  .countdown__grid {
    gap: 0.55rem;
  }

  .countdown__item {
    padding: 1rem 0.25rem 0.88rem;
  }

  .countdown__item strong {
    font-size: clamp(2rem, 8.9vw, 2.55rem);
  }

  .countdown__item span {
    font-size: 1.16rem;
    letter-spacing: 0.035em;
  }

  .story-block {
    padding: 1.6rem 1rem 1.5rem;
  }

  .story-block__line,
  .story-block__line--accent,
  .story-block__line--pause,
  .story-block p:not(.signature) {
    font-size: 1.94rem;
    line-height: 1.78;
  }

  .story-block__line--accent {
    padding-inline: 0.38rem;
  }

  .story-block .signature {
    font-size: 2.34rem;
    margin-top: 0.28rem;
  }

  #guest-greeting,
  #guest-dedication {
    font-size: 1.64rem;
    line-height: 1.6;
  }

  #guest-capacity,
  .highlight-text--support {
    font-size: 1.38rem;
    line-height: 1.5;
  }

  #guest-code,
  .highlight-text--code,
  .letter-meta {
    font-size: 1.08rem;
  }

  .rsvp-copy {
    gap: 0.45rem;
    padding: 1.05rem 0.95rem 0.98rem;
    background: var(--paper-card-background);
    background-size: var(--paper-card-background-size);
    background-repeat: var(--paper-card-background-repeat);
    background-blend-mode: var(--paper-card-background-blend);
    border: 1px solid var(--color-paper-line);
    box-shadow: var(--shadow-paper-deep);
    transform: perspective(1200px) rotateX(1.75deg) translateY(-3px);
    overflow: hidden;
  }

  .rsvp-copy p:last-child {
    max-width: 19rem;
    font-size: 1.22rem;
    line-height: 1.45;
  }

  .card--dress-code {
    max-width: 20rem;
    margin-top: 0.15rem;
    padding: 0.98rem 1rem 0.9rem;
  }

  .card--dress-code p:last-child {
    max-width: 18rem;
    font-size: 1.18rem;
    line-height: 1.45;
  }

  #info .card-grid--three {
    gap: 0.85rem;
  }

  #info .card {
    padding: 1.15rem 1rem 1.08rem;
  }

  #info .stack-inline {
    gap: 0.5rem;
  }

  .form__group {
    gap: 0.38rem;
  }

  input,
  select,
  textarea {
    padding: 0.88rem 0.92rem;
  }

  .field-hint,
  .field-error,
  .form-status,
  .gift-box__note,
  .rsvp-deadline {
    font-size: 1.02rem;
    line-height: 1.42;
  }

  .gift-box {
    gap: 0.78rem;
    padding: 0.95rem;
  }

  .botanical-corners--story {
    --botanical-size: 6.8rem;
    --botanical-opacity: 0.14;
  }

  .botanical-corners--hero {
    --botanical-size: 6.8rem;
    --botanical-opacity: 0.14;
  }

  .botanical-corners--closing {
    --botanical-size: 6.8rem;
    --botanical-opacity: 0.14;
  }

  .gift-box__iban {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .promo-code {
    font-size: clamp(0.94rem, 4.5vw, 1.08rem);
  }

  .accommodation-code {
    padding: 0.5rem 0.7rem 0.46rem;
    gap: 0.24rem;
  }

  .button--copy {
    min-height: 2.5rem;
    font-size: 0.98rem;
  }

  .closing-script {
    font-size: clamp(3rem, 13vw, 3.8rem);
  }

  .closing-message {
    font-size: clamp(3rem, 13vw, 3.8rem);
    line-height: 0.98;
  }

  .closing-title {
    max-width: 20rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
  }

  .content-block--closing {
    padding: 3.9rem 1.15rem 3.5rem;
  }

  .closing-signature {
    margin-top: 0.9rem;
    font-size: 2.42rem;
  }

  .entry-screen {
    padding: 1.5rem 0.85rem 2rem;
  }

  .entry-screen::before {
    background:
      radial-gradient(circle at 50% 44%, rgba(116, 82, 138, 0.24), transparent 22%),
      radial-gradient(circle at 50% 48%, rgba(255, 245, 230, 0.1), transparent 24%),
      radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05), transparent 18%);
  }

  .entry-screen__content {
    width: 100%;
    min-height: calc(100dvh - 3.75rem);
    gap: 2.35rem;
    align-content: center;
    transform: translateY(-34px);
  }

  .entry-screen__eyebrow {
    font-size: 3.2rem;
    line-height: 1.05;
  }

  .entry-screen__guest {
    font-size: 1.96rem;
  }

  .entry-screen__hint {
    font-size: 1.48rem;
  }

  .envelope-button {
    width: 100%;
    display: grid;
    justify-items: center;
  }

  .envelope {
    width: min(98vw, 396px);
  }

  body.invitation-closed .envelope__letter {
    transform: translateY(60px);
    opacity: 0;
  }

  .envelope__back {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -20px 26px rgba(0, 0, 0, 0.28),
      inset 14px 0 20px rgba(255, 255, 255, 0.02),
      inset -14px 0 20px rgba(0, 0, 0, 0.12),
      0 18px 34px rgba(0, 0, 0, 0.2);
  }

  .envelope__back::before,
  .envelope__back::after {
    height: 76%;
  }

  .envelope__flap {
    background: linear-gradient(180deg, #3a313f 0%, #221b24 44%, #171219 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 -12px 18px rgba(0, 0, 0, 0.22),
      0 8px 14px rgba(0, 0, 0, 0.16);
  }

  .envelope__ribbon {
    background: linear-gradient(90deg, #452152 0%, #6f4788 16%, #9a7ab9 50%, #6f4788 84%, #452152 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -1px 0 rgba(0, 0, 0, 0.24),
      0 10px 20px rgba(0, 0, 0, 0.22);
  }

  .envelope__ribbon::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 28%, rgba(0, 0, 0, 0.2));
  }

  .envelope__ribbon::after {
    opacity: 0.3;
  }

  .envelope__seal {
    width: 5.2rem;
    height: 5.2rem;
    box-shadow:
      0 16px 28px rgba(0, 0, 0, 0.3),
      0 5px 0 rgba(94, 61, 35, 0.24),
      inset 0 2px 4px rgba(255, 255, 255, 0.38),
      inset 0 -6px 10px rgba(122, 86, 48, 0.3);
  }

  .envelope__letter {
    z-index: 1;
    box-shadow:
      0 8px 12px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  .envelope__video {
    inset: 0;
  }

  .entry-screen__hint {
    max-width: 18rem;
    margin-top: 1.45rem;
    padding-inline: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (min-width: 700px) {
  .entry-screen {
    padding: 2.5rem 1.5rem 2.75rem;
  }

  .entry-screen__content {
    gap: 1.5rem;
    min-height: min(100dvh - 5rem, 44rem);
  }

  .entry-screen__eyebrow {
    font-size: 2.15rem;
  }

  .entry-screen__hint {
    max-width: 20rem;
  }

  .container {
    width: min(calc(100% - 3rem), var(--container-width));
  }

  .topbar {
    padding: 1rem 2rem;
  }

  .card-grid--two,
  .card-grid--event {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .personal-agenda.card-grid--three {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .rsvp-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .gift-box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(calc(100% - 2.5rem), 42rem);
  }

  .section__content {
    gap: 1.55rem;
  }

  .section__content > .section-heading + .card,
  .section__content > .section-heading + .card-grid,
  .section__content > .section-heading + .timeline,
  .section__content > .section-heading + .rsvp-layout,
  .section__content > .section-heading + .countdown {
    margin-top: 0.75rem;
  }

  .personal-agenda.card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .card-grid--two,
  .card-grid--event,
  .card-grid--three,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  #info .card-grid--three {
    gap: 0.9rem;
  }

  .card--dress-code {
    max-width: 24rem;
    margin-top: 0.15rem;
  }
}

@media (max-width: 480px) {
  .personal-agenda.card-grid--three {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }

  .personal-agenda__card:first-child {
    grid-column: auto;
  }

  .personal-agenda__card {
    min-height: auto;
  }
}

@media (max-width: 1180px) {
  .personal-agenda__card:first-child {
    grid-column: 1 / -1;
  }

  .rsvp-copy {
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .container {
    width: min(calc(100% - 3rem), 48rem);
  }

  .section__content {
    gap: 1.4rem;
  }

  .personal-agenda.card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #info .card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #info .card-grid--three > :last-child {
    grid-column: 1 / -1;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }
}
