:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --surface-soft: #fbf2eb;
  --text: #1f1b17;
  --muted: #6a625b;
  --primary: #665d53;
  --secondary: #735853;
  --line: #d8cbc0;
  --accent: #d9c7b7;
  --shadow: 0 20px 40px rgba(61, 44, 33, 0.08);
  font-family: "Georgia", "Times New Roman", "Microsoft YaHei", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.page-ripple {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9998;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(115, 88, 83, var(--ripple-alpha, 0.22));
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(0.24);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.18),
    0 0 0 14px rgba(217, 199, 183, 0.1),
    inset 0 0 18px rgba(255, 255, 255, 0.28);
  animation: page-ripple var(--ripple-duration, 1050ms) cubic-bezier(0.18, 0.84, 0.32, 1) forwards;
}

.page-ripple::before,
.page-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(115, 88, 83, calc(var(--ripple-alpha, 0.22) * 0.62));
  transform: scale(0.7);
  animation: page-ripple-ring var(--ripple-duration, 1050ms) ease-out forwards;
}

.page-ripple::after {
  border-color: rgba(255, 255, 255, 0.34);
  animation-delay: 90ms;
}

@keyframes page-ripple {
  18% {
    opacity: 0.92;
  }

  to {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--ripple-shift-x, 0px)), calc(-50% + var(--ripple-shift-y, 0px)))
      scale(var(--ripple-scale, 9));
  }
}

@keyframes page-ripple-ring {
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

[v-cloak] {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.invitation-page {
  min-height: 100vh;
}

.invitation-envelope {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 24px 44px;
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 199, 183, 0.34), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(115, 88, 83, 0.16), transparent 30%),
    linear-gradient(135deg, #fff8f4, #f5e8de 52%, #fffaf6);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.invitation-envelope--open {
  pointer-events: none;
}

.invitation-envelope__stage {
  position: relative;
  width: min(306px, 84vw);
  height: min(216px, 58vw);
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
  transition: transform 1s ease;
}

.invitation-envelope__back,
.invitation-envelope__front,
.invitation-envelope__flap,
.invitation-envelope__letter {
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.invitation-envelope__back {
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
  border: 2px solid #fecdd3;
  box-shadow: 0 28px 70px rgba(61, 44, 33, 0.18);
}

.invitation-envelope__back::before {
  content: "♥";
  position: absolute;
  inset: 16px;
  color: rgba(251, 113, 133, 0.16);
  font-size: 20px;
  letter-spacing: 236px;
  line-height: 180px;
}

.invitation-envelope__letter {
  inset: 18px;
  z-index: 2;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  padding: 78px 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--secondary);
  box-shadow: 0 14px 28px rgba(61, 44, 33, 0.12);
  transform: translateY(0);
  opacity: 0.9;
  transition: transform 1s ease, opacity 1s ease;
}

.invitation-envelope__monogram {
  display: none;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border: 1px solid rgba(115, 88, 83, 0.28);
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: var(--primary);
}

.invitation-envelope__names {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(17px, 4.2vw, 20px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #303443;
}

.invitation-envelope__heart {
  color: #ff5f80;
  font-size: 18px;
  line-height: 1;
}

.invitation-envelope__note,
.invitation-envelope__date {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.invitation-envelope__front {
  z-index: 3;
  overflow: hidden;
}

.invitation-envelope__front::before,
.invitation-envelope__front::after {
  content: "";
  position: absolute;
  inset: 0;
}

.invitation-envelope__front::before {
  clip-path: polygon(0 0, 50% 58%, 0 100%);
  background: linear-gradient(135deg, #e8cfc3, #f6e3da);
}

.invitation-envelope__front::after {
  clip-path: polygon(100% 0, 50% 58%, 100% 100%);
  background: linear-gradient(225deg, #e2c8bd, #f4dfd6);
}

.invitation-envelope__flap {
  inset: 0 auto auto 0;
  width: 100%;
  height: 128px;
  z-index: 4;
  transform-origin: top center;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.invitation-envelope__flap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.invitation-envelope__progress {
  margin-top: 28px;
  text-align: center;
}

.invitation-envelope__bar {
  display: block;
  width: min(246px, 68vw);
  height: 5px;
  margin: 0 auto 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffd2dc;
}

.invitation-envelope__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff5f86;
  transition: width 0.3s ease;
}

.invitation-envelope__progress p {
  margin: 0;
  color: #ff6f91;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  animation: envelope-text-pulse 1.4s ease-in-out infinite;
}

.invitation-envelope--open .invitation-envelope__stage {
  transform: scale(1.1);
}

.invitation-envelope--open .invitation-envelope__flap {
  transform: rotateX(-180deg) translateY(-4px);
}

.invitation-envelope--reveal .invitation-envelope__letter {
  transform: translateY(-120%);
  opacity: 1;
}

@keyframes envelope-text-pulse {
  50% {
    opacity: 0.55;
  }
}

.music-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 30;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(115, 88, 83, 0.92);
  color: #fff;
  box-shadow: 0 16px 34px rgba(84, 54, 47, 0.22);
  cursor: pointer;
  overflow: visible;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.music-fab::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.music-fab::after {
  content: "♪";
  position: absolute;
  right: -4px;
  top: -8px;
  color: rgba(115, 88, 83, 0.38);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
}

.music-fab span {
  font-size: 20px;
  line-height: 1;
}

.music-fab--playing {
  animation: music-spin 4.8s linear infinite;
  box-shadow: 0 18px 38px rgba(84, 54, 47, 0.26);
}

.music-fab--playing::after {
  animation: music-note-float 2.8s ease-in-out infinite;
}

@keyframes music-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes music-note-float {
  0%,
  100% {
    opacity: 0;
    transform: translate(8px, 0) scale(0.9);
  }

  45% {
    opacity: 0.34;
    transform: translate(14px, -18px) scale(1);
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 248, 244, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(207, 197, 188, 0.35);
}

.topbar__brand {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.18em;
}

.topbar__nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-panel__image-wrap {
  position: absolute;
  inset: 0;
}

.hero-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08) 35%, rgba(255, 248, 244, 0.45));
}

.hero-panel__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin: 120px auto 80px;
  text-align: center;
  color: #fffdfa;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #f4e5d5;
  font-weight: 700;
}

.hero-panel__title,
.section-heading h2,
.page-footer h3 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
}

.hero-panel__title {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  font-style: italic;
  font-weight: 600;
}

.hero-panel__date {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: 0.03em;
}

.wedding-countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.wedding-countdown__item {
  display: grid;
  min-width: 68px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(30, 24, 20, 0.2);
  backdrop-filter: blur(8px);
}

.wedding-countdown__item strong {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wedding-countdown__item small {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.wedding-countdown__ended {
  margin: 0;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(30, 24, 20, 0.2);
  backdrop-filter: blur(8px);
}

.botanical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto;
  width: min(480px, 100%);
  color: #f1dfce;
}

.botanical-divider::before,
.botanical-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 223, 206, 0.9), transparent);
}

.botanical-divider span {
  padding: 0 18px;
  font-size: 18px;
}

.content-section,
.gallery-section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.calendar-section {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 24px;
}

.content-section--details .calendar-section {
  width: 100%;
  padding: 44px 0 0;
}

.wedding-calendar {
  color: #68615c;
  text-align: center;
}

.wedding-calendar__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  color: #b11d38;
}

.wedding-calendar__top p {
  margin: 0;
}

.wedding-calendar__month {
  font-size: clamp(54px, 9vw, 76px);
  line-height: 1;
  font-weight: 300;
}

.wedding-calendar__date,
.wedding-calendar__year {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
}

.wedding-calendar__weekdays,
.wedding-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.wedding-calendar__weekdays {
  padding-bottom: 20px;
  border-bottom: 2px solid #b11d38;
  color: #b11d38;
  font-size: 24px;
  font-weight: 700;
}

.wedding-calendar__grid {
  row-gap: 24px;
  padding-top: 30px;
}

.wedding-calendar__day {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 6px;
  width: 64px;
  height: 58px;
  font-size: 26px;
  line-height: 1;
}

.wedding-calendar__day--blank {
  visibility: hidden;
}

.wedding-calendar__solar {
  position: relative;
}

.wedding-calendar__lunar {
  color: #9a8f88;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.wedding-calendar__day--selected .wedding-calendar__solar {
  color: #b11d38;
  font-weight: 700;
}

.wedding-calendar__day--selected .wedding-calendar__lunar {
  color: #b11d38;
  font-weight: 600;
}

.wedding-calendar__day--selected .wedding-calendar__solar::before {
  content: "♡";
  position: absolute;
  left: 50%;
  top: 50%;
  color: #b11d38;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  transform: translate(-50%, -44%);
  transform-origin: center;
  animation: calendar-heart-breathe 2.8s ease-in-out infinite;
}

@keyframes calendar-heart-breathe {
  0%,
  100% {
    opacity: 0.92;
    transform: translate(-50%, -44%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -44%) scale(1.08);
  }
}

.content-section--details {
  max-width: 720px;
  text-align: center;
}

.content-section--soft {
  background: linear-gradient(180deg, rgba(251, 242, 235, 0.65), rgba(255, 248, 244, 0.92));
  border-radius: 28px;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading--compact {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--secondary);
  line-height: 1.15;
}

.section-heading__text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-stack {
  display: grid;
  gap: 22px;
}

.detail-card {
  display: block;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 203, 192, 0.5);
}

.detail-card__icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.detail-card__label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.detail-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
}

.detail-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.map-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
  min-height: 380px;
}

.map-card__image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.68;
}

.map-card__iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
}

.map-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px;
  pointer-events: none;
}

.map-card__button,
.submit-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(84, 54, 47, 0.18);
  pointer-events: auto;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.map-card__button--call {
  background: rgba(255, 255, 255, 0.94);
  color: var(--secondary);
}

.submit-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0;
  transform: skewX(-18deg);
  pointer-events: none;
}

.submit-button:not(:disabled):hover::after,
.submit-button:not(:disabled):focus-visible::after {
  animation: submit-sheen 1.1s ease;
  opacity: 1;
}

.submit-button:not(:disabled):active {
  transform: scale(0.98);
}

.submit-button--success {
  background: #5f8f66;
  box-shadow: 0 14px 30px rgba(82, 99, 78, 0.22);
}

@keyframes submit-sheen {
  to {
    left: 120%;
  }
}

.gallery-section {
  padding-top: 96px;
}

.photo-waterfall {
  columns: auto 280px;
  column-gap: 16px;
}

.photo-waterfall__item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 16px 34px rgba(61, 44, 33, 0.1);
}

.photo-waterfall__item img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-perspective {
  perspective: 1200px;
  overflow: hidden;
  width: 100%;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel-container {
  position: relative;
  width: min(920px, 100%);
  height: 500px;
  transform: translateY(var(--gallery-parallax, 0px));
  transform-style: preserve-3d;
  transition: transform 0.2s linear;
  will-change: transform;
}

.carousel-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(780px, 88%);
  height: 310px;
  border: 1px solid rgba(115, 88, 83, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.carousel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(75, 52, 43, 0.16);
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
  user-select: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #fff;
  outline: none;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.carousel-item.active {
  width: min(420px, 70vw);
  height: min(520px, 78vw);
  transform: translate3d(-50%, -50%, 90px) scale(1);
  z-index: 20;
  opacity: 1;
  filter: blur(0);
}

.carousel-item.active:hover,
.carousel-item.active:focus-visible {
  box-shadow: 0 30px 64px rgba(75, 52, 43, 0.24);
  transform: translate3d(-50%, -50%, 90px) scale(1.03);
}

.carousel-item:hover img,
.carousel-item:focus-visible img {
  transform: scale(1.03);
}

.carousel-item.active.carousel-item--landscape {
  width: min(620px, 82vw);
  height: min(360px, 48vw);
}

.carousel-item.active.carousel-item--square {
  width: min(460px, 70vw);
  height: min(460px, 70vw);
}

.carousel-item.orbit {
  --x: 0px;
  --y: 0px;
  --z: -120px;
  --r: 0deg;
  --s: 0.8;
  --z-hover: -90px;
  --r-hover: 0deg;
  --s-hover: 0.92;
  opacity: 0.78;
  filter: saturate(0.9);
  transform: translate3d(-50%, -50%, var(--z)) translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
}

.carousel-item.orbit:hover,
.carousel-item.orbit:focus-visible {
  z-index: 18;
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 28px 58px rgba(75, 52, 43, 0.22);
  transform: translate3d(-50%, -50%, var(--z-hover)) translate(var(--x), var(--y)) rotate(var(--r-hover)) scale(var(--s-hover));
}

.carousel-item.orbit--prev-1 {
  width: 210px;
  height: 260px;
  z-index: 12;
  --x: -210px;
  --y: 112px;
  --z: 18px;
  --r: -7deg;
  --s: 0.98;
  --z-hover: 34px;
  --r-hover: -5deg;
  --s-hover: 1.08;
}

.carousel-item.orbit--next-1 {
  width: 190px;
  height: 250px;
  z-index: 12;
  --x: 210px;
  --y: 112px;
  --z: 18px;
  --r: 8deg;
  --s: 0.96;
  --z-hover: 34px;
  --r-hover: 6deg;
  --s-hover: 1.06;
}

.carousel-item.orbit--prev-2 {
  width: 150px;
  height: 180px;
  z-index: 8;
  --x: -340px;
  --y: -58px;
  --z: -80px;
  --r: 10deg;
  --s: 0.86;
  --z-hover: -58px;
  --r-hover: 8deg;
  --s-hover: 0.98;
}

.carousel-item.orbit--next-2 {
  width: 155px;
  height: 190px;
  z-index: 8;
  --x: 340px;
  --y: -58px;
  --z: -80px;
  --r: -10deg;
  --s: 0.88;
  --z-hover: -58px;
  --r-hover: -8deg;
  --s-hover: 1;
}

.carousel-item.orbit--prev-3 {
  width: 128px;
  height: 150px;
  z-index: 5;
  --x: -300px;
  --y: -118px;
  --z: -170px;
  --r: -11deg;
  --s: 0.76;
  --z-hover: -146px;
  --r-hover: -8deg;
  --s-hover: 0.88;
}

.carousel-item.orbit--next-3 {
  width: 132px;
  height: 156px;
  z-index: 5;
  --x: 300px;
  --y: -118px;
  --z: -170px;
  --r: 12deg;
  --s: 0.78;
  --z-hover: -146px;
  --r-hover: 9deg;
  --s-hover: 0.9;
}

.carousel-item.orbit--prev-4 {
  width: 108px;
  height: 132px;
  z-index: 4;
  --x: -138px;
  --y: -166px;
  --z: -240px;
  --r: 9deg;
  --s: 0.68;
  --z-hover: -216px;
  --r-hover: 7deg;
  --s-hover: 0.8;
}

.carousel-item.orbit--next-4 {
  width: 112px;
  height: 134px;
  z-index: 4;
  --x: 138px;
  --y: -166px;
  --z: -240px;
  --r: -9deg;
  --s: 0.7;
  --z-hover: -216px;
  --r-hover: -7deg;
  --s-hover: 0.82;
}

.carousel-item.orbit--prev-5 {
  width: 90px;
  height: 112px;
  z-index: 3;
  --x: 0px;
  --y: -178px;
  --z: -300px;
  --r: -8deg;
  --s: 0.6;
  --z-hover: -276px;
  --r-hover: -6deg;
  --s-hover: 0.72;
}

.carousel-item.orbit--next-5 {
  width: 92px;
  height: 114px;
  z-index: 3;
  --x: 0px;
  --y: -178px;
  --z: -300px;
  --r: 8deg;
  --s: 0.62;
  --z-hover: -276px;
  --r-hover: 6deg;
  --s-hover: 0.74;
}

.carousel-item.orbit--prev-1.carousel-item--landscape,
.carousel-item.orbit--next-1.carousel-item--landscape {
  width: 270px;
  height: 170px;
}

.carousel-item.orbit--prev-2.carousel-item--landscape,
.carousel-item.orbit--next-2.carousel-item--landscape {
  width: 220px;
  height: 138px;
}

.carousel-item.orbit--prev-3.carousel-item--landscape,
.carousel-item.orbit--next-3.carousel-item--landscape {
  width: 180px;
  height: 112px;
}

.carousel-item.orbit--prev-4.carousel-item--landscape,
.carousel-item.orbit--next-4.carousel-item--landscape {
  width: 148px;
  height: 92px;
}

.carousel-item.orbit--prev-5.carousel-item--landscape,
.carousel-item.orbit--next-5.carousel-item--landscape {
  width: 120px;
  height: 76px;
}

.carousel-item.hidden-left {
  transform: translate3d(-50%, -50%, -400px) scale(0.4);
  z-index: 1;
  opacity: 0;
}

.carousel-item.hidden-right {
  transform: translate3d(-50%, -50%, -400px) scale(0.4);
  z-index: 1;
  opacity: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.carousel-dots__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #c7bbb0;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.carousel-dots__dot--active {
  background: var(--primary);
  transform: scale(1.4);
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(31, 27, 23, 0.78);
  backdrop-filter: blur(10px);
  animation: image-zoom-fade 0.2s ease;
}

.image-zoom__image {
  max-width: min(92vw, 980px);
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: image-zoom-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-zoom__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

@keyframes image-zoom-fade {
  from {
    opacity: 0;
  }
}

@keyframes image-zoom-pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.rsvp-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 244, 0.72);
  border: 1px solid rgba(216, 203, 192, 0.55);
  box-shadow: var(--shadow);
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rsvp-form label,
.rsvp-form__full {
  display: grid;
  gap: 8px;
}

.rsvp-form span,
.rsvp-form__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 700;
}

.rsvp-form__full {
  grid-column: 1 / -1;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  color: var(--text);
}

.rsvp-form textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-bottom-color: var(--secondary);
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.attendance-option {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 18px 16px;
  border: 1px solid rgba(216, 203, 192, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

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

.attendance-option__mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid #9c9085;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 0 var(--secondary);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.attendance-option__text {
  display: grid;
  gap: 6px;
}

.attendance-option__text strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-weight: 700;
}

.attendance-option__text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.attendance-option:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 88, 83, 0.5);
}

.attendance-option--selected {
  border-color: rgba(115, 88, 83, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 240, 234, 0.98));
  box-shadow: 0 16px 28px rgba(91, 66, 53, 0.1);
}

.attendance-option--selected .attendance-option__mark {
  border-color: var(--secondary);
  box-shadow: inset 0 0 0 7px var(--secondary);
  transform: scale(1.04);
}

.blessings-section {
  padding-top: 40px;
}

.blessings-list {
  max-width: 760px;
  margin: 0 auto;
  height: 360px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.blessings-list__track {
  display: grid;
  gap: 18px;
  animation: blessings-scroll 42s linear infinite;
  will-change: transform;
}

.blessings-list:hover .blessings-list__track {
  animation-play-state: paused;
}

.blessings-list__track > .blessing-card:not([data-blessing-card]) {
  display: none;
}

@keyframes blessings-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-50% - 9px));
  }
}

.blessing-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.blessing-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.blessing-card__top p {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 700;
}

.blessing-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.page-footer {
  padding: 64px 20px 80px;
  text-align: center;
}

.page-footer h3 {
  font-size: 30px;
  font-style: italic;
  color: var(--primary);
}

.page-footer p {
  margin: 10px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.68s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.68s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-notice {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.rsvp-notice--success {
  color: #52634e;
}

.rsvp-notice--error {
  color: #ba1a1a;
}

@media (min-width: 761px) {
  .hero-panel__image-wrap {
    background: #211a17;
  }

  .hero-panel__image {
    object-fit: contain;
  }
}

@media (max-width: 760px) {
  .wedding-countdown {
    gap: 7px;
    margin-top: 20px;
  }

  .wedding-countdown__item {
    min-width: 56px;
    padding: 10px 7px 8px;
    border-radius: 11px;
  }

  .photo-waterfall {
    columns: 2;
    column-gap: 10px;
  }

  .photo-waterfall__item {
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .music-fab {
    right: 14px;
    bottom: 18px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .topbar__nav {
    gap: 14px;
    font-size: 12px;
  }

  .hero-panel__content {
    margin-top: 100px;
    margin-bottom: 52px;
  }

  .content-section,
  .gallery-section {
    width: min(100%, calc(100% - 24px));
    padding: 56px 0;
  }

  .calendar-section {
    width: min(100%, calc(100% - 24px));
    padding: 52px 0 8px;
  }

  .wedding-calendar__top {
    gap: 12px;
    margin-bottom: 22px;
  }

  .wedding-calendar__weekdays {
    padding-bottom: 14px;
    font-size: 18px;
  }

  .wedding-calendar__grid {
    row-gap: 14px;
    padding-top: 22px;
  }

  .wedding-calendar__day {
    width: 46px;
    height: 50px;
    gap: 5px;
    font-size: 20px;
  }

  .wedding-calendar__lunar {
    font-size: 10px;
  }

  .wedding-calendar__day--selected .wedding-calendar__solar::before {
    font-size: 46px;
  }

  .map-card,
  .map-card__image,
  .map-card__iframe {
    min-height: 260px;
  }

  .carousel-perspective {
    height: 500px;
  }

  .carousel-container {
    width: 100%;
    height: 430px;
  }

  .carousel-container::before {
    width: 330px;
    height: 210px;
  }

  .carousel-item.active {
    width: 238px;
    height: 310px;
  }

  .carousel-item.active.carousel-item--landscape {
    width: 330px;
    height: 210px;
  }

  .carousel-item.active.carousel-item--square {
    width: 270px;
    height: 270px;
  }

  .carousel-item.orbit--prev-1 {
    width: 128px;
    height: 168px;
    --x: -132px;
    --y: 74px;
    --z: 12px;
    --s: 0.92;
  }

  .carousel-item.orbit--next-1 {
    width: 126px;
    height: 170px;
    --x: 132px;
    --y: 74px;
    --z: 12px;
    --s: 0.92;
  }

  .carousel-item.orbit--prev-2 {
    width: 104px;
    height: 132px;
    --x: -166px;
    --y: -82px;
    --z: -90px;
    --s: 0.82;
  }

  .carousel-item.orbit--next-2 {
    width: 104px;
    height: 132px;
    --x: 166px;
    --y: -82px;
    --z: -90px;
    --s: 0.82;
  }

  .carousel-item.orbit--prev-3 {
    width: 92px;
    height: 116px;
    --x: -138px;
    --y: -88px;
    --z: -180px;
    --s: 0.72;
  }

  .carousel-item.orbit--next-3 {
    width: 92px;
    height: 116px;
    --x: 138px;
    --y: -88px;
    --z: -180px;
    --s: 0.72;
  }

  .carousel-item.orbit--prev-4,
  .carousel-item.orbit--next-4,
  .carousel-item.orbit--prev-5,
  .carousel-item.orbit--next-5 {
    width: 76px;
    height: 94px;
  }

  .carousel-item.orbit--prev-4 {
    --x: -66px;
    --y: -112px;
    --z: -250px;
    --s: 0.62;
  }

  .carousel-item.orbit--next-4 {
    --x: 66px;
    --y: -112px;
    --z: -250px;
    --s: 0.62;
  }

  .carousel-item.orbit--prev-5 {
    --x: 0px;
    --y: -118px;
    --z: -310px;
    --s: 0.56;
  }

  .carousel-item.orbit--next-5 {
    --x: 0px;
    --y: -118px;
    --z: -310px;
    --s: 0.58;
  }

  .carousel-item.orbit--prev-1.carousel-item--landscape,
  .carousel-item.orbit--next-1.carousel-item--landscape {
    width: 150px;
    height: 96px;
  }

  .carousel-item.orbit--prev-2.carousel-item--landscape,
  .carousel-item.orbit--next-2.carousel-item--landscape {
    width: 122px;
    height: 78px;
  }

  .carousel-item.orbit--prev-3.carousel-item--landscape,
  .carousel-item.orbit--next-3.carousel-item--landscape,
  .carousel-item.orbit--prev-4.carousel-item--landscape,
  .carousel-item.orbit--next-4.carousel-item--landscape,
  .carousel-item.orbit--prev-5.carousel-item--landscape,
  .carousel-item.orbit--next-5.carousel-item--landscape {
    width: 98px;
    height: 62px;
  }

  .rsvp-card {
    padding: 24px 20px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .attendance-options {
    grid-template-columns: 1fr;
  }

  .page-footer {
    padding-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel-container {
    transform: none !important;
    transition: none;
  }

  .wedding-calendar__day--selected .wedding-calendar__solar::before,
  .music-fab--playing,
  .music-fab--playing::after,
  .submit-button::after,
  .page-ripple,
  .image-zoom,
  .image-zoom__image {
    animation: none;
  }
}
