/* Premium RSVP v13 — previous flap with long-name clearance and late hold */
.rsvp-envelope-paper {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.rsvp-envelope-flap-wrap {
  transform: translate3d(0, 0, 0) rotateX(0deg);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.rsvp-envelope-flap,
.rsvp-envelope-flap-wrap::after {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rsvp-envelope-flap-wrap::after {
  display: none;
  transform: none;
  opacity: 0;
  animation: none;
}

.rsvp-envelope-stage.is-opening .rsvp-envelope-flap-wrap {
  animation: rsvp-flap-open-safe-v9 1.18s cubic-bezier(0.36, 0, 0.18, 1)
    both;
}

.rsvp-envelope-stage.is-opening .rsvp-envelope-flap-wrap::after {
  display: none;
  transform: none;
  opacity: 0;
  animation: none;
}

.rsvp-envelope-stage.is-opening .rsvp-envelope-paper {
  animation:
    rsvp-envelope-lift-v8 1.42s cubic-bezier(0.33, 0, 0.18, 1) both,
    rsvp-envelope-fade-v8 0.36s ease-out 1.04s both;
}

.rsvp-envelope-stage.is-opening::before {
  animation-play-state: paused;
}

.rsvp-envelope-stage.is-opening .rsvp-wax-seal::after {
  animation: none;
}

.rsvp-envelope-stage.is-opening .rsvp-envelope-address {
  animation: rsvp-address-hold-v13 1.38s cubic-bezier(0.22, 0.61, 0.36, 1)
    both;
}

.rsvp-envelope-address {
  inset: 5% 10% auto;
  gap: 3px;
  padding-inline: 6px;
}

.rsvp-envelope-address strong {
  display: block;
  overflow: visible;
  max-width: 100%;
  color: var(--rsvp-wine);
  font-size: clamp(27px, 6vw, 38px);
  line-height: 1;
  text-wrap: balance;
  white-space: normal;
}

.rsvp-envelope-stage.is-opening .rsvp-tap-hint {
  animation: rsvp-hint-release-v4 0.46s cubic-bezier(0.22, 0.61, 0.36, 1)
    both;
}

.rsvp-page.rsvp-premium-page.is-open .rsvp-premium-hero {
  animation: rsvp-hero-enter-v8 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rsvp-flap-open-safe-v9 {
  0%,
  3% {
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
  100% {
    transform: translate3d(0, -5px, 0) rotateX(84deg);
  }
}

@keyframes rsvp-address-hold-v13 {
  0%,
  24% {
    opacity: 1;
    transform: translate3d(0, 0, 2px);
  }
  66% {
    opacity: 1;
    transform: translate3d(0, -10px, 2px);
  }
  88% {
    opacity: 1;
    transform: translate3d(0, -28px, 2px);
  }
  100% {
    opacity: 0.35;
    transform: translate3d(0, -42px, 2px);
  }
}

@keyframes rsvp-envelope-lift-v8 {
  from {
    transform: translate3d(0, 0, 0) rotate(-0.12deg) scale(1);
  }
  to {
    transform: translate3d(0, -78px, 0) rotate(0) scale(1.07);
  }
}

@keyframes rsvp-envelope-fade-v8 {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes rsvp-hero-enter-v8 {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(1.012);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.rsvp-scenic-break blockquote {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 8vw, 88px) clamp(34px, 7vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(255, 255, 255, 0.68),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.5),
      rgba(244, 232, 216, 0.3)
    );
  box-shadow:
    0 30px 82px rgba(78, 48, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(181, 138, 74, 0.13);
  backdrop-filter: blur(22px) saturate(1.32);
  -webkit-backdrop-filter: blur(22px) saturate(1.32);
}

.rsvp-scenic-break blockquote span {
  position: absolute;
  z-index: 0;
  top: 16px;
  left: clamp(22px, 4vw, 42px);
  margin: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.rsvp-scenic-break blockquote span::before,
.rsvp-scenic-break blockquote::after {
  color: #c5a15d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 9vw, 94px);
  font-weight: 400;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 9px 22px rgba(125, 83, 35, 0.15);
  pointer-events: none;
}

.rsvp-scenic-break blockquote span::before {
  content: "“";
}

.rsvp-scenic-break blockquote::after {
  content: "”";
  position: absolute;
  z-index: 0;
  right: clamp(22px, 4vw, 42px);
  bottom: 4px;
}

.rsvp-cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(calc(100% - 32px), 900px);
  max-width: 900px;
  margin: clamp(28px, 4vw, 54px) auto clamp(76px, 10vw, 112px);
  padding: clamp(70px, 9vw, 100px) clamp(24px, 7vw, 72px);
  border: 1px solid rgba(255, 244, 235, 0.42);
  border-radius: 30px;
  background: var(--rsvp-wine);
  box-shadow:
    0 34px 90px rgba(74, 20, 38, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 235, 226, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rsvp-cta-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.15),
      transparent 24%,
      transparent 72%,
      rgba(255, 255, 255, 0.06)
    ),
    repeating-linear-gradient(
      12deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 5px
    );
  pointer-events: none;
}

.rsvp-cta-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -42%;
  left: -12%;
  width: 64%;
  height: 96%;
  border-radius: 50%;
  background: rgba(255, 238, 229, 0.09);
  filter: blur(34px);
  transform: rotate(-18deg);
  pointer-events: none;
}

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

.rsvp-cta-section .rsvp-premium-button.primary {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 250, 242, 0.92);
  box-shadow:
    0 14px 34px rgba(64, 14, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Confirmation and footer share one soft surface without a hard blur boundary. */
.rsvp-premium-rsvp,
.rsvp-premium-footer {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rsvp-premium-footer {
  margin-top: -2px;
}

@media (max-width: 720px) {
  .rsvp-scenic-break blockquote {
    padding: 68px 25px 70px;
    border-radius: 28px 8px 28px 8px;
  }

  .rsvp-scenic-break blockquote span {
    top: 10px;
    left: 20px;
  }

  .rsvp-scenic-break blockquote::after {
    right: 20px;
    bottom: 0;
  }

  .rsvp-scenic-break blockquote span::before,
  .rsvp-scenic-break blockquote::after {
    font-size: 66px;
  }

  .rsvp-cta-section {
    width: calc(100% - 24px);
    margin: 24px auto 72px;
    padding: 64px 22px 70px;
    border-radius: 28px;
  }

  .rsvp-cta-section h2 {
    font-size: clamp(38px, 10.8vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-envelope-stage.is-opening .rsvp-envelope-flap-wrap,
  .rsvp-envelope-stage.is-opening .rsvp-envelope-paper,
  .rsvp-page.rsvp-premium-page.is-open .rsvp-premium-hero {
    animation-duration: 0.01ms !important;
  }
}
