/* ==========================================================================
   KUNAL & ISHITA — MARIGOLD GARDEN
   Mobile-first stylesheet. Palette, type and layout only.
   Content lives in js/config.js.
   ========================================================================== */

@font-face {
  font-family: "Great Vibes";
  src: url("../assets/fonts/great-vibes-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

:root {
  --forest: #160923;
  --forest-deep: #08180f;
  --forest-mid: #2a1138;
  --forest-soft: #4a2148;
  --marigold: #f2a900;
  --marigold-light: #f5d99d;
  --marigold-ink: #8a5900;
  --wine: #671d2c;
  --ivory: #f7ecd5;
  --ivory-warm: #f7ecd5;
  --ivory-deep: #f2e5d0;
  --blush: #e8b4b8;
  --ink: #17261d;
  --muted: #697066;
  --line: rgba(22, 9, 35, 0.14);
  --line-strong: rgba(22, 9, 35, 0.24);
  --gold-line: rgba(242, 169, 0, 0.42);
  --gold-line-soft: rgba(242, 169, 0, 0.22);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Baskerville", Georgia, serif;
  --sans: "Manrope", "Avenir Next", system-ui, sans-serif;
  --hindi: "Tiro Devanagari Hindi", "Kohinoor Devanagari", serif;
  --script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

/* Fine paper grain over the whole site. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

::selection {
  background: var(--marigold);
  color: var(--forest-deep);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

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

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

a {
  color: inherit;
}

[lang="hi"] {
  font-family: var(--hindi);
}

:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  background: var(--marigold);
  color: var(--forest-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.noscript-note {
  display: none;
  padding: 1rem;
  background: var(--marigold);
  color: var(--forest-deep);
  text-align: center;
  font-weight: 500;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--marigold-ink), var(--marigold), var(--marigold-light), var(--blush));
  box-shadow: 0 0 14px rgba(242, 169, 0, 0.4);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.container {
  width: min(100%, calc(var(--container) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: clip;
}


.section[id] {
  scroll-margin-top: 16px;
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--marigold-ink);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.27em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.48;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* A small gold flourish under centred section headings. */
.section-head--center::after {
  content: "";
  display: block;
  width: 82px;
  height: 7px;
  margin: 1.45rem auto 0;
  background:
    radial-gradient(circle, var(--marigold) 0 1.8px, transparent 2.4px) center / 7px 7px no-repeat,
    linear-gradient(90deg, transparent, var(--gold-line)) left center / 35px 1px no-repeat,
    linear-gradient(90deg, var(--gold-line), transparent) right center / 35px 1px no-repeat;
  opacity: 0.9;
  animation: flourishGlow 4.5s ease-in-out infinite;
}

@keyframes flourishGlow {
  0%,
  100% {
    opacity: 0.62;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(242, 169, 0, 0.32));
  }
}

.section-title {
  color: var(--forest);
  font-size: clamp(2.35rem, 9vw, 4.8rem);
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-sub {
  max-width: 570px;
  margin-top: 1.1rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.8;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.3s ease, transform 0.25s ease;
}

/* A quiet gold sheen that crosses the button on hover. */
.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -130%;
  width: 58%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
}

.btn:hover::after {
  left: 140%;
}

.btn:disabled::after {
  display: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 55%, var(--forest) 100%);
  border-color: var(--forest);
  color: var(--ivory);
  box-shadow: 0 8px 22px rgba(22, 9, 35, 0.16);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-soft) 55%, var(--forest-mid) 100%);
  border-color: var(--marigold);
  box-shadow: 0 12px 28px rgba(22, 9, 35, 0.22), 0 0 0 1px rgba(242, 169, 0, 0.18);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--forest);
}

.btn--outline:hover {
  border-color: var(--marigold);
  background: rgba(242, 169, 0, 0.08);
}

.btn--small {
  min-height: 38px;
  padding: 0.5rem 0.78rem;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn svg,
.text-link svg,
.event-card svg,
.notice svg,
.venue svg,
.lightbox svg,
.music-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--forest);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
}

.text-link span {
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
}

.text-link:hover span {
  border-color: var(--marigold);
}

.text-link svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Envelope intro
   -------------------------------------------------------------------------- */

html:not(.intro-seen) {
  overflow: hidden;
}

html:not(.intro-seen) body {
  height: 100%;
  overflow: hidden;
}

html.intro-seen .envelope {
  display: none;
}

.envelope {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 38%, rgba(242, 169, 0, 0.09), transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(232, 180, 184, 0.07), transparent 34%),
    linear-gradient(155deg, #2a1138 0%, var(--forest-deep) 70%);
  color: var(--ivory);
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.envelope.is-leaving,
.envelope.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope.is-gone {
  display: none;
}

.envelope__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.envelope__jali {
  position: absolute;
  inset: -10%;
  background: url("../assets/img/jali.svg") repeat;
  background-size: clamp(90px, 26vw, 140px) auto;
  opacity: 0.1;
  mix-blend-mode: screen;
  animation: jaliDrift 52s linear infinite alternate;
}

.envelope__mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(125vw, 720px);
  max-width: none;
  opacity: 0.13;
  transform: translate(-50%, -50%);
  animation: envelopeMandala 110s linear infinite;
}

@keyframes envelopeMandala {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.envelope__ring {
  position: absolute;
  border: 1px solid rgba(242, 169, 0, 0.12);
  border-radius: 50%;
}

.envelope__ring--one {
  width: min(110vw, 900px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.envelope__ring--two {
  width: min(76vw, 620px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(251, 246, 234, 0.06);
}

.envelope__spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 16px rgba(242, 169, 0, 0.7);
  opacity: 0.6;
  animation: sparkFloat 6s ease-in-out infinite;
}

.envelope__spark--one {
  top: 18%;
  left: 18%;
}

.envelope__spark--two {
  top: 28%;
  right: 14%;
  animation-delay: -2s;
}

.envelope__spark--three {
  bottom: 16%;
  left: 28%;
  animation-delay: -4s;
}

.envelope__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.envelope__kicker {
  margin-bottom: clamp(18px, 4vh, 34px);
  color: var(--marigold-light);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.envelope__scene {
  position: relative;
  width: min(84vw, 380px, 68vh);
  aspect-ratio: 1.55;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}

.envelope__scene:hover {
  transform: scale(1.012);
}

.envelope__scene:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 9px;
}

.envelope__glow {
  position: absolute;
  inset: 12% 5%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(242, 169, 0, 0.2), transparent 68%);
  filter: blur(22px);
  opacity: 0.45;
  transition: opacity 1s ease;
}

.envelope__body {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(242, 169, 0, 0.28);
  border-radius: 4px;
  background: linear-gradient(155deg, #3a1b3f 0%, #0a2416 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.envelope__body::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 169, 0, 0.1);
  border-radius: 2px;
}

.envelope__card {
  position: absolute;
  top: 1%;
  left: 7%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86%;
  height: 89%;
  padding: 8% 10% 11%;
  border: 1px solid rgba(22, 9, 35, 0.14);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 35%),
    linear-gradient(160deg, #fffdf6, #f4e8d4);
  color: var(--forest);
  text-align: center;
  transform: translateY(8.5%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition:
    transform 1.05s var(--ease),
    opacity 0.65s ease,
    z-index 0s linear 0.1s;
}

.envelope__card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(242, 169, 0, 0.38);
  pointer-events: none;
}

.envelope__card-rule {
  width: 34px;
  height: 1px;
  margin-bottom: 0.8rem;
  background: var(--marigold);
}

.envelope__card-kicker {
  font-family: var(--sans);
  font-size: 0.44rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.envelope__card-names {
  margin-top: 0.35rem;
  font-family: var(--script);
  font-size: clamp(1.35rem, 6.4vw, 1.9rem);
  font-style: italic;
  line-height: 1;
}

.envelope__card-names .amp {
  color: var(--marigold-ink);
}

.envelope__card-ornament {
  display: block;
  width: min(180px, 62%);
  max-width: none;
  height: auto;
  margin: 0.45rem auto 0.15rem;
  opacity: 0.9;
}

.envelope__card-date {
  margin-top: 0.55rem;
  color: var(--marigold-ink);
  font-family: var(--sans);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.19em;
}

.envelope__card-mantra {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 100%;
  color: rgba(22, 9, 35, 0.55);
  font-family: var(--hindi);
  font-size: 0.45rem;
  letter-spacing: 0.04em;
}

.envelope__pocket {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(155deg, #542041 0%, #160923 58%, #0a2014 100%);
  clip-path: polygon(0 0, 50% 51%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.envelope__pocket::before,
.envelope__pocket::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 59%;
  background: linear-gradient(180deg, transparent, rgba(242, 169, 0, 0.24));
  transform-origin: top;
}

.envelope__pocket::before {
  left: 0;
  transform: rotate(-29.4deg);
}

.envelope__pocket::after {
  right: 0;
  transform: rotate(29.4deg);
}

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 63%;
  background: linear-gradient(180deg, #4a2148 0%, #173b27 72%, #160923 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  backface-visibility: hidden;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18));
  transition: transform 0.95s cubic-bezier(0.6, 0, 0.2, 1), z-index 0s linear 0.46s;
}

.envelope__flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%);
  clip-path: inherit;
}

.envelope__seal {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(52px, 16vw, 66px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 238, 190, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe39a 0%, #f2a900 44%, #c17b00 100%);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 0 0 4px rgba(118, 66, 0, 0.17),
    inset 0 0 0 6px rgba(255, 232, 160, 0.26);
  color: #3e2600;
  font-family: var(--serif);
  font-size: clamp(0.68rem, 3vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 240, 190, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.38s ease, opacity 0.38s ease;
}

.envelope__seal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(242, 169, 0, 0.32);
  border-radius: 50%;
  animation: sealHalo 3.6s ease-in-out infinite;
}

@keyframes sealHalo {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.94) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.07) rotate(22deg);
  }
}

.envelope__hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: clamp(26px, 5vh, 42px) auto 0;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(13, 6, 25, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, box-shadow 0.4s ease;
  animation: hintGlow 3.6s ease-in-out infinite;
}

@keyframes hintGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(242, 169, 0, 0.14);
  }
  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 6px rgba(242, 169, 0, 0.06);
  }
}

.envelope__pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marigold);
}

.envelope__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--marigold);
  border-radius: 50%;
  animation: envelopePulse 2.2s ease-out infinite;
}

.envelope__skip {
  min-height: 44px;
  margin-top: 4px;
  padding: 0.4rem 0.8rem;
  border: 0;
  background: transparent;
  color: rgba(251, 246, 234, 0.52);
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.35s ease;
}

.envelope__skip:hover {
  color: var(--ivory);
}

.envelope.is-open .envelope__flap {
  z-index: 0;
  transform: rotateX(-180deg);
}

.envelope.is-open .envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
}

.envelope.is-open .envelope__card {
  z-index: 5;
  transform: translateY(-55%) scale(1.025);
  transition-delay: 0.16s;
}

.envelope.is-open .envelope__glow {
  opacity: 1;
}

.envelope.is-open .envelope__hint,
.envelope.is-open .envelope__skip,
.envelope.is-open .envelope__kicker {
  opacity: 0;
  pointer-events: none;
}

.envelope.is-open .envelope__scene {
  pointer-events: none;
}

.envelope.is-leaving .envelope__card {
  opacity: 0;
  transform: translateY(-92%) scale(1.055);
}

@keyframes envelopePulse {
  0% {
    opacity: 0.8;
    transform: scale(0.5);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes sparkFloat {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.75;
    transform: translateY(-9px);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--ivory);
}

.hero__picture,
.hero__fallback {
  position: absolute;
  inset: 0;
}

.hero__picture {
  z-index: -3;
}

.hero__picture.is-missing {
  display: none;
}

.hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: blur(1.2px) brightness(0.66) saturate(0.96);
  transform: scale(1.045);
}

/* Royal-premium overlays: fine jali lattice, a slow mandala and a warm halo. */
.hero__jali {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background: url("../assets/img/jali.svg") repeat;
  background-size: clamp(100px, 28vw, 160px) auto;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: jaliDrift 42s linear infinite alternate;
}

@keyframes jaliDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-2.5%, -2%, 0);
  }
}

.hero__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  z-index: -2;
  width: min(120vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 0, 0.2), transparent 66%);
  filter: blur(28px);
  pointer-events: none;
  transform: translateX(-50%);
  animation: haloBreathe 7s ease-in-out infinite;
}

@keyframes haloBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.hero__fallback {
  z-index: -4;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(242, 169, 0, 0.2), transparent 28%),
    radial-gradient(circle at 30% 62%, rgba(103, 45, 86, 0.5), transparent 42%),
    linear-gradient(150deg, #2a1138, #07160e 78%);
}

.hero__fallback-glow {
  position: absolute;
  width: 58vw;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 12%;
  right: 8%;
  background: radial-gradient(circle, rgba(242, 169, 0, 0.18), transparent 68%);
  filter: blur(24px);
}

.hero__fallback-glow--two {
  top: auto;
  right: auto;
  bottom: -20%;
  left: -8%;
  background: radial-gradient(circle, rgba(232, 180, 184, 0.1), transparent 68%);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(24, 10, 32, 0.88) 0%, rgba(24, 10, 32, 0.24) 32%, rgba(24, 10, 32, 0.52) 64%, rgba(24, 10, 32, 0.96) 100%),
    radial-gradient(ellipse at 50% 46%, rgba(103, 29, 44, 0.32) 0%, rgba(17, 8, 28, 0.2) 46%, transparent 72%),
    radial-gradient(ellipse at 50% 45%, transparent 28%, rgba(12, 5, 22, 0.42) 100%);
}

.hero__leaf {
  position: absolute;
  bottom: -6%;
  z-index: -1;
  width: clamp(120px, 28vw, 250px);
  height: auto;
  color: rgba(251, 246, 234, 0.19);
  pointer-events: none;
  will-change: transform;
}

.hero__leaf--left {
  left: -4%;
  rotate: -8deg;
}

.hero__leaf--right {
  right: -5%;
  rotate: 9deg;
  color: rgba(242, 169, 0, 0.13);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  padding: clamp(96px, 16vh, 150px) 22px clamp(150px, 22vh, 190px);
  text-align: center;
}

.hero__mandala {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: -1;
  width: clamp(260px, 92vw, 520px);
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
}

body.is-ready .hero__mandala {
  opacity: 0.22;
  transition: opacity 1.6s var(--ease) 0.2s;
  animation: mandalaTurn 120s linear infinite;
}

@keyframes mandalaTurn {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

.hero__eyebrow {
  margin-bottom: 0.7rem;
  color: var(--marigold-light);
  font-size: clamp(0.52rem, 2vw, 0.64rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "✦";
  margin-inline: 0.65rem;
  font-size: 0.62em;
  opacity: 0.72;
}

.hero__ornament {
  width: clamp(150px, 48vw, 260px);
  max-width: none;
  height: auto;
  margin: clamp(10px, 2vh, 18px) auto 0;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
}

body.is-ready .hero__ornament {
  opacity: 0.92;
  transform: none;
  transition:
    opacity 1s var(--ease) 0.75s,
    transform 1.2s var(--ease) 0.75s;
  animation: ornamentGleam 6s ease-in-out 1.8s infinite;
}

@keyframes ornamentGleam {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(242, 169, 0, 0.5));
  }
}

.hero__mantra {
  margin-bottom: clamp(26px, 5vh, 50px);
  color: var(--marigold-light);
  font-family: var(--hindi);
  font-size: clamp(0.76rem, 2.7vw, 1rem);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ivory);
  font-family: var(--script);
  font-size: clamp(3.7rem, 17vw, 7.4rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.84;
  text-shadow: 0 3px 34px rgba(0, 0, 0, 0.34);
}

.hero__name {
  display: block;
}

.hero__amp {
  display: block;
  margin-block: 0.09em 0.13em;
  color: var(--marigold);
  font-size: 0.4em;
  font-style: italic;
  line-height: 0.6;
  text-shadow: 0 0 26px rgba(242, 169, 0, 0.2);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.is-ready .hero__name {
    background: linear-gradient(100deg, #fffdf6 22%, #ffd987 42%, #fffdf6 58%, #f6e4bd 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: nameShimmer 9s linear infinite;
  }
}

@keyframes nameShimmer {
  to {
    background-position: -260% 0;
  }
}

body.is-ready .hero__amp {
  animation: ampGlow 5s ease-in-out 1.2s infinite;
}

@keyframes ampGlow {
  0%,
  100% {
    text-shadow: 0 0 22px rgba(242, 169, 0, 0.18);
  }
  50% {
    text-shadow: 0 0 38px rgba(242, 169, 0, 0.48), 0 0 70px rgba(242, 169, 0, 0.16);
  }
}

.hero__sub {
  margin-top: clamp(24px, 4.5vh, 40px);
  color: rgba(251, 246, 234, 0.86);
  font-family: var(--sans);
  font-size: 0.59rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.hero__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(22px, 4vh, 36px);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero__date::before,
.hero__date::after {
  content: "";
  width: clamp(24px, 8vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--marigold));
  opacity: 0.7;
}

.hero__date::after {
  transform: rotate(180deg);
}

.hero__locations {
  margin-top: 0.9rem;
  color: rgba(251, 246, 234, 0.78);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.garland {
  position: absolute;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 58px;
  pointer-events: none;
}

.garland--hero {
  bottom: -2px;
  opacity: 0.88;
}

.hero__scroll {
  position: absolute;
  bottom: max(62px, calc(env(safe-area-inset-bottom) + 58px));
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(251, 246, 234, 0.7);
  font-size: 0.53rem;
  font-weight: 400;
  letter-spacing: 0.23em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--marigold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  animation: scrollNudge 2.2s ease-in-out infinite;
}

@keyframes scrollNudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* The hero comes alive once the envelope has been dismissed. */
body.is-ready .hero__picture img {
  animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.045) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.095) translate3d(0, -1.1%, 0);
  }
}

body.is-ready .hero__eyebrow,
body.is-ready .hero__mantra,
body.is-ready .hero__names,
body.is-ready .hero__sub,
body.is-ready .hero__date,
body.is-ready .hero__locations {
  animation: heroRise 1.1s var(--ease) both;
}

body.is-ready .hero__eyebrow {
  animation-delay: 0.02s;
}

body.is-ready .hero__mantra {
  animation-delay: 0.08s;
}

body.is-ready .hero__names {
  animation-delay: 0.2s;
}

body.is-ready .hero__sub {
  animation-delay: 0.4s;
}

body.is-ready .hero__date {
  animation-delay: 0.55s;
}

body.is-ready .hero__locations {
  animation-delay: 0.68s;
}

body.is-ready .hero__scroll {
  animation: heroScrollIn 0.9s var(--ease) 1.05s both;
}

body.is-ready .garland--hero {
  animation: heroFade 1.1s var(--ease) 0.75s both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScrollIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.88;
  }
}

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */

.countdown {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 169, 0, 0.09), transparent 42%),
    var(--forest);
  color: var(--ivory);
}

@supports (animation-timeline: view()) {
  .countdown.scroll-scene > .container {
    animation: clockReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 38%;
    transform-origin: center top;
  }
  @keyframes clockReveal {
    from { opacity: 0.15; transform: translateY(40px) scale(0.94); filter: blur(10px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }
}

.countdown::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 169, 0, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.countdown .eyebrow {
  color: var(--marigold);
}

.countdown .section-title {
  color: var(--ivory);
}

.countdown .section-sub {
  color: rgba(251, 246, 234, 0.6);
}

.countdown__grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 860px);
  margin: clamp(34px, 6vw, 56px) auto 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.countdown__grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(112%, 940px);
  aspect-ratio: 1;
  border: 1px dashed rgba(242, 169, 0, 0.13);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: slowSpin 90s linear infinite;
}

@keyframes slowSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.count {
  position: relative;
  padding: clamp(16px, 4vw, 30px) 3px;
  text-align: center;
}

.count + .count::before {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 0;
  width: 1px;
  background: var(--gold-line-soft);
}

.count__value {
  display: block;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 4.15rem);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .count__value {
    background: linear-gradient(180deg, #fffdf4 12%, #ffe6a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.count__value.is-ticking {
  animation: countTick 0.36s var(--ease);
}

.count__label {
  display: block;
  margin-top: 0.55rem;
  color: rgba(251, 246, 234, 0.55);
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes countTick {
  0% {
    opacity: 0.15;
    transform: translateY(7px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.countdown__married {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
}

.countdown__married-title {
  color: var(--marigold-light);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-style: italic;
  line-height: 1;
}

.countdown__married-note {
  margin-top: 0.7rem;
  color: rgba(251, 246, 234, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Invitation
   -------------------------------------------------------------------------- */

.invitation {
  background:
    radial-gradient(circle at 12% 20%, rgba(232, 180, 184, 0.11), transparent 24%),
    radial-gradient(circle at 92% 82%, rgba(242, 169, 0, 0.08), transparent 24%),
    var(--ivory);
}

.letter {
  position: relative;
  width: min(100%, 900px);
  margin-inline: auto;
  perspective: 1600px;
}

.letter__flap {
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: clamp(90px, 18vw, 170px);
  background: linear-gradient(180deg, #efe1c8, #dcc8a0);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 4;
  filter: drop-shadow(0 10px 18px rgba(22, 9, 35, 0.08));
  pointer-events: none;
}

.invitation__card,
.letter__paper {
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding: clamp(30px, 6vw, 68px) clamp(22px, 7vw, 88px) clamp(32px, 6vw, 64px);
  border: 1px solid rgba(242, 169, 0, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 24%),
    rgba(255, 252, 244, 0.94);
  box-shadow:
    0 26px 70px rgba(22, 9, 35, 0.06),
    inset 0 0 0 7px rgba(251, 246, 234, 0.7);
  transform-origin: top center;
}

@supports (animation-timeline: view()) {
  .letter__flap {
    animation: flapOpen linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  .letter__paper {
    animation: letterOpen linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 45%;
  }
  @keyframes flapOpen {
    from { transform: rotateX(0deg); opacity: 1; }
    to { transform: rotateX(-165deg); opacity: 0.15; }
  }
  @keyframes letterOpen {
    from { opacity: 0.25; transform: translateY(56px) rotateX(16deg) scale(0.985); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
  }
}


.invitation__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(22, 9, 35, 0.06);
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--marigold);
  border-style: solid;
  pointer-events: none;
}

.corner--tl {
  top: 19px;
  left: 19px;
  border-width: 1px 0 0 1px;
}

.corner--tr {
  top: 19px;
  right: 19px;
  border-width: 1px 1px 0 0;
}

.corner--bl {
  bottom: 19px;
  left: 19px;
  border-width: 0 0 1px 1px;
}

.corner--br {
  right: 19px;
  bottom: 19px;
  border-width: 0 1px 1px 0;
}

.invitation__top {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 5vw, 38px);
}

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 234, 0.82);
}

.lang-toggle button {
  min-width: 54px;
  min-height: 34px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.lang-toggle button[lang="hi"] {
  font-family: var(--hindi);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--ivory);
}

.couple-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto clamp(20px, 4vw, 32px);
}

.couple-portraits[hidden] {
  display: none;
}

.couple-portraits__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--ivory-deep);
  box-shadow: 0 14px 34px rgba(22, 9, 35, 0.08);
}

.couple-portraits__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 0.9s var(--ease);
}

.couple-portraits__item:hover img {
  transform: scale(1.05);
}

.couple-portraits__label {
  position: absolute;
  right: 0.6rem;
  bottom: 0.55rem;
  left: 0.6rem;
  color: var(--ivory);
  font-family: var(--script);
  font-size: clamp(1rem, 4.5vw, 1.45rem);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.invitation__greeting {
  margin-bottom: 1.15rem;
  color: var(--marigold-ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.invitation__text {
  max-width: 640px;
  margin-inline: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.16rem, 4.1vw, 1.55rem);
  font-weight: 400;
  line-height: 1.76;
  text-align: center;
  text-wrap: pretty;
}

.invitation__text[lang="hi"] {
  font-family: var(--hindi);
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  line-height: 2.05;
}

.invitation__seal {
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  margin: clamp(26px, 5vw, 40px) auto 1rem;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--marigold-ink);
  font-family: var(--serif);
}

.invitation__seal-mark {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  animation: sealBreathe 6s ease-in-out infinite;
}

@keyframes sealBreathe {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.invitation__seal-mark span {
  color: var(--marigold);
  font-style: italic;
}

.invitation__signature {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}

.invitation__families {
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.events {
  border-top: 1px solid var(--gold-line-soft);
  border-bottom: 1px solid var(--gold-line-soft);
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 169, 0, 0.09), transparent 20%),
    radial-gradient(circle at 94% 88%, rgba(232, 180, 184, 0.12), transparent 22%),
    #f7ecd5;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(28px, 5vw, 44px);
  padding: 0.62rem 1rem;
  border: 1px solid rgba(242, 169, 0, 0.34);
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.1);
  color: #654800;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

.notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: var(--marigold-ink);
}

.notice--warm {
  border-radius: var(--radius);
  background: rgba(232, 180, 184, 0.15);
  border-color: rgba(232, 180, 184, 0.6);
  color: #633b3e;
}

.notice--warm svg {
  stroke: #8d4b50;
}

.day-group + .day-group {
  margin-top: clamp(38px, 6vw, 64px);
}

.day-group__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.day-group__date {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 0.9;
}

.day-group__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.day-group__meta strong {
  color: var(--forest);
  font-weight: 500;
}

.day-group__rule {
  flex: 1;
  height: 1px;
  margin-left: 0.25rem;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  background-size: 200% 1px;
  animation: ruleShimmer 9s linear infinite;
}

@keyframes ruleShimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), rgba(242, 169, 0, 0.08));
}

.event-card {
  position: relative;
  padding: clamp(18px, 4vw, 24px);
  border: 1px solid rgba(22, 9, 35, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.9);
  box-shadow: 0 10px 34px rgba(22, 9, 35, 0.045);
  transition: transform 0.45s var(--ease), border-color 0.45s ease, box-shadow 0.45s ease;
}

.event-card:hover {
  border-color: rgba(242, 169, 0, 0.5);
  box-shadow: 0 18px 42px rgba(22, 9, 35, 0.09);
  transform: translateY(-3px);
}

.event-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--marigold);
  border-right: 1px solid var(--marigold);
  pointer-events: none;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}

.event-card:hover::after {
  opacity: 0.85;
  transform: none;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 4px #f7ecd5, 0 0 0 5px rgba(242, 169, 0, 0.26);
  animation: dotPulse 3.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px #f7ecd5, 0 0 0 5px rgba(242, 169, 0, 0.22);
  }
  50% {
    box-shadow: 0 0 0 4px #f7ecd5, 0 0 0 8px rgba(242, 169, 0, 0.08);
  }
}

.event-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.event-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(242, 169, 0, 0.3);
  border-radius: 50%;
  background: rgba(242, 169, 0, 0.1);
  color: var(--marigold-ink);
  transition: transform 0.5s var(--ease), background-color 0.4s ease, border-color 0.4s ease;
}

.event-card:hover .event-card__icon {
  border-color: rgba(242, 169, 0, 0.6);
  background: rgba(242, 169, 0, 0.18);
  transform: rotate(-8deg) scale(1.06);
}

.event-card__icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.55;
}

.event-card__titles {
  min-width: 0;
}

.event-card__title {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.62rem);
  line-height: 1.05;
}

.event-card__title-hi {
  margin-top: 0.22rem;
  color: var(--muted);
  font-family: var(--hindi);
  font-size: 0.76rem;
  line-height: 1.5;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.9rem;
  color: var(--forest);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.event-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.event-card__meta svg {
  width: 14px;
  height: 14px;
  color: var(--marigold-ink);
}

.event-card__place {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.event-card__place strong {
  color: var(--forest);
  font-weight: 400;
}

.event-card__desc {
  margin-top: 0.75rem;
  color: #535d53;
  font-size: 0.82rem;
  line-height: 1.68;
}

.event-card__dress {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(232, 180, 184, 0.65);
  border-radius: 999px;
  color: #784c50;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.event-card__dress strong {
  color: #5f3438;
  font-weight: 500;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(22, 9, 35, 0.08);
}

.calendar {
  position: relative;
  display: inline-block;
}

.calendar[open] {
  z-index: 30;
}

.calendar summary {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--forest);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.calendar summary::-webkit-details-marker {
  display: none;
}

.calendar summary svg {
  width: 14px;
  height: 14px;
}

.calendar summary::after {
  content: "+";
  margin-left: 0.15rem;
  color: var(--marigold-ink);
  font-size: 0.8rem;
  line-height: 1;
}

.calendar[open] summary,
.calendar summary:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--ivory);
}

.calendar[open] summary::after {
  color: var(--marigold-light);
}

.calendar__menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 40;
  display: grid;
  min-width: 218px;
  padding: 5px;
  border: 1px solid rgba(242, 169, 0, 0.35);
  border-radius: var(--radius);
  background: var(--forest);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.calendar__menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.66rem 0.7rem;
  color: var(--ivory);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
}

.calendar__menu a + a {
  border-top: 1px solid rgba(251, 246, 234, 0.08);
}

.calendar__menu a:hover {
  background: rgba(242, 169, 0, 0.13);
}

.calendar__menu svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--marigold);
}

.events__note {
  max-width: 600px;
  margin: clamp(28px, 5vw, 44px) auto 0;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Venue & travel
   -------------------------------------------------------------------------- */

.venue {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(242, 169, 0, 0.1), transparent 26%),
    radial-gradient(circle at 10% 90%, rgba(232, 180, 184, 0.06), transparent 28%),
    var(--forest);
  color: var(--ivory);
}

.venue::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 169, 0, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.venue .eyebrow {
  color: var(--marigold);
}

.venue .section-title {
  color: var(--ivory);
}

.venue .section-sub {
  color: rgba(251, 246, 234, 0.62);
}

.venue__layout {
  display: grid;
  gap: clamp(34px, 6vw, 62px);
  align-items: center;
}

.venue__copy .section-head {
  margin-bottom: 1.8rem;
}

.venue__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(242, 169, 0, 0.18);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.035);
}

.venue__stop {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.venue__stop--end {
  justify-content: flex-end;
  text-align: right;
}

.venue__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid var(--marigold);
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.12);
  animation: dotPulse 3.4s ease-in-out infinite;
}

.venue__stop-label {
  color: rgba(251, 246, 234, 0.8);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.venue__route-line {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 60px;
  color: var(--marigold);
}

.venue__route-line span {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(242, 169, 0, 0.55) 0 5px,
    transparent 5px 10px
  );
  background-size: 20px 1px;
  animation: routeTravel 5s linear infinite;
}

@keyframes routeTravel {
  to {
    background-position: 20px 0;
  }
}

.venue__route-line svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.venue__travel {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 1.05rem 1.1rem;
  border-left: 2px solid var(--marigold);
  background: rgba(251, 246, 234, 0.045);
}

.venue__travel-icon {
  flex: 0 0 auto;
  color: var(--marigold);
}

.venue__travel-icon svg {
  width: 20px;
  height: 20px;
}

.venue__travel h3 {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
}

.venue__travel p {
  margin-top: 0.35rem;
  color: rgba(251, 246, 234, 0.68);
  font-size: 0.8rem;
  line-height: 1.7;
}

.venue__travel .venue__small {
  color: rgba(251, 246, 234, 0.42);
  font-size: 0.68rem;
}

.venue__map-panel {
  border: 1px solid rgba(242, 169, 0, 0.35);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--forest);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.venue__map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--forest-deep);
  color: var(--ivory);
}

.venue__map-kicker {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.venue__map-pin {
  color: var(--marigold);
}

.venue__map-pin svg {
  width: 18px;
  height: 18px;
}

.venue__map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eadcc6;
  overflow: hidden;
}

.venue__map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.78) sepia(0.06);
}

.venue__map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  text-align: center;
}

.venue__map-art {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background:
    linear-gradient(rgba(22, 9, 35, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 9, 35, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f4ebd8, #eadcc6);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

.venue__map-road {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 14px;
  border-top: 2px solid rgba(22, 9, 35, 0.1);
  border-bottom: 2px solid rgba(22, 9, 35, 0.1);
  background: rgba(251, 246, 234, 0.55);
}

.venue__map-road--one {
  top: 34%;
  transform: rotate(-9deg);
}

.venue__map-road--two {
  top: 65%;
  transform: rotate(7deg);
}

.venue__map-pin-large {
  position: absolute;
  top: 18%;
  right: 14%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  background: var(--forest);
  color: var(--marigold);
  box-shadow: 0 8px 18px rgba(22, 9, 35, 0.22);
  opacity: 0.88;
  transform: rotate(-45deg);
}

.venue__map-pin-large svg {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}

.venue__map-placeholder h3,
.venue__map-placeholder p {
  position: relative;
  z-index: 2;
}

.venue__map-placeholder h3 {
  max-width: 280px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  line-height: 1.15;
}

.venue__map-placeholder p {
  max-width: 290px;
  margin-top: 0.55rem;
  color: #596155;
  font-size: 0.76rem;
  line-height: 1.65;
}

.venue__map-loading {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  background: rgba(22, 9, 35, 0.82);
  color: var(--ivory);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.venue__venue-details {
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}

.venue__venue-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
}

.venue__venue-address {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.venue__venue-details .text-link {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 169, 0, 0.07), transparent 20%),
    var(--ivory);
}

.gallery__grid {
  column-count: 2;
  column-gap: 11px;
}

.gallery__item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 11px;
  break-inside: avoid;
  border: 1px solid rgba(22, 9, 35, 0.1);
  border-radius: var(--radius);
  background: var(--ivory-deep);
  box-shadow: 0 12px 34px rgba(22, 9, 35, 0.07);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.gallery__item:hover {
  border-color: rgba(242, 169, 0, 0.45);
  box-shadow: 0 20px 48px rgba(22, 9, 35, 0.13);
}

/* A fine gold frame draws itself inside every frame as it reveals. */
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 3;
  border: 1px solid rgba(242, 169, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.gallery__item.is-visible::before {
  opacity: 1;
  transform: none;
}

/* Gallery reveals unfold rather than simply fade. */
.gallery__item.reveal {
  filter: none;
  clip-path: inset(0 0 14% 0 round 2px);
  transform: translateY(26px);
  transition:
    opacity 0.9s ease,
    transform 0.95s var(--ease),
    clip-path 1.1s var(--ease);
}

.gallery__item.reveal.is-visible {
  clip-path: inset(0 0 0 0 round 2px);
  transform: none;
}

.gallery__quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: clamp(22px, 4vw, 34px);
  border-color: rgba(242, 169, 0, 0.32);
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 169, 0, 0.14), transparent 40%),
    var(--forest);
  color: var(--ivory);
}

.gallery__quote-mark {
  color: var(--marigold);
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.65;
}

.gallery__quote-text {
  margin-top: 1.6rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  font-style: italic;
  line-height: 1.25;
}

.gallery__quote-signature {
  margin-top: 1.4rem;
  color: var(--marigold-light);
  font-family: var(--sans);
  font-size: 0.54rem;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery__quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 211, 106, 0.1) 50%, transparent 62%);
  pointer-events: none;
  transform: translateX(-110%);
  transition: transform 1s var(--ease);
}

.gallery__quote:hover::after {
  transform: translateX(110%);
}

.gallery__photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery__photo img,
.gallery__item video {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.gallery__photo::after,
.gallery__film::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(17, 8, 28, 0.62));
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  left: 0.8rem;
  z-index: 2;
  color: rgba(251, 246, 234, 0.92);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease);
}

.gallery__caption::before {
  content: attr(data-index);
  display: block;
  margin-bottom: 0.26rem;
  color: var(--marigold-light);
  font-family: var(--sans);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.gallery__item:hover .gallery__caption {
  transform: translateY(-2px);
}

.gallery__photo:hover img,
.gallery__item:hover video {
  transform: scale(1.035);
}

.gallery__photo:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: -3px;
}

.gallery__film {
  position: relative;
}

.gallery__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(251, 246, 234, 0.25);
  border-radius: 999px;
  background: rgba(17, 8, 28, 0.52);
  color: var(--ivory);
  font-size: 0.47rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.gallery__badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--marigold);
}

.video-toggle {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(251, 246, 234, 0.28);
  border-radius: 50%;
  background: rgba(17, 8, 28, 0.5);
  color: var(--ivory);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.video-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.video-toggle__pause {
  display: none;
}

.video-toggle.is-playing .video-toggle__play {
  display: none;
}

.video-toggle.is-playing .video-toggle__pause {
  display: block;
}

.gallery__fallback {
  display: none;
  min-height: 220px;
  padding: 1rem;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(242, 169, 0, 0.1), transparent),
    var(--ivory-deep);
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.gallery__item.is-missing img,
.gallery__item.is-missing video {
  display: none;
}

.gallery__item.is-missing .gallery__fallback {
  display: grid;
}

.gallery__item.is-missing .gallery__badge,
.gallery__item.is-missing .gallery__caption,
.gallery__item.is-missing .video-toggle,
.gallery__item.is-missing .gallery__photo::after {
  display: none;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.4rem;
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(17, 8, 28, 0.97);
  color: var(--ivory);
  touch-action: pan-y;
}

.lightbox__figure {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 130px);
  object-fit: contain;
  border: 1px solid rgba(242, 169, 0, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 0 7px rgba(242, 169, 0, 0.05);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
}

.lightbox__figure img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.lightbox__caption {
  margin-top: 0.7rem;
  color: rgba(251, 246, 234, 0.68);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-style: italic;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(242, 169, 0, 0.32);
  border-radius: 50%;
  background: rgba(22, 9, 35, 0.82);
  color: var(--ivory);
  cursor: pointer;
}

.lightbox__close svg {
  width: 19px;
  height: 19px;
}

.lightbox__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(242, 169, 0, 0.3);
  border-radius: 50%;
  background: rgba(22, 9, 35, 0.82);
  color: var(--ivory);
  cursor: pointer;
}

.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox__nav svg {
  width: 20px;
  height: 20px;
}

.lightbox__nav--prev {
  grid-column: 1;
  grid-row: 1;
}

.lightbox__nav--next {
  grid-column: 3;
  grid-row: 1;
}

.lightbox__counter {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-bottom: 0.25rem;
  color: var(--marigold-light);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   Calendar
   -------------------------------------------------------------------------- */

.calendar-cta {
  overflow: hidden;
  border-top: 1px solid var(--gold-line-soft);
  background:
    radial-gradient(circle at 6% 10%, rgba(232, 180, 184, 0.24), transparent 24%),
    radial-gradient(circle at 95% 92%, rgba(242, 169, 0, 0.13), transparent 27%),
    #f7ecd5;
}

.calendar-cta__card {
  position: relative;
  width: min(100%, 880px);
  margin-inline: auto;
  padding: clamp(34px, 7vw, 70px) clamp(20px, 6vw, 64px) clamp(30px, 5vw, 52px);
  border: 1px solid rgba(242, 169, 0, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 30%),
    rgba(255, 252, 244, 0.9);
  box-shadow: 0 28px 80px rgba(22, 9, 35, 0.08), inset 0 0 0 7px rgba(251, 246, 234, 0.6);
  overflow: hidden;
}

.calendar-cta__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(22, 9, 35, 0.06);
  pointer-events: none;
}

.calendar-cta__ring {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px dashed rgba(242, 169, 0, 0.22);
  border-radius: 50%;
  pointer-events: none;
  animation: ringSpin 100s linear infinite;
}

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

.calendar-cta__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  width: fit-content;
  max-width: 100%;
  margin: clamp(20px, 4vw, 34px) auto 0;
  padding: 0.8rem 1.35rem;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.calendar-cta__day {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 12vw, 4.6rem);
  line-height: 0.8;
}

.calendar-cta__date-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-align: left;
}

.calendar-cta__month {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1rem, 4vw, 1.25rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.calendar-cta__weekday {
  color: var(--marigold-ink);
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.calendar-cta__invite {
  max-width: 470px;
  margin: 1.4rem auto 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 4.4vw, 1.42rem);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.calendar-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 1.7rem;
}

.calendar-cta__actions .btn {
  width: 100%;
}

.calendar-cta__notes {
  display: grid;
  gap: 0.18rem;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.55;
  text-align: center;
}

.calendar-cta__notes p::before {
  content: "·";
  margin-right: 0.38rem;
  color: var(--marigold);
}

.calendar-cta__note {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold-line-soft);
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(90px, 12vw, 130px);
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 10%, rgba(242, 169, 0, 0.08), transparent 34%),
    var(--forest-deep);
  color: var(--ivory);
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: 50%;
  width: 420px;
  aspect-ratio: 1;
  border: 1px dashed rgba(242, 169, 0, 0.1);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: footerRing 80s linear infinite;
}

@keyframes footerRing {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.garland--footer {
  top: 0;
  bottom: auto;
  opacity: 0.9;
}

.footer__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer__blessing {
  color: var(--marigold);
  font-family: var(--hindi);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.footer__monogram {
  margin-top: 1.2rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 3.4rem);
  line-height: 1;
}

.footer__monogram span {
  margin-inline: 0.1em;
  color: var(--marigold);
  font-size: 0.6em;
  font-style: italic;
  animation: ampGlow 5s ease-in-out 0.6s infinite;
}

.footer__names {
  margin-top: 0.55rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.1;
}

.footer__date {
  margin-top: 0.5rem;
  color: var(--marigold-light);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer__thanks {
  max-width: 560px;
  margin: 1.7rem auto 0;
  color: rgba(251, 246, 234, 0.68);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
}

.footer__thanks--hi {
  margin-top: 0.5rem;
  font-family: var(--hindi);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.9;
}

.footer__families {
  margin-top: 1.45rem;
  color: rgba(251, 246, 234, 0.5);
  font-size: 0.56rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.footer__top {
  display: inline-block;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.65rem 0.8rem;
  color: var(--marigold-light);
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__top::after {
  content: " ↑";
}

.footer__top:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  color: rgba(251, 246, 234, 0.66);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__dot {
  color: var(--marigold);
}

.footer__small {
  margin-top: 0.55rem;
  color: rgba(251, 246, 234, 0.34);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Section nav / music
   -------------------------------------------------------------------------- */

.section-nav {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  display: flex;
  gap: 2px;
  padding: 5px 8px;
  border: 1px solid rgba(242, 169, 0, 0.26);
  border-radius: 999px;
  background: rgba(13, 6, 25, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 32px;
  border-radius: 50%;
  color: var(--ivory);
  text-decoration: none;
}

.section-nav .nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(251, 246, 234, 0.42);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}

.section-nav a[aria-current="location"] .nav-dot {
  width: 7px;
  height: 7px;
  background: var(--marigold);
  box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.14);
  animation: navPulse 2.8s ease-in-out infinite;
}

@keyframes navPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(242, 169, 0, 0.05);
  }
}

.section-nav .nav-label {
  position: absolute;
  right: calc(100% + 8px);
  padding: 0.38rem 0.58rem;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  background: var(--forest);
  color: var(--ivory);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateX(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.section-nav a:hover .nav-label,
.section-nav a:focus-visible .nav-label {
  opacity: 1;
  transform: none;
}

.music-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(242, 169, 0, 0.42);
  border-radius: 50%;
  background: rgba(13, 6, 25, 0.92);
  color: var(--marigold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

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

.music-toggle__icon {
  display: grid;
  place-items: center;
}

.music-toggle__icon svg {
  width: 19px;
  height: 19px;
}

.music-toggle__icon--play svg {
  fill: currentColor;
  stroke: none;
}

.music-toggle__icon--pause {
  display: none;
}

.music-toggle.is-playing .music-toggle__icon--play {
  display: none;
}

.music-toggle.is-playing .music-toggle__icon--pause {
  display: grid;
}

.music-toggle.is-playing {
  animation: musicPulse 3.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(242, 169, 0, 0.16);
  }
  50% {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 7px rgba(242, 169, 0, 0.04);
  }
}

/* --------------------------------------------------------------------------
   Petals
   -------------------------------------------------------------------------- */

.petals {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.95s ease,
    filter 0.95s ease,
    transform 0.95s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .gallery__grid {
    column-gap: 14px;
  }

  .gallery__item {
    margin-bottom: 14px;
  }

  .gallery__caption {
    font-size: 1.02rem;
  }

  .calendar-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  .calendar-cta__actions .btn {
    width: auto;
    min-width: 210px;
  }
}

@media (min-width: 700px) {
  .hero__names {
    flex-direction: row;
    align-items: baseline;
    gap: 0.18em;
    font-size: clamp(4.4rem, 10vw, 8rem);
    line-height: 0.9;
  }

  .hero__amp {
    margin-block: 0;
    font-size: 0.48em;
  }

  .hero__sub {
    font-size: 0.68rem;
  }

  .hero__date {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
  }

  .hero__locations {
    font-size: 0.68rem;
  }

  .hero__leaf {
    width: clamp(170px, 24vw, 290px);
    bottom: -10%;
  }

  .hero__leaf--left {
    left: -2%;
  }

  .hero__leaf--right {
    right: -3%;
  }

  .footer {
    padding-bottom: 72px;
  }
}

@media (min-width: 900px) {
  .section-nav {
    top: 50%;
    right: max(16px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
    backdrop-filter: none;
  }

  .section-nav a {
    justify-content: flex-end;
    width: 34px;
    height: 34px;
    padding-right: 4px;
  }

  .section-nav .nav-dot {
    width: 6px;
    height: 6px;
    background: rgba(242, 169, 0, 0.44);
  }

  .section-nav a[aria-current="location"] .nav-dot {
    background: var(--marigold);
    box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.13);
  }

  .section-nav .nav-label {
    display: block;
  }

  .timeline-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-left: 0;
  }

  .timeline-list::before {
    display: none;
  }

  .event-card::before {
    display: none;
  }

  .event-card {
    padding: 25px;
  }

  .timeline-list .event-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .venue__layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .gallery__grid {
    column-count: 3;
    column-gap: 17px;
  }

  .gallery__item {
    margin-bottom: 17px;
  }

  .calendar-cta__card {
    padding-inline: clamp(44px, 6vw, 64px);
  }

  .footer {
    padding-top: 118px;
  }
}

@media (min-width: 1180px) {
  .venue__map-frame {
    aspect-ratio: 16 / 11;
  }

  .hero__content {
    padding-bottom: 170px;
  }
}

@media (max-width: 420px) {
  .section-nav {
    padding-inline: 5px;
  }

  .section-nav a {
    width: 28px;
  }

  .hero__scroll {
    bottom: 56px;
  }

  .garland {
    height: 46px;
  }

  .notice {
    border-radius: 2px;
    font-size: 0.61rem;
  }

  .calendar__menu {
    min-width: 200px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 48px 0 0;
  }

  .lightbox__figure img {
    max-height: calc(100svh - 168px);
  }

  .lightbox__nav {
    position: absolute;
    bottom: max(24px, env(safe-area-inset-bottom));
  }

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

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

  .lightbox__counter {
    position: absolute;
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 10px));
    left: 50%;
    grid-column: auto;
    grid-row: auto;
    transform: translateX(-50%);
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .envelope__scene {
    width: min(54vw, 330px, 64vh);
  }

  .envelope__kicker {
    margin-bottom: 12px;
  }

  .envelope__hint {
    margin-top: 14px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__content {
    padding-block: 90px 140px;
  }

  .hero__mantra {
    margin-bottom: 16px;
  }
}

/* --------------------------------------------------------------------------
   Royal-premium entry (reference-inspired, mobile first)
   -------------------------------------------------------------------------- */

.envelope {
  background:
    radial-gradient(circle at 15% 0%, rgba(137, 45, 97, 0.36), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(202, 133, 57, 0.24), transparent 44%),
    linear-gradient(160deg, #1c0e28 0%, #12091e 62%, #0d0618 100%);
}

.envelope__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: auto;
  height: min(72svh, 640px);
  max-width: 78vw;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(245, 217, 157, 0.72);
  border-radius: 4px;
  background: #160923;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54), 0 0 36px rgba(245, 217, 157, 0.2);
  object-fit: cover;
  object-position: center;
  filter: blur(9px) brightness(0.72);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.84) rotate(-9deg);
  transition:
    filter 0.8s var(--ease),
    opacity 0.55s ease,
    transform 1.15s var(--ease);
}

.envelope__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(12, 5, 22, 0.82), rgba(12, 5, 22, 0.28) 58%, transparent 78%),
    linear-gradient(180deg, rgba(22, 9, 35, 0.9), rgba(9, 4, 18, 0.97)),
    radial-gradient(circle at 50% 20%, rgba(236, 188, 101, 0.16), transparent 42%);
  transition: opacity 0.95s ease;
}

.envelope.is-open .envelope__photo {
  opacity: 0.96;
  filter: blur(0) brightness(0.98);
  transform: translate(-50%, -50%) scale(1) rotate(0);
}

.envelope.is-open .envelope__veil {
  opacity: 0.14;
}

.envelope__scroll-rod {
  position: absolute;
  top: 50%;
  left: 3vw;
  z-index: 2;
  width: 94vw;
  height: 8px;
  border: 1px solid rgba(255, 241, 204, 0.74);
  border-radius: 99px;
  background: linear-gradient(90deg, #916329, #ffe3a0 26%, #c79248 52%, #fff0c5 76%, #90622e);
  box-shadow: 0 0 22px rgba(255, 219, 144, 0.62), 0 2px 9px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-50%) scaleX(0.035);
  transform-origin: center;
  pointer-events: none;
}

.envelope.is-open .envelope__scroll-rod--top {
  animation: rpScrollTop 1.3s var(--ease) both;
}

.envelope.is-open .envelope__scroll-rod--bottom {
  animation: rpScrollBottom 1.3s var(--ease) both;
}

.envelope__jali,
.hero__jali {
  position: absolute;
  inset: -26% -60%;
  width: auto;
  height: auto;
  max-width: none;
  background: url("../assets/img/jali-pattern.svg") repeat;
  background-size: 200px 200px;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: rotate(21deg);
  animation: rpJaliDrift 60s linear infinite alternate;
}

.envelope__mandala,
.hero__mandala {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 276px;
  max-width: none;
  height: auto;
  margin: 0;
  opacity: 0.72;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3));
  transform: translate(-50%, -50%);
  animation: rpSpin 90s linear infinite;
}

.envelope__glow,
.hero__glow {
  position: absolute;
  top: 25%;
  left: 50%;
  width: min(110vw, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 208, 139, 0.18), rgba(244, 208, 139, 0.06) 40%, transparent 70%);
  pointer-events: none;
  transform: translateX(-50%);
  animation: rpHalo 6s ease-in-out infinite;
}

.hero__glow--two {
  top: auto;
  bottom: -18%;
  left: -10%;
  width: 70vw;
  opacity: 0.6;
  animation-delay: -3s;
  transform: none;
}

.envelope__flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle, rgba(245, 217, 157, 0.95), rgba(217, 163, 75, 0.7) 30%, rgba(160, 100, 40, 0.3) 60%, transparent 80%);
  opacity: 0;
  pointer-events: none;
}

.envelope__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 100svh;
  padding: 72px 22px 84px;
  text-align: center;
}

.envelope__kicker {
  margin: 0 0 6px;
  color: #f5d99d;
  font-family: var(--sans);
  font-size: clamp(0.7rem, 3vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  opacity: 0;
  animation: rpFadeUp 0.9s var(--ease) 0.1s forwards;
}

.envelope__names {
  margin: 0;
  color: #fff7e2;
  -webkit-text-fill-color: #fff7e2;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 13vw, 4.3rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 217, 157, 0.28);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: rpFadeUp 1.1s var(--ease) 0.22s forwards, rpNameBreathe 7s ease-in-out 1.3s infinite;
}

.envelope__names .amp {
  color: #f5d99d;
  font-size: 0.86em;
  padding-inline: 0.05em;
}

.envelope__ornament {
  display: block;
  width: min(260px, 68vw);
  max-width: none;
  height: auto;
  margin: 2px auto 0;
  opacity: 0;
  transform: scaleX(0.42);
  animation: rpOrnamentIn 1.4s var(--ease) 0.5s forwards, rpGleam 5s ease-in-out 1.9s infinite;
}

.envelope__date {
  margin: 12px 0 0;
  color: rgba(247, 236, 213, 0.82);
  font-family: var(--sans);
  font-size: clamp(0.68rem, 2.9vw, 0.8rem);
  font-weight: 650;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  opacity: 0;
  animation: rpFadeUp 0.9s var(--ease) 0.65s forwards;
}

.envelope__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid rgba(245, 217, 157, 0.42);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(84, 32, 65, 0.96), rgba(173, 106, 46, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff4da;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 3vw, 0.84rem);
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  animation: rpFadeUp 0.9s var(--ease) 0.85s forwards;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.envelope__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 0.35s var(--ease);
}

.envelope__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), 0 0 0 5px rgba(245, 217, 157, 0.07);
}

.envelope__cta:hover svg {
  transform: translateX(4px);
}

.envelope__skip {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(247, 236, 213, 0.68);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.envelope.is-open .envelope__flash {
  animation: rpFlash 1.2s ease-out both;
}

.envelope.is-open .envelope__inner {
  animation: rpContentOut 0.9s var(--ease) 0.15s forwards;
}

.envelope.is-leaving {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@keyframes rpJaliDrift {
  from { transform: rotate(21deg) translate3d(0, 0, 0); }
  to { transform: rotate(21deg) translate3d(-3%, -2%, 0); }
}

@keyframes rpSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rpHalo {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

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

@keyframes rpNameBreathe {
  0%, 100% { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 217, 157, 0.28); }
  50% { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7), 0 0 36px rgba(245, 217, 157, 0.42); }
}

@keyframes rpOrnamentIn {
  to { opacity: 0.42; transform: scaleX(1); }
}

@keyframes rpGleam {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px rgba(245, 217, 157, 0.5)); }
}

@keyframes rpFlash {
  0% { opacity: 0; }
  12% { opacity: 0.92; }
  100% { opacity: 0; }
}

@keyframes rpContentOut {
  to { opacity: 0; transform: scale(0.96) translateY(-8px); }
}

@keyframes rpScrollTop {
  12% { opacity: 1; }
  72% { opacity: 0.88; transform: translateY(-43vh) scaleX(1); }
  100% { opacity: 0; transform: translateY(-49vh) scaleX(0.96); }
}

@keyframes rpScrollBottom {
  12% { opacity: 1; }
  72% { opacity: 0.88; transform: translateY(43vh) scaleX(1); }
  100% { opacity: 0; transform: translateY(49vh) scaleX(0.96); }
}

/* Two small brand marks in the entry, stacked on phones. */
.envelope__ring {
  border-color: rgba(245, 217, 157, 0.12);
}

/* --- Text-only hero ------------------------------------------------------ */
.hero {
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(circle at 15% 0%, rgba(137, 45, 97, 0.36), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(202, 133, 57, 0.24), transparent 44%),
    linear-gradient(180deg, #1c0e28 0%, #12091e 68%, #0d0618 100%);
}

.hero__ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__content {
  width: 100%;
  max-width: 560px;
  padding: 92px 22px 138px;
}

.hero__eyebrow {
  margin-bottom: 0.6rem;
  color: #f5d99d;
  font-family: var(--sans);
  font-size: clamp(0.6rem, 2.6vw, 0.7rem);
  font-weight: 650;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "✦";
  margin-inline: 0.6rem;
  font-size: 0.65em;
  opacity: 0.7;
}

.hero__mantra {
  margin-bottom: 1.1rem;
  color: rgba(245, 217, 157, 0.76);
  font-size: clamp(0.68rem, 2.8vw, 0.82rem);
}

.hero__names {
  display: block;
  margin: 0;
  color: #fff7e2;
  -webkit-text-fill-color: #fff7e2;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6), 0 0 28px rgba(245, 217, 157, 0.26);
}

.hero__name,
.hero__amp {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.hero__amp {
  color: #f5d99d;
  padding-inline: 0.06em;
}

.hero__ornament {
  width: min(230px, 62vw);
  opacity: 0.4;
}

.hero__sub {
  margin-top: 1.1rem;
  color: rgba(247, 236, 213, 0.82);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  font-style: italic;
}

.hero__date {
  margin-top: 0.55rem;
  color: #f7ecd5;
  font-family: var(--sans);
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero__locations {
  margin-top: 0.45rem;
  color: rgba(247, 236, 213, 0.6);
  font-family: var(--sans);
  font-size: clamp(0.6rem, 2.7vw, 0.72rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Animated wedding line + drifting petals ----------------------------- */
.hero__feature {
  width: min(100%, 520px);
  margin-top: 26px;
  text-align: center;
}

.hero__feature-title {
  display: block;
  color: #fff0c9;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 7.5vw, 2.7rem);
  font-weight: 750;
  letter-spacing: 0.3em;
  line-height: 1;
  text-indent: 0.3em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 217, 157, 0.22);
  animation: rpFeatureGlow 4s ease-in-out infinite;
}

.hero__feature-track {
  display: flex;
  overflow: hidden;
  width: 100%;
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hero__feature-text {
  flex: 0 0 auto;
  padding-right: 2rem;
  color: #f5d99d;
  font-family: var(--sans);
  font-size: clamp(0.68rem, 3vw, 0.86rem);
  font-weight: 750;
  letter-spacing: 0.24em;
  white-space: nowrap;
  animation: rpMarquee 20s linear infinite;
}

.hero__petal {
  position: absolute;
  top: -12%;
  width: 18px;
  height: 18px;
  background: url("../assets/img/petal.svg") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  opacity: 0;
  animation: rpHeroPetal 10s linear infinite;
}

.hero__petal--1 { left: 8%; width: 22px; height: 22px; animation-delay: -1s; }
.hero__petal--2 { left: 27%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: -5s; }
.hero__petal--3 { left: 48%; width: 20px; height: 20px; animation-duration: 9s; animation-delay: -3s; }
.hero__petal--4 { left: 68%; width: 16px; height: 16px; animation-duration: 13s; animation-delay: -7s; }
.hero__petal--5 { left: 84%; width: 24px; height: 24px; animation-duration: 11s; animation-delay: -2s; }
.hero__petal--6 { left: 38%; width: 12px; height: 12px; animation-duration: 14s; animation-delay: -9s; }

@keyframes rpFeatureGlow {
  0%, 100% { opacity: 0.94; filter: drop-shadow(0 0 0 transparent); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px rgba(245, 217, 157, 0.35)); }
}

@keyframes rpMarquee {
  to { transform: translateX(-100%); }
}

@keyframes rpHeroPetal {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.72; }
  88% { opacity: 0.5; }
  100% { transform: translate3d(5vw, 110vh, 0) rotate(420deg); opacity: 0; }
}

/* --- Invitation portraits ------------------------------------------------ */
.couple-portraits {
  gap: 12px;
  max-width: 420px;
}

.couple-portraits__item {
  border-color: rgba(245, 217, 157, 0.34);
  background: #160923;
  box-shadow: 0 16px 36px rgba(22, 9, 35, 0.16);
}

.couple-portraits__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(12, 5, 22, 0.72));
  pointer-events: none;
}

.couple-portraits__item img {
  aspect-ratio: 3 / 4;
  filter: saturate(0.96) contrast(1.03);
}

.couple-portraits__label {
  z-index: 1;
  font-family: var(--script);
  font-size: clamp(1.3rem, 6vw, 1.8rem);
  color: #ffe0a4;
}

.couple-portraits__item:nth-child(1) { --reveal-delay: 0.12s; }
.couple-portraits__item:nth-child(2) { --reveal-delay: 0.28s; }

.couple-portraits__item img {
  clip-path: inset(0 0 100%);
  transform: scale(1.06);
  transition:
    clip-path 1s var(--ease),
    transform 1.2s var(--ease),
    filter 0.6s ease;
}

.couple-portraits__item.is-visible img {
  clip-path: inset(0);
  transform: scale(1);
}

.couple-portraits__item.is-visible:hover img {
  transform: scale(1.04);
}

/* --- Sound pill ---------------------------------------------------------- */
.music-toggle {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  gap: 0.5rem;
  width: auto;
  height: 44px;
  padding: 0 14px;
  border-color: rgba(245, 217, 157, 0.34);
  border-radius: 999px;
  background: rgba(17, 10, 28, 0.92);
  color: #fff4da;
}

.music-toggle__note {
  color: #f5d99d;
  font-size: 0.95rem;
  line-height: 1;
}

.music-toggle__bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}

.music-toggle__bars span {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: #f5d99d;
  opacity: 0.45;
}

.music-toggle.is-playing .music-toggle__bars span {
  opacity: 1;
  animation: rpBar 0.8s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-toggle__bars span:nth-child(2) {
  animation-delay: -0.35s;
}

.music-toggle.is-playing .music-toggle__bars span:nth-child(3) {
  animation-delay: -0.6s;
}

.music-toggle__text {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes rpBar {
  from { height: 4px; }
  to { height: 12px; }
}

/* Quieter, simpler section headings for the royal look. */
.section-head--center::after {
  background: linear-gradient(90deg, transparent, rgba(245, 217, 157, 0.6), transparent);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

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

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

  .letter__flap,
  .letter__paper,
  .countdown.scroll-scene > .container {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .hero__leaf {
    transform: none !important;
  }

  .petals,
  .hero__petal {
    display: none;
  }

  .hero__scroll svg,
  .hero__jali,
  .hero__glow,
  .hero__mandala,
  .hero__ornament,
  .envelope__jali,
  .envelope__mandala,
  .envelope__hint,
  .envelope__pulse::after,
  .envelope__seal::after,
  .event-card::before,
  .countdown__grid::before,
  .calendar-cta__ring,
  .gallery__quote::after,
  .section-head--center::after,
  .section-nav a[aria-current="location"] .nav-dot,
  .venue__dot,
  .venue__route-line span,
  .footer::after,
  .footer__monogram span,
  .music-toggle.is-playing {
    animation: none;
  }

  .gallery__item.reveal {
    clip-path: none;
  }
}

/* --------------------------------------------------------------------------
   Print — a clean keepsake if anyone saves the page
   -------------------------------------------------------------------------- */

@media print {
  .envelope,
  .section-nav,
  .music-toggle,
  .petals,
  .hero__scroll,
  .hero__leaf,
  .garland,
  .lightbox,
  .video-toggle,
  .event-actions,
  .calendar-cta__actions,
  .scroll-progress {
    display: none !important;
  }

  html,
  body {
    overflow: visible !important;
    background: #fff;
    color: #000;
  }

  body::after {
    display: none;
  }

  .hero {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .hero__shade,
  .hero__picture,
  .hero__jali,
  .hero__glow,
  .hero__mandala,
  .hero__ornament,
  .hero__fallback {
    display: none;
  }

  .hero__content {
    padding: 2rem;
  }

  .hero__names,
  .hero__date,
  .hero__locations,
  .section-title,
  .event-card__title {
    color: #000;
  }

  .section,
  .countdown,
  .venue,
  .footer {
    padding-block: 1.5rem;
    background: #fff !important;
    color: #000 !important;
  }
}

/* A tiny illustrated crest on the opening invitation. */
.envelope__characters {
  position: relative;
  z-index: 2;
  width: clamp(148px, 18vw, 190px);
  margin: 4px auto -17px;
  opacity: 0.88;
  pointer-events: none;
  filter: drop-shadow(0 5px 13px rgba(0, 0, 0, 0.32));
  animation: couple-arrive 1.1s 0.7s both, couple-float 5.8s 1.8s ease-in-out infinite;
}

.envelope__characters img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes couple-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes couple-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@media (max-width: 700px) {
  .envelope__characters {
    width: clamp(128px, 36vw, 154px);
    margin-block: 0 -13px;
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .envelope__characters { animation: none; }
}

/* A small animated hello joins the photo-free hero only after the scroll opens. */
.hero__couple-invite {
  position: fixed;
  z-index: 65;
  right: auto;
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 66px));
  left: max(10px, env(safe-area-inset-left));
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: min(245px, 70vw);
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-12px, 10px);
}

body.is-ready .hero__couple-invite {
  animation: coupleGreetingArrive 0.85s var(--ease) 0.25s forwards;
}

.hero__couple-invite > img {
  display: block;
  flex: 0 0 auto;
  width: clamp(58px, 18vw, 74px);
  height: auto;
  filter: drop-shadow(0 5px 13px rgba(0, 0, 0, 0.38));
}

.hero__couple-message {
  margin-bottom: 12px;
  padding: 9px 12px 8px;
  border: 1px solid rgba(245, 217, 157, 0.34);
  border-radius: 13px 13px 13px 3px;
  background: rgba(29, 13, 37, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #fff2d6;
  backdrop-filter: blur(8px);
}

.hero__couple-message p { margin: 0; }
.hero__couple-message p[lang="hi"] {
  color: #f7d89a;
  font-family: var(--serif);
  font-size: clamp(0.67rem, 3vw, 0.78rem);
  white-space: nowrap;
}
.hero__couple-message p[lang="en"] {
  margin-top: 2px;
  color: rgba(255, 242, 214, 0.8);
  font-family: var(--sans);
  font-size: clamp(0.47rem, 2vw, 0.55rem);
  letter-spacing: 0.04em;
}

@keyframes coupleGreetingArrive {
  to { opacity: 1; transform: translate(0, 0); }
}

@media (min-width: 700px) {
  .hero__couple-invite { width: 310px; gap: 8px; }
  .hero__couple-invite > img { width: 88px; }
  .hero__couple-message { padding: 12px 15px 10px; }
}

@media (max-width: 360px) {
  .envelope__scroll { width: 91vw; }
  .envelope__scroll-paper { padding-inline: 14px; }
  .hero__couple-invite { width: 70vw; }
  .hero__couple-invite > img { width: 54px; }
  .hero__couple-message { padding: 7px 9px 6px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .envelope__inner { padding-block: 18px; }
  .envelope__scroll-paper { padding-block: 22px; }
  .envelope__scroll .envelope__cta { min-height: 42px; margin-top: 12px; }
  .hero__couple-invite { bottom: 62px; }
  .hero__couple-invite > img { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .envelope__scroll .envelope__cta,
  .envelope__scroll .envelope__cta svg { animation: none; }
  body.is-ready .hero__couple-invite { opacity: 1; transform: none; animation: none; }
}

/* Red rose petals greet guests as the portraits and family names enter view. */
.couple-portraits,
.invitation__family-moment {
  position: relative;
  isolation: isolate;
}

.invitation__rose-shower {
  position: absolute;
  inset: -12px;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.invitation__family-moment .invitation__rose-shower {
  inset: -112px -18px -16px;
}

.invitation__rose-shower.is-falling {
  opacity: 1;
  visibility: visible;
}

.invitation__rose-shower i {
  position: absolute;
  top: -26px;
  left: var(--rose-x);
  display: block;
  width: 13px;
  height: 19px;
  border: 1px solid rgba(255, 207, 206, 0.2);
  border-radius: 84% 8% 78% 18%;
  background: linear-gradient(135deg, #ffb0b6 0%, #d93b59 34%, #a6123a 70%, #6c1235 100%);
  box-shadow: 0 1px 5px rgba(105, 14, 45, 0.2), inset 1px 1px 2px rgba(255, 255, 255, 0.32);
  opacity: 0;
  transform: rotate(-24deg) scale(var(--rose-size));
}

.invitation__rose-shower i::after {
  position: absolute;
  top: 2px;
  left: 47%;
  width: 1px;
  height: 72%;
  background: rgba(255, 226, 209, 0.38);
  content: "";
  transform: rotate(18deg);
}

.invitation__rose-shower.is-falling i {
  animation: invitationRoseFall var(--rose-duration) cubic-bezier(0.24, 0.44, 0.46, 1) var(--rose-delay) both;
}

@keyframes invitationRoseFall {
  0% { top: -26px; opacity: 0; transform: translate3d(0, 0, 0) rotate(-25deg) scale(var(--rose-size)); }
  12% { opacity: 0.94; }
  78% { opacity: 0.78; }
  100% { top: calc(100% + 26px); opacity: 0; transform: translate3d(var(--rose-drift), 0, 0) rotate(var(--rose-turn)) scale(calc(var(--rose-size) * 0.72)); }
}

@media (max-width: 480px) {
  .invitation__rose-shower i { width: 11px; height: 16px; }
}

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