:root {
  --ivory: #fbf4e7;
  --cream: #fffaf0;
  --paper: #f6ecd9;
  --paper-deep: #e8d9c1;
  --shadow: rgba(42, 35, 25, 0.28);
  --moss: #213b2b;
  --moss-light: #3f5a45;
  --ink: #26352c;
}

@font-face {
  font-family: "Slight";
  src: url("fonts/slight-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sloop Script Pro";
  src: url("fonts/Sloop-ScriptThree.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calmius Sans High";
  src: url("fonts/calmius-sans-high.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Daydream";
  src: url("fonts/daydream-free.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Belleza";
  src: url("fonts/belleza-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Charm";
  src: url("fonts/charm-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.62), transparent 34rem),
    linear-gradient(135deg, #f4eadc, #fffaf1 48%, #e8ddcc);
  font-family: "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  overflow-x: hidden;
}

.invitation-opening {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 252, 244, 0.94), rgba(244, 236, 222, 0.78) 38%, rgba(222, 211, 194, 0.88)),
    repeating-linear-gradient(90deg, rgba(105, 88, 62, 0.055) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(105, 88, 62, 0.045) 0 1px, transparent 1px 4px),
    linear-gradient(125deg, #fbf4e7, #dfd1bb);
  transition:
    opacity 2.05s cubic-bezier(0.18, 0.72, 0.2, 1),
    filter 2.05s cubic-bezier(0.18, 0.72, 0.2, 1),
    transform 2.05s cubic-bezier(0.18, 0.72, 0.2, 1),
    visibility 0s linear 2.05s;
  transform: translateY(0) scale(1);
}

.invitation-opening.is-exiting {
  opacity: 0;
  filter: blur(0.08rem);
  transform: translateY(-0.12rem) scale(1);
}

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

.opening-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(58, 48, 35, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(58, 48, 35, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, rgba(98, 76, 52, 0.12), transparent 0.12rem);
  background-size: 2.2rem 2.2rem, 2.2rem 2.2rem, 0.42rem 0.42rem;
}

.envelope-stage {
  position: relative;
  width: min(84vw, 48rem);
  aspect-ratio: 1.72;
  perspective: 72rem;
  transform: translateY(-0.35rem);
  filter:
    drop-shadow(0 1.45rem 1.35rem rgba(58, 45, 27, 0.2))
    drop-shadow(0 0.32rem 0.18rem rgba(114, 88, 52, 0.12));
  transition:
    opacity 1.85s cubic-bezier(0.18, 0.72, 0.2, 1),
    filter 1.85s cubic-bezier(0.18, 0.72, 0.2, 1),
    transform 1.85s cubic-bezier(0.18, 0.72, 0.2, 1);
}

.invitation-opening.is-exiting .envelope-stage {
  opacity: 0;
  transform: translateY(-0.8rem) scale(1);
  filter:
    blur(0.14rem)
    drop-shadow(0 1.45rem 1.35rem rgba(58, 45, 27, 0.12));
}

.seal-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.seal-button:focus-visible {
  outline: 0;
}

.seal-button:focus-visible .wax-seal {
  box-shadow:
    0 0 0 0.18rem rgba(247, 241, 230, 0.8),
    0 0 0 0.32rem rgba(168, 119, 42, 0.62),
    inset 0.2rem 0.24rem 0.48rem rgba(255, 245, 198, 0.32),
    inset -0.34rem -0.38rem 0.75rem rgba(70, 37, 9, 0.45),
    0 0.5rem 0.9rem rgba(63, 45, 22, 0.28);
}

.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.envelope-back,
.envelope-pocket,
.envelope-left-fold,
.envelope-right-fold,
.envelope-lid,
.envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 0.06rem;
}

.envelope-back {
  background:
    radial-gradient(circle at 68% 26%, rgba(172, 154, 124, 0.12), transparent 9%),
    radial-gradient(circle at 42% 17%, rgba(170, 151, 119, 0.09), transparent 12%),
    radial-gradient(circle at 24% 67%, rgba(158, 137, 103, 0.1), transparent 10%),
    linear-gradient(108deg, rgba(255, 255, 255, 0.74), transparent 21%),
    linear-gradient(180deg, #fffaf0, #f4ead8 58%, #e7d8c0);
  box-shadow:
    inset 0 0 0 1px rgba(128, 96, 55, 0.1),
    inset 0 -1.35rem 2.2rem rgba(119, 86, 45, 0.1),
    inset 0 1.25rem 1.8rem rgba(255, 255, 255, 0.54);
}

.envelope-back::before {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(132, 98, 55, 0.08);
  pointer-events: none;
}

.envelope-back::after,
.envelope-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.36;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 74% 22%, rgba(136, 115, 83, 0.1), transparent 8%),
    radial-gradient(circle at 31% 72%, rgba(136, 115, 83, 0.08), transparent 9%),
    repeating-linear-gradient(96deg, rgba(120, 91, 52, 0.03) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(4deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 9px);
}

.envelope-pocket {
  z-index: 4;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(41deg, rgba(131, 98, 55, 0.16), transparent 37%),
    linear-gradient(-41deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(239, 229, 214, 0.96));
  box-shadow:
    inset 0 -1.25rem 2rem rgba(119, 86, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 -0.06rem 0 rgba(132, 98, 55, 0.08);
  will-change: filter, transform;
}

.envelope-left-fold,
.envelope-right-fold {
  z-index: 5;
  pointer-events: none;
  opacity: 0.92;
}

.envelope-date {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 11%;
  color: rgba(76, 55, 25, 0.6);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.58rem, 1.35vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.16rem;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 250, 238, 0.62);
  transform: translateX(-50%);
}

.envelope-left-fold {
  clip-path: polygon(0 0, 50% 58%, 0 100%);
  background:
    linear-gradient(55deg, rgba(255, 255, 255, 0.42), transparent 35%),
    linear-gradient(39deg, #eadcc7, #fff8ec 65%, #dfcdb2);
}

.envelope-right-fold {
  clip-path: polygon(100% 0, 50% 58%, 100% 100%);
  background:
    linear-gradient(-55deg, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(-38deg, #e6d6bd, #fff6e9 64%, #dcc8aa);
}

.envelope-left-fold::after,
.envelope-right-fold::after,
.envelope-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(89, 70, 47, 0.11));
}

.envelope-lid {
  z-index: 7;
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.envelope-flap {
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  background:
    radial-gradient(circle at 70% 24%, rgba(170, 151, 119, 0.1), transparent 9%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 48%),
    linear-gradient(152deg, #fffaf0, #e9dac1 63%, #f7ead7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -0.12rem 0.2rem rgba(125, 90, 48, 0.08),
    0 0.55rem 0.9rem rgba(92, 66, 35, 0.13);
  backface-visibility: visible;
  will-change: box-shadow;
}

.envelope-flap::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 0;
  height: 1px;
  background: rgba(132, 98, 55, 0.14);
}

.wax-seal {
  position: absolute;
  z-index: 100;
  left: 50%;
  top: 58%;
  width: clamp(3.7rem, 9.2vw, 5.2rem);
  aspect-ratio: 0.78;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(1.2rem) rotate(-3deg);
  transform-style: preserve-3d;
  backface-visibility: visible;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.34), transparent 16%),
    radial-gradient(circle at 58% 44%, rgba(255, 238, 172, 0.24), transparent 24%),
    radial-gradient(circle at 68% 74%, rgba(82, 49, 14, 0.32), transparent 34%),
    radial-gradient(circle at 50% 50%, #d5ad55, #b98628 58%, #6e4312);
  box-shadow:
    inset 0.2rem 0.24rem 0.48rem rgba(255, 245, 198, 0.32),
    inset -0.34rem -0.38rem 0.75rem rgba(70, 37, 9, 0.45),
    inset 0 0 0 0.08rem rgba(255, 244, 185, 0.16),
    0 0.5rem 0.9rem rgba(63, 45, 22, 0.28);
}

.wax-seal::before,
.wax-seal::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.wax-seal::before {
  inset: 0.36rem;
  border: 1px solid rgba(255, 232, 161, 0.48);
  box-shadow:
    inset 0 0 0 0.12rem rgba(112, 67, 15, 0.18),
    0 0 0 0.06rem rgba(94, 58, 16, 0.14);
}

.wax-seal::after {
  inset: 0.62rem;
  border: 1px dotted rgba(255, 239, 186, 0.42);
  opacity: 0.78;
}

.monogram-image {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 76%;
  height: 76%;
  opacity: 0.72;
  border-radius: inherit;
  background-image: url("monogram-reference.jpg");
  background-position: 50% 42%;
  background-repeat: no-repeat;
  background-size: 214%;
  filter:
    brightness(0.72)
    contrast(2.45)
    grayscale(1)
    drop-shadow(0 -0.045rem 0.025rem rgba(64, 31, 5, 0.72))
    drop-shadow(0 0.055rem 0.025rem rgba(255, 240, 181, 0.22));
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%) rotate(-2deg);
}

.monogram-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: inherit;
  background-position: inherit;
  background-repeat: inherit;
  background-size: inherit;
  filter: invert(1) contrast(2.4) brightness(1.25);
  opacity: 0.14;
  mix-blend-mode: screen;
  transform: translate(-0.045rem, 0.055rem);
}

.open-label {
  position: absolute;
  bottom: -4.8rem;
  left: 50%;
  color: rgba(33, 59, 43, 0.86);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.site-landing {
  min-height: 100vh;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.photo-story {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #172010;
}

.story-frame {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 24, 12, 0.16), rgba(17, 24, 12, 0.32)),
    url("landing-slide-4.jpg") center / cover no-repeat,
    #172010;
}

.story-track {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  display: flex;
  width: max-content;
  height: 100%;
  animation: stripDrift 42s linear infinite;
  animation-play-state: paused;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body.story-ready .story-track {
  animation-play-state: running;
}

.story-strip-image {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  display: block;
  filter: contrast(1.02) saturate(0.9) brightness(0.88);
}

.story-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.06) 34%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.13), transparent 20rem);
  pointer-events: none;
}

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

@keyframes stripDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@supports (height: 100dvh) {
  .photo-story {
    min-height: 100dvh;
  }

  .story-frame {
    height: 100dvh;
  }

  .save-date-section,
  .details-section,
  .reception-section {
    min-height: 100dvh;
  }

  .save-date-frame img,
  .reception-photo {
    max-height: min(calc(100dvh - clamp(1.7rem, 5.2vw, 3.4rem)), 63rem);
  }
}

.story-wave {
  position: absolute;
  top: 50%;
  left: 0;
  width: 300vw;
  max-width: none;
  height: clamp(8rem, 24vw, 16rem);
  overflow: visible;
  transform: translateY(calc(-50% - 5pt)) rotate(-2.5deg);
}

.story-wave path {
  fill: none;
}

.story-wave text {
  fill: rgba(255, 255, 255, 0.96);
  font-family: "Daydream", "Sloop Script Pro", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: clamp(4.6rem, 13.8vw, 8.82rem);
  font-weight: 400;
  letter-spacing: 0;
  filter:
    drop-shadow(0 0.12rem 0.55rem rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 1.2rem rgba(255, 255, 255, 0.12));
  white-space: normal;
}

.save-date-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(0.85rem, 2.6vw, 1.7rem);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.76), transparent 24rem),
    linear-gradient(180deg, #fff9ef, #f4e7d2);
}

.save-date-frame {
  position: relative;
  line-height: 0;
  overflow: hidden;
  border: clamp(0.42rem, 1vw, 0.72rem) solid #fff9ef;
  background:
    linear-gradient(135deg, #fffdf7, #ead9bc 46%, #fffaf0 54%, #d7bf94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0.18rem 0.18rem 0.35rem rgba(255, 255, 255, 0.62),
    inset -0.24rem -0.24rem 0.42rem rgba(115, 86, 42, 0.2),
    0 0.45rem 0.8rem rgba(255, 255, 255, 0.42),
    0 1.4rem 2.7rem rgba(54, 42, 24, 0.22);
}

.save-date-frame img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: min(calc(100vh - clamp(1.7rem, 5.2vw, 3.4rem)), 63rem);
  max-height: min(calc(100svh - clamp(1.7rem, 5.2vw, 3.4rem)), 63rem);
  display: block;
  object-fit: contain;
  object-position: center;
}

.save-date-frame::before,
.save-date-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.save-date-frame::before {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 clamp(0.18rem, 0.45vw, 0.32rem) rgba(255, 249, 239, 0.18),
    inset 0.35rem 0.35rem 0.6rem rgba(255, 255, 255, 0.18),
    inset -0.42rem -0.42rem 0.8rem rgba(30, 24, 12, 0.16);
}

.save-date-frame::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 32%, rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 50% 9%, rgba(255, 255, 255, 0.18), transparent 20rem);
}

.save-date-title {
  position: absolute;
  top: calc(3.8% + 1.25cm);
  left: 50%;
  z-index: 3;
  width: 68%;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Slight", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  font-weight: 600;
  line-height: 1.35;
  padding: 0.18em 0.08em 0.35em;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 0.04rem rgba(255, 255, 255, 0.72),
    0 0.2rem 0.85rem rgba(0, 0, 0, 0.28),
    0 0 1.8rem rgba(255, 255, 255, 0.15);
  -webkit-text-stroke: 0.18px rgba(255, 255, 255, 0.54);
  transform: translateX(-50%);
}

.save-date-lockup {
  position: absolute;
  left: 50%;
  bottom: 3.4%;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: calc(clamp(0.04rem, 0.32vw, 0.22rem) + 0.5cm);
  width: 82%;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Calmius Sans High", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  text-shadow: 0 0.18rem 0.8rem rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.date-number {
  font-size: clamp(4.15rem, 13.2vw, 7.2rem);
  font-weight: 400;
  line-height: 0.74;
  transform: translateY(2.667px);
}

.date-side {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: clamp(1.18rem, 3.65vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(0);
}

.date-year {
  margin-left: 0.25cm;
}

.details-section {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(2.4rem, 6vh, 4.2rem);
  padding: clamp(2.4rem, 6vh, 4rem) clamp(1.2rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.72), transparent 18rem),
    linear-gradient(180deg, #fff9ef, #f8ecd9 56%, #efe0c9);
}

.location-header {
  display: grid;
  justify-items: center;
  gap: clamp(0.2rem, 0.8vh, 0.48rem);
  width: min(100%, 36rem);
  transform: translateY(-2cm);
}

.location-card {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5.4vh, 3.7rem);
  width: min(100%, 34rem);
  color: rgba(35, 45, 37, 0.84);
  text-align: center;
}

.location-kicker {
  margin: 0;
  color: rgba(54, 65, 58, 0.82);
  font-family: "Slight", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  font-size: clamp(3rem, 12vw, 6.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.ceremony-line {
  max-width: 17rem;
  margin: 0;
  color: rgba(37, 49, 41, 0.62);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.venue-block {
  display: grid;
  justify-items: center;
  gap: clamp(0.95rem, 2.4vh, 1.55rem);
  transform: translateY(1cm);
}

.details-section h2 {
  margin: 0;
  color: rgba(38, 47, 41, 0.78);
  font-size: clamp(1.72rem, 6.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
}

.venue-place {
  margin: 0;
  color: rgba(37, 49, 41, 0.58);
  font-size: clamp(1rem, 3.3vw, 1.28rem);
  line-height: 1.35;
}

.detail-links {
  display: grid;
  gap: clamp(1rem, 2.8vh, 1.65rem);
  justify-items: center;
  transform: translateY(2cm);
}

.detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 94vw;
  color: rgba(33, 59, 43, 0.78);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.52rem, 2.3vw, 0.72rem);
  font-weight: 600;
  letter-spacing: clamp(0.045rem, 0.6vw, 0.16rem);
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-icon {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-links a:hover,
.detail-links a:focus-visible {
  color: var(--moss);
}

.reception-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(0.85rem, 2.6vw, 1.7rem);
  color: rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.76), transparent 24rem),
    linear-gradient(180deg, #fff9ef, #f4e7d2);
}

.reception-frame {
  position: relative;
  line-height: 0;
  overflow: hidden;
  border: clamp(0.42rem, 1vw, 0.72rem) solid #fff9ef;
  background:
    linear-gradient(135deg, #fffdf7, #ead9bc 46%, #fffaf0 54%, #d7bf94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0.18rem 0.18rem 0.35rem rgba(255, 255, 255, 0.62),
    inset -0.24rem -0.24rem 0.42rem rgba(115, 86, 42, 0.2),
    0 0.45rem 0.8rem rgba(255, 255, 255, 0.42),
    0 1.4rem 2.7rem rgba(54, 42, 24, 0.22);
}

.reception-photo {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: min(calc(100vh - clamp(1.7rem, 5.2vw, 3.4rem)), 63rem);
  max-height: min(calc(100svh - clamp(1.7rem, 5.2vw, 3.4rem)), 63rem);
  display: block;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.01) saturate(0.96) brightness(0.96);
}

.reception-frame::before,
.reception-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reception-frame::before {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 clamp(0.18rem, 0.45vw, 0.32rem) rgba(255, 249, 239, 0.18),
    inset 0.35rem 0.35rem 0.6rem rgba(255, 255, 255, 0.18),
    inset -0.42rem -0.42rem 0.8rem rgba(30, 24, 12, 0.16);
}

.reception-frame::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.15), transparent 22rem);
}

.reception-header {
  position: absolute;
  top: calc(4.2% + 1cm);
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0;
  width: min(88vw, 34rem);
  text-align: center;
  text-shadow:
    0 0.2rem 0.85rem rgba(0, 0, 0, 0.34),
    0 0 1.4rem rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

.reception-title {
  font-family: "Slight", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  font-size: clamp(2.325rem, 9vw, 5.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.reception-details {
  position: absolute;
  left: 9%;
  bottom: calc(5.2% + 1.5cm);
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: clamp(1.05rem, 3vh, 1.8rem);
  width: min(76vw, 27rem);
  text-align: left;
  text-shadow: 0 0.18rem 0.8rem rgba(0, 0, 0, 0.42);
}

.reception-date {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(0.35rem, 1.2vh, 0.85rem);
  gap: clamp(0.45rem, 2vw, 1.25rem);
  font-family: "Calmius Sans High", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.date-pipe {
  opacity: 0.86;
  letter-spacing: 0;
}

.reception-detail-block {
  display: grid;
  justify-items: center;
  gap: calc(clamp(0.32rem, 0.9vh, 0.56rem) + 0.5cm);
}

.reception-date-line {
  transform: translate(0.25cm, 0);
}

.reception-venue-lines {
  display: grid;
  justify-items: center;
  gap: clamp(0.22rem, 0.65vh, 0.4rem);
  text-align: center;
  transform: translateX(0.25cm);
}

.reception-map-link {
  display: inline-grid;
  justify-items: center;
  color: inherit;
  text-decoration: none;
}

.reception-link-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22rem;
}

.reception-location-line {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.reception-location-icon {
  width: 0.86em;
  height: 0.86em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reception-map-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 0.35rem;
}

.reception-details p {
  margin: 0;
}

.reception-value {
  font-family: "Charm", "Belleza", "Times New Roman", serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.0833rem, 3.55vw, 1.6033rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.invitation-opening.is-opening .open-label {
  animation: labelFade 0.45s ease forwards;
}

.invitation-opening.is-opening .envelope-stage {
  animation: stageOpen 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
}

.invitation-opening.is-opening .envelope-pocket {
  animation: pocketRelease 1.45s cubic-bezier(0.18, 0.72, 0.2, 1) 0.28s forwards;
}

.invitation-opening.is-opening .envelope-lid {
  animation: flapOpen 1.55s cubic-bezier(0.18, 0.72, 0.2, 1) 0.22s forwards;
}

.invitation-opening.is-opening .envelope {
  animation: envelopeSettle 1.85s ease forwards;
}

@keyframes labelFade {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(0.4rem);
  }
}

@keyframes landingTextSlideUp {
  0% {
    opacity: 0;
    filter: blur(0.18rem);
    clip-path: inset(-45% 100% -45% 0);
    transform: translateY(5rem) scale(0.985);
  }
  34% {
    opacity: 0.72;
    filter: blur(0.08rem);
  }
  72% {
    clip-path: inset(-45% -18% -45% -18%);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(-45% -18% -45% -18%);
    transform: translateY(0) scale(1);
  }
}

@keyframes stageOpen {
  42% {
    transform: translateY(-0.35rem) scale(1);
  }
  100% {
    transform: translateY(-0.2rem) scale(1);
  }
}

@keyframes flapOpen {
  0% {
    z-index: 7;
    transform: rotateX(0deg);
  }
  52% {
    z-index: 7;
    transform: rotateX(25deg) translateY(-0.1rem);
  }
  100% {
    z-index: 7;
    transform: rotateX(40deg) translateY(-0.18rem);
  }
}

@keyframes pocketRelease {
  0% {
    filter: brightness(1);
    transform: translateY(0);
  }
  58% {
    filter: brightness(0.98);
    transform: translateY(0.16rem);
  }
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

@keyframes envelopeSettle {
  38% {
    transform: translateY(0.15rem) scale(1);
  }
  100% {
    transform: translateY(0.35rem) scale(1);
  }
}

@media (max-width: 680px) {
  .envelope-stage {
    width: min(96vw, 30rem);
    aspect-ratio: 1.48;
    transform: translateY(-0.25rem);
  }

  .open-label {
    bottom: -3.2rem;
    width: max-content;
    font-size: 0.66rem;
    letter-spacing: 0.14rem;
  }

  .wax-seal {
    width: clamp(3.35rem, 15vw, 4.35rem);
  }

  .save-date-section {
    padding: clamp(0.55rem, 2.2vw, 0.9rem);
  }

  .save-date-title {
    width: 80%;
    font-size: clamp(1.58rem, 5vw, 2.18rem);
  }

  .save-date-lockup {
    width: 86%;
    gap: calc(clamp(0.03rem, 0.28vw, 0.14rem) + 0.5cm);
  }

  .envelope-date {
    bottom: 9.5%;
    font-size: 0.58rem;
    letter-spacing: 0.13rem;
  }

  @keyframes stageOpen {
    35% {
      transform: translateY(-1vh) scale(1);
    }
    100% {
      transform: translateY(-2vh) scale(1);
    }
  }

  @keyframes envelopeSettle {
    38% {
      transform: translateY(0.15rem) scale(1);
    }
    100% {
      transform: translateY(0.25rem) scale(1);
    }
  }

}

@media (min-width: 681px) and (max-width: 1024px) {
  .envelope-stage {
    width: min(86vw, 42rem);
  }

  .story-wave {
    width: 300vw;
    height: clamp(8rem, 18vw, 13rem);
  }

  .story-wave text {
    font-size: clamp(4.2rem, 10vw, 7.2rem);
  }
}

@media (min-width: 1025px) {
  .story-wave {
    width: 300vw;
    height: clamp(8rem, 13vw, 14rem);
  }

  .story-wave text {
    font-size: clamp(4.4rem, 7.8vw, 8.4rem);
  }
}

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

@media (orientation: landscape) and (max-height: 560px) {
  .story-wave {
    width: 300vw;
    height: clamp(6rem, 24vh, 9rem);
  }

  .story-wave text {
    font-size: clamp(3.4rem, 13vh, 5.6rem);
  }
}
