:root {
  --bg: #fbf3f6;
  --bg-deep: #24151d;
  --ink: #2a1c22;
  --rose: #c77a92;
  --rose-deep: #8f5064;
  --blush: #efd4dd;
  --cream: #fffaf8;
  --gold: #d7b981;
  --glass: rgba(255, 255, 255, 0.58);
  --shadow: 0 30px 80px rgba(74, 35, 51, 0.16);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  /* font-family:"Vazirmatn",Tahoma,sans-serif; */
  color: var(--ink);
  background: radial-gradient(
      circle at 20% 10%,
      rgba(240, 210, 220, 0.55),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 38%,
      rgba(255, 244, 232, 0.9),
      transparent 30%
    ),
    linear-gradient(180deg, #fffafc 0%, #f8eef2 52%, #f4e7ec 100%);
  overflow-x: hidden;
}
body.locked {
  overflow: hidden;
}

::selection {
  background: #dca9b9;
  color: #fff;
}

#sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -12vh;
  width: 14px;
  height: 20px;
  background: linear-gradient(145deg, #ffdce7, #e9a9bd);
  border-radius: 70% 20% 70% 30%;
  opacity: 0.75;
  filter: blur(0.15px);
  animation: fall linear infinite;
}
@keyframes fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(50px, 52vh, 0) rotate(200deg);
  }
  100% {
    transform: translate3d(-45px, 115vh, 0) rotate(420deg);
  }
}

main {
  position: relative;
  z-index: 3;
}
section {
  position: relative;
}

.music-toggle {
  position: fixed;
  z-index: 30;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(35, 20, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(28, 14, 21, 0.22);
}
.music-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: pulse 1.8s ease-in-out infinite;
}
.music-toggle.paused .music-icon {
  animation: none;
  opacity: 0.6;
}
@keyframes pulse {
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.04);
  }
}
.music-label {
  font-size: 12px;
  font-family: Peyda;
}

.intro {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 50px 20px;
  overflow: hidden;
  background: radial-gradient(
    circle at center,
    rgba(255, 245, 248, 0.92) 0%,
    rgba(247, 226, 234, 0.82) 42%,
    rgba(239, 207, 218, 0.82) 100%
  );
}
.intro::before,
.intro::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(180, 110, 135, 0.18);
}
.intro::before {
  right: -14vw;
  top: -14vw;
}
.intro::after {
  left: -18vw;
  bottom: -16vw;
}
.intro-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(80px);
}
.intro-copy {
  text-align: center;
  max-width: 700px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.intro-copy h1,
.hero-card h2,
.finale h2 {
  font-weight: 500;
}
.intro-copy h1 {
  margin: 0;
  margin-top: 25px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1;
}
.intro-copy h1 span {
  color: var(--rose);
  font-weight: bold;
}
.intro-copy p {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.5rem;
  line-height: 2;
  color: #6f5862;
}

.envelope-scene {
  perspective: 1200px;
  width: min(84vw, 420px);
  height: 260px;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 5;
}
.envelope {
  width: 310px;
  height: 195px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 22px 35px rgba(90, 48, 63, 0.22));
}
.envelope-scene:hover .envelope {
  transform: translateY(-5px) rotateX(2deg);
}
.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #f4cbd7, #e9b2c4);
  z-index: 1;
}
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: 8px;
}
.envelope-front::before,
.envelope-front::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, #f9dbe4, #efc0cf);
  bottom: -112px;
}
.envelope-front::before {
  left: -68px;
  transform: rotate(45deg);
}
.envelope-front::after {
  right: -68px;
  transform: rotate(-45deg);
}
.flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #f7d6e0, #eebdcd);
  transform-origin: top;
  transition: transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 6;
  backface-visibility: hidden;
}
.wax-seal {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 35% 28%,
    #cf8098 0 8%,
    #a95972 30%,
    #8e445c 75%
  );
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 13px rgba(106, 47, 65, 0.35);
  transition: all 0.45s ease;
}
.wax-seal span {
  /* font-family:"Playfair Display",serif; */
  font-size: 12px;
  color: #fbe9ef;
  letter-spacing: 0.08em;
}
.letter {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 10px;
  height: 168px;
  border-radius: 8px 8px 3px 3px;
  background: #fffdfb;
  z-index: 2;
  transition: transform 1.15s 0.55s cubic-bezier(0.2, 0.86, 0.2, 1);
  box-shadow: 0 8px 24px rgba(75, 37, 50, 0.12);
}
.letter-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid #ecd9df;
  margin: 10px;
}
.letter .mini {
  font-family: "Playfair Display", serif;
  color: var(--rose);
  font-size: 20px;
}
.letter strong {
  font-weight: 600;
}
.letter small {
  color: #8f727d;
}

.envelope.open .flap {
  transform: rotateX(180deg);
  z-index: 0;
}
.envelope.open .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
}
.envelope.open .letter {
  transform: translateY(-118px) rotate(-1deg);
}
.envelope.open {
  animation: floatEnvelope 4s 1.8s ease-in-out infinite;
}
@keyframes floatEnvelope {
  50% {
    transform: translateY(-7px);
  }
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: #8d6977;
  opacity: 0.65;
}
.scroll-hint i {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--rose), transparent);
  animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint {
  50% {
    transform: translateY(6px);
    opacity: 0.35;
  }
}

.hero {
  min-height: 105svh;
  display: grid;
  place-items: center;
  padding: 110px 20px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  border: 1px solid rgba(199, 122, 146, 0.15);
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.12),
    0 0 0 160px rgba(255, 255, 255, 0.08);
}
.glass-card {
  width: min(92vw, 780px);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 34px;
}
.hero-card {
  padding: clamp(38px, 7vw, 74px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(199, 122, 146, 0.18);
  border-radius: 50%;
  top: -70px;
  left: -50px;
}
.script {
  /* font-family:"Playfair Display",serif; */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-style: italic;
  color: var(--rose-deep);
  letter-spacing: 0.04em;
  font-size: clamp(13px, 2.4vw, 16px);
  opacity: 0.9;
}
.script::before,
.script::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.script::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-card h2 {
  font-size: clamp(42px, 8vw, 78px);
  margin: 16px 0 10px;
  font-weight: 500;
}
.hero-card h2 b {
  color: var(--rose);
  /* font-style: italic; */
  font-weight: bold;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 20px 0;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.lead {
  color: #6e5861;
  line-height: 2.05;
  max-width: 520px;
  margin: 0 auto 34px;
}
.event-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(109, 75, 88, 0.12);
  border-bottom: 1px solid rgba(109, 75, 88, 0.12);
  margin: 18px 0 28px;
}
.event-meta div {
  padding: 18px 10px;
}
.event-meta div + div {
  border-right: 1px solid rgba(109, 75, 88, 0.12);
}
.event-meta span {
  display: block;
  font-size: 11px;
  color: #977583;
  margin-bottom: 6px;
}
.event-meta strong {
  font-size: 14px;
  font-weight: 500;
}
.primary-btn,
.secondary-btn {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  transition: 0.3s ease;
  font-family: inherit;
}
.primary-btn {
  padding: 14px 22px;
  background: linear-gradient(135deg, #b96a83, #8f5064);
  color: white;
  box-shadow: 0 12px 28px rgba(143, 80, 100, 0.24);
}
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(143, 80, 100, 0.3);
}
.secondary-btn {
  padding: 12px 20px;
  color: var(--rose-deep);
  border: 1px solid rgba(143, 80, 100, 0.25);
  background: rgba(255, 255, 255, 0.55);
}
.secondary-btn:hover {
  background: #fff;
}

.floral {
  position: absolute;
  width: 380px;
  height: 380px;
  opacity: 0.45;
  filter: blur(0.2px);
}
.floral::before,
.floral::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 55% 45% 60% 40%;
  border: 1px solid rgba(166, 94, 118, 0.25);
  transform: rotate(25deg);
}
.floral::after {
  inset: 34%;
  transform: rotate(-36deg);
  border-color: rgba(189, 146, 106, 0.25);
}
.floral-a {
  top: 3%;
  right: -140px;
  transform: rotate(20deg);
}
.floral-b {
  bottom: 2%;
  left: -150px;
  transform: rotate(210deg);
}

.quote-section {
  padding: 130px 20px;
  text-align: center;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 0.55;
  color: #d5a1b1;
  opacity: 0.6;
}
.quote-section p {
  font-size: clamp(22px, 4.3vw, 42px);
  max-width: 850px;
  margin: 18px auto 16px;
  line-height: 1.9;
  font-weight: 300;
}
.quote-section span {
  /* font-family:"Playfair Display",serif; */
  color: #9b6879;
  letter-spacing: 0.1em;
}

.countdown-section {
  padding: 110px 20px 140px;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.85),
    transparent 48%
  );
}
.section-title span {
  font-size: 12px;
  color: var(--rose-deep);
}
.section-title h3 {
  font-size: clamp(30px, 5vw, 54px);
  margin: 8px 0 34px;
  font-weight: 500;
}
.countdown {
  width: min(900px, 94vw);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.count-box {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 46px rgba(102, 57, 73, 0.09);
}
.count-box strong {
  /* font-family:"Playfair Display",serif; */
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  color: #8f5064;
}
.count-box span {
  font-size: 12px;
  color: #92727f;
  margin-top: 8px;
}
.countdown-note {
  font-size: 12px;
  color: #9c7e89;
  margin-top: 20px;
}

.venue {
  padding: 80px 20px 130px;
}
.venue-card {
  width: min(1000px, 94vw);
  margin: auto;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(145deg, #2b1922, #1f1419);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  min-height: 520px;
  box-shadow: 0 38px 90px rgba(38, 20, 27, 0.28);
}
.venue-top {
  padding: 60px;
}
.venue-top .eyebrow {
  color: #e7b7c7;
}
.venue-top h3 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 8px 0 12px;
  font-weight: 500;
}
.venue-top p {
  color: #cbbbc2;
  line-height: 2;
}
.venue-card .secondary-btn {
  margin-top: 20px;
  margin-right: 60px;
  margin-bottom: 45px;
  color: #f2ceda;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.venue-map-art {
  grid-row: 1/3;
  grid-column: 2;
  height: 100%;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      circle at 55% 48%,
      rgba(215, 185, 129, 0.18),
      transparent 24%
    ),
    linear-gradient(
      160deg,
      rgba(199, 122, 146, 0.14),
      rgba(255, 255, 255, 0.02)
    );
}
.venue-map-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-line {
  position: absolute;
  width: 120%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 217, 184, 0.28),
    transparent
  );
  transform-origin: center;
}
.l1 {
  top: 35%;
  left: -10%;
  transform: rotate(17deg);
}
.l2 {
  top: 58%;
  left: -5%;
  transform: rotate(-21deg);
}
.l3 {
  top: 72%;
  left: -18%;
  transform: rotate(9deg);
}
.map-pin {
  position: absolute;
  left: 54%;
  top: 47%;
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #e5c28d, #b88b50);
  box-shadow: 0 0 0 14px rgba(215, 185, 129, 0.08),
    0 0 40px rgba(215, 185, 129, 0.25);
  animation: pinFloat 2s ease-in-out infinite;
}
.map-pin span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #28181f;
  left: 19px;
  top: 19px;
}
.map-orbit {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(215, 185, 129, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 6s linear infinite;
}
@keyframes pinFloat {
  50% {
    margin-top: -8px;
  }
}
@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.rsvp {
  padding: 120px 20px;
  display: grid;
  place-items: center;
}
.rsvp-card {
  width: min(720px, 94vw);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 34px;
  padding: clamp(30px, 6vw, 60px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.rsvp-card h3 {
  font-size: clamp(32px, 5vw, 50px);
  margin: 5px 0;
}
.rsvp-card > p {
  color: #765f68;
  margin-bottom: 30px;
}
#rsvpForm {
  display: grid;
  gap: 16px;
  text-align: right;
}
#rsvpForm label {
  font-size: 12px;
  color: #7e626e;
}
#rsvpForm input[type="text"],
#rsvpForm select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(143, 80, 100, 0.16);
  background: rgba(255, 255, 255, 0.76);
  padding: 14px 16px;
  border-radius: 14px;
  font-family: inherit;
  outline: none;
  color: #4b333d;
}
#rsvpForm input:focus,
#rsvpForm select:focus {
  border-color: #c77a92;
  box-shadow: 0 0 0 4px rgba(199, 122, 146, 0.08);
}
.attendance {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.attendance label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.full {
  width: 100%;
  margin-top: 4px;
}
.form-message {
  text-align: center;
  font-size: 13px;
  color: var(--rose-deep);
  min-height: 24px;
}

.finale {
  min-height: 88svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: radial-gradient(
      circle at 50% 30%,
      rgba(175, 111, 132, 0.28),
      transparent 32%
    ),
    linear-gradient(180deg, #2d1c24, #160f13);
  text-align: center;
}
.moon {
  position: absolute;
  width: min(58vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 30%,
    #fff9f3,
    #f4dce3 60%,
    #cba8b5 100%
  );
  box-shadow: 0 0 100px rgba(255, 228, 237, 0.18);
  opacity: 0.16;
}
.finale-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}
.finale .script {
  color: #e7b7c7;
}
.finale h2 {
  font-size: clamp(48px, 9vw, 90px);
  margin: 12px 0;
}
.finale p {
  color: #cabac1;
}
.heart-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #d89cb0;
}
.heart-line i {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d89cb0);
}
.heart-line i:last-child {
  transform: scaleX(-1);
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.guest-welcome {
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: guestIn 0.9s 0.15s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.guest-welcome[hidden] {
  display: none;
}
.guest-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(215, 185, 129, 0.16);
  border: 1px solid rgba(215, 185, 129, 0.5);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.guest-welcome #guestNameHero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 28px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.68),
    rgba(255, 255, 255, 0.42)
  );
  border: 1px solid rgba(215, 185, 129, 0.6);
  box-shadow: 0 14px 38px rgba(104, 55, 72, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  color: var(--rose-deep);
  font-size: clamp(20px, 4.4vw, 28px);
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}
.guest-welcome #guestNameHero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(215, 185, 129, 0.4) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
.guest-welcome small {
  color: #8e6b78;
  font-size: 12px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.personal-note {
  width: max-content;
  max-width: 100%;
  margin: 14px auto 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(199, 122, 146, 0.08);
  border: 1px solid rgba(199, 122, 146, 0.12);
  color: #8f5064;
  font-size: 12px;
}
.personal-note[hidden] {
  display: none;
}
@keyframes guestIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .event-meta {
    grid-template-columns: 1fr;
  }
  .event-meta div + div {
    border-right: 0;
    border-top: 1px solid rgba(109, 75, 88, 0.1);
  }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .count-box {
    min-height: 125px;
  }
  .venue-card {
    grid-template-columns: 1fr;
  }
  .venue-top {
    padding: 42px 30px 20px;
  }
  .venue-map-art {
    grid-row: auto;
    grid-column: auto;
    min-height: 310px;
  }
  .venue-card .secondary-btn {
    margin: 24px 30px 40px;
  }
  .attendance {
    flex-direction: column;
  }
}

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

/* ==============================
   FINAL WEDDING GALLERY
================================ */

.finale {
  min-height: 100svh;
  padding: 100px 20px 35px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  background: radial-gradient(
      circle at 50% 20%,
      rgba(175, 111, 132, 0.3),
      transparent 32%
    ),
    linear-gradient(180deg, #2d1c24, #160f13);

  color: white;
}

/* MESSAGE */

.finale-content {
  position: relative;
  z-index: 3;

  text-align: center;

  margin-bottom: 45px;
}

.final-message {
  margin: 0;

  font-size: clamp(18px, 4vw, 28px);

  font-weight: 300;

  color: #f5e8ed;

  line-height: 2;
}

/* HEART LINE */

.heart-line {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-top: 20px;

  color: #d89cb0;
}

.heart-line i {
  width: 70px;
  height: 1px;

  background: linear-gradient(90deg, transparent, #d89cb0);
}

.heart-line i:last-child {
  transform: scaleX(-1);
}

/* ==============================
   GALLERY
================================ */

.wedding-gallery {
  position: relative;
  z-index: 4;

  width: min(1100px, 100%);

  margin: 0 auto 70px;
}

/* GALLERY TITLE */

.gallery-title {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 25px;
}

.gallery-title span {
  font-size: 18px;

  color: #f6dce5;

  letter-spacing: 2px;
}

.gallery-title small {
  margin-top: 5px;

  font-family: "Playfair Display", serif;

  font-style: italic;

  color: rgba(255, 255, 255, 0.45);

  letter-spacing: 2px;
}

/* TRACK */

.gallery-track {
  display: flex;

  gap: 14px;

  overflow-x: auto;

  padding: 15px max(20px, calc((100vw - 1100px) / 2)) 30px;

  scroll-snap-type: x mandatory;

  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

/* IMAGE CARD */

.gallery-item {
  position: relative;

  flex: 0 0 220px;

  height: 310px;

  border-radius: 26px;

  overflow: hidden;

  scroll-snap-align: center;

  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.12);

  transform: rotate(-1deg);

  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease;
}

.gallery-item:nth-child(even) {
  transform: translateY(20px) rotate(1.5deg);
}

.gallery-item:nth-child(3n) {
  transform: translateY(-5px) rotate(-1.5deg);
}

/* BIG IMAGE */

.gallery-item.gallery-big {
  flex-basis: 300px;

  height: 390px;
}

/* IMAGE */

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

/* OVERLAY */

.gallery-item::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, transparent 55%, rgba(24, 10, 17, 0.45));

  pointer-events: none;
}

/* HOVER */

.gallery-item:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.02);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
  transform: scale(1.08);

  filter: brightness(1.07);
}

/* ==============================
   COPYRIGHT
================================ */

#copyright {
  position: relative;
  z-index: 4;

  margin: auto 0 0;

  padding-top: 30px;

  font-size: 11px;

  font-weight: 300;

  color: rgba(255, 255, 255, 0.38);

  letter-spacing: 0.5px;

  text-align: center;
}

/* ==============================
   MOBILE
================================ */

@media (max-width: 700px) {
  .finale {
    padding: 85px 0 25px;
  }

  .finale-content {
    padding: 0 25px;

    margin-bottom: 35px;
  }

  .gallery-track {
    gap: 11px;

    padding-right: 28px;

    padding-left: 28px;
  }

  .gallery-item {
    flex-basis: 185px;

    height: 270px;

    border-radius: 22px;
  }

  .gallery-item.gallery-big {
    flex-basis: 235px;

    height: 330px;
  }

  #copyright {
    margin-top: 35px;
  }
}
