/* =========================================================
   ADITYA & VAISHNAVI
   Shared design system: indigo + antique gold + lavender
   Mobile first
   ========================================================= */

@font-face {
  font-family: "Palisade";
  src:
    url("../fonts/Palisade-Regular.woff2") format("woff2"),
    url("../fonts/Palisade-Regular.woff") format("woff"),
    url("../fonts/Palisade-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --burgundy-950: #171d49;
  --burgundy-900: #222b5f;
  --burgundy-800: #303e7b;
  --burgundy-700: #455593;
  --burgundy-500: #6879ad;
  --gold-700: #8d6739;
  --gold-600: #ad8350;
  --gold-400: #d3b778;
  --gold-200: #eadfbd;
  --ivory: #f7f7fc;
  --ivory-2: #eceef8;
  --ink: #30385f;
  --ink-muted: #59617e;
  --olive-none: transparent;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
  --display: "Palisade", "Baskerville", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255,255,255,.82), transparent 55%),
    repeating-linear-gradient(135deg, rgba(54,65,112,.025) 0 1px, transparent 1px 5px),
    #e3e6f2;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

:lang(mr) {
  --serif: "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", serif;
  --body: "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", serif;
  --display: "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", serif;
  font-family: var(--body);
  line-height: 1.55;
}

button { font: inherit; }

.invitation {
  width: 100%;
  min-width: 0;
}

.page {
  width: 100%;
  min-width: 0;
  min-height: min(100svh, 960px);
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
  margin: 0 auto 28px;
  border: 1px solid rgba(157,111,34,.58);
  box-shadow: 0 18px 48px rgba(67,35,19,.17);
}

.page::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid rgba(157,111,34,.28);
  pointer-events: none;
}

.page::after {
  content: "✦";
  position: absolute;
  z-index: 2;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  color: var(--gold-600);
  background: var(--ivory);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.celebration-confetti {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  left: var(--confetti-x);
  width: 5px;
  height: 10px;
  border-radius: 1px;
  background: var(--confetti-color, var(--gold-600));
  opacity: 0;
}

.page[aria-hidden="false"] .confetti-piece {
  animation: confetti-fall var(--confetti-duration) linear infinite;
  animation-delay: var(--confetti-delay);
}

.confetti-piece:nth-child(1) {
  --confetti-x: 7%;
  --confetti-duration: 25s;
  --confetti-delay: -3s;
  --confetti-drift: 24px;
}

.confetti-piece:nth-child(2) {
  --confetti-x: 22%;
  --confetti-duration: 29s;
  --confetti-delay: -17s;
  --confetti-drift: -18px;
  --confetti-color: #c99f92;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.confetti-piece:nth-child(3) {
  --confetti-x: 40%;
  --confetti-duration: 27s;
  --confetti-delay: -10s;
  --confetti-drift: 16px;
  --confetti-color: var(--burgundy-500);
  width: 6px;
  height: 6px;
}

.confetti-piece:nth-child(4) {
  --confetti-x: 61%;
  --confetti-duration: 31s;
  --confetti-delay: -23s;
  --confetti-drift: -22px;
  --confetti-color: var(--gold-400);
  width: 4px;
  height: 9px;
}

.confetti-piece:nth-child(5) {
  --confetti-x: 79%;
  --confetti-duration: 26s;
  --confetti-delay: -14s;
  --confetti-drift: 20px;
  --confetti-color: #c99f92;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.confetti-piece:nth-child(6) {
  --confetti-x: 94%;
  --confetti-duration: 30s;
  --confetti-delay: -7s;
  --confetti-drift: -16px;
  --confetti-color: var(--burgundy-500);
  width: 6px;
  height: 6px;
}

.page-heart-pattern {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  color: #8f2638;
  opacity: .38;
  pointer-events: none;
}

.page-heart-pattern span {
  position: absolute;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.page-heart-pattern span:nth-child(1) {
  top: 16%;
  left: 7%;
  font-size: clamp(42px, 8vw, 76px);
  transform: rotate(-17deg);
}

.page-heart-pattern span:nth-child(2) {
  top: 27%;
  right: 7%;
  font-size: clamp(30px, 6vw, 58px);
  transform: rotate(14deg);
}

.page-heart-pattern span:nth-child(3) {
  bottom: 17%;
  left: 11%;
  font-size: clamp(24px, 4vw, 40px);
  transform: rotate(12deg);
}

.page-heart-pattern span:nth-child(4) {
  right: 10%;
  bottom: 11%;
  font-size: clamp(44px, 7vw, 68px);
  transform: rotate(-12deg);
}

@keyframes confetti-fall {
  0% {
    top: -12px;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  12%, 88% {
    opacity: .42;
  }
  100% {
    top: calc(100% + 12px);
    opacity: 0;
    transform: translateX(var(--confetti-drift)) rotate(360deg);
  }
}

/* =========================================================
   SHARED LANGUAGE CONTROL
   ========================================================= */

.language-switch {
  position: absolute;
  z-index: 30;
  top: 28px;
  right: 28px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 30px;
  background: rgba(255,250,242,.97);
  box-shadow: 0 5px 18px rgba(55,10,5,.16);
  border: 1px solid rgba(155,111,34,.18);
}

.language {
  min-width: 48px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  font: 600 12px/1.3 var(--body);
  cursor: pointer;
}
.language.active {
  color: #fff;
  background: var(--burgundy-800);
}

/* =========================================================
   STEP 1 — NAMES
   ========================================================= */

.page-names {
  display: grid;
  place-items: center;
}

.page-names::after {
  display: none;
}

.names-rose-frame {
  position: absolute;
  z-index: 2;
  inset: 12px;
  pointer-events: none;
}

.names-rose-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(180, 139, 80, .9);
  box-shadow: inset 0 0 0 5px rgba(180, 139, 80, .12);
}

.names-content {
  position: relative;
  z-index: 5;
  width: min(80%, 470px);
  max-width: 100%;
  text-align: center;
  padding: 75px 0 45px;
  overflow-wrap: break-word;
  
}

.ganesh-invocation {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.ganesh-title {
  margin: 0;
  padding: 4px 14px;
  border: 1px solid var(--card-rule);
  border-radius: 999px;
  background: rgba(247,247,252,.88);
  box-shadow: 0 2px 8px rgba(37,45,91,.1);
  color: var(--burgundy-800);
  font: 600 clamp(12px, 3vw, 15px)/1.4 var(--body);
  letter-spacing: .04em;
}

.ganesh-motifs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 2vw, 14px);
}

.ganesh-symbol {
  display: block;
  width: clamp(48px, 13vw, 62px);
  height: auto;
}

.ganesh-lotus {
  display: block;
  width: clamp(40px, 11vw, 54px);
  height: auto;
}

.floral-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--gold-600);
  font-size: 25px;
}
.floral-line::before,
.floral-line::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-600));
}
.floral-line::after { transform: scaleX(-1); }

.eyebrow,
.wedding-date,
.intro,
.scroll-cue {
  font-family: var(--body);
}

.eyebrow {
  margin: 0;
  color: var(--ink);
  font-size: clamp(11px, 2.9vw, 14px);
  line-height: 1.7;
  letter-spacing: .16em;
}

.couple-names {
  margin: 25px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: .95;
}
.couple-names span {
  display: block;
  font-size: clamp(4.4rem, 18vw, 7.2rem);
  letter-spacing: -.045em;
}
.couple-names small {
  display: block;
  margin: 13px 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
}

.wedding-date {
  margin: 30px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 3.6vw, 17px);
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--burgundy-800);
}

.event-time {
  margin: 9px 0 0;
  color: var(--ink-muted);
  font: 700 15px/1.5 var(--body);
  letter-spacing: .04em;
}

:lang(mr) .event-time {
  letter-spacing: .01em;
}

.countdown {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  justify-content: center;
  gap: clamp(6px, 2vw, 16px);
  width: min(100%, 520px);
  margin: 18px auto 0;
  color: var(--burgundy-700);
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  position: relative;
  display: flex;
  flex: 0 1 clamp(56px, 16vw, 94px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.countdown-unit::before {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255,255,255,.24);
  border-top-color: rgba(114,226,218,.95);
  border-right-color: rgba(114,226,218,.55);
  border-radius: 2px;
  content: "";
  pointer-events: none;
  transform: rotate(-24deg);
}

.countdown-value {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(30,18,18,.24);
}

.countdown-label {
  color: var(--ink);
  font: 600 11px/1.2 Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 2px rgba(255,255,255,.7);
}

.intro {
  margin: clamp(.625rem, 1.6vh, 1rem) auto 0;
  font-size: clamp(12px, 3.1vw, 15px);
  line-height: 1.8;
  letter-spacing: .10em;
}

.rsvp-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  padding: 12px 22px;
  border: 1px solid var(--gold-600);
  border-radius: 2px;
  background: var(--burgundy-800);
  box-shadow: 0 4px 12px rgba(53,7,4,.16);
  color: #fff8e8;
  font: 600 12px/1.4 var(--body);
  letter-spacing: .1em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rsvp-button:hover {
  background: var(--burgundy-700);
  box-shadow: 0 7px 16px rgba(53,7,4,.2);
  transform: translateY(-2px);
}

.rsvp-button:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
}

.download-card-button {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--burgundy-700);
  border-radius: 2px;
  background: rgba(247,247,252,.9);
  color: var(--burgundy-800);
  font: 600 11px/1.4 var(--body);
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.download-card-button:hover {
  background: var(--burgundy-800);
  color: #fff;
  transform: translateY(-2px);
}

.download-card-button:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
}

.scroll-cue {
  margin-top: clamp(1.5rem, 5vh, 3.625rem);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .25em;
}
.scroll-cue b {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 400;
}

/* =========================================================
   STEP 3 — INDIGO + LAVENDER
   ========================================================= */

.page-welcome {
  display: grid;
  place-items: center;
  padding: 78px 20px 55px;
  background:
    radial-gradient(circle at 50% 12%, rgba(211,183,120,.2), transparent 25%),
    linear-gradient(180deg, var(--burgundy-800), var(--burgundy-900));
  color: var(--ivory);
}

.kolam-decoration {
  position: absolute;
  display: block;
  width: clamp(90px, 24vw, 150px);
  height: auto;
  opacity: .48;
  pointer-events: none;
}

.kolam-welcome {
  z-index: 1;
  right: 0;
  bottom: 5%;
}

.kolam-thank-you {
  z-index: 0;
  left: -1%;
  bottom: 3%;
  opacity: .24;
  transform: scaleX(-1);
}

.language-dark .language {
  color: var(--ink);
}
.language-dark .language.active {
  background: var(--gold-600);
  color: white;
}

.welcome-inner {
  width: min(100%, 500px);
  min-width: 0;
  text-align: center;
  position: relative;
  z-index: 3;
  overflow-wrap: break-word;
}

.welcome-decoration {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-400);
  font-size: 45px;
  white-space: nowrap;
  letter-spacing: 12px;
}
.page-welcome .welcome-decoration { display: none; }
.welcome-decoration.top { top: 70px; }
.welcome-decoration.bottom { bottom: 30px; font-size: 50px; }

.welcome-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 10vw, 4.8rem);
  line-height: 1.15;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.welcome-copy {
  margin: 34px 0 30px;
  font-family: var(--body);
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.65;
  color: rgba(247,247,252,.94);
  text-wrap: balance;
}

.couple-art-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 430 / 491;
  width: min(89vw, 390px);
  margin: 24px auto 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.couple-art-image {
  position: absolute;
  z-index: 1;
  display: block;
  inset: 7.74% 10.23%;
  width: 79.54%;
  height: 84.52%;
  object-fit: cover;
  border-radius: 0;
}

.couple-gold-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* =========================================================
   STEP 4A — LOCATION
   ========================================================= */

.page-location {
  background:
    radial-gradient(circle at 50% 18%, rgba(211,183,120,.22), transparent 24%),
    linear-gradient(180deg, var(--ivory), #e8eaf5);
  padding: 82px 18px 65px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.location-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  min-width: 0;
  text-align: center;
  overflow-wrap: break-word;
}

.section-floral {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: var(--gold-600);
  font-size: 31px;
  margin-bottom: 12px;
}

.section-kicker {
  margin: 0;
  font: 600 12px/1.6 var(--body);
  letter-spacing: .16em;
  color: var(--burgundy-700);
}

.section-title {
  margin: 10px 0 24px;
  font: 400 clamp(2.8rem, 10vw, 4.6rem)/1 var(--display);
  color: var(--ink);
}

.location-illustration {
  position: relative;
  margin: 0 auto;
  width: min(94vw, 460px);
  aspect-ratio: 920 / 832;
  overflow: hidden;
  border: 6px solid #edc69f;
  background: linear-gradient(180deg, #f2baa0 0%, #fff8f1 54%, #f8e6db 100%);
  box-shadow: 0 10px 24px rgba(70,25,10,.17);
  isolation: isolate;
}

.illustration-sun {
  position: absolute;
  z-index: -1;
  top: 39%;
  left: 50%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #e9785e, #f3b39a);
  transform: translate(-50%, -50%);
}

.illustration-sea {
  position: absolute;
  z-index: -1;
  top: 54%;
  right: -3%;
  left: -3%;
  height: 22%;
  background:
    linear-gradient(180deg, transparent 0 30%, rgba(255,255,255,.82) 31% 33%, transparent 34% 72%, rgba(255,255,255,.72) 73% 76%, transparent 77%),
    linear-gradient(180deg, #80c9bd, #80c9bd);
}

.illustration-beach {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -17%;
  left: -8%;
  height: 38%;
  border-radius: 50% 50% 0 0 / 12% 12% 0 0;
  background: linear-gradient(180deg, #fff5ee, #f3c7b5);
}

.illustration-canopy {
  position: absolute;
  inset: 0;
}

.canopy-beam {
  position: absolute;
  top: 12%;
  right: 10%;
  left: 8%;
  height: 3.5%;
  background: linear-gradient(180deg, #fff7ec 0 30%, #d58d70 32% 100%);
}

.canopy-beam::before,
.canopy-beam::after {
  position: absolute;
  top: -175%;
  width: 2.5%;
  height: 275%;
  background: #c97960;
  content: "";
}

.canopy-beam::before { left: 10%; }
.canopy-beam::after { right: 12%; }

.canopy-post {
  position: absolute;
  z-index: 2;
  top: 12%;
  bottom: 5%;
  width: 1.8%;
  background: linear-gradient(90deg, #6d302d, #a54f42 48%, #642d2b);
}

.post-left { left: 15%; }
.post-right { right: 16%; }

.canopy-drape {
  position: absolute;
  z-index: 1;
  top: 15%;
  bottom: 4%;
  width: 35%;
  background:
    linear-gradient(90deg, rgba(232,166,148,.38), rgba(255,250,242,.72) 58%, rgba(255,255,255,.4));
}

.drape-left {
  left: 15%;
  clip-path: polygon(0 0, 100% 0, 82% 21%, 70% 43%, 100% 69%, 81% 100%, 53% 100%, 60% 78%, 44% 57%, 49% 35%, 31% 20%);
}

.drape-right {
  right: 16%;
  transform: scaleX(-1);
  clip-path: polygon(0 0, 100% 0, 82% 21%, 70% 43%, 100% 69%, 81% 100%, 53% 100%, 60% 78%, 44% 57%, 49% 35%, 31% 20%);
}

.canopy-flowers {
  position: absolute;
  z-index: 4;
  top: 3%;
  left: 50%;
  width: 34%;
  height: 16%;
  transform: translateX(-50%);
}

.flower-spray {
  position: absolute;
  top: 22%;
  width: 40%;
  height: 52%;
  border-top: 2px solid #592d31;
}

.flower-spray::before,
.flower-spray::after {
  position: absolute;
  top: -8px;
  width: 48%;
  height: 13px;
  border-radius: 100% 0 100% 0;
  background: repeating-linear-gradient(90deg, #583038 0 3px, transparent 3px 6px);
  content: "";
}

.spray-left {
  left: 0;
  transform: rotate(-15deg);
}

.spray-right {
  right: 0;
  transform: scaleX(-1) rotate(-15deg);
}

.blossom {
  position: absolute;
  color: #c96758;
  font-size: clamp(13px, 4vw, 25px);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(93,39,39,.2);
}

.blossom-one { top: 23%; left: 25%; }
.blossom-two { top: 2%; left: 39%; color: #9c4943; }
.blossom-three { top: 20%; left: 52%; color: #db7d65; }
.blossom-four { top: 34%; left: 39%; color: #e18b70; }
.blossom-five { top: 28%; left: 65%; color: #ad514b; }

.illustration-couple {
  position: absolute;
  z-index: 3;
  right: 27%;
  bottom: 8%;
  left: 28%;
  height: 55%;
}

.illustration-bride,
.illustration-groom {
  position: absolute;
  bottom: 0;
  height: 100%;
}

.illustration-bride {
  z-index: 2;
  left: 4%;
  width: 47%;
}

.bride-head {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 50%;
  width: 32%;
  height: 15%;
  border-radius: 48% 48% 46% 46%;
  background: #d78c70;
  clip-path: polygon(20% 5%, 68% 0, 91% 18%, 94% 39%, 100% 48%, 88% 55%, 96% 62%, 82% 69%, 83% 86%, 58% 100%, 22% 91%, 4% 68%, 0 34%);
  transform: rotate(-14deg);
}

.bride-hair {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 43%;
  width: 38%;
  height: 19%;
  border-radius: 58% 48% 35% 35%;
  clip-path: polygon(34% 0, 74% 4%, 98% 28%, 92% 61%, 72% 54%, 62% 41%, 47% 50%, 44% 100%, 23% 100%, 9% 67%, 0 40%, 11% 13%);
  background: #54272d;
  transform: rotate(-14deg);
}

.bride-hair::after {
  position: absolute;
  top: 42%;
  left: -25%;
  width: 58%;
  height: 170%;
  border-radius: 60% 20% 65% 35%;
  background: #54272d;
  content: "";
  transform: rotate(12deg);
}

.bride-gown {
  position: absolute;
  right: -8%;
  bottom: 0;
  left: 0;
  height: 80%;
  background: linear-gradient(100deg, #fffaf3 0%, #f9e3d8 56%, #efa98d 100%);
  clip-path: polygon(42% 0, 69% 5%, 77% 31%, 70% 59%, 100% 100%, 0 100%, 26% 74%, 31% 44%);
}

.bride-arm {
  position: absolute;
  z-index: 4;
  top: 39%;
  right: -10%;
  width: 16%;
  height: 34%;
  border-radius: 100% 60% 60% 100%;
  background: #d78c70;
  transform: rotate(-30deg);
}

.illustration-groom {
  z-index: 1;
  right: 14%;
  width: 47%;
}

.groom-head {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 4%;
  width: 39%;
  height: 17%;
  border-radius: 48% 45% 48% 48%;
  background: #d18a70;
  clip-path: polygon(24% 0, 73% 4%, 94% 24%, 100% 47%, 86% 54%, 98% 61%, 82% 69%, 78% 89%, 49% 100%, 14% 83%, 0 55%, 7% 22%);
  transform: rotate(-8deg);
}

.groom-hair {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 2%;
  width: 40%;
  height: 13%;
  border-radius: 60% 42% 25% 25%;
  background: #44252c;
  transform: rotate(-8deg);
}

.groom-shirt {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 60%;
  height: 48%;
  border-radius: 42% 42% 12% 10%;
  background: linear-gradient(90deg, #e9b09b, #fff0e7 56%, #e8ab94);
  clip-path: polygon(22% 0, 69% 0, 100% 100%, 0 100%);
}

.groom-trousers {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: 52%;
  height: 43%;
  background: linear-gradient(90deg, #612d32, #71343a);
  clip-path: polygon(7% 0, 100% 0, 85% 100%, 54% 100%, 45% 38%, 34% 100%, 0 100%);
}

.groom-shoe {
  position: absolute;
  z-index: 2;
  bottom: -1%;
  width: 31%;
  height: 5%;
  border-radius: 50% 20% 15% 30%;
  background: #70463f;
}

.shoe-left { left: 1%; }
.shoe-right { right: 0; }

.groom-arm {
  position: absolute;
  z-index: 3;
  top: 25%;
  left: 3%;
  width: 22%;
  height: 40%;
  border-radius: 50%;
  background: linear-gradient(90deg, #d1856d, #edb099);
  transform: rotate(20deg);
}

.illustration-shadows {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 32%;
  width: 40%;
  height: 13%;
  background: linear-gradient(115deg, transparent 42%, rgba(116,65,57,.22) 43% 55%, transparent 56%);
  clip-path: polygon(0 0, 62% 0, 100% 100%, 8% 100%);
}

.location-illustration,
.location-illustration * {
  box-sizing: border-box;
}

.location-illustration > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.location-card {
  margin: -4px auto 0;
  width: min(92vw, 410px);
  padding: 25px 20px 22px;
  background: rgba(255,250,242,.97);
  border: 1px solid rgba(157,111,34,.25);
  box-shadow: 0 14px 34px rgba(60,20,10,.12);
}
.pin {
  color: var(--gold-600);
  font-size: 28px;
}
.location-card h3 {
  margin: 5px 0 3px;
  font: 400 clamp(1.35rem, 5vw, 2rem)/1.3 var(--display);
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.location-card p {
  margin: 0 0 18px;
  font: 600 14px/1.6 var(--body);
  letter-spacing: .04em;
  color: #765148;
}
.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #d5c9b0;
  border-radius: 6px;
  background: #fff;
  color: #3c4043;
  padding: 10px 18px;
  letter-spacing: .02em;
  font: 600 12px/1.4 var(--body);
  cursor: pointer;
}

.maps-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.transport-button {
  display: block;
  min-height: 44px;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--gold-600);
  border-radius: 2px;
  background: #fffdf8;
  color: var(--burgundy-800);
  font: 700 13px/1.4 var(--body);
  letter-spacing: .05em;
  cursor: pointer;
}

.transport-button:hover {
  background: #f7ecd5;
}

.transport-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: min(84vh, 760px);
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--gold-600);
  border-radius: 8px;
  background: var(--card-paper, var(--ivory));
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(35,12,8,.35);
}

.transport-dialog::backdrop {
  background: rgba(31,12,10,.62);
  backdrop-filter: blur(3px);
}

.transport-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-rule, rgba(157,111,34,.34));
}

.transport-kicker {
  margin: 0 0 4px;
  color: var(--burgundy-700);
  font: 700 12px/1.5 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.transport-dialog-header h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1.7rem, 6vw, 2.3rem)/1.15 var(--display);
}

.transport-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-rule, rgba(157,111,34,.34));
  border-radius: 50%;
  background: #fffdf8;
  color: var(--burgundy-800);
  font: 400 28px/1 var(--body);
  cursor: pointer;
}

.transport-note {
  margin: 14px 0 18px;
  color: #765148;
  font: 400 14px/1.6 var(--body);
}

.transport-group + .transport-group {
  margin-top: 18px;
}

.transport-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--burgundy-800);
  font: 700 16px/1.4 var(--body);
}

.transport-icon {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--card-rule, rgba(157,111,34,.34));
  border-radius: 50%;
  background: linear-gradient(145deg, #fffdf8, #f5e9d2);
  color: var(--gold-700);
}

.transport-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.transport-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transport-group li {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid var(--card-rule, rgba(157,111,34,.34));
  background: rgba(255,253,248,.8);
  overflow-wrap: anywhere;
}

.transport-group li strong {
  color: var(--ink);
  font: 700 14px/1.5 var(--body);
}

.transport-group li span {
  color: #765148;
  font: 400 14px/1.5 var(--body);
}

button:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 768px) {
  .names-content { width: min(62%, 560px); }
}

@media (max-width: 430px) {
  .language-switch {
    top: 20px;
    right: 20px;
    padding: 3px;
  }

  .language {
    min-width: 44px;
    min-height: 44px;
    font-size: 12px;
  }

  .names-content {
    width: min(88%, 430px);
    padding: 66px 0 34px;
  }

  .floral-line {
    margin-bottom: 15px;
    font-size: 20px;
    gap: 12px;
  }

  .floral-line::before,
  .floral-line::after { width: 34px; }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .06em;
  }

  .couple-names { margin-top: 18px; }
  .couple-names span { font-size: clamp(3.55rem, 17.8vw, 5.2rem); }
  .couple-names small { margin: 9px 0; font-size: 1.65rem; }

  .wedding-date {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: .08em;
  }

  .intro {
    margin-top: clamp(.625rem, 1.5vh, .875rem);
    font-size: 12px;
    line-height: 1.75;
    letter-spacing: .04em;
  }

  .scroll-cue { margin-top: clamp(1.5rem, 5vh, 2.125rem); }

  .page-welcome {
    min-height: 100svh;
    padding: 76px 16px 42px;
  }

  .welcome-decoration.top {
    top: 62px;
    font-size: 30px;
    letter-spacing: 6px;
  }

  .welcome-title {
    width: min(92vw, 360px);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.9rem, 7.4vw, 2.65rem);
    line-height: 1.12;
    text-align: center;
    text-wrap: balance;
  }

  .welcome-copy {
    width: min(88vw, 330px);
    margin: 21px auto 0;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
    text-wrap: balance;
  }

  .couple-art-frame {
    width: min(82vw, 350px);
    margin-top: 18px;
  }

  .page-location {
    min-height: 100svh;
    padding: 70px 14px 44px;
  }

  .section-floral {
    font-size: 25px;
    gap: 9px;
    margin-bottom: 8px;
  }

  .section-kicker {
    font-size: 12px;
    letter-spacing: .08em;
  }

  .section-title {
    margin: 7px 0 18px;
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .location-illustration {
    width: min(88vw, 360px);
  }

  .location-card {
    width: min(88vw, 360px);
    padding: 18px 14px;
  }

  .location-card h3 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .location-card p { font-size: 14px; margin-bottom: 14px; }
}

@media (max-height: 700px) and (max-width: 430px) {
  .page-welcome { padding-top: 66px; padding-bottom: 26px; }
  .welcome-decoration.top { top: 53px; }
  .welcome-title { font-size: clamp(1.9rem, 7.4vw, 2rem); width: min(91vw, 330px); }
  .welcome-copy { margin-top: 15px; margin-bottom: 18px; width: min(88vw, 300px); }
  .couple-art-frame { width: min(68vw, 285px); margin-top: 10px; }
}

@media (max-width: 360px) {
  .welcome-title { font-size: clamp(1.8rem, 7.4vw, 1.9rem); width: 88vw; }
  .welcome-copy { font-size: 15px; width: 84vw; }
  .couple-art-frame { width: 74vw; }
}

:lang(mr) .eyebrow,
:lang(mr) .intro,
:lang(mr) .scroll-cue,
:lang(mr) .section-kicker,
:lang(mr) .location-card p,
:lang(mr) .map-button,
:lang(mr) .thank-kicker,
:lang(mr) .thank-date {
  letter-spacing: .02em;
}

:lang(mr) .wedding-date {
  font-family: var(--body);
  font-weight: 700;
}

:lang(mr) .welcome-title,
:lang(mr) .section-title,
:lang(mr) .location-card h3,
:lang(mr) .thank-title {
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* =========================================================
   STEP 5 — THANK YOU / TEATRO PAPER CARD
   ========================================================= */
.page-thank-you {
  min-height: 100svh;
  padding: max(76px, calc(env(safe-area-inset-top) + 62px)) 12px 34px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(226,194,122,.16), transparent 24%),
    radial-gradient(circle at 88% 75%, rgba(226,194,122,.12), transparent 28%),
    linear-gradient(145deg, #5a100b, #7d2018 48%, #4b0906);
  color: var(--ink);
}

.thank-you-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .24;
}
.pattern-cherub {
  position: absolute;
  color: var(--gold-200);
  font-family: Georgia, serif;
  font-size: clamp(55px, 15vw, 105px);
  transform: rotate(-20deg);
}
.pattern-cherub.p1 { left: -10px; top: 14%; }
.pattern-cherub.p2 { right: -18px; top: 29%; transform: rotate(18deg); }
.pattern-cherub.p3 { left: -15px; bottom: 17%; transform: rotate(12deg); }
.pattern-cherub.p4 { right: -12px; bottom: 6%; transform: rotate(-24deg); }

.thank-language { top: max(14px, env(safe-area-inset-top)); }

.thank-paper {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  width: min(91vw, 520px);
  min-height: min(78svh, 660px);
  padding: clamp(54px, 10vw, 82px) clamp(24px, 7vw, 58px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(135deg, #fffdf7, #f7f0e4);
  box-shadow: 0 20px 45px rgba(30,0,0,.34);
  clip-path: polygon(
    3% 4%, 9% 2%, 16% 4%, 24% 2%, 32% 4%, 40% 2%, 48% 4%, 56% 2%, 64% 4%, 72% 2%, 80% 4%, 88% 2%, 97% 5%,
    95% 13%, 98% 21%, 95% 29%, 98% 37%, 95% 45%, 98% 53%, 95% 61%, 98% 69%, 95% 77%, 98% 85%, 94% 95%,
    86% 93%, 78% 96%, 70% 93%, 62% 96%, 54% 93%, 46% 96%, 38% 93%, 30% 96%, 22% 93%, 14% 96%, 5% 93%,
    7% 85%, 4% 77%, 7% 69%, 4% 61%, 7% 53%, 4% 45%, 7% 37%, 4% 29%, 7% 21%, 4% 13%
  );
}

.thank-paper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(126,27,21,.13);
  pointer-events: none;
}

.thank-content {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  min-width: 0;
  text-align: center;
  overflow-wrap: break-word;
}
.thank-floral {
  color: var(--gold-600);
  font-size: clamp(27px, 7vw, 42px);
  margin-bottom: 12px;
}
.thank-kicker {
  margin: 0 0 13px;
  color: #8d6b31;
  font: 600 12px/1.6 var(--body);
  letter-spacing: .12em;
}
.thank-title {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(2.55rem, 10vw, 4.6rem)/1 var(--display);
}
.thank-copy {
  margin: 27px auto 0;
  width: min(90%, 340px);
  color: #6a2c22;
  font: 400 clamp(14px, 3.7vw, 17px)/1.7 var(--body);
}
.thank-names {
  margin: 25px 0 0;
  color: var(--ink);
  font: 400 clamp(1.7rem, 7vw, 2.7rem)/1.1 var(--display);
}
.thank-names span {
  font-family: var(--serif);
  font-size: .75em;
  margin: 0 .1em;
}
.thank-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 25px auto 14px;
  color: var(--gold-600);
}
.thank-divider i {
  width: min(25vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
}
.thank-date {
  margin: 0;
  color: #8a5d23;
  font: 600 12px/1.6 var(--body);
  letter-spacing: .12em;
}

.paper-corner { position:absolute; width:42px; height:42px; border-color:rgba(157,111,34,.28); pointer-events:none; }
.corner-tl { top:25px; left:27px; border-top:1px solid; border-left:1px solid; }
.corner-tr { top:25px; right:27px; border-top:1px solid; border-right:1px solid; }
.corner-bl { bottom:25px; left:27px; border-bottom:1px solid; border-left:1px solid; }
.corner-br { bottom:25px; right:27px; border-bottom:1px solid; border-right:1px solid; }

@media (max-width: 430px) {
  .page-thank-you { padding: max(76px, calc(env(safe-area-inset-top) + 62px)) 8px 28px; }
  .thank-paper { width: min(92vw, 390px); min-height: 70svh; padding: 50px 22px; }
  .thank-paper::before { inset: 10px; }
  .thank-content { width: 100%; }
  .thank-copy { width: min(92%, 300px); font-size: 14px; line-height: 1.7; }
  .thank-names { margin-top: 20px; }
  .thank-divider { margin-top: 20px; }
  .paper-corner { width: 30px; height: 30px; }
  .corner-tl { top: 19px; left: 21px; }
  .corner-tr { top: 19px; right: 21px; }
  .corner-bl { bottom: 19px; left: 21px; }
  .corner-br { bottom: 19px; right: 21px; }
}

@media (max-height: 700px) and (max-width: 430px) {
  .thank-paper { min-height: 78svh; padding-top: 40px; padding-bottom: 40px; }
  .thank-floral { margin-bottom: 6px; }
  .thank-copy { margin-top: 18px; }
  .thank-names { margin-top: 17px; }
  .thank-divider { margin-top: 16px; margin-bottom: 9px; }
}

/* =========================================================
   PRINTED INVITATION CARD FINISH
   ========================================================= */

.invitation {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 24px 0 1px;
}

.page {
  width: min(100%, 900px);
  min-height: max(680px, calc(100svh - 72px));
  border-radius: 3px;
}

.page::before {
  inset: 14px;
}

.page::after {
  top: 24px;
}

.page-names {
  padding: 126px 24px 42px;
}

.names-content {
  padding: 70px 0 20px;
}

.page-welcome {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(147,50,39,.32), transparent 47%),
    linear-gradient(145deg, #6e1813, #4a0b08);
  color: var(--ivory);
}

.page-welcome::after {
  background: #64130f;
  color: var(--gold-200);
}

.welcome-inner {
  padding: 34px 30px;
  border: 1px solid rgba(226,194,122,.35);
}

.welcome-title {
  text-shadow: none;
}

.page-location {
  background:
    radial-gradient(ellipse at 50% 0, #fffefa, transparent 70%),
    linear-gradient(180deg, #f8f1e5, #eee1cf);
}

.page-location::after {
  background: #f8f1e5;
}

.location-card {
  position: relative;
  z-index: 2;
  border-color: rgba(157,111,34,.44);
  box-shadow: 0 12px 28px rgba(60,20,10,.12);
}

.page-thank-you {
  background:
    radial-gradient(ellipse at 50% 10%, #fffaf0, transparent 72%),
    linear-gradient(145deg, #eee0cb, #dfc7a6);
}

.page-thank-you::after {
  background: #f6eddf;
}

.thank-you-pattern {
  opacity: .14;
}

.thank-paper {
  margin-top: 34px;
  min-height: min(74svh, 620px);
  clip-path: none;
  border: 1px solid rgba(157,111,34,.55);
  box-shadow: 0 10px 30px rgba(60,35,15,.13);
}

.thank-paper::before {
  inset: 12px;
  border-color: rgba(126,27,21,.22);
}

@media (max-width: 600px) {
  .invitation {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .page {
    min-height: max(640px, calc(100svh - 32px));
    margin-bottom: 14px;
  }

  .page::before {
    inset: 9px;
  }

  .page::after {
    top: 16px;
  }

  .language-switch {
    top: 17px;
    right: 17px;
  }

  .page-names {
    padding: 72px 14px 34px;
  }

  .names-content {
    padding: 78px 0 16px;
  }

  .welcome-inner {
    padding: 24px 14px;
  }

  .welcome-title,
  .welcome-copy {
    width: 100%;
  }

  .couple-art-frame {
    width: min(100%, 350px);
  }

  .location-illustration,
  .location-card {
    width: 100%;
  }

  .page-thank-you {
    padding: 58px 12px 30px;
  }

  .thank-paper {
    width: min(100%, 390px);
    min-height: 68svh;
    margin-top: 20px;
    padding: 50px 22px;
  }
}

@media (max-width: 360px) {
  .language-switch {
    top: 14px;
    right: 14px;
  }
}

.couple-art-frame {
  width: min(66vw, 310px);
}

.couple-art-image {
  aspect-ratio: auto;
  object-position: center;
  border-radius: 0;
}

@media (max-width: 600px) {
  .couple-art-frame {
    width: min(72vw, 285px);
  }
}

/* A shared stationery palette ties every part of the invitation together. */
:root {
  --card-paper: #f7f7fc;
  --card-paper-shadow: #e9ebf6;
  --card-rule: rgba(141,103,57,.34);
  --card-shadow: 0 18px 48px rgba(37,45,91,.14);
}

.language {
  font-size: 13px;
}

.eyebrow,
.wedding-date,
.intro,
.section-kicker,
.thank-kicker,
.thank-date {
  font-size: 14px;
}

.wedding-date {
  font-size: clamp(15px, 1.5vw, 18px);
}

.scroll-cue,
.welcome-kicker,
.location-card p,
.map-button {
  font-size: 14px;
}

.eyebrow {
  letter-spacing: .1em;
}

.wedding-date,
.thank-date {
  letter-spacing: .12em;
}

.intro {
  letter-spacing: .06em;
}

.scroll-cue {
  letter-spacing: .16em;
}

.section-kicker,
.welcome-kicker,
.thank-kicker {
  letter-spacing: .12em;
}

.map-button {
  letter-spacing: .06em;
}

.page {
  border-color: rgba(157,111,34,.52);
  box-shadow: var(--card-shadow);
  background-color: var(--card-paper);
}

.page::before {
  border-color: var(--card-rule);
}

.page::after {
  content: "";
  width: 9px;
  height: 9px;
  top: 21px;
  padding: 0;
  background: var(--gold-600);
  box-shadow: 0 0 0 6px var(--card-paper);
  transform: translateX(-50%) rotate(45deg);
}

.page-location,
.page-welcome,
.page-gallery,
.page-thank-you {
  background:
    radial-gradient(ellipse at 50% 30%, #fffefa 0, var(--card-paper) 54%, var(--card-paper-shadow) 100%);
  color: var(--ink);
}

.page-names {
  background-color: var(--card-paper);
  background-image:
    linear-gradient(rgba(247,247,252,.58), rgba(247,247,252,.64)),
    url("../images/card-hands-background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.language-switch {
  background: rgba(247,247,252,.96);
  border-color: var(--card-rule);
  box-shadow: 0 5px 16px rgba(55,10,5,.1);
}

.language.active,
.language-dark .language.active {
  background: var(--burgundy-800);
  color: #fffaf0;
}

.page-names .names-content {
  animation: card-rise .9s both cubic-bezier(.2,.7,.25,1);
}

.page-names .floral-line { animation-delay: .08s; }
.page-names .eyebrow { animation: card-rise .8s .14s both cubic-bezier(.2,.7,.25,1); }
.page-names .couple-names { animation: card-rise .9s .25s both cubic-bezier(.2,.7,.25,1); }
.page-names .wedding-date { animation: card-rise .8s .38s both cubic-bezier(.2,.7,.25,1); }
.page-names .countdown { animation: card-rise .8s .44s both cubic-bezier(.2,.7,.25,1); }
.page-names .intro { animation: card-rise .8s .48s both cubic-bezier(.2,.7,.25,1); }
.page-names .scroll-cue { animation: card-rise .8s .58s both cubic-bezier(.2,.7,.25,1); }

.page-welcome::after {
  background: var(--card-paper);
  color: var(--gold-600);
}

.welcome-inner {
  padding: 30px clamp(18px, 5vw, 38px);
  border: 0;
}

.welcome-kicker {
  margin: 0 0 14px;
  color: var(--burgundy-700);
  font: 600 14px/1.6 var(--body);
  letter-spacing: .2em;
}

.welcome-title {
  width: 100%;
  max-width: 26ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.12;
  text-wrap: balance;
}

.welcome-copy {
  width: 100%;
  max-width: 34ch;
  margin: 19px auto 24px;
  color: var(--ink-muted);
  font-size: clamp(15px, 2.2vw, 17px);
}

.couple-art-frame {
  width: min(100%, 310px);
  background: none;
  box-shadow: none;
}

.page-location::after,
.page-thank-you::after {
  background: var(--card-paper);
}

.page-location {
  padding-top: 82px;
}

.location-illustration {
  box-shadow: 0 12px 30px rgba(67,35,19,.14);
}

.location-card {
  background: rgba(255,253,248,.96);
  border-color: var(--card-rule);
  box-shadow: 0 12px 28px rgba(67,35,19,.1);
}

.map-button {
  box-shadow: 0 2px 6px rgba(53,7,4,.12);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.map-button:hover {
  background: #f8f6f1;
  box-shadow: 0 4px 10px rgba(53,7,4,.17);
  transform: translateY(-2px);
}

.page-thank-you {
  padding-top: 76px;
}

.thank-you-pattern {
  opacity: .08;
}

.thank-paper {
  margin-top: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.82), transparent 28%),
    linear-gradient(135deg, #fffdf7, var(--card-paper-shadow));
  border-color: rgba(157,111,34,.52);
  box-shadow: 0 12px 30px rgba(67,35,19,.12);
}

.thank-paper::before {
  border-color: var(--card-rule);
}

.page-welcome[aria-hidden="false"] .welcome-inner,
.page-location[aria-hidden="false"] .location-inner,
.page-gallery[aria-hidden="false"] .gallery-inner,
.page-thank-you[aria-hidden="false"] .thank-paper {
  animation: card-rise .8s both cubic-bezier(.2,.7,.25,1);
}

.scroll-cue b {
  animation: cue-bob 1.8s 1.1s infinite ease-in-out;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

:lang(mr) .welcome-kicker {
  letter-spacing: .02em;
}

@media (max-width: 600px) {
  .page::after {
    top: 16px;
  }

  .welcome-inner {
    padding: 22px 14px;
  }

  .welcome-kicker {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .welcome-title {
    max-width: none;
    font-size: clamp(1.9rem, 7vw, 2.3rem);
  }

  .welcome-copy {
    margin: 15px auto 19px;
  }

  .eyebrow,
  .wedding-date,
  .intro,
  .section-kicker,
  .thank-kicker,
  .thank-date,
  .scroll-cue,
  .welcome-kicker,
  .location-card p,
  .map-button {
    font-size: 14px;
  }

  .eyebrow {
    letter-spacing: .04em;
  }

  .wedding-date,
  .thank-date {
    letter-spacing: .06em;
  }

  .intro {
    letter-spacing: .02em;
  }

  .scroll-cue {
    letter-spacing: .12em;
  }

  .welcome-kicker,
  .section-kicker,
  .thank-kicker {
    letter-spacing: .04em;
  }

  .map-button {
    letter-spacing: .04em;
  }

  .page-location {
    padding-top: 70px;
  }

  .page-thank-you {
    padding-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-confetti {
    display: none;
  }

  .page-names .names-content,
  .page-names .eyebrow,
  .page-names .couple-names,
  .page-names .wedding-date,
  .page-names .countdown,
  .page-names .intro,
  .page-names .scroll-cue,
  .page-welcome[aria-hidden="false"] .welcome-inner,
  .page-location[aria-hidden="false"] .location-inner,
  .page-thank-you[aria-hidden="false"] .thank-paper,
  .page-gallery[aria-hidden="false"] .gallery-inner,
  .scroll-cue b {
    animation: none;
  }
}

@media (max-width: 600px) {
  .page-names {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-names .names-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    padding-right: 12px;
    padding-left: 12px;
  }

  .page-names .eyebrow,
  .page-names .wedding-date,
  .page-names .intro,
  .page-names .scroll-cue,
  .page-welcome .welcome-kicker,
  .page-location .section-kicker,
  .page-location .location-card p,
  .page-location .map-button,
  .page-thank-you .thank-kicker,
  .page-thank-you .thank-date,
  .language-switch .language {
    font-size: 14px;
  }

  .page-names .eyebrow,
  .page-names .intro {
    letter-spacing: .02em;
  }

  .page-names .wedding-date,
  .page-thank-you .thank-date {
    letter-spacing: .04em;
  }

  .page-names .countdown {
    gap: 6px;
    margin-top: 16px;
  }

  .countdown-unit {
    flex-basis: clamp(56px, 16vw, 78px);
    gap: 3px;
  }

  .countdown-value {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .countdown-label {
    font-size: 10px;
  }

  .page-welcome .welcome-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-welcome .welcome-title,
  .page-welcome .welcome-copy {
    width: 100%;
    max-width: 100%;
  }

  .page-welcome .couple-art-frame {
    width: min(100%, 285px);
  }

  .page-location .location-inner {
    width: 100%;
    min-width: 0;
  }

  .page-location .location-illustration,
  .page-location .location-card {
    width: 100%;
    max-width: 100%;
  }

  .page-thank-you .thank-paper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-thank-you .thank-content,
  .page-thank-you .thank-copy {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .page-names {
    padding-top: 44px;
    background-position: center, 54% center;
  }

  .page-names .names-content {
    padding-top: 32px;
    padding-bottom: 0;
  }

  .page-names .ganesh-invocation {
    margin-bottom: 8px;
  }

  .page-names .ganesh-symbol {
    width: 44px;
  }

  .page-names .ganesh-lotus {
    width: 36px;
  }

  .page-names .floral-line {
    margin-bottom: 10px;
  }

  .page-names .eyebrow {
    font-size: 12px;
    line-height: 1.5;
  }

  .page-names .couple-names span {
    font-size: clamp(2.7rem, 15vw, 3.2rem);
  }

  .page-names .couple-names {
    margin-top: 10px;
  }

  .page-names .couple-names small {
    margin: 6px 0;
  }

  .page-names .wedding-date {
    margin-top: 10px;
  }

  .page-names .countdown {
    margin-top: 8px;
  }

  .page-names .intro {
    margin-top: clamp(.5rem, 1.3vh, .75rem);
    font-size: 12px;
    line-height: 1.5;
  }

  .page-names .rsvp-button {
    margin-top: 10px;
  }

  .page-names .download-card-button {
    min-height: 38px;
    margin-top: 3px;
    padding: 5px 12px;
  }
}

.page-gallery {
  display: grid;
  place-items: center;
  padding: 82px 24px 54px;
}

.page-gallery::after {
  background: var(--card-paper);
}

.gallery-inner {
  position: relative;
  z-index: 3;
  width: min(100%, 720px);
  min-width: 0;
  text-align: center;
}

.gallery-inner .section-title {
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.gallery-copy {
  margin: 0 auto 22px;
  max-width: 38ch;
  color: var(--ink-muted);
  font: 400 16px/1.65 var(--body);
}

.photo-carousel {
  width: min(100%, 540px);
  margin: 0 auto;
}

.carousel-frame {
  width: 100%;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(157,111,34,.5);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff5d8, var(--gold-600), #fff5d8);
  box-shadow: 0 15px 34px rgba(67,35,19,.16);
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px auto 12px;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 4px;
  border: 1px solid rgba(157,111,34,.5);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--burgundy-800);
  box-shadow: 0 4px 12px rgba(67,35,19,.1);
  font: 400 32px/1 var(--serif);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.carousel-arrow:hover {
  transform: translateY(-2px);
  background: #f5e8ce;
}

.carousel-count {
  min-width: 72px;
  color: var(--ink);
  font: 600 14px/1.4 var(--body);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.carousel-progress {
  appearance: none;
  -webkit-appearance: none;
  width: min(70%, 280px);
  height: 3px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(157,111,34,.2);
}

.carousel-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(157,111,34,.2);
}

.carousel-progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--gold-600);
  transition: width .25s ease;
}

.carousel-progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--gold-600);
  transition: width .25s ease;
}

.page-gallery[aria-hidden="false"] .gallery-inner {
  animation: card-rise .8s both cubic-bezier(.2,.7,.25,1);
}

:lang(mr) .gallery-copy {
  line-height: 1.8;
}

@media (max-width: 600px) {
  .page-gallery {
    padding: 70px 16px 38px;
  }

  .gallery-inner .section-title {
    margin-bottom: 8px;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .gallery-copy {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .photo-carousel {
    width: 100%;
    max-width: 420px;
  }

  .carousel-frame {
    padding: 6px;
    border-radius: 9px;
  }

  .carousel-frame img {
    border-radius: 5px;
  }

  .carousel-controls {
    margin-top: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-arrow,
  .carousel-progress::-webkit-progress-value,
  .carousel-progress::-moz-progress-bar {
    transition: none;
  }
}

.language-switch,
.thank-language {
  top: max(17px, env(safe-area-inset-top));
  right: auto;
  left: 50%;
  align-items: center;
  gap: 8px;
  padding: 4px;
  transform: translateX(-50%);
}

.language {
  min-width: 48px;
  min-height: 38px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ivory: #1b2038;
  --ivory-2: #252b48;
  --ink: #eceefd;
  --ink-muted: #d0d5ed;
  --card-paper: #202641;
  --card-paper-shadow: #2a3151;
  --card-rule: rgba(211,183,120,.32);
  --gold-200: #e2cf9d;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 50% 0, rgba(84,101,161,.2), transparent 55%),
    repeating-linear-gradient(135deg, rgba(211,183,120,.018) 0 1px, transparent 1px 5px),
    #111629;
  color: var(--ink);
}

:root[data-theme="dark"] .page {
  border-color: rgba(226,194,122,.38);
  background-color: var(--card-paper);
  box-shadow: 0 18px 48px rgba(0,0,0,.42);
}

:root[data-theme="dark"] .page::before {
  border-color: rgba(226,194,122,.18);
}

:root[data-theme="dark"] .page::after,
:root[data-theme="dark"] .page-welcome::after,
:root[data-theme="dark"] .page-location::after,
:root[data-theme="dark"] .page-thank-you::after {
  background: var(--card-paper);
  box-shadow: 0 0 0 6px var(--card-paper);
}

:root[data-theme="dark"] .page-names {
  background-color: #1b2038;
  background-image:
    linear-gradient(rgba(17,22,41,.68), rgba(17,22,41,.74)),
    url("../images/card-hands-background.jpg");
}

:root[data-theme="dark"] .page-names .eyebrow,
:root[data-theme="dark"] .page-names .couple-names,
:root[data-theme="dark"] .page-names .intro,
:root[data-theme="dark"] .page-names .scroll-cue,
:root[data-theme="dark"] .page-names .event-time {
  color: #f3e8da;
}

:root[data-theme="dark"] .page-names .wedding-date {
  color: #edcc83;
}

:root[data-theme="dark"] .page-names .ganesh-title {
  border-color: rgba(211,183,120,.35);
  background: rgba(32,38,65,.9);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  color: #e2cf9d;
}

:root[data-theme="dark"] .page-names .countdown {
  color: #d0d5ed;
}

:root[data-theme="dark"] .page-names .countdown-unit {
  border-color: rgba(255,255,255,.24);
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .page-names .countdown-label {
  color: #f3e8da;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

:root[data-theme="dark"] .page-heart-pattern {
  color: #f2a0ad;
  opacity: .46;
}

:root[data-theme="dark"] .page-welcome {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(104,121,173,.2), transparent 47%),
    linear-gradient(145deg, #252d50, #151a30);
  color: #eceefd;
}

:root[data-theme="dark"] .page-welcome::after {
  color: #e2cf9d;
}

:root[data-theme="dark"] .welcome-kicker,
:root[data-theme="dark"] .welcome-title {
  color: #eceefd;
}

:root[data-theme="dark"] .welcome-copy {
  color: #d0d5ed;
}

:root[data-theme="dark"] .page-location {
  background:
    radial-gradient(ellipse at 50% 0, #30395e, transparent 70%),
    linear-gradient(180deg, #1b2038, #151a30);
}

:root[data-theme="dark"] .section-kicker {
  color: #e2cf9d;
}

:root[data-theme="dark"] .section-title,
:root[data-theme="dark"] .location-card h3 {
  color: #eceefd;
}

:root[data-theme="dark"] .location-card {
  background: rgba(37,43,72,.98);
  border-color: rgba(211,183,120,.28);
}

:root[data-theme="dark"] .location-card p,
:root[data-theme="dark"] .gallery-copy {
  color: #d0d5ed;
}

:root[data-theme="dark"] .transport-button {
  background: #303858;
  color: #eceefd;
}

:root[data-theme="dark"] .transport-button:hover,
:root[data-theme="dark"] .carousel-arrow:hover {
  background: #3b4569;
}

:root[data-theme="dark"] .map-button {
  background: #f7f5f0;
  color: #3c4043;
}

:root[data-theme="dark"] .transport-dialog {
  background: #202641;
  color: #eceefd;
}

:root[data-theme="dark"] .transport-note,
:root[data-theme="dark"] .transport-group li span {
  color: #d0d5ed;
}

:root[data-theme="dark"] .transport-group li {
  background: #303858;
}

:root[data-theme="dark"] .transport-group li strong,
:root[data-theme="dark"] .transport-dialog-header h2 {
  color: #eceefd;
}

:root[data-theme="dark"] .transport-close,
:root[data-theme="dark"] .transport-icon {
  background: #303858;
  color: #e2cf9d;
}

:root[data-theme="dark"] .transport-kicker,
:root[data-theme="dark"] .transport-group h3 {
  color: #e2cf9d;
}

:root[data-theme="dark"] .page-gallery {
  background:
    radial-gradient(ellipse at 50% 30%, #30395e 0, #202641 54%, #151a30 100%);
}

:root[data-theme="dark"] .carousel-frame {
  background: linear-gradient(145deg, #303858, #ad8350, #303858);
}

:root[data-theme="dark"] .carousel-arrow {
  background: #303858;
  color: #eceefd;
}

:root[data-theme="dark"] .carousel-count {
  color: #eceefd;
}

:root[data-theme="dark"] .carousel-progress,
:root[data-theme="dark"] .carousel-progress::-webkit-progress-bar {
  background: rgba(226,194,122,.22);
}

:root[data-theme="dark"] .page-thank-you {
  background:
    radial-gradient(ellipse at 50% 10%, #30395e, transparent 72%),
    linear-gradient(145deg, #111629, #202641);
  color: #eceefd;
}

:root[data-theme="dark"] .thank-paper {
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.035), transparent 28%),
    linear-gradient(135deg, #303858, #202641);
  border-color: rgba(211,183,120,.34);
}

:root[data-theme="dark"] .thank-paper::before {
  border-color: rgba(211,183,120,.2);
}

:root[data-theme="dark"] .thank-kicker,
:root[data-theme="dark"] .thank-date {
  color: #e2cf9d;
}

:root[data-theme="dark"] .thank-title,
:root[data-theme="dark"] .thank-names,
:root[data-theme="dark"] .thank-copy,
:root[data-theme="dark"] .page-thank-you .event-time {
  color: #eceefd;
}

:root[data-theme="dark"] .paper-corner {
  border-color: rgba(211,183,120,.32);
}

:root[data-theme="dark"] .language-switch {
  background: rgba(32,38,65,.97);
}

:root[data-theme="dark"] .language {
  color: #eceefd;
}

:root[data-theme="dark"] .language.active,
:root[data-theme="dark"] .language-dark .language.active {
  background: #303e7b;
  color: #fffaf0;
}

@media (max-width: 600px) {
  .page-heart-pattern {
    opacity: .5;
  }

  .page-heart-pattern span:nth-child(1) {
    top: 8%;
    left: 3%;
    font-size: clamp(44px, 13vw, 58px);
  }

  .page-heart-pattern span:nth-child(2) {
    top: 34%;
    right: 3%;
    font-size: clamp(36px, 10vw, 46px);
  }

  .page-heart-pattern span:nth-child(3) {
    bottom: 16%;
    left: 4%;
    font-size: clamp(30px, 8vw, 38px);
  }

  .page-heart-pattern span:nth-child(4) {
    right: 3%;
    bottom: 8%;
    font-size: clamp(44px, 13vw, 58px);
  }

  .page-welcome {
    padding-right: 12px;
    padding-left: 12px;
  }

  .page-welcome .welcome-inner {
    padding-right: 4px;
    padding-left: 4px;
  }

  .page-welcome .welcome-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .page-welcome .welcome-copy {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .page-welcome .couple-art-frame {
    width: min(100%, 350px);
  }
}


/* =========================================================
   FIRST PAGE — designations, larger date/time, slightly smaller names
   ========================================================= */

.page-names .couple-names span {
  font-size: clamp(3.6rem, 14vw, 5.6rem);
}

.page-names .couple-names .designation {
  display: block;
  margin: 6px 0 0;
  font-family: var(--body);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .06em;
  opacity: .88;
}

.page-names .couple-names small {
  margin: 10px 0;
}

.page-names .wedding-date {
  margin-top: 22px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.25;
  letter-spacing: .1em;
}

.page-names .event-time {
  margin-top: 8px;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: .05em;
}

:lang(mr) .page-names .event-time {
  letter-spacing: .02em;
}

@media (max-width: 600px) {
  .page-names .wedding-date {
    font-size: clamp(21px, 6vw, 25px);
    letter-spacing: .06em;
  }

  .page-names .event-time {
    font-size: clamp(17px, 4.8vw, 20px);
  }
}

@media (max-width: 430px) {
  .page-names .couple-names span {
    font-size: clamp(2.3rem, 12.5vw, 2.8rem);
  }

  .page-names .couple-names .designation {
    margin-top: 3px;
    font-size: 13px;
    letter-spacing: .04em;
  }

  .page-names .couple-names small {
    margin: 5px 0;
  }

  .page-names .wedding-date {
    margin-top: 14px;
    font-size: clamp(21px, 6vw, 24px);
    letter-spacing: .05em;
  }

  .page-names .event-time {
    margin-top: 5px;
    font-size: clamp(17px, 4.8vw, 19px);
  }
}

/* =========================================================
   FIRST PAGE — remove extra gap between language toggle and floral line
   (content now starts from the top instead of being centered vertically)
   ========================================================= */

.page-names {
  align-content: start;
  padding-top: 96px;
}

.page-names .names-content {
  padding-top: 0;
}

@media (max-width: 600px) {
  .page-names {
    padding-top: 86px;
  }
}

/* =========================================================
   LOCATION PAGE — frame for the redrawn night-time mandap illustration
   ========================================================= */

.page-location .location-illustration {
  border: 1px solid rgba(211, 183, 120, .55);
  background: #141a33;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}