@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Google+Sans+Flex:opsz,wght@8..144,400..700&family=Pinyon+Script&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --phone-width: min(100vw, 430px);
  --bg: #fff8f4;
  --paper: #fffdfb;
  --paper-soft: #fff0ea;
  --ink: #4d3130;
  --muted: #80615d;
  --brand: #934847;
  --brand-dark: #743534;
  --line: #f0d5ce;
  --shadow: 0 16px 42px rgba(106, 54, 49, 0.14);
  --radius: 22px;
  --font-body: "Google Sans Flex", sans-serif;
  --font-script: "Pinyon Script", cursive;
  --font-hand: "Dancing Script", cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.scroll-locked {
  position: fixed;
  top: 0;
  left: 50%;
  height: 100svh;
  transform: translateX(-50%);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: env(safe-area-inset-top);
  background: #3b0808;
  pointer-events: none;
}

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

a {
  color: inherit;
}

.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.petal {
  position: absolute;
  top: -36px;
  width: 15px;
  height: 12px;
  background: linear-gradient(135deg, #e6bbc4, #fff4f6);
  border-radius: 80% 0 80% 0;
  opacity: 0.72;
  transform-origin: 58% 42%;
  animation: fall ease-in-out infinite;
}

.intro-hearts {
  position: fixed;
  inset: 0;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
  overflow: hidden;
  z-index: 45;
}

.intro-heart {
  position: absolute;
  top: -44px;
  color: transparent;
  background: linear-gradient(145deg, #ff2f46 0%, #f50028 55%, #ff7a88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: var(--heart-size, 28px);
  line-height: 1;
  filter: drop-shadow(0 8px 13px rgba(209, 0, 34, 0.3));
  animation: introHeartFall var(--heart-duration, 4.4s) linear forwards;
}

@keyframes introHeartFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -44px, 0) rotate(-16deg) scale(0.62);
  }

  12% {
    opacity: 0.92;
  }

  42% {
    transform: translate3d(var(--heart-drift, 60px), 34svh, 0) rotate(14deg) scale(1);
  }

  72% {
    opacity: 0.78;
    transform: translate3d(calc(var(--heart-drift, 60px) * -0.35), 70svh, 0) rotate(-22deg) scale(0.9);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--heart-drift, 60px), 112svh, 0) rotate(36deg) scale(0.62);
  }
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -56px, 0) rotate(-10deg) rotateY(0deg) scale(0.9);
  }

  12% {
    opacity: 0.7;
  }

  25% {
    transform: translate3d(var(--petal-drift, 70px), 25svh, 0) rotate(34deg) rotateY(42deg) scale(1);
  }

  50% {
    transform: translate3d(calc(var(--petal-drift, 70px) * -0.72), 52svh, 0) rotate(82deg) rotateY(82deg) scale(0.96);
  }

  74% {
    transform: translate3d(calc(var(--petal-drift, 70px) * 1.08), 78svh, 0) rotate(128deg) rotateY(34deg) scale(1.02);
  }

  90% {
    opacity: 0.58;
    transform: translate3d(calc(var(--petal-drift, 70px) * -0.46), 96svh, 0) rotate(168deg) rotateY(72deg) scale(0.98);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--petal-drift, 70px), 110svh, 0) rotate(196deg) rotateY(115deg) scale(0.9);
  }
}

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.invite {
  width: 100%;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #fbf3f1 0%, #f8eeec 72%, #fbf4f2 100%);
  animation: cardIn 0.8s ease both;
}

.opening-shell {
  padding: 12px 26px 0;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes inviteFloat {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -9px;
  }
}

@keyframes musicSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes envelopeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-28px);
  }
}

@keyframes envelopeShadow {

  0%,
  100% {
    opacity: 0.58;
    transform: translateX(-50%) scaleX(1.22) scaleY(1);
    filter: blur(10px);
  }

  50% {
    opacity: 0.28;
    transform: translateX(-50%) scaleX(0.82) scaleY(0.72);
    filter: blur(7px);
  }
}

@keyframes heartRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.45) rotate(0deg);
  }

  12% {
    opacity: 1;
    transform: translate(calc(-50% + var(--heart-mid)), -105px) scale(0.9) rotate(calc(var(--heart-rotate) / 2));
  }

  62% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--heart-wide)), -360px) scale(1.26) rotate(var(--heart-rotate));
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--heart-drift)), -650px) scale(1.42) rotate(calc(var(--heart-rotate) * 1.35));
  }
}

.cover-kicker {
  text-align: center;
  letter-spacing: 9px;
  text-transform: uppercase;
  color: #8e3434;
  font-size: 14px;
  line-height: 1.35;
  padding-left: 9px;
}

.cover-title {
  margin-top: 17px;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #8f3c39;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.stamp {
  position: absolute;
  top: 14px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 3px solid #ee9b9d;
  border-radius: 50%;
  opacity: 0.8;
}

.stamp::before,
.stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ee9b9d;
  border-radius: 50%;
}

.stamp::after {
  inset: 13px;
  background: #ee9b9d;
}

.couple-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: #111;
  font-family: var(--font-script);
  font-weight: 500;
}

.couple-name {
  min-width: 0;
  text-align: center;
  font-size: min(7vw, 30px);
  line-height: 1;
  letter-spacing: 0;
  color: #111;
  transform: scaleX(0.84);
  white-space: nowrap;
}

.amp {
  font-family: var(--font-script);
  font-size: 28px;
  line-height: 1.1;
  color: #a44d46;
}

.double-happiness {
  width: 60px;
  height: 60px;
  margin: 24px auto 0;
  display: grid;
  place-items: center;
  border: 3px dotted #ef8f91;
  border-radius: 50%;
  background: #fff1ed;
  color: #de3833;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 0 0 3px #ffd8d0;
}

.envelope-stage {
  position: relative;
  width: 100%;
  height: clamp(212px, min(57vw, 245px), 246px);
  margin: 62px auto 0;
  overflow: visible;
}

.envelope-shadow {
  position: absolute;
  left: 50%;
  bottom: -80px;
  z-index: 0;
  width: 92%;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(49, 34, 31, 0.72) 0%, rgba(49, 34, 31, 0.34) 48%, transparent 76%);
  animation: envelopeShadow 2.5s ease-in-out infinite;
  pointer-events: none;
}

.envelope {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px 2px 5px 5px;
  background: #a83c3c;
  box-shadow: 0 12px 18px rgba(73, 42, 37, 0.12);
  overflow: visible;
  animation: envelopeFloat 2.5s ease-in-out infinite;
  cursor: pointer;
  perspective: 900px;
  isolation: isolate;
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #aa3f3f;
  clip-path: polygon(0 0, 52% 50.8%, 0 100%);
  border-radius: 2px 0 0 5px;
}

.envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #ad4242;
  clip-path: polygon(100% 0, 100% 100%, 48% 50.8%);
  border-radius: 0 2px 5px 0;
}

.couple-photo {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  width: min(84%, 340px);
  aspect-ratio: 1.62;
  overflow: hidden;
  border-radius: 8px;
  background: #f7d8d2;
  box-shadow: 0 18px 34px rgba(62, 31, 27, 0.22);
  transform: translate(-50%, 0) scale(0.92);
  opacity: 0.98;
  transition:
    transform 1.55s cubic-bezier(0.18, 0.74, 0.18, 1),
    box-shadow 1.55s ease;
  pointer-events: none;
}

.couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.envelope.open .couple-photo {
  transform: translate(-50%, -138px) scale(1);
  box-shadow: 0 24px 44px rgba(62, 31, 27, 0.28);
  transition-delay: 0.72s;
}

.heart-burst {
  position: absolute;
  left: 50%;
  bottom: 124px;
  z-index: 8;
  pointer-events: none;
}


.heart-burst span {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #d10000;
  font-family: var(--font-symbol);
  font-size: 48px;
  line-height: 1;
  opacity: 0;
  background: #d10000;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 16px rgba(180, 0, 0, 0.34)) drop-shadow(0 2px 3px rgba(255, 244, 244, 0.52));
  text-shadow: none;
}


.envelope.open .heart-burst span {
  animation: heartRise 3.4s cubic-bezier(0.18, 0.64, 0.16, 1) both;
  animation-delay: calc(2.28s + var(--heart-delay));
}

.heart-burst span:nth-child(1) {
  --heart-mid: -28px;
  --heart-wide: -126px;
  --heart-drift: -178px;
  --heart-rotate: -34deg;
  --heart-delay: 0s;
}

.heart-burst span:nth-child(2) {
  --heart-mid: 18px;
  --heart-wide: -72px;
  --heart-drift: -112px;
  --heart-rotate: 26deg;
  --heart-delay: 0.22s;
  font-size: 40px;
}

.heart-burst span:nth-child(3) {
  --heart-mid: -8px;
  --heart-wide: 18px;
  --heart-drift: 24px;
  --heart-rotate: -18deg;
  --heart-delay: 0.34s;
  font-size: 54px;
}

.heart-burst span:nth-child(4) {
  --heart-mid: 34px;
  --heart-wide: 98px;
  --heart-drift: 152px;
  --heart-rotate: 38deg;
  --heart-delay: 0.12s;
  font-size: 42px;
}

.heart-burst span:nth-child(5) {
  --heart-mid: -18px;
  --heart-wide: 146px;
  --heart-drift: 208px;
  --heart-rotate: -30deg;
  --heart-delay: 0.28s;
  font-size: 48px;
}


.envelope-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 54%;
  z-index: 6;
  background: #8f2929;
  clip-path: polygon(-1% 0, 101% 0, 50% 103%);
  transform-origin: 50% 0;
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.18s,
    z-index 0s linear 1.18s;
  pointer-events: none;
}

.envelope.open .envelope-flap {
  z-index: 1;
  transform: rotateX(172deg);
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0s,
    z-index 0s linear 0.62s;
}

.envelope-bottom {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #b44848;
  clip-path: polygon(-1% 101%, 50% 49%, 101% 101%);
  border-radius: 0 0 5px 5px;
  pointer-events: none;
}

.seal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 224, 167, 0.55), transparent 28%),
    linear-gradient(145deg, #9a6a42, #6f482f);
  border: 2px solid #b98557;
  box-shadow: 0 4px 8px rgba(45, 22, 18, 0.28);
  transition:
    transform 0.5s ease 1.55s,
    opacity 0.42s ease 1.55s;
  pointer-events: none;
}

.envelope.open .seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition:
    transform 0.5s ease 0s,
    opacity 0.42s ease 0s;
}

.seal::after {
  content: "囍";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(244, 198, 133, 0.75);
  font-size: 16px;
}

.open-hint {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: var(--font-hand);
  color: #a74b49;
  font-size: 18px;
  line-height: 1;
}

body::after {
  --v-a: "\004d\0061";
  --v-b: "\0064\0065\0020";
  --v-c: "\0077\0069\0074\0068\0020";
  --v-d: "\0044\0051\0079\0068";
  content: var(--v-a) var(--v-b) var(--v-c) var(--v-d);
  position: fixed;
  right: max(9px, calc((100vw - 430px) / 2 + 9px));
  bottom: 60px;
  z-index: 40;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #2f2828;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.source-signature {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  user-select: none;
}

button,
.button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(147, 72, 71, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:active,
.button:active {
  transform: translateY(1px);
  background: var(--brand-dark);
}

.button.secondary {
  background: #fffdfb;
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: none;
}

.invitation-preview-section {
  padding: 64px 0 0;
}

.invitation-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 18px 42px rgba(46, 38, 36, 0.18);
}

.preview-top {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 18px 66px 18px 24px;
  background: linear-gradient(180deg, #fffdfb, #fff6f3);
}

.preview-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 72%;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(57, 49, 46, 0.33), rgba(57, 49, 46, 0.12) 54%, transparent 78%);
  filter: blur(7px);
  transform: translateX(-50%);
}

.preview-open-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-hand);
  color: #a74b49;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 1px 0 #fff;
}

.preview-disc {
  position: absolute;
  right: 13px;
  top: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #ef9da1;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6), 0 8px 18px rgba(158, 63, 70, 0.2);
  font-size: 18px;
}

.preview-photo {
  position: relative;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 286px 26px 28px;
  background:
    linear-gradient(180deg, rgba(255, 228, 222, 0.08), rgba(255, 228, 222, 0.14)),
    url("assets/images/couple03.jpg") center top / cover;
}

.preview-countdown {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  width: min(286px, calc(100% - 44px));
  margin: 0 auto -32px;
}

.preview-countdown .timebox {
  min-height: 58px;
  padding: 9px 6px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #a93d3c;
  box-shadow: 0 8px 18px rgba(79, 34, 32, 0.2);
}

.preview-countdown .timebox strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

.preview-countdown .timebox span {
  margin-top: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.preview-message {
  position: relative;
  z-index: 1;
  padding: 60px 28px 26px;
  text-align: center;
  background: rgba(255, 249, 246, 0.50);
  backdrop-filter: blur(2px);
}

.preview-message h2 {
  margin-bottom: 20px;
  color: #8f3c39;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 12px;
  padding-left: 12px;
  text-align: center;
}

.preview-message p {
  color: #9a4c48;
  font-size: 12px;
  line-height: 1.65;
}

.reveal-up {
  opacity: 0;
  transform: translateY(var(--reveal-distance, 80px));
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(var(--reveal-distance, 80px));
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(calc(var(--reveal-distance, 80px) * -1));
  will-change: transform, opacity;
}

.reveal-up.is-visible {
  animation: revealUp var(--reveal-duration, 2s) cubic-bezier(0.16, 0.84, 0.24, 1) var(--reveal-delay, 0s) forwards;
}

.reveal-left.is-visible {
  animation: revealLeft var(--reveal-duration, 2s) cubic-bezier(0.16, 0.84, 0.24, 1) var(--reveal-delay, 0s) forwards;
}

.reveal-right.is-visible {
  animation: revealRight var(--reveal-duration, 2s) cubic-bezier(0.16, 0.84, 0.24, 1) var(--reveal-delay, 0s) forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance, 80px));
  }

  55% {
    opacity: 0.72;
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(var(--reveal-distance, 80px));
  }

  55% {
    opacity: 0.72;
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(calc(var(--reveal-distance, 80px) * -1));
  }

  55% {
    opacity: 0.72;
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 420px) {
  .preview-photo {
    min-height: 590px;
    padding: 286px 18px 28px;
  }

  .preview-countdown {
    gap: 9px;
    width: min(276px, 100%);
  }

  .preview-countdown .timebox {
    min-height: 56px;
    padding: 8px 5px;
  }

  .preview-message {
    padding: 76px 18px 24px;
  }

  .preview-message h2 {
    margin-bottom: 22px;
    font-size: 23px;
    letter-spacing: 9px;
    padding-left: 9px;
  }
}

@media (max-width: 360px) {
  .preview-photo {
    padding-top: 278px;
  }

  .preview-countdown {
    gap: 7px;
    width: min(260px, 100%);
  }

  .preview-countdown .timebox strong {
    font-size: 14px;
  }

  .preview-countdown .timebox span {
    font-size: 11px;
  }

  .preview-message {
    padding-top: 76px;
  }

  .preview-message h2 {
    font-size: 21px;
    letter-spacing: 7px;
    padding-left: 7px;
  }
}

.ceremony-panel {
  position: relative;
  padding: 54px 18px 34px;
  color: #301d2e;
  text-align: center;
}

.ceremony-panel::before,
.ceremony-panel::after {
  content: "";
  position: absolute;
  left: 28px;
  width: 2px;
  height: 70px;
  background: #b55456;
}

.ceremony-panel::before {
  top: 12px;
}

.ceremony-panel::after {
  top: 210px;
}

.ceremony-couple {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 70px;
}

.ceremony-prefix {
  display: grid;
  gap: 11px;
  color: #09020b;
  font-family: var(--font-script);
  font-size: 25px;
  font-weight: 700;
  line-height: 0.9;
  text-align: left;
}

.ceremony-prefix .reveal-right {
  display: block;
  --reveal-distance: 24px;
  --reveal-duration: 2.1s;
}

.ceremony-prefix .reveal-right:nth-child(2) {
  --reveal-delay: 0.18s;
}

.ceremony-prefix .reveal-right:nth-child(3) {
  --reveal-delay: 0.36s;
}

.ceremony-names {
  display: grid;
  gap: 13px;
  color: #9a2f35;
  font-family: var(--font-script);
  font-size: 25px;
  font-weight: 700;
  line-height: 0.8;
}

.ceremony-names span:nth-child(1) {
  justify-self: start;
  padding-left: 8px;
}

.ceremony-names span:nth-child(2) {
  font-family: var(--font-script);
  font-size: 27px;
  line-height: 0.8;
}

.ceremony-names span:nth-child(3) {
  justify-self: end;
  padding-right: 8px;
  padding-top: 10px;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.family h3 {
  margin-bottom: 12px;
  color: #281633;
  font-size: 31px;
  line-height: 1;
}

.family p {
  margin: 0;
  color: #140d23;
  font-size: 15px;
  line-height: 1.6;
}

.ceremony-title {
  margin-bottom: 12px;
  color: #45283a;
  font-size: 23px;
  text-transform: uppercase;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 94px 1fr;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  color: #342336;
  text-transform: uppercase;
}

.date-side {
  display: grid;
  gap: 10px;
  font-size: 22px;
}

.date-side::before,
.date-side::after {
  content: "";
  display: block;
  height: 1px;
  background: #8b8586;
}

.date-number {
  color: #983841;
  font-size: 70px;
  line-height: 0.92;
}

.lunar-date {
  margin: 0 0 26px;
  color: #6d4b4f;
  font-size: 16px;
}

.venue-label {
  margin-bottom: 8px;
  color: #5d3a42;
  font-size: 21px;
  text-transform: uppercase;
}

.venue-name {
  color: #46273c;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.venue-address {
  color: #71444c;
  font-size: 16px;
  line-height: 1.45;
}

.venue-map {
  display: block;
  width: min(100%, 356px);
  height: 220px;
  margin: 16px auto 0;
  border: 0;
  box-shadow: 0 10px 24px rgba(72, 48, 45, 0.12);
}

.photo-editorial {
  --pe-ink: #84373d;
  --pe-accent: #8f3c39;
  --pe-pink: #dfb9ba;
  --pe-shadow: rgba(96, 47, 48, 0.12);
  position: relative;
  min-height: 760px;
  overflow: hidden;
  margin: 34px -18px -34px;
  padding: 28px 20px 24px;
  box-sizing: border-box;
  background: linear-gradient(90deg, transparent 0 52%, var(--pe-pink) 52% 100%);
  color: var(--pe-ink);
}

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

.photo-editorial .editorial-orb {
  position: absolute;
  left: 18px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e7b9b7, #fff6f3 68%);
  opacity: 0.9;
  pointer-events: none;
}

.photo-editorial .editorial-orb.reveal-right {
  opacity: 0;
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.photo-editorial .editorial-kicker {
  position: relative;
  z-index: 2;
  width: 260px;
  margin: 0 auto 18px;
  color: var(--pe-accent);
  font-size: 21px;
  letter-spacing: 18px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.photo-editorial .editorial-ask {
  position: absolute;
  left: 0px;
  top: 146px;
  z-index: 2;
  color: rgba(117, 49, 59, 0.94);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 15px;
  line-height: 1.55;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #8B5E5E;
  /* viền ngoài */
  text-shadow: 3px 2px 1px #8B5E5E;
}

.photo-editorial .editorial-frame {
  position: absolute;
  right: 4px;
  top: 92px;
  width: 292px;
  height: 300px;
  border: 6px solid rgba(182, 122, 124, 0.45);
  padding: 8px;
  background: rgba(255, 244, 240, 0.45);
}

.photo-editorial .editorial-frame img,
.photo-editorial .editorial-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-editorial .editorial-main-photo {
  position: absolute;
  left: 2px;
  top: 306px;
  z-index: 3;
  width: 258px;
  height: 386px;
  overflow: hidden;
  box-shadow: 0 14px 28px var(--pe-shadow);
}

.photo-editorial .editorial-yes {
  position: absolute;
  right: 12px;
  top: 498px;
  z-index: 6;
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 9px;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 2px 3px rgba(79, 41, 44, 0.42);
  text-transform: uppercase;
  width: 128px;
  pointer-events: none;
}

.photo-editorial .editorial-heart {
  position: absolute;
  left: 72px;
  top: 28px;
  color: transparent;
  background: linear-gradient(145deg, #ff9aa6 0%, #ff6f83 46%, #ffd2d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 46px;
  transform: rotate(-18deg) scaleX(1.08);
  filter: drop-shadow(0 8px 14px rgba(132, 55, 61, 0.2));
  pointer-events: none;
}

.photo-editorial .editorial-hearts {
  position: absolute;
  right: 0;
  top: 420px;
  z-index: 5;
  width: 148px;
  height: 150px;
  pointer-events: none;
}

.photo-editorial .editorial-heart.small {
  left: 22px;
  top: 62px;
  font-size: 22px;
  background: linear-gradient(145deg, #ffb3bc 0%, #f47d8b 58%, #ffe1e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: rotate(22deg) scale(0.92);
}

.photo-editorial .editorial-heart.tiny {
  left: 54px;
  top: 0;
  font-size: 18px;
  background: linear-gradient(145deg, #ffd0d6 0%, #ff8494 62%, #fff0f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: rotate(34deg) scaleX(0.88);
}

.photo-editorial .editorial-heart.left {
  left: 0;
  top: 78px;
  font-size: 24px;
  background: linear-gradient(145deg, #ff9ba8 0%, #ec6f82 50%, #ffdce1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: rotate(-34deg) scale(1.06);
}

.photo-editorial .editorial-heart.low {
  left: 58px;
  top: 104px;
  font-size: 20px;
  background: linear-gradient(145deg, #ffc4ca 0%, #ff7f91 52%, #ffe9ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: rotate(14deg) scaleY(1.12);
}

.bride-section .bride-heading {
  position: absolute;
  left: var(--section-heading-left);
  top: var(--section-heading-top);
  z-index: 3;
  color: #b55256;
  font-family: var(--font-script);
  font-size: var(--section-heading-size);
  line-height: 1;
}

.bride-section {
  --as-paper: #fff8f6;
  --as-pink: #dfb9ba;
  --as-accent: #b55256;
  --as-line: #a74444;
  --as-ink: #21141d;
  --section-heading-left: clamp(88px, min(24vw, 103px), 104px);
  --section-orb-top: clamp(26px, min(7vw, 30px), 34px);
  --section-heading-top: clamp(30px, min(8vw, 34px), 38px);
  --section-heading-size: clamp(34px, min(9vw, 39px), 40px);
  --section-spark-left: clamp(70px, min(19vw, 82px), 82px);
  --section-spark-top: clamp(24px, min(6.5vw, 28px), 32px);
  --section-orb-size: clamp(36px, min(10vw, 43px), 44px);
  --couple-label-size: clamp(24px, min(7vw, 30px), 28px);
  --couple-label-spacing: clamp(5px, min(1.8vw, 8px), 7px);
  position: relative;
  min-height: min(calc(90px + 150vw), 735px);
  margin: -74px -18px -34px;
  box-sizing: border-box;
  overflow: hidden;
}

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

.bride-section .bride-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e7b9b7, #fff6f3 68%);
  opacity: 0.9;
  width: var(--section-orb-size);
  height: var(--section-orb-size);
  left: 20px;
  top: var(--section-orb-top);
}

.bride-section .bride-orb.reveal-right {
  opacity: 0;
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.bride-section .bride-profile {
  position: absolute;
  left: 25px;
  right: 0;
  top: 84px;
  z-index: 4;
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: 370px;
}

.bride-section .bride-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(75vw, 323px);
  margin-top: 24px;
  border: 2px solid var(--as-line);
  padding: 58px 12px 18px;
  color: var(--as-ink);
  background: rgba(255, 248, 246, 0.42);
  text-align: center;
}

.bride-section .bride-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-size: 18px;
  color: #1d1218;
  line-height: 1;
}

.bride-section .bride-card p {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 2.25;
  color: #2f252b;
}

.bride-section .bride-portrait-wrap {
  position: relative;
  z-index: 3;
  justify-self: end;
  width: 100%;
  height: min(90vw, 387px);
}

.bride-section .bride-portrait {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  transform: translateX(-3px);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(111, 64, 60, 0.12);
}

.bride-section .bride-portrait img,
.bride-section .bride-couple img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bride-section .bride-couple-wrap {
  position: absolute;
  left: clamp(8px, min(3vw, 13px), 14px);
  right: clamp(22px, min(7vw, 30px), 32px);
  top: min(calc(100vw + 84px), 514px);
  z-index: 4;
  border: 1px solid var(--as-line);
  padding: 0 clamp(48px, min(14vw, 60px), 58px) 0 clamp(8px, min(3vw, 13px), 14px);
  box-sizing: border-box;
}

.bride-section .bride-couple {
  width: min(clamp(278px, min(84vw, 361px), 320px), 100%);
  height: min(50vw, 215px);
  transform: translateY(-20px);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(111, 64, 60, 0.1);
}

.bride-section .bride-label {
  position: absolute;
  right: clamp(8px, min(3vw, 13px), 12px);
  top: clamp(26px, min(8vw, 34px), 34px);
  color: rgba(151, 63, 68, 0.34);
  font-size: var(--couple-label-size);
  letter-spacing: var(--couple-label-spacing);
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
}

.groom-section {
  --gpb-line: #8f3435;
  --gpb-label: rgba(151, 63, 68, 0.34);
  --gpb-ink: #21141d;
  --gpb-card-bg: rgba(255, 248, 246, 0.42);
  --gpb-spark: #eaa4a5;
  --section-heading-left: clamp(88px, min(24vw, 103px), 104px);
  --section-orb-top: clamp(26px, min(7vw, 30px), 34px);
  --section-heading-top: clamp(30px, min(8vw, 34px), 38px);
  --section-heading-size: clamp(34px, min(9vw, 39px), 40px);
  --section-spark-left: clamp(70px, min(19vw, 82px), 82px);
  --section-spark-top: clamp(24px, min(6.5vw, 28px), 32px);
  --section-orb-size: clamp(36px, min(10vw, 43px), 44px);
  --couple-label-size: clamp(24px, min(7vw, 30px), 28px);
  --couple-label-spacing: clamp(5px, min(1.8vw, 8px), 7px);
  position: relative;
  min-height: min(calc(90px + 150vw), 735px);
  margin: 20px -18px -34px;
  overflow: hidden;
  box-sizing: border-box;
}

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

.groom-section .groom-heading {
  position: absolute;
  left: var(--section-heading-left);
  top: var(--section-heading-top);
  z-index: 3;
  color: #b55256;
  font-family: var(--font-script);
  font-size: var(--section-heading-size);
  line-height: 1;
}

.groom-section .groom-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e7b9b7, #fff6f3 68%);
  opacity: 0.9;
  width: var(--section-orb-size);
  height: var(--section-orb-size);
  left: 20px;
  top: var(--section-orb-top);
}

.groom-section .groom-orb.reveal-right {
  opacity: 0;
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.groom-section .groom-spark {
  position: absolute;
  left: 60px;
  top: 20px;
  color: var(--gpb-spark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.groom-section .groom-spark.reveal-right {
  z-index: 4;
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.groom-section .groom-profile {
  position: absolute;
  left: 0;
  right: 5px;
  top: 84px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35%;
  gap: 0;
  align-items: start;
  min-height: 370px;
}

.groom-section .groom-portrait-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  height: min(90vw, 387px);
}

.groom-section .groom-portrait {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  transform: translateX(3px);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(111, 64, 60, 0.12);
}

.groom-section .groom-portrait img,
.groom-section .groom-couple img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.groom-section .groom-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(75vw, 323px);
  margin-top: 24px;
  border: 2px solid var(--gpb-line);
  padding: 58px 12px 18px;
  color: var(--gpb-ink);
  background: var(--gpb-card-bg);
  text-align: center;
}

.groom-section .groom-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-size: 18px;
  color: #1d1218;
  line-height: 1;
}

.groom-section .groom-card p {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 2.25;
  color: #2f252b;
}

.groom-section .groom-couple-wrap {
  position: absolute;
  left: clamp(22px, min(7vw, 30px), 32px);
  right: clamp(8px, min(3vw, 13px), 14px);
  top: min(calc(100vw + 84px), 514px);
  z-index: 4;
  border: 1px solid var(--gpb-line);
  padding: 0 clamp(8px, min(3vw, 13px), 14px) 0 clamp(48px, min(14vw, 60px), 58px);
  box-sizing: border-box;
}

.groom-section .groom-couple {
  width: min(clamp(278px, min(84vw, 361px), 320px), 100%);
  height: min(50vw, 215px);
  transform: translateY(-20px);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(111, 64, 60, 0.1);
}

.groom-section .groom-label {
  position: absolute;
  left: clamp(8px, min(3vw, 13px), 12px);
  top: clamp(26px, min(8vw, 34px), 34px);
  z-index: 5;
  color: var(--gpb-label);
  font-size: var(--couple-label-size);
  letter-spacing: var(--couple-label-spacing);
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-orientation: mixed;
  text-transform: uppercase;
}

.save-the-date-section {
  --std-line: #a74444;
  --std-accent: #a74444;
  --std-tag: #e89da1;
  position: relative;
  min-height: min(160vw, 702px);
  margin: 30px -18px -34px;
  overflow: hidden;
  box-sizing: border-box;
}

.save-the-date-section *,
.save-the-date-section *::before,
.save-the-date-section *::after {
  box-sizing: border-box;
}

.save-the-date-section .save-date-orb {
  position: absolute;
  left: 72px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e7b9b7, #fff6f3 68%);
  opacity: 0.9;
}

.save-the-date-section .save-date-orb.reveal-right {
  opacity: 0;
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.save-the-date-section .save-date-spark {
  position: absolute;
  left: 113px;
  top: 15px;
  z-index: 3;
  color: #eaa4a5;
  font-size: 16px;
  font-weight: 700;
}

.save-the-date-section .save-date-heading {
  position: absolute;
  left: 142px;
  top: 21px;
  z-index: 3;
  color: var(--std-accent);
  font-size: 31px;
  font-weight: 400;
  font-family: var(--font-script);
  line-height: 1;
  white-space: nowrap;
}

.save-the-date-section .save-date-tag {
  position: absolute;
  right: 11px;
  top: 10px;
  z-index: 5;
  padding: 10px 8px 12px;
  color: #fff;
  background: var(--std-tag);
  font-size: 19px;
  line-height: 1.25;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.save-the-date-section .save-date-frame {
  position: absolute;
  left: 16px;
  right: 14px;
  top: 75px;
  height: min(50vw, 215px);
  border: 1px solid var(--std-line);
}

.save-the-date-section .save-date-photo {
  position: absolute;
  left: 34px;
  right: 5px;
  top: 94px;
  height: min(140vw, 616px);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(111, 64, 60, 0.1);
}

.save-the-date-section .save-date-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.save-the-date-section wedding-calendar {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  width: 70%;

  --cal-bg: rgba(255, 255, 255, 0.4);
  --cal-backdrop-filter: blur(3px);
  --cal-border: var(--std-line);
  --cal-accent: var(--std-accent);
  --cal-shadow: 0 6px 18px rgba(167, 68, 68, 0.12);

}

.wedding-timeline-section {
  position: relative;
  min-height: 290px;
  margin: 34px -18px -34px;
  padding: 42px 34px 38px;
  overflow: hidden;
  box-sizing: border-box;
}

.wedding-timeline-section *,
.wedding-timeline-section *::before,
.wedding-timeline-section *::after {
  box-sizing: border-box;
}

.wedding-timeline-section .timeline-list {
  position: relative;
  width: 292px;
  margin: 0 auto;
}

.wedding-timeline-section .timeline-list::before {
  content: "";
  position: absolute;
  left: 76px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #b8b0ae;
}

.wedding-timeline-section .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 34px 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 64px;
}

.wedding-timeline-section .timeline-item+.timeline-item {
  margin-top: 2px;
}

.wedding-timeline-section .timeline-icon {
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  filter: saturate(0.82);
}

.wedding-timeline-section .timeline-heart {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ec9699;
  font-size: 22px;
  line-height: 1;
}

.wedding-timeline-section .timeline-content {
  color: #554140;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.wedding-timeline-section .timeline-time {
  color: #6d5552;
  font-style: italic;
}

.invitation-gallery-section {
  position: relative;
  margin: 34px -18px -34px;
  padding: 56px 0 30px;
  overflow: hidden;
  background: #fff8f6;
  box-sizing: border-box;
}

.invitation-gallery-section *,
.invitation-gallery-section *::before,
.invitation-gallery-section *::after {
  box-sizing: border-box;
}

.invitation-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 800px;
  /* background-size: 100% 100%; */
  background:
    linear-gradient(rgba(255, 247, 244, 0.28), rgba(255, 247, 244, 0.28)),
    url("assets/images/couple18.jpg") center / cover;
}

.invitation-gallery-section .gallery-title {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 20px;
  z-index: 4;
  color: #a74444;
  font-size: clamp(12px, 3.6vw, 17px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: clamp(8px, 4vw, 21px);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.invitation-gallery-section .gallery-collage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 0 10px 0;
}

.invitation-gallery-section .gallery-side {
  flex: 0 0 10%;
  display: flex;
  justify-content: center;
}

.invitation-gallery-section .gallery-side.left {
  align-items: flex-start;
  padding-top: 50px;
}

.invitation-gallery-section .gallery-side.right {
  align-items: flex-start;
  padding-top: 150px;
}

.invitation-gallery-section .gallery-side-copy {
  color: #a65358;
  font-family: var(--font-script);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
}

.invitation-gallery-section .gallery-side.left .gallery-side-copy {
  transform: rotate(180deg);
  transform-origin: center;
}

.invitation-gallery-section .gallery-side.right .gallery-side-copy.reveal-left {
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.invitation-gallery-section .gallery-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.invitation-gallery-section .gallery-photo {
  overflow: hidden;
  border: 5px solid rgba(255, 248, 246, 0.92);
  box-shadow: 0 9px 22px rgba(91, 50, 47, 0.12);
}

.invitation-gallery-section .gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invitation-gallery-section .gallery-photo.one {
  width: 100%;
  aspect-ratio: 294 / 204;
}

.invitation-gallery-section .gallery-photo.two {
  width: 100%;
  aspect-ratio: 300 / 178;
}

.invitation-gallery-section .gallery-photo.three {
  width: 100%;
  aspect-ratio: 292 / 164;
}

.invitation-gallery-section .gallery-rsvp {
  position: relative;
  z-index: 5;
  width: 310px;
  margin: 50px auto 0;
}

.invitation-gallery-section .gallery-rsvp .rsvp-box {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
}

.invitation-gallery-section .gallery-rsvp .section-title {
  font-size: 24px;
}

.invitation-gallery-section .gallery-note {
  position: relative;
  z-index: 4;
  margin: 34px 28px 0;
  color: #594b49;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 1.4px;
  text-align: center;
}

.wedding-gift-section {
  position: relative;
  margin: 34px -18px -34px;
  padding: 42px 10px 54px;
  overflow: hidden;
  background: #fff8f6;
  box-sizing: border-box;
}

.wedding-gift-section *,
.wedding-gift-section *::before,
.wedding-gift-section *::after {
  box-sizing: border-box;
}

.wedding-gift-section .gift-heading {
  margin: 0 0 54px;
  color: #e48f92;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.wedding-gift-section .gift-list {
  display: grid;
  gap: 72px;
}

.wedding-gift-section .gift-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.wedding-gift-section .gift-row.groom {
  grid-template-columns: minmax(0, 1fr) 112px;
}

.wedding-gift-section .gift-portrait-ring {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: repeating-conic-gradient(#dfb7b9 0 9deg, transparent 9deg 16deg);
}

.wedding-gift-section .gift-portrait {
  width: 94px;
  height: 94px;
  overflow: hidden;
  border: 5px solid #fff8f6;
  border-radius: 50%;
  background: #efd7d5;
}

.wedding-gift-section .gift-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wedding-gift-section .gift-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 6px;
  align-items: center;
  min-height: 120px;
  padding: 10px;
  border: 1px solid #eee6e3;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 15px rgba(75, 51, 48, 0.13);
}

.wedding-gift-section .gift-row.groom .gift-card {
  grid-template-columns: 82px minmax(0, 1fr);
}

.wedding-gift-section .gift-info {
  min-width: 0;
  color: #403534;
  text-align: center;
}

.wedding-gift-section .gift-role {
  margin: 0 0 7px;
  font-size: 12px;
}

.wedding-gift-section .gift-name {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.3;
}

.wedding-gift-section .gift-bank {
  margin: 0;
  color: #665856;
  font-size: 10px;
  line-height: 1.35;
}

.wedding-gift-section .gift-qr {
  width: 82px;
  height: 82px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
}

.wedding-gift-section .gift-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thank-you-section {
  position: relative;
  margin: 34px -18px -34px;
  padding: 48px 20px 64px;
  overflow: hidden;
  background: #fff8f6;
  box-sizing: border-box;
  text-align: center;
}

.thank-you-section *,
.thank-you-section *::before,
.thank-you-section *::after {
  box-sizing: border-box;
}

.thank-you-section .dancing-couple {
  display: grid;
  width: 230px;
  height: 190px;
  margin: 0 auto -18px;
  place-items: center;
  overflow: hidden;
}

.thank-you-section .dancing-couple img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.thank-you-section .thank-you-text {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #a5363d;
  font-family: var(--font-hand);
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(-5deg);
}

.editorial-spark {
  position: absolute;
  z-index: 4;
  color: #eaa4a5;
  font-size: 20px;
  font-weight: 700;
}

.editorial-spark.one {
  left: 63px;
  top: 2px;
}

.editorial-spark.one.reveal-right {
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.bride-section .bride-spark {
  position: absolute;
  left: 58px;
  top: 20px;
  color: #eaa4a5;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.bride-section .bride-spark.reveal-right {
  z-index: 4;
  --reveal-distance: 22px;
  --reveal-duration: 1.8s;
}

.section-title {
  text-align: center;
  font-size: clamp(31px, min(10vw, 43px), 42px);
  line-height: 1.05;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 500;
}

.timebox,
.rsvp-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timebox {
  min-height: 96px;
  padding: 18px 10px;
  text-align: center;
}

.timebox strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--brand);
}

.timebox span {
  display: block;
  margin-top: 8px;
  color: #876763;
  font-size: 13px;
  font-weight: 800;
}

.rsvp-box {
  padding: 20px;
  text-align: center;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

input:not([type="radio"]),
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #eccbc3;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fffafa;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

textarea {
  min-height: 106px;
  resize: vertical;
}

input:not([type="radio"]):focus,
textarea:focus {
  border-color: #c9847b;
  box-shadow: 0 0 0 3px rgba(201, 132, 123, 0.16);
}

.attendance-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid #eccbc3;
  border-radius: 16px;
  background: #fffafa;
}

.attendance-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.attendance-option {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.attendance-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.music {
  position: fixed;
  right: 8px;
  top: max(5px, env(safe-area-inset-top));
  z-index: 30;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #ee9b9d;
  background: #fff3f1;
  color: #b64b4b;
  font-size: clamp(12px, 3.6vw, 17px);
  box-shadow: none;
  transform-origin: center;
}

.music::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ee9b9d;
  border-radius: 50%;
}

.music.playing {
  animation: musicSpin 3s linear infinite;
}

@media (min-width: 521px) {
  html,
  body {
    background: #eef1f5;
  }

  .hero {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.18);
  }

  .music {
    right: max(8px, calc((100vw - 430px) / 2 + 8px));
  }
}

@media (max-width: 360px) {
  .hero {
    padding-inline: 0;
  }

  h1 {
    font-size: 45px;
  }

  .section-title {
    font-size: 30px;
  }

}

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