:root {
  --wine: #5b142b;
  --wine-deep: #3a0b1c;
  --wine-soft: #7c2843;
  --rose: #a85a6c;
  --gold: #b58a4f;
  --gold-soft: #dbc094;
  --gold-pale: #efe1c8;
  --cream: #fbf7ef;
  --cream-2: #f4ebde;
  --paper: #fffdf8;
  --ink: #382328;
  --muted: #7c666a;
  --line: rgba(181, 138, 79, 0.4);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;
  --script-style: normal;
  --font-sans: "Be Vietnam Pro", Arial, sans-serif;
  --base-size: 17px;
  --display-scale: 1;
  --page-width: 940px;
  --shadow-soft: 0 18px 50px rgba(58, 11, 28, 0.14);
  --shadow-page: 0 40px 100px rgba(20, 3, 10, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #260711;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(181, 138, 79, 0.15), transparent 30%),
    radial-gradient(circle at 88% 75%, rgba(124, 40, 67, 0.3), transparent 34%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.025) 1px, transparent 1.5px);
  background-size: auto, auto, 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked,
body.lightbox-open {
  overflow: hidden;
}

::selection {
  background: var(--wine);
  color: var(--cream);
}

h1,
h2,
h3,
p {
  margin: 0 0 0.7em;
}

h1,
h2,
h3 {
  color: var(--wine);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
}

h2 {
  font-size: calc(clamp(36px, 5vw, 56px) * var(--display-scale));
}

h3 {
  font-size: calc(clamp(25px, 3.2vw, 34px) * var(--display-scale));
}

a {
  color: var(--wine);
}

address {
  font-style: normal;
}

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

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.script {
  font-family: var(--font-script);
  font-style: var(--script-style);
  font-weight: 600;
  line-height: 1.02;
  color: var(--wine);
}

.amp {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-script);
  font-weight: 600;
  padding: 0 0.06em;
}

.eyebrow {
  margin-bottom: 0.9em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.6;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: clamp(58px, 8.5vw, 100px) clamp(20px, 6vw, 72px);
  text-align: center;
}

.section-title {
  margin-bottom: 0.35em;
  font-size: calc(clamp(42px, 6.5vw, 70px) * var(--display-scale));
  color: var(--wine);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 27px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wine-soft), var(--wine-deep));
  box-shadow: 0 8px 24px rgba(58, 11, 28, 0.22);
  color: #fff8ee;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(58, 11, 28, 0.3);
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--outline {
  background: transparent;
  border-color: rgba(239, 225, 200, 0.6);
  box-shadow: none;
  color: var(--cream);
}

.button--outline:hover {
  background: rgba(255, 253, 248, 0.09);
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  color: var(--wine);
}



.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(250px, 70%);
  margin: 0 auto 26px;
  color: var(--gold);
}

.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.noscript {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px;
  background: var(--wine);
  color: #fff;
  font-family: var(--font-sans);
  text-align: center;
}



.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 18px 26px;
  background:
    radial-gradient(ellipse at 50% 28%, #fffdf8 0%, #f8f0e3 46%, #ecddc8 100%);
  color: var(--ink);
  text-align: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.cover.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.cover__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #1b0c11;
  pointer-events: none;
}

.cover__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  opacity: 0.86;
  filter: grayscale(1) brightness(0.62) contrast(1.08) blur(0.5px);
  transform: scale(1.04);
  animation: coverBackdropZoom 16s ease-in-out infinite alternate;
}

.cover__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(18, 6, 10, 0.08), rgba(18, 6, 10, 0.58) 82%),
    linear-gradient(to bottom, rgba(18, 6, 10, 0.4), transparent 30%, rgba(18, 6, 10, 0.5));
}

@keyframes coverBackdropZoom {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1.11);
  }
}

.cover .cover__eyebrow {
  color: #fffaf2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.cover .cover__prelude {
  color: rgba(255, 248, 238, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.cover .cover__hint {
  color: rgba(255, 248, 238, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.cover__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 82%, rgba(181, 138, 79, 0.13), transparent 27%),
    radial-gradient(circle at 86% 13%, rgba(181, 138, 79, 0.12), transparent 24%);
}

.botanical {
  position: absolute;
  width: min(280px, 55vw);
  color: var(--wine);
  opacity: 0.13;
  pointer-events: none;
}

.botanical--tl {
  top: -36px;
  left: -52px;
  transform: rotate(-6deg);
}

.botanical--br {
  right: -56px;
  bottom: 0;
  transform: rotate(174deg);
}

.cover__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 37px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 0.92;
  text-transform: uppercase;
}

.cover__eyebrow span {
  display: block;
}

.cover__eyebrow span:nth-child(2) {
  margin: 0.24em 0;
  font-size: 0.4em;
}

.cover__prelude {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.envelope {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(440px, calc(100vw - 36px), 55vh);
  aspect-ratio: 0.79;
  margin: clamp(14px, 2.6vh, 28px) auto clamp(4px, 1.5vh, 16px);
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1100px;
  filter: drop-shadow(0 22px 24px rgba(58, 11, 28, 0.18));
  transition: transform 0.4s ease;
}

.envelope:hover {
  transform: translateY(-4px);
}

.envelope__back {
  position: absolute;
  z-index: 2;
  top: 36%;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 35%),
    linear-gradient(150deg, #8c304c, #61162f 55%, #4c1025);
  box-shadow:
    inset 0 0 0 1px rgba(239, 225, 200, 0.28),
    inset 0 0 32px rgba(30, 5, 13, 0.18);
}

.envelope__letter {
  position: absolute;
  z-index: 1;
  top: 37%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: 68%;
  height: 63%;
  padding: 9px 9px 54px;
  border: 1px solid rgba(181, 138, 79, 0.35);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(40, 7, 18, 0.32);
  transform: translateX(-50%);
  transition: transform 2s cubic-bezier(0.18, 0.78, 0.18, 1), opacity 0.8s ease;
}

.envelope__photo {
  flex: 1;
  overflow: hidden;
  background: #eee;
}

.envelope__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.envelope__label {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  padding: 0 6px;
  color: var(--wine);
  text-align: center;
}

.envelope__label .script {
  display: block;
  font-size: clamp(19px, 5vw, 25px);
  line-height: 1.1;
}

.envelope__label small {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.25em;
}

.envelope__pocket {
  position: absolute;
  z-index: 3;
  inset: 53% 0 0;
  border-radius: 0 0 3px 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    linear-gradient(28deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%),
    linear-gradient(-28deg, transparent 48%, rgba(255, 255, 255, 0.08) 50%, transparent 52%),
    linear-gradient(160deg, #7d2742, #5b142b 54%, #4e1125);
  clip-path: polygon(0 0, 50% 28%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: drop-shadow(0 0 0.7px rgba(239, 225, 200, 0.7));
}

.envelope__flap {
  position: absolute;
  z-index: 4;
  top: 36%;
  right: 0;
  left: 0;
  height: 35%;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.15), transparent 45%),
    linear-gradient(170deg, #87304a, #64172f 62%, #560f27);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  backface-visibility: hidden;
  filter: drop-shadow(0 0 0.7px rgba(239, 225, 200, 0.7));
  transition: transform 1.5s cubic-bezier(0.45, 0, 0.2, 1);
}

.envelope__seal {
  position: absolute;
  z-index: 5;
  top: 70%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 65px;
  height: 65px;
  border: 3px double rgba(91, 20, 43, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 27%, #f4dfb1, #d4af74 45%, #a97a3e 100%);
  box-shadow:
    0 5px 14px rgba(40, 7, 18, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.55);
  color: #5b142b;
  font-family: var(--font-script);
  font-size: 19px;
  font-weight: 600;
  transform: translate(-50%, -50%) rotate(-5deg);
  animation: sealGlow 3.4s ease-in-out infinite;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

@keyframes sealGlow {
  0%,
  100% {
    box-shadow:
      0 5px 14px rgba(40, 7, 18, 0.38),
      inset 0 1px 2px rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow:
      0 5px 14px rgba(40, 7, 18, 0.38),
      0 0 0 7px rgba(219, 192, 148, 0.08),
      inset 0 1px 2px rgba(255, 255, 255, 0.55);
  }
}

.envelope__seal i {
  font-style: normal;
}

.envelope__seal span {
  font-size: 11px;
  padding-top: 4px;
}

.envelope__address {
  position: absolute;
  z-index: 6;
  right: 9%;
  bottom: 6.2%;
  left: 9%;
  color: var(--gold-pale);
  text-align: center;
  pointer-events: none;
}

.envelope__address::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 0 auto 7px;
  background: linear-gradient(90deg, transparent, rgba(239, 225, 200, 0.7), transparent);
}

.envelope__address .script {
  display: block;
  color: #f8e9ca;
  font-size: clamp(21px, 6.3vw, 33px);
  line-height: 1.04;
  text-shadow: 0 2px 12px rgba(34, 5, 14, 0.42);
}

.envelope__address .script > span + span,
.envelope__label .script > span + span,
.photo-reveal__frame .script > span + span,
.invitation-info__names > span + span,
.footer__names > span + span {
  margin-left: 0.4em;
}

.photo-reveal__frame .script > span,
.invitation-info__names > span,
.footer__names > span {
  white-space: nowrap;
}

.invitation-info__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.35em;
}

.envelope__address small {
  display: block;
  margin-top: 3px;
  color: rgba(239, 225, 200, 0.64);
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.cover.is-opening .envelope__flap {
  transform: rotateX(180deg);
}

.cover.is-opening .envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-28deg) scale(0.6);
  animation-play-state: paused;
}

.cover.is-opening .envelope__letter {
  transform: translate(-50%, -100%) scale(1.03);
}

.cover.is-opening .cover__hint,
.cover.is-opening .cover__eyebrow,
.cover.is-opening .cover__prelude,
.cover.is-opening .cover__couple,
.cover.is-opening .cover__date {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.cover__name {
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.cover__name .script {
  margin: 0;
  font-size: clamp(42px, 10.5vw, 58px);
  line-height: 0.98;
  color: var(--wine);
}

.cover__name .script > span {
  display: block;
}

.cover__date {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 0;
  color: #fff8ee;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.cover__couple {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff8ee;
  font-size: clamp(25px, 6.4vw, 36px);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.cover__couple span {
  color: var(--gold-soft);
  font-size: 0.7em;
}

.cover__date span {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--line);
}

.cover__hint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: clamp(8px, 2vh, 18px) 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: opacity 0.4s ease;
}

.cover__hint svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: tap 2.2s ease-in-out infinite;
}

@keyframes tap {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.envelope--open {
  width: min(480px, calc(100vw - 40px), 70vh);
  aspect-ratio: 1.4;
}

.envelope--open .envelope__back {
  z-index: 1;
  top: 0;
}

.envelope--open .envelope__letter {
  z-index: 2;
  top: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.6vh, 6px);
  width: 70%;
  height: 125%;
  padding: 12px 12px 44px;
  border-color: rgba(181, 138, 79, 0.5);
  background: #faf3e5;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 20% 0);
  transform: translate(-50%, 0);
  transition: transform 1.6s cubic-bezier(0.2, 0.75, 0.2, 1) 0.35s,
    clip-path 1.6s cubic-bezier(0.2, 0.75, 0.2, 1) 0.35s,
    opacity 0.25s ease 0.35s, visibility 0s 0.35s;
}

.envelope--open .envelope__letter::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(181, 138, 79, 0.32);
  pointer-events: none;
}

.envelope__letter-eyebrow,
.envelope__letter-copy,
.envelope__letter-date,
.envelope__letter-place {
  display: block;
  font-family: var(--font-display);
  line-height: 1.35;
}

.envelope__letter-eyebrow {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.envelope__letter-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 4px;
  font-size: clamp(24px, 6.8vw, 34px);
  line-height: 1.08;
}

.envelope__letter-names span {
  white-space: nowrap;
}

.envelope__letter-names span:first-child {
  transform: translateX(-0.35em);
}

.envelope__letter-names span:last-child {
  transform: translateX(0.35em);
}

.envelope__letter-copy,
.envelope__letter-place {
  color: var(--muted);
  font-size: clamp(12px, 3vw, 15px);
}

.envelope__letter-date {
  color: var(--wine);
  font-size: clamp(15px, 3.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.envelope--open .envelope__pocket {
  z-index: 4;
}

.envelope--open .envelope__flap {
  z-index: 5;
  top: 0;
  height: 57%;
}

.envelope__monogram {
  position: absolute;
  top: 12%;
  left: 50%;
  color: #f1d5c3;
  font-family: var(--font-script);
  font-size: clamp(20px, 6vw, 32px);
  line-height: 1;
  transform: translateX(-50%);
}

.envelope__monogram i {
  padding: 0 0.1em;
  font-size: 0.6em;
  font-style: normal;
}

.envelope--open .envelope__seal--wax {
  top: 57%;
  z-index: 7;
  width: clamp(56px, 15vw, 70px);
  height: clamp(56px, 15vw, 70px);
  border: 4px double rgba(233, 169, 150, 0.6);
  background: radial-gradient(circle at 35% 28%, #a94b50, #751b2a 48%, #3f0b18);
  box-shadow: 0 5px 12px rgba(30, 3, 10, 0.5), inset 0 0 0 2px rgba(59, 5, 17, 0.5);
  color: #f2c9b5;
  font-size: 18px;
  transform: translate(-50%, -50%) rotate(-4deg);
  animation: none;
}

.cover.is-opening .envelope--open .envelope__letter {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0);
  transform: translate(-50%, -48%);
}

.photo-reveal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(122, 35, 64, 0.65), transparent 46%),
    linear-gradient(155deg, #5b142b, #2b0715 72%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.photo-reveal.is-visible {
  opacity: 1;
  visibility: visible;
}

.photo-reveal__frame {
  width: min(330px, 74vw, 62vh);
  padding: 10px 10px 17px;
  border: 1px solid rgba(181, 138, 79, 0.5);
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(20, 3, 10, 0.55);
  transform: rotate(-1.4deg) scale(0.96);
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.25, 1);
  text-align: center;
}

.photo-reveal.is-visible .photo-reveal__frame {
  transform: rotate(-1.4deg) scale(1);
}

.photo-reveal__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 33%;
}

.photo-reveal__frame .script {
  margin: 11px 0 1px;
  color: var(--wine);
  font-size: clamp(20px, 5.8vw, 28px);
  line-height: 1.05;
}

.photo-reveal__frame small {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.curtain {
  position: fixed;
  z-index: 78;
  inset: 0;
  overflow: hidden;
  background: transparent;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.curtain.is-fading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.curtain__valance {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(48px, 9vh, 84px);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 20px),
    repeating-linear-gradient(90deg, #3c0a1d 0 12px, #6b1c37 22px 38px, #451024 48px 64px);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 97% 74%, 94% 62%, 91% 74%, 88% 62%, 85% 74%, 82% 62%, 79% 74%, 76% 62%, 73% 74%, 70% 62%, 67% 74%, 64% 62%, 61% 74%, 58% 62%, 55% 74%, 52% 62%, 49% 74%, 46% 62%, 43% 74%, 40% 62%, 37% 74%, 34% 62%, 31% 74%, 28% 62%, 25% 74%, 22% 62%, 19% 74%, 16% 62%, 13% 74%, 10% 62%, 7% 74%, 4% 62%, 0 74%);
  filter: drop-shadow(0 8px 18px rgba(20, 3, 10, 0.4));
  transition: transform 1.2s cubic-bezier(0.55, 0, 0.2, 1), opacity 0.6s ease;
  will-change: transform;
}

.curtain__panel {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 55%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 25%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(90deg, #3a091b 0 14px, #5f1730 24px 44px, #481124 52px 68px, #6b1c37 76px 92px);
  box-shadow: inset 0 0 80px rgba(20, 3, 10, 0.45);
  filter: drop-shadow(0 0 4px rgba(219, 192, 148, 0.18));
  transition: transform 2.8s cubic-bezier(0.55, 0, 0.2, 1);
  will-change: transform;
}

.curtain__panel--left {
  left: 0;
  z-index: 2;
  clip-path: url(#curtainLeftClip);
}

.curtain__panel--right {
  right: 0;
  z-index: 1;
  clip-path: url(#curtainRightClip);
}

.curtain__trim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.curtain__trim path {
  fill: none;
  stroke: rgba(239, 225, 200, 0.55);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(219, 192, 148, 0.35));
}

.curtain__panel--right .curtain__trim {
  transform: scaleX(-1);
}

.curtain.is-open .curtain__panel--left {
  transform: translateX(-108%) rotate(-1deg);
}

.curtain.is-open .curtain__panel--right {
  transform: translateX(108%) rotate(1deg);
}

.curtain.is-open .curtain__valance {
  opacity: 0;
  transform: translateY(-110%);
}

.curtain__seal {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 86px;
  height: 86px;
  border: 3px double rgba(91, 20, 43, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #f4dfb1, #d4af74 48%, #a97a3e);
  box-shadow: 0 8px 26px rgba(20, 3, 10, 0.4);
  color: var(--wine);
  font-family: var(--font-script);
  font-size: 24px;
  font-weight: 600;
  transform: translate(-50%, -50%) rotate(-5deg);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.curtain__seal i {
  font-size: 13px;
  font-style: normal;
  padding-top: 5px;
}

.curtain.is-open .curtain__seal {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-24deg) scale(0.7);
}
.hearts {
  position: fixed;
  z-index: 35;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.heart {
  position: absolute;
  top: -8vh;
  left: var(--heart-left);
  width: var(--heart-size);
  color: var(--heart-color);
  opacity: 0;
  animation: heartFall var(--heart-duration) linear forwards;
  will-change: transform, opacity;
}

.heart svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

@keyframes heartFall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0;
  }
  9% {
    opacity: var(--heart-opacity);
  }
  86% {
    opacity: var(--heart-opacity);
  }
  100% {
    transform: translate3d(var(--heart-drift), 112vh, 0) rotate(var(--heart-spin));
    opacity: 0;
  }
}

.sparkles {
  position: fixed;
  z-index: 85;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background:
    radial-gradient(circle at 50% 50%, #fffdf1 0 18%, #f0d59a 40%, #d5a957 70%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(240, 213, 154, 0.9));
  animation: sparkleTwinkle var(--life, 2.4s) ease-in-out forwards;
  will-change: transform, opacity;
}

.sparkle--dot {
  clip-path: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf1 0 15%, #f0d59a 40%, transparent 70%);
}

@keyframes sparkleTwinkle {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(var(--rot, 0deg));
  }
  35% {
    opacity: 1;
    transform: scale(1) rotate(calc(var(--rot, 0deg) + 18deg)) translateY(var(--drift, 0px));
  }
  65% {
    opacity: 0.85;
    transform: scale(0.9) rotate(calc(var(--rot, 0deg) + 30deg)) translateY(calc(var(--drift, 0px) - 6px));
  }
  100% {
    opacity: 0;
    transform: scale(0.25) rotate(calc(var(--rot, 0deg) + 50deg)) translateY(calc(var(--drift, 0px) - 12px));
  }
}

.star-fall {
  position: absolute;
  top: -12vh;
  width: 2px;
  height: var(--fall-length, 80px);
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(255, 243, 210, 0.16) 20%, #efd49a 65%, #fffdf1);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(240, 213, 154, 0.85));
  transform-origin: 50% 100%;
  animation: starFall var(--fall-duration, 5s) linear forwards;
  animation-delay: var(--fall-delay, 0s);
  will-change: transform, opacity;
}

.star-fall::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: var(--fall-size, 7px);
  height: var(--fall-size, 7px);
  background: radial-gradient(circle at 50% 50%, #fffdf1 0 18%, #f0d59a 45%, #d5a957 75%, transparent 78%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 5px rgba(240, 213, 154, 0.9));
  transform: translateX(-50%);
}

@keyframes starFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12vh, 0) rotate(var(--fall-tilt, 15deg));
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fall-drift, 0px), 115vh, 0) rotate(var(--fall-tilt, 15deg));
  }
}

.youtube-player {
  position: fixed;
  z-index: 0;
  left: -8px;
  bottom: -8px;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

.youtube-player iframe {
  width: 2px;
  height: 2px;
  border: 0;
}

.music-audio {
  position: fixed;
  right: -10px;
  bottom: -10px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.music-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 20px;
}

.music-panel[hidden] {
  display: none;
}

.music-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 7, 15, 0.74);
  backdrop-filter: blur(9px);
}

.music-panel__card {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid rgba(219, 192, 148, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(219, 192, 148, 0.13), transparent 38%),
    linear-gradient(150deg, #6f1e38, #4f1127);
  box-shadow: 0 30px 70px rgba(18, 4, 10, 0.5);
  color: var(--cream);
}

.music-panel__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.music-panel__eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.music-panel__title {
  margin: 0 32px 14px 0;
  color: #fff8ee;
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}

.music-panel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #12060b;
  box-shadow: 0 12px 30px rgba(18, 4, 10, 0.35);
}

.music-panel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.music-panel__note {
  margin: 10px 0 0;
  color: rgba(255, 248, 238, 0.62);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.invitation {
  position: relative;
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  overflow: clip;
  background: var(--cream);
  box-shadow: var(--shadow-page);
}

@media (min-width: 980px) {
  .invitation {
    margin: 32px auto;
    border-radius: 5px;
  }
}

.js .reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}



.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #3c1a24;
  color: var(--cream);
  text-align: center;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  animation: heroZoom 14s ease-out both;
}

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

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35, 8, 17, 0.4) 0%, transparent 26%, transparent 50%, rgba(35, 8, 17, 0.82) 100%),
    linear-gradient(90deg, rgba(35, 8, 17, 0.2), transparent 30%, transparent 70%, rgba(35, 8, 17, 0.2));
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(239, 225, 200, 0.38);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 26px 108px;
}

.hero .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 1.9em;
}

.hero__names {
  margin: 0 0 0.22em;
  padding-top: 0.05em;
  color: #fffaf1;
  font-size: calc(clamp(54px, 10vw, 92px) * var(--display-scale));
  line-height: 1.03;
  text-shadow: 0 6px 32px rgba(26, 4, 12, 0.32);
}

.hero__names .amp {
  color: var(--gold-soft);
}

.hero__date {
  margin: 0 0 0.42em;
  color: #fff7e8;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 27px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(26, 4, 12, 0.32);
}

.hero__venue {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 248, 238, 0.9);
  font-family: var(--font-display);
  font-size: clamp(16.5px, 2.5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(26, 4, 12, 0.3);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 248, 238, 0.72);
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(transparent, rgba(239, 225, 200, 0.8));
  animation: cueLine 2.4s ease-in-out infinite;
}

.scroll-cue svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes cueLine {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}



.countdown {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(181, 138, 79, 0.11), transparent 48%),
    var(--cream);
}

.countdown::before,
.countdown::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 220px;
  border: 1px solid rgba(181, 138, 79, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.countdown::before {
  top: -110px;
  left: -100px;
}

.countdown::after {
  right: -100px;
  bottom: -120px;
}

.countdown__title {
  margin-bottom: 0.16em;
  font-size: calc(clamp(50px, 8vw, 78px) * var(--display-scale));
}

.countdown > .eyebrow {
  color: var(--gold);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.countdown__lead {
  margin-bottom: 1.9em;
  color: #5b4047;
  font-family: var(--font-body);
  font-size: clamp(17px, 2.8vw, 20px);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
}

.clock {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(7px, 1.6vw, 12px);
  margin: 0 auto;
}

.clock__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(66px, 16vw, 88px);
  min-height: clamp(80px, 20vw, 100px);
  padding: 12px 4px 9px;
  border: 1px solid rgba(219, 192, 148, 0.52);
  border-radius: 12px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), transparent 48%),
    linear-gradient(145deg, var(--wine-soft), var(--wine-deep));
  box-shadow:
    0 12px 26px rgba(58, 11, 28, 0.18),
    inset 0 0 0 3px rgba(58, 11, 28, 0.12);
  color: #fff8ee;
}

.clock__unit strong {
  font-family: var(--font-display);
  font-size: clamp(31px, 7vw, 43px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1;
}

.clock__unit span {
  margin-top: 8px;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.countdown__note {
  margin: 22px 0 0;
  color: #5b3a43;
  font-family: var(--font-body);
  font-size: clamp(16.5px, 2.8vw, 20px);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.6;
}



.intro {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 28%, rgba(181, 138, 79, 0.1), transparent 32%),
    radial-gradient(ellipse at 95% 84%, rgba(91, 20, 43, 0.055), transparent 30%),
    var(--paper);
}

.collage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 590px;
  margin: clamp(30px, 6vw, 48px) auto 0;
  padding-top: 12px;
}

.polaroid {
  position: relative;
  width: 45%;
  margin: 0;
  padding: 9px 9px 15px;
  border-radius: 1px;
  background: #fffdf9;
  box-shadow: 0 16px 36px rgba(58, 11, 28, 0.16);
}

.polaroid--groom {
  z-index: 1;
  transform: rotate(-4.5deg);
}

.polaroid--bride {
  z-index: 2;
  margin-left: -6%;
  margin-top: 32px;
  transform: rotate(3.5deg);
}

.polaroid__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8ded4;
}

.polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.8s ease;
}

.polaroid:hover .polaroid__photo img {
  transform: scale(1.035);
}

.polaroid figcaption {
  padding-top: 11px;
  text-align: center;
}

.polaroid figcaption .script {
  display: block;
  font-size: clamp(26px, 6vw, 34px);
  color: var(--wine);
  line-height: 1;
}

.polaroid figcaption strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.collage__sprig {
  position: absolute;
  z-index: 3;
  right: 1%;
  bottom: -4%;
  width: 48px;
  color: var(--wine);
  opacity: 0.5;
  transform: rotate(18deg);
}

.collage__sprig svg {
  display: block;
  width: 100%;
  height: auto;
}

.intro__text {
  max-width: 615px;
  margin: clamp(38px, 6vw, 56px) auto 0;
  color: #4d353a;
  font-size: 1.02em;
  line-height: 1.95;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 26px;
}

.signature .script {
  font-size: clamp(34px, 7vw, 44px);
  color: var(--wine);
}

.signature__line {
  width: 46px;
  height: 1px;
  background: var(--line);
}



.just-married {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(440px, 68vw, 650px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.just-married img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.just-married__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 8, 17, 0.18), rgba(34, 8, 17, 0.32)),
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(34, 8, 17, 0.3) 100%);
}

.just-married::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 16px;
  border: 1px solid rgba(239, 225, 200, 0.4);
}

.just-married__text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fffaf1;
  text-shadow: 0 5px 28px rgba(25, 4, 11, 0.45);
}

.just-married__text .script {
  color: #fffaf1;
  font-size: clamp(48px, 10vw, 74px);
  line-height: 0.9;
  transform: translateX(-10%);
}

.just-married__text strong {
  margin-top: -0.04em;
  font-family: var(--font-sans);
  font-size: clamp(25px, 5vw, 38px);
  font-weight: 300;
  letter-spacing: 0.22em;
}



.invitation-info {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(181, 138, 79, 0.1), transparent 45%),
    var(--cream);
}

.invitation-info__lead {
  max-width: 560px;
  margin: 0 auto 2.2em;
  color: var(--muted);
  font-size: 0.98em;
}

.invitation-info__title {
  margin: clamp(28px, 4.8vw, 40px) 0 0.1em;
}

.families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 5vw, 56px);
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.family {
  padding: 0 10px;
}

.family + .family {
  border-left: 1px solid var(--line);
}

.family__role {
  display: inline-block;
  margin-bottom: 0.8em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.family h3 {
  margin-bottom: 0.15em;
  font-size: calc(clamp(29px, 4vw, 38px) * var(--display-scale));
}

.family__meta {
  margin-bottom: 1.1em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family__parents {
  color: var(--ink);
  font-size: 0.92em;
  line-height: 1.75;
}

.family__parents span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.family address {
  margin-top: 0.75em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.family__map {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.family__map svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.family__map:hover {
  background: rgba(181, 138, 79, 0.09);
  transform: translateY(-1px);
}

.families__amp {
  align-self: center;
  margin-top: 26px;
  color: var(--gold);
  font-size: 52px;
  line-height: 1;
}

.invitation-info__names {
  margin: clamp(30px, 5vw, 46px) 0 0.5em;
  font-size: calc(clamp(48px, 8vw, 74px) * var(--display-scale));
  line-height: 1.05;
}

.events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 26px);
  max-width: 790px;
  margin: clamp(28px, 5vw, 44px) auto 0;
  text-align: center;
}

.event {
  position: relative;
  overflow: hidden;
  padding: 34px 22px 32px;
  border: 1px solid rgba(181, 138, 79, 0.6);
  border-radius: 30px 30px 9px 9px;
  background:
    radial-gradient(circle at 50% -12%, rgba(219, 192, 148, 0.24), transparent 38%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(160deg, #75213d, #5b142b 55%, #470f24);
  box-shadow: 0 22px 46px rgba(58, 11, 28, 0.2);
  color: #fff8ee;
}

.event::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(239, 225, 200, 0.3);
  border-radius: 23px 23px 5px 5px;
  pointer-events: none;
}

.event::after {
  content: "";
  position: absolute;
  top: -55px;
  left: 50%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(239, 225, 200, 0.13);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

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

.event__label {
  margin-bottom: 0.6em;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.event__day {
  margin-bottom: 0.1em;
  color: rgba(255, 248, 238, 0.7);
  font-family: var(--font-body);
  font-size: 0.88em;
  font-style: italic;
}

.event__time {
  margin-bottom: 0.05em;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
}

.event__date {
  margin-bottom: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 44px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fffaf1;
}

.event__lunar {
  margin-bottom: 1.2em;
  color: rgba(255, 248, 238, 0.58);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.event__rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 0 auto 1.2em;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.event__place {
  margin-bottom: 0.2em;
  color: #fff8ee;
  font-family: var(--font-display);
  font-size: 1.23em;
  line-height: 1.35;
}

.event__address {
  margin-bottom: 1.3em;
  color: rgba(255, 248, 238, 0.66);
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.7;
}

.invitation-info__honor {
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: var(--wine);
  font-size: 1.08em;
}



.love {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 95% 5%, rgba(181, 138, 79, 0.1), transparent 32%),
    var(--paper);
}

.love__text {
  max-width: 560px;
  margin: -0.2em auto 2em;
  color: var(--muted);
  font-size: 0.98em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1.2vw, 10px);
  max-width: 760px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e9dfd5;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(58, 11, 28, 0.24));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.055);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}



.calendar-section {
  overflow: hidden;
  padding-top: clamp(64px, 9vw, 104px);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(181, 138, 79, 0.13), transparent 45%),
    var(--cream-2);
}

.calendar-card {
  position: relative;
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 42px clamp(22px, 5vw, 38px) 32px;
  border: 1px solid rgba(181, 138, 79, 0.58);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(219, 192, 148, 0.2), transparent 38%),
    linear-gradient(160deg, #75213d, #5b142b 55%, #470f24);
  box-shadow: 0 26px 60px rgba(58, 11, 28, 0.26);
  color: var(--cream);
}

.calendar-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(239, 225, 200, 0.28);
  border-radius: 7px;
  pointer-events: none;
}

.calendar-card__seal {
  position: absolute;
  z-index: 2;
  top: -27px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 66px;
  height: 66px;
  border: 3px double rgba(91, 20, 43, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #f4dfb1, #d4af74 48%, #a97a3e);
  box-shadow: 0 7px 18px rgba(30, 5, 13, 0.3);
  color: var(--wine);
  font-family: var(--font-script);
  font-size: 19px;
  font-weight: 600;
  transform: translateX(-50%) rotate(-5deg);
}

.calendar-card__seal i {
  font-size: 11px;
  font-style: normal;
  padding-top: 5px;
}

.calendar-card__month {
  margin: 0.15em 0 0;
  color: var(--gold-soft);
  font-size: clamp(44px, 8vw, 58px);
  line-height: 1;
}

.calendar-card__year {
  margin: 0.3em 0 1.2em;
  color: rgba(255, 248, 238, 0.62);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.38em;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar th {
  padding-bottom: 9px;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.calendar td {
  height: clamp(30px, 8vw, 38px);
  color: rgba(255, 248, 238, 0.78);
  font-family: var(--font-sans);
  font-size: clamp(10px, 2.8vw, 12px);
  vertical-align: middle;
}

.calendar td span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(27px, 7vw, 33px);
  height: clamp(27px, 7vw, 33px);
  border: 1px solid transparent;
  border-radius: 50%;
}

.calendar td.is-engagement span,
.calendar td.is-wedding span {
  width: clamp(32px, 8vw, 38px);
  height: clamp(29px, 7.4vw, 35px);
  padding-top: 7px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cpath d='M16 29S0 18 0 8.5A8.5 8.5 0 0 1 16 3a8.5 8.5 0 0 1 16 5.5C32 18 16 29 16 29Z' fill='none' stroke='%23dbc094' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: none;
  color: #fff8ee;
  font-size: clamp(9px, 2.6vw, 11px);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(40, 7, 18, 0.35);
}

.calendar td.is-wedding span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e35a78'/%3E%3Cstop offset='1' stop-color='%23b01f3f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 29S0 18 0 8.5A8.5 8.5 0 0 1 16 3a8.5 8.5 0 0 1 16 5.5C32 18 16 29 16 29Z' fill='url(%23g)' stroke='%23f4dfb1' stroke-width='1.2'/%3E%3C/svg%3E");
  color: #fff8ee;
}

.calendar-card__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 0;
  color: rgba(255, 248, 238, 0.62);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.calendar-card__legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  padding-top: 5px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cpath d='M16 29S0 18 0 8.5A8.5 8.5 0 0 1 16 3a8.5 8.5 0 0 1 16 5.5C32 18 16 29 16 29Z' fill='none' stroke='%23dbc094' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--cream);
  font-size: 7.5px;
  text-shadow: 0 1px 2px rgba(40, 7, 18, 0.35);
}

.calendar-card__legend span.is-wedding {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e35a78'/%3E%3Cstop offset='1' stop-color='%23b01f3f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 29S0 18 0 8.5A8.5 8.5 0 0 1 16 3a8.5 8.5 0 0 1 16 5.5C32 18 16 29 16 29Z' fill='url(%23g)' stroke='%23f4dfb1' stroke-width='1.2'/%3E%3C/svg%3E");
  color: #fff8ee;
}

.calendar-card__legend i {
  color: var(--gold-soft);
  font-style: normal;
}



.venue {
  background: var(--cream);
}

.venue__card {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.venue__map {
  position: relative;
  height: clamp(260px, 38vw, 360px);
  overflow: hidden;
  background: #e9e1d6;
}

.venue__mapbg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background-color: #efe7da;
  background-image:
    linear-gradient(rgba(181, 138, 79, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 138, 79, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.8), transparent 55%);
  background-size: 30px 30px, 30px 30px, auto;
  color: var(--wine);
}

.venue__mapbg svg {
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue__mapbg span {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.venue__mapbg small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue__map iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  filter: saturate(0.82) sepia(0.1);
}

.venue__info {
  padding: clamp(28px, 5vw, 42px) clamp(22px, 5vw, 46px);
  text-align: center;
}

.venue__info h3 {
  margin-bottom: 0.2em;
  font-family: "Times New Roman", Times, serif;
  font-size: calc(clamp(34px, 5.6vw, 48px) * var(--display-scale));
  font-weight: 700;
  line-height: 1.05;
}

.venue__info .eyebrow {
  font-size: clamp(14px, 3.3vw, 15.5px);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.venue__info address {
  margin-bottom: 0.7em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: clamp(15px, 4.1vw, 17px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.venue__date {
  margin-bottom: 1.5em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: clamp(14px, 3.3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue__info .button {
  font-size: clamp(14px, 3.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.02em;
}



.gift {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(181, 138, 79, 0.12), transparent 40%),
    var(--cream-2);
}

.gift__note {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02em;
  font-weight: 500;
}

.gift__box {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.gift__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 3vw, 32px);
  max-width: 760px;
  margin: 0 auto;
}

.gift__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 16px;
  border: 1px solid var(--gold-pale);
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(58, 11, 28, 0.07);
}

.gift__role {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gift__qrwrap {
  display: inline-block;
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--gold-pale);
  background: #fff;
  box-shadow: 0 8px 24px rgba(58, 11, 28, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gift__qrwrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(58, 11, 28, 0.16);
}

.gift__qr {
  display: block;
  width: min(250px, 62vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.gift__details {
  flex: 1;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 1px solid var(--gold-pale);
}

.gift__bank {
  margin-bottom: 0.3em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gift__name {
  margin-bottom: 0.1em;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.gift__accountrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.45em;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.gift__account-number {
  -webkit-user-select: all;
  user-select: all;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button:hover {
  background: rgba(181, 138, 79, 0.08);
}

.copy-button.is-copied {
  border-color: rgba(47, 107, 79, 0.35);
  background: rgba(47, 107, 79, 0.1);
  color: #2f6b4f;
}

.gift__branch {
  margin-bottom: 0.35em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gift__transfer {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.gift__hint {
  max-width: 620px;
  margin: 24px auto 18px;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 600;
  line-height: 1.55;
}

.gift__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.gift__form .field {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.gift__form .field > select,
.gift__form .field > input {
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.gift__form .field > select,
.gift__form .field > input {
  margin-top: auto;
}

.gift-box {
  position: relative;
  display: block;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  text-align: center;
}

.gift-box[hidden] {
  display: none;
}

.gift-box__stage {
  position: relative;
  display: block;
  width: min(370px, 100%);
  aspect-ratio: 361 / 330;
  margin: 8px auto 12px;
  transition: transform 0.4s ease;
}

.gift-envelope {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 12px rgba(40, 7, 18, 0.24));
  transform-origin: 50% 85%;
}

.gift-envelope--left {
  z-index: 2;
  animation: giftSwayLeft 5s ease-in-out infinite;
}

.gift-envelope--right {
  z-index: 1;
  animation: giftSwayRight 5s ease-in-out infinite;
}

.gift-envelope img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-box:hover .gift-box__stage {
  transform: translateY(-3px) scale(1.02);
}

@keyframes giftSwayLeft {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes giftSwayRight {
  0%, 100% { transform: rotate(1deg); }
  50% { transform: translateY(-3px) rotate(-2deg); }
}

.gift-box__hint {
  display: block;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gift-box__sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.gift-box__sparkles i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(219, 192, 148, 0.9);
  animation: giftTwinkle 2.8s ease-in-out infinite;
}

.gift-box__sparkles i:nth-child(1) {
  top: 16%;
  left: 12%;
}

.gift-box__sparkles i:nth-child(2) {
  top: 8%;
  right: 18%;
  animation-delay: 0.5s;
}

.gift-box__sparkles i:nth-child(3) {
  top: 48%;
  left: 5%;
  animation-delay: 1.1s;
}

.gift-box__sparkles i:nth-child(4) {
  top: 38%;
  right: 8%;
  animation-delay: 1.7s;
}

.gift-box__sparkles i:nth-child(5) {
  bottom: 18%;
  left: 22%;
  animation-delay: 2.1s;
}

.gift-box__sparkles i:nth-child(6) {
  right: 26%;
  bottom: 8%;
  animation-delay: 0.9s;
}

@keyframes giftTwinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.gift-dialog {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 24px);
}

.gift-dialog[hidden] {
  display: none;
}

.gift-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 7, 15, 0.76);
  backdrop-filter: blur(10px);
}

.gift-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(20, 4, 10, 0.5);
  opacity: 0;
  transform: scale(0.7) translateY(24px);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.gift-dialog.is-open .gift-dialog__panel {
  opacity: 1;
  transform: none;
}

.gift-dialog__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 30px);
  background:
    radial-gradient(circle at 90% 0%, rgba(219, 192, 148, 0.18), transparent 40%),
    linear-gradient(150deg, #6f1e38, #4f1127);
  box-shadow: 0 8px 20px rgba(40, 7, 18, 0.18);
  color: var(--cream);
}

.gift-dialog__eyebrow {
  margin: 0 0 3px;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gift-dialog__header h3 {
  margin: 0;
  color: #fff8ee;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1;
}

.gift-dialog__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(219, 192, 148, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gift-dialog__body {
  padding: clamp(16px, 3vw, 28px);
}

.gift-dialog__body .gift__box {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gift-dialog__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(219, 192, 148, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(219, 192, 148, 0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 82%, rgba(219, 192, 148, 0.3) 0 1px, transparent 2px);
  background-size: 90px 90px, 130px 130px, 110px 110px;
  opacity: 0;
}

.gift-dialog.is-open .gift-dialog__panel::before {
  animation: giftGlow 1.4s ease-out both;
}

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

.gift__save {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gift__save svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift__save:hover {
  background: rgba(181, 138, 79, 0.08);
}

body.gift-open {
  overflow: hidden;
}

.rsvp {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(181, 138, 79, 0.1), transparent 34%),
    radial-gradient(ellipse at 88% 88%, rgba(91, 20, 43, 0.05), transparent 30%),
    var(--cream);
}

.rsvp__intro {
  max-width: 560px;
  margin: 0 auto 2em;
}

.rsvp__intro p:last-child {
  color: var(--muted);
  font-size: 0.98em;
}

.rsvp__card {
  max-width: 500px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(181, 138, 79, 0.36);
  border-top: 3px solid var(--wine);
  background: var(--paper);
  box-shadow: 0 24px 55px rgba(58, 11, 28, 0.13);
  text-align: left;
}

.rsvp__card h3 {
  margin-bottom: 1.1em;
  text-align: center;
  font-size: 30px;
}

.field {
  display: block;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.field > input,
.field > select,
.field > textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #d8c9b9;
  border-radius: 3px;
  background: #fffdf9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.94em;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(181, 138, 79, 0.14);
}

.field > input::placeholder,
.field > textarea::placeholder {
  color: #b3a49f;
}

.field > textarea {
  resize: vertical;
  min-height: 92px;
}

fieldset.field {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

fieldset.field legend {
  margin-bottom: 8px;
  padding: 0;
}

.radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 2px 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88em;
  line-height: 1.55;
  cursor: pointer;
}

.radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio__dot {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #bda9a2;
  border-radius: 50%;
  background: #fffdf9;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.radio__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--wine);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.radio input:checked + .radio__dot {
  border-color: var(--wine);
}

.radio input:checked + .radio__dot::after {
  opacity: 1;
  transform: scale(1);
}

.radio input:focus-visible + .radio__dot {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rsvp__card .button {
  width: 100%;
  margin-top: 4px;
}

.rsvp__status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.rsvp__status.is-error {
  color: #9a2f3e;
}

.rsvp__status.is-success {
  color: #2f6b4f;
}

.rsvp__card.is-sent .field,
.rsvp__card.is-sent .button {
  opacity: 0.55;
}



.footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  text-align: center;
}

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

.footer__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 6, 15, 0.25), transparent 35%, rgba(31, 6, 15, 0.86) 100%),
    linear-gradient(90deg, rgba(31, 6, 15, 0.18), transparent 40%, rgba(31, 6, 15, 0.18));
}

.footer__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 26px 56px;
}

.footer__thanks {
  margin: 0 0 0.1em;
  color: #fffaf1;
  font-size: clamp(54px, 10vw, 78px);
  line-height: 1;
}

.footer__content > p:not(.footer__thanks):not(.footer__names):not(.footer__date) {
  color: rgba(255, 248, 238, 0.8);
  font-size: 0.94em;
  line-height: 1.8;
}

.footer__names {
  margin: 1em 0 0.1em;
  color: var(--gold-soft);
  font-family: var(--font-script);
  font-style: var(--script-style);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.footer__names .amp {
  color: var(--gold-soft);
}

.footer__date {
  margin: 0;
  color: rgba(255, 248, 238, 0.6);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.34em;
}



.controls {
  position: fixed;
  z-index: 40;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.opened .controls {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.lightbox-open .controls {
  opacity: 0;
  pointer-events: none;
}

.control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(181, 138, 79, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 26px rgba(33, 7, 17, 0.2);
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.control:hover {
  background: #fffdf8;
  transform: translateY(-2px);
}

.control > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#settingsButton,
#musicButton {
  width: 44px;
  padding: 0;
}

#musicLabel {
  display: none;
}

.control__music {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.control__music svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equalizer {
  display: none;
  align-items: flex-end;
  gap: 2px;
  width: 16px;
  height: 14px;
}

.equalizer i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 1px;
  background: var(--wine);
  animation: equalize 0.9s ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) {
  animation-delay: -0.35s;
}

.equalizer i:nth-child(3) {
  animation-delay: -0.65s;
}

@keyframes equalize {
  from {
    height: 4px;
  }
  to {
    height: 13px;
  }
}

#musicButton.is-playing .control__music > svg {
  display: none;
}

#musicButton.is-playing .equalizer {
  display: flex;
}



.drawer-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(26, 5, 13, 0.54);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.settings {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(390px, 100%);
  height: 100%;
  padding: 30px 28px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(181, 138, 79, 0.13), transparent 30%),
    var(--cream);
  box-shadow: -20px 0 60px rgba(28, 5, 14, 0.28);
  visibility: hidden;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 0.7, 0.25, 1), visibility 0.4s;
}

.settings.is-open {
  visibility: visible;
  transform: none;
}

.settings__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.settings__header .eyebrow {
  margin-bottom: 0.2em;
}

.settings__header h2 {
  margin: 0;
  font-size: 34px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  background: rgba(181, 138, 79, 0.1);
}

.settings .field {
  margin-bottom: 19px;
}

.settings .field > select {
  font-family: var(--font-sans);
  font-size: 12px;
}

.settings__music {
  margin-bottom: 19px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.settings__music > span {
  display: block;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
}

.settings__music p {
  margin: 6px 0 7px;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.settings__music a,
.settings__music-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.field--range {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 12px;
}

.field--range input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--wine);
}

.field--range output {
  color: var(--wine);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.settings__hint {
  margin: 2px 0 20px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.7;
}

.settings .button {
  width: 100%;
}



.lightbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 18px;
  background: rgba(20, 4, 10, 0.94);
  color: var(--cream);
  animation: lightboxIn 0.3s ease both;
}

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

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: min(820px, 92vw);
  margin: 0;
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 6px solid #fffdf8;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption {
  color: rgba(255, 248, 238, 0.7);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lightbox__close {
  position: fixed;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 225, 200, 0.35);
  border-radius: 50%;
  background: rgba(58, 11, 28, 0.5);
  color: #fff8ee;
  font-family: var(--font-sans);
  font-size: 25px;
  line-height: 1;
}

.lightbox__nav {
  position: fixed;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 60px;
  border: 1px solid rgba(239, 225, 200, 0.28);
  border-radius: 6px;
  background: rgba(58, 11, 28, 0.4);
  color: #fff8ee;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: max(10px, env(safe-area-inset-left));
}

.lightbox__nav--next {
  right: max(10px, env(safe-area-inset-right));
}



body[data-font="elegant"] {
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Playfair Display", Georgia, serif;
  --script-style: italic;
}

body[data-font="soft"] {
  --font-display: "Lora", Georgia, serif;
  --font-script: "Lora", Georgia, serif;
  --script-style: italic;
}

body[data-font="soft"] h1,
body[data-font="soft"] h2,
body[data-font="soft"] h3 {
  font-weight: 500;
}

body[data-font="modern"] {
  --font-display: "Be Vietnam Pro", Arial, sans-serif;
  --font-body: "Be Vietnam Pro", Arial, sans-serif;
  --font-script: "Be Vietnam Pro", Arial, sans-serif;
  --script-style: italic;
}

body[data-font="modern"] h1,
body[data-font="modern"] h2,
body[data-font="modern"] h3 {
  font-weight: 300;
  letter-spacing: -0.015em;
}

body[data-font="modern"] .script {
  font-weight: 400;
}



@media (max-width: 720px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero::before,
  .just-married::before {
    inset: 10px;
  }

  .hero__content {
    padding-bottom: 158px;
  }

  .hero__img {
    object-position: 50% 34%;
  }

  .families {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .family + .family {
    border-left: 1px solid var(--line);
    border-top: 0;
    padding-top: 0;
  }

  .family {
    padding: 0 5px;
  }

  .events {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .event {
    padding: 32px 22px 30px;
  }

  .gift__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 100%;
  }

  .gift__card {
    padding: 12px 8px 14px;
  }

  .gift__qrwrap {
    width: 100%;
    max-width: 150px;
    margin-bottom: 10px;
    padding: 5px;
  }

  .gift__qr {
    width: 100%;
    max-width: none;
  }

  .gift__details {
    padding-top: 10px;
  }

  .gift__role {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .gift__bank {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .gift__name {
    font-size: 19px;
  }

  .gift__accountrow {
    gap: 4px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .gift__branch {
    font-size: 9px;
  }

  .gift__transfer {
    font-size: 8.5px;
  }

  .copy-button {
    padding: 3px 6px;
    font-size: 8px;
  }

  .copy-button svg {
    width: 11px;
    height: 11px;
  }

  .gift__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gift__form .field > select,
  .gift__form .field > input {
    margin-top: 5px;
  }

  .footer {
    min-height: 520px;
  }

  .footer > img {
    object-position: 50% 18%;
  }

  .settings {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 100%;
    height: auto;
    max-height: 88vh;
    padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 60px rgba(28, 5, 14, 0.3);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 0.4s cubic-bezier(0.22, 0.7, 0.25, 1), visibility 0.4s;
  }

  .settings.is-open {
    visibility: visible;
    transform: none;
  }

  .settings__header h2 {
    font-size: 30px;
  }

  .lightbox {
    padding: 58px 12px 72px;
  }

  .lightbox__figure img {
    max-height: 70vh;
    border-width: 4px;
  }

  .lightbox__nav {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    height: 44px;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 58px);
  }

  .lightbox__nav--next {
    right: calc(50% - 58px);
  }
}

@media (max-width: 360px) {
  .hero__names {
    font-size: calc(46px * var(--display-scale));
    line-height: 1.02;
  }

  .hero__date {
    font-size: 18px;
  }

  .hero__venue {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .cover {
    padding-top: 20px;
  }

  .botanical {
    display: none;
  }

  .cover__name .script {
    font-size: 40px;
  }

  .clock__unit {
    width: 64px;
    min-height: 76px;
  }

  .clock__unit strong {
    font-size: 30px;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .collage {
    padding-right: 8px;
    padding-left: 8px;
  }

  .polaroid {
    width: 47%;
  }

  .polaroid--bride {
    margin-top: 24px;
  }

  .gallery {
    gap: 4px;
  }

  .control {
    height: 42px;
    font-size: 9.5px;
  }

  #settingsButton {
    width: 42px;
  }

  .families {
    gap: 8px;
  }

  .family {
    padding: 0 4px;
  }

  .family__role {
    margin-bottom: 0.6em;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .family h3 {
    font-size: calc(clamp(19px, 5.2vw, 24px) * var(--display-scale));
  }

  .family__meta {
    margin-bottom: 0.8em;
    font-size: 7.5px;
    letter-spacing: 0.05em;
  }

  .family__parents {
    font-size: 0.78em;
    line-height: 1.6;
  }

  .family__parents span {
    font-size: 8.5px;
  }

  .family address {
    font-size: 8.5px;
    line-height: 1.55;
  }

  .family__map {
    gap: 4px;
    margin-top: 9px;
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: 0.03em;
  }

  .family__map svg {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 720px) {
  #musicButton,
  #settingsButton {
    width: 42px;
    height: 42px;
  }
}

@media (min-height: 820px) {
  .cover {
    overflow: hidden;
  }
}

@media (max-height: 700px) and (min-width: 560px) {
  .cover {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .envelope {
    width: min(280px, 60vw);
    margin-top: 10px;
    margin-bottom: 4px;
  }

  .cover__name .script {
    font-size: 38px;
  }

  .cover__hint {
    margin-top: 6px;
  }
}

@media (max-width: 720px) {
  .gift-dialog {
    padding: 6px;
  }

  .gift-dialog__panel {
    max-height: 96svh;
    border-radius: 16px;
  }

  .gift-dialog__header {
    padding: 10px 14px;
  }

  .gift-dialog__eyebrow {
    margin-bottom: 1px;
    font-size: 7.5px;
  }

  .gift-dialog__header h3 {
    font-size: 26px;
  }

  .gift-dialog__close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .gift-dialog__body {
    padding: 10px 12px 12px;
  }

  .gift__cards {
    gap: 8px;
  }

  .gift__card {
    padding: 10px 6px 12px;
  }

  .gift__qrwrap {
    max-width: 122px;
    margin-bottom: 8px;
    padding: 4px;
  }

  .gift__role {
    margin-bottom: 6px;
    font-size: 8.5px;
  }

  .gift__bank {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .gift__name {
    font-size: 17px;
    line-height: 1.15;
  }

  .gift__accountrow {
    gap: 3px;
    font-size: 12px;
  }

  .gift__branch,
  .gift__transfer {
    font-size: 8px;
  }

  .copy-button,
  .gift__save {
    gap: 3px;
    margin-top: 7px;
    padding: 3px 6px;
    font-size: 7.5px;
  }

  .copy-button svg,
  .gift__save svg {
    width: 10px;
    height: 10px;
  }

  .gift__hint {
    margin: 10px auto 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .gift__form .field {
    font-size: 13px;
    line-height: 1.4;
  }

  .gift__form .field > select,
  .gift__form .field > input {
    margin-top: 5px;
    padding: 8px 10px;
    font-size: 13px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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