﻿:root {
  --bg-900: #0d0607;
  --bg-850: #15090b;
  --bg-800: #1f0d10;
  --rose-500: #8f2b3d;
  --rose-400: #b3455a;
  --gold-500: #c8a24e;
  --gold-420: #d8ba72;
  --gold-350: #e9d3a5;
  --ink-20: #fff8ec;
  --ink-60: #f1e4c9;
  --ink-120: #dec8a1;
  --card-border: rgba(216, 186, 114, 0.4);
  --card-bg: linear-gradient(162deg, rgba(31, 12, 16, 0.92), rgba(17, 8, 9, 0.9));
  --shadow-soft: 0 20px 46px rgba(0, 0, 0, 0.34);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font-hi: "Noto Serif Devanagari", serif;
  --font-en-display: "Cormorant Garamond", serif;
  --font-en-body: "Libre Baskerville", serif;
  --font-en-royal: "Cinzel", serif;
  --font-script: "Great Vibes", cursive;
  --gold-emboss-light: #f2dca8;
  --gold-emboss-mid: #d8b265;
  --gold-emboss-dark: #8f6a2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  color: var(--ink-20);
  font-family: var(--font-hi);
  font-size: clamp(18px, 0.4vw + 17px, 22px);
  line-height: 1.92;
  letter-spacing: 0.2px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(179, 69, 90, 0.18), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(216, 186, 114, 0.13), transparent 44%),
    linear-gradient(180deg, var(--bg-900) 0%, #070304 100%);
}

body.scroll-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(125deg, rgba(255, 255, 255, 0.02), transparent 62%),
    repeating-linear-gradient(
      45deg,
      rgba(233, 211, 165, 0.01) 0,
      rgba(233, 211, 165, 0.01) 1px,
      transparent 1px,
      transparent 18px
    );
  background-size: 220% 220%, 220px 220px;
  animation: transparentDrift 28s linear infinite;
}

main {
  position: relative;
  z-index: 2;
}

.heritage-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: rgba(216, 186, 114, 0.34);
  overflow: hidden;
  animation: heritagePulse 8s ease-in-out infinite;
}

.heritage-border {
  position: absolute;
  left: 0;
  width: 100%;
  height: 132px;
  opacity: 0.66;
}

.heritage-top {
  top: 0;
}

.heritage-bottom {
  bottom: 0;
}

.heritage-structure {
  position: absolute;
  bottom: 72px;
  width: clamp(180px, 22vw, 360px);
  height: auto;
  color: rgba(216, 186, 114, 0.28);
  filter: drop-shadow(0 0 8px rgba(216, 186, 114, 0.1));
  opacity: 0.7;
}

.heritage-left {
  left: -36px;
}

.heritage-right {
  right: -32px;
}

.lang-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 150;
  border: 1px solid rgba(216, 186, 114, 0.75);
  color: var(--gold-350);
  background: rgba(10, 5, 6, 0.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  line-height: 1;
  font-family: var(--font-hi);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 260ms var(--ease-smooth), border-color 260ms var(--ease-smooth), box-shadow 260ms var(--ease-smooth);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-420);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(216, 186, 114, 0.18);
}

.lang-toggle .sep {
  opacity: 0.52;
}

.lang-toggle .toggle-hi,
.lang-toggle .toggle-en {
  opacity: 0.54;
  transition: opacity 200ms var(--ease-smooth), color 200ms var(--ease-smooth), text-shadow 200ms var(--ease-smooth);
}

body.lang-hi .lang-toggle .toggle-hi,
body.lang-en .lang-toggle .toggle-en {
  opacity: 1;
  color: var(--ink-20);
  text-shadow: 0 0 14px rgba(216, 186, 114, 0.4);
}

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(82px, 12vh, 126px) clamp(18px, 4vw, 70px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
  opacity: 0.58;
  transform: scale(0.987);
  transition: opacity 680ms var(--ease-smooth), transform 680ms var(--ease-smooth);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 186, 114, 0.1), transparent 44%),
    radial-gradient(circle at 50% 90%, rgba(179, 69, 90, 0.12), transparent 45%);
  opacity: 0.4;
  transition: opacity 680ms var(--ease-smooth);
}

.section::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 10px;
  bottom: 24px;
  left: 10px;
  z-index: 0;
  pointer-events: none;
  border-left: 1px solid rgba(216, 186, 114, 0.18);
  border-right: 1px solid rgba(216, 186, 114, 0.18);
  background:
    linear-gradient(90deg, rgba(216, 186, 114, 0.07), transparent 14%, transparent 86%, rgba(216, 186, 114, 0.07)),
    radial-gradient(circle at 0 50%, rgba(216, 186, 114, 0.1), transparent 48%),
    radial-gradient(circle at 100% 50%, rgba(216, 186, 114, 0.1), transparent 48%);
  opacity: 0.5;
  transition: opacity 680ms var(--ease-smooth), border-color 680ms var(--ease-smooth);
}

.section.in-view {
  opacity: 1;
  transform: scale(1);
}

.section.in-view::before {
  opacity: 0.88;
}

.section.in-view::after {
  opacity: 0.88;
  border-left-color: rgba(216, 186, 114, 0.34);
  border-right-color: rgba(216, 186, 114, 0.34);
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
}

.section.text-section .section-inner {
  max-width: 980px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-smooth), transform 700ms var(--ease-smooth);
}

.section.text-section.in-view .section-inner {
  opacity: 1;
  transform: none;
}

.section.text-section .section-inner::before,
.section.text-section .section-inner::after {
  content: "";
  position: absolute;
  width: clamp(120px, 11vw, 180px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background:
    radial-gradient(circle at 26% 72%, rgba(242, 220, 168, 0.84) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 24%, rgba(242, 220, 168, 0.66) 0 4px, transparent 5px),
    radial-gradient(ellipse at 50% 50%, transparent 53%, rgba(216, 186, 114, 0.45) 54% 57%, transparent 58%),
    conic-gradient(from 210deg at 58% 44%, transparent 0 278deg, rgba(216, 186, 114, 0.42) 278deg 336deg, transparent 336deg 360deg),
    conic-gradient(from 18deg at 44% 58%, transparent 0 300deg, rgba(216, 186, 114, 0.26) 300deg 342deg, transparent 342deg 360deg);
  filter: drop-shadow(0 0 10px rgba(216, 186, 114, 0.14));
  transition: opacity 700ms var(--ease-smooth), transform 700ms var(--ease-smooth);
}

.section.text-section .section-inner::before {
  left: clamp(-56px, -6vw, -88px);
  top: 10%;
  transform: rotate(-22deg);
}

.section.text-section .section-inner::after {
  right: clamp(-56px, -6vw, -88px);
  bottom: 8%;
  transform: rotate(18deg) scaleX(-1);
}

.section.text-section.in-view .section-inner::before,
.section.text-section.in-view .section-inner::after {
  opacity: 0.58;
}

.text-section p,
.text-section h2,
.text-section h3,
.text-section footer {
  margin: 0;
  text-wrap: balance;
}

.hi,
.en {
  margin: 0;
}

.hi {
  color: var(--ink-20);
}

.en {
  display: none;
  color: var(--ink-120);
  font-family: var(--font-en-body);
}

body.lang-en .hi {
  display: none;
}

body.lang-en .en {
  display: block;
}

body.lang-hi .hi {
  display: block;
}

body.lang-hi .en {
  display: none;
}

.text-section .hi {
  font-size: clamp(1.2rem, 0.8vw + 1rem, 1.64rem);
}

.text-section .en {
  font-size: clamp(1.08rem, 0.7vw + 0.94rem, 1.4rem);
  line-height: 1.82;
}

.heading {
  color: var(--gold-420);
  font-size: clamp(1.9rem, 2.2vw, 3rem);
  letter-spacing: 1.2px;
  margin-bottom: 0.3rem;
}

.heading-en {
  color: var(--gold-350);
  font-family: var(--font-en-display);
  font-size: clamp(1.55rem, 1.8vw, 2.2rem);
  letter-spacing: 0.8px;
}

.plus-line {
  color: var(--gold-350);
  margin-top: 0.9rem;
  letter-spacing: 2px;
}

.name-emphasis {
  font-weight: 700;
  color: var(--gold-350);
  letter-spacing: 0.4px;
  text-shadow: 0 0 10px rgba(216, 186, 114, 0.2);
}

.text-block + .text-block {
  margin-top: 1.15rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.986);
  transition: opacity 900ms var(--ease-smooth), transform 900ms var(--ease-smooth);
}

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

.ganesh-section {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(216, 186, 114, 0.26), transparent 40%),
    linear-gradient(180deg, #020203 0%, #0c0708 70%, #020203 100%);
  transition: opacity 900ms var(--ease-smooth), visibility 900ms var(--ease-smooth);
}

.ganesh-section.intro-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spotlight {
  position: absolute;
  inset: -40% -30%;
  background: conic-gradient(from 125deg at 50% 36%, transparent 0deg, rgba(255, 246, 228, 0.07) 10deg, rgba(216, 186, 114, 0.22) 24deg, transparent 38deg, transparent 360deg);
  animation: spotlightSweep 4s ease-in-out both;
}

.ganesh-image {
  width: clamp(190px, 35vw, 360px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(216, 186, 114, 0.35));
  animation: ganeshFloat 3.5s ease-in-out both;
}

.ganesh-image-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.ganesh-petal-bed {
  position: absolute;
  left: 50%;
  bottom: -44px;
  width: clamp(190px, 34vw, 360px);
  height: 128px;
  transform: translateX(-50%);
  pointer-events: none;
}

.ganesh-petal {
  position: absolute;
  left: 50%;
  top: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(13px, 1.2vw, 20px);
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.34);
  animation: ganeshPetalDrop linear infinite;
}

.ganesh-mantra {
  margin-top: 1.05rem;
  font-size: clamp(1.15rem, 1.5vw + 0.9rem, 1.8rem);
  letter-spacing: 1px;
}

.poster-section {
  overflow: hidden;
  opacity: 1;
  transform: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 186, 114, 0.16), transparent 48%),
    radial-gradient(circle at 12% 70%, rgba(143, 43, 61, 0.24), transparent 52%),
    radial-gradient(circle at 86% 30%, rgba(143, 43, 61, 0.2), transparent 50%),
    linear-gradient(180deg, #1f0a0f 0%, #14070b 100%);
}

.poster-section::before {
  background:
    radial-gradient(circle at 50% 45%, rgba(216, 186, 114, 0.18), transparent 58%),
    repeating-linear-gradient(
      90deg,
      rgba(242, 220, 168, 0.02) 0px,
      rgba(242, 220, 168, 0.02) 1px,
      transparent 1px,
      transparent 20px
    );
  opacity: 0.8;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 3, 5, 0.66) 0%, rgba(7, 3, 5, 0.38) 46%, rgba(7, 3, 5, 0.76) 100%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(7, 3, 5, 0.84) 84%);
}

.poster-inner {
  position: relative;
  z-index: 3;
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 4vw, 48px);
  border: 1.6px solid rgba(216, 186, 114, 0.5);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(36, 11, 16, 0.72), rgba(18, 7, 10, 0.66)),
    repeating-linear-gradient(
      135deg,
      rgba(242, 220, 168, 0.02) 0px,
      rgba(242, 220, 168, 0.02) 2px,
      transparent 2px,
      transparent 8px
    );
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(216, 186, 114, 0.08);
  isolation: isolate;
}

.poster-inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(216, 186, 114, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(216, 186, 114, 0.16),
    inset 0 0 0 10px rgba(216, 186, 114, 0.02);
  pointer-events: none;
  z-index: 0;
}

.poster-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -36px;
  width: min(72%, 620px);
  height: 76px;
  transform: translateX(-50%);
  border: 1.6px solid rgba(216, 186, 114, 0.48);
  border-bottom: none;
  border-radius: 140px 140px 0 0;
  pointer-events: none;
  z-index: 0;
}

.poster-inner > * {
  position: relative;
  z-index: 1;
}

.poster-kicker {
  margin: 0 0 12px;
  color: var(--gold-350);
  font-family: var(--font-en-royal);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 0.7vw + 0.72rem, 1.2rem);
  opacity: 0.9;
}

.poster-title {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 20px);
  font-family: var(--font-en-royal);
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.64);
}

.poster-title .name-primary {
  font-size: clamp(3.9rem, 8vw, 8.4rem);
  letter-spacing: clamp(2px, 0.9vw, 9px);
  font-weight: 700;
  color: #f3dca8;
}

.poster-title .weds-word {
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  letter-spacing: clamp(1.8px, 0.7vw, 5px);
  font-weight: 600;
  color: #e9ce93;
  transform: translateY(-4px);
}

.poster-date {
  margin-top: 1rem;
  color: #f1deb6;
  font-family: var(--font-en-royal);
  font-size: clamp(1rem, 0.9vw + 0.86rem, 1.5rem);
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gold-350);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en-body);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 450ms var(--ease-smooth);
}

.scroll-hint.visible {
  opacity: 0.95;
}

.scroll-hint .arrow {
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: arrowPulse 1.75s ease-in-out infinite;
}

.nimantran-section {
  background:
    radial-gradient(circle at 50% 18%, rgba(179, 69, 90, 0.24), transparent 56%),
    linear-gradient(180deg, #14090b 0%, #0d0608 100%);
}

.nimantran-section .text-block {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.invitation-card,
.person-card,
.program-card,
.venue-card,
.kids-note,
.special-request {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  border: 1.4px solid rgba(216, 186, 114, 0.52);
  background:
    linear-gradient(164deg, rgba(36, 11, 16, 0.95), rgba(17, 7, 10, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(216, 186, 114, 0.07), transparent 46%),
    linear-gradient(180deg, rgba(242, 220, 168, 0.045) 0%, transparent 24%, transparent 76%, rgba(242, 220, 168, 0.04) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(242, 220, 168, 0.02) 0px,
      rgba(242, 220, 168, 0.02) 2px,
      transparent 2px,
      transparent 8px
    );
}

.invitation-card::before,
.person-card::before,
.program-card::before,
.venue-card::before,
.kids-note::before,
.special-request::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  border-radius: 16px;
  background:
    radial-gradient(circle at 7px 7px, rgba(242, 220, 168, 0.7) 1.8px, transparent 2.3px) top left / 14px 14px repeat-x,
    radial-gradient(circle at 7px 7px, rgba(242, 220, 168, 0.7) 1.8px, transparent 2.3px) bottom left / 14px 14px repeat-x,
    linear-gradient(90deg, rgba(216, 186, 114, 0.22), transparent 20%, transparent 80%, rgba(216, 186, 114, 0.22)),
    linear-gradient(180deg, rgba(216, 186, 114, 0.2), rgba(216, 186, 114, 0.07));
  box-shadow: inset 0 0 0 1px rgba(216, 186, 114, 0.2);
}

.invitation-card::after,
.person-card::after,
.program-card::after,
.venue-card::after,
.kids-note::after,
.special-request::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(216, 186, 114, 0.3);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(216, 186, 114, 0.18),
    inset 0 0 0 10px rgba(216, 186, 114, 0.025);
  background:
    conic-gradient(from 180deg at 30px 30px, rgba(216, 186, 114, 0.78) 0 20deg, transparent 20deg 342deg, rgba(216, 186, 114, 0.78) 342deg 360deg),
    conic-gradient(from 270deg at calc(100% - 30px) 30px, rgba(216, 186, 114, 0.78) 0 20deg, transparent 20deg 342deg, rgba(216, 186, 114, 0.78) 342deg 360deg),
    conic-gradient(from 90deg at 30px calc(100% - 30px), rgba(216, 186, 114, 0.78) 0 20deg, transparent 20deg 342deg, rgba(216, 186, 114, 0.78) 342deg 360deg),
    conic-gradient(from 0deg at calc(100% - 30px) calc(100% - 30px), rgba(216, 186, 114, 0.78) 0 20deg, transparent 20deg 342deg, rgba(216, 186, 114, 0.78) 342deg 360deg),
    radial-gradient(circle at 0 0, transparent 22px, rgba(216, 186, 114, 0.45) 22px 23px, transparent 24px) top left / 64px 64px no-repeat,
    radial-gradient(circle at 100% 0, transparent 22px, rgba(216, 186, 114, 0.45) 22px 23px, transparent 24px) top right / 64px 64px no-repeat,
    radial-gradient(circle at 0 100%, transparent 22px, rgba(216, 186, 114, 0.45) 22px 23px, transparent 24px) bottom left / 64px 64px no-repeat,
    radial-gradient(circle at 100% 100%, transparent 22px, rgba(216, 186, 114, 0.45) 22px 23px, transparent 24px) bottom right / 64px 64px no-repeat;
}

.invitation-card > *,
.person-card > *,
.program-card > *,
.venue-card > *,
.kids-note > *,
.special-request > * {
  position: relative;
  z-index: 1;
}

.invitation-section {
  background:
    radial-gradient(circle at 10% 24%, rgba(216, 186, 114, 0.15), transparent 44%),
    linear-gradient(180deg, #16090c 0%, #0c0607 100%);
}

.invitation-card {
  max-width: 870px;
  margin: 0 auto;
  border: 1.6px solid rgba(216, 186, 114, 0.56);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 186, 114, 0.1), transparent 42%),
    linear-gradient(162deg, rgba(35, 11, 17, 0.96), rgba(17, 7, 10, 0.94)),
    repeating-linear-gradient(
      135deg,
      rgba(242, 220, 168, 0.024) 0px,
      rgba(242, 220, 168, 0.024) 2px,
      transparent 2px,
      transparent 8px
    );
  box-shadow: var(--shadow-soft), inset 0 0 34px rgba(216, 186, 114, 0.06);
  padding: clamp(28px, 4.5vw, 48px);
}

.invitation-card .invitation-chunk {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.invitation-card .invitation-chunk:first-child {
  text-align: center;
}

.invitation-card .invitation-chunk:not(:first-child) .hi,
.invitation-card .invitation-chunk:not(:first-child) .en {
  text-align: center;
  line-height: 1.95;
}

.invitation-card .hi {
  font-size: clamp(1.28rem, 0.96vw + 1rem, 1.8rem);
  color: #fffaf0;
  font-weight: 650;
}

.invitation-card .heading {
  font-size: clamp(2.1rem, 2.6vw, 3.25rem);
  letter-spacing: 0.8px;
  color: #ecd39e;
  text-shadow: 0 0 22px rgba(216, 186, 114, 0.24);
}

.invitation-card .en {
  font-size: clamp(1.16rem, 0.82vw + 0.98rem, 1.54rem);
  color: #f6dfb9;
  font-family: var(--font-en-body);
  font-weight: 600;
}

.invitation-card .invitation-greeting {
  font-family: var(--font-script);
  font-size: clamp(2rem, 2.4vw, 3rem);
  font-weight: 400;
  color: #f2d9a4;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(216, 186, 114, 0.2);
}

.invitation-card .name-emphasis {
  font-size: clamp(2.08rem, 1.3vw + 1.55rem, 2.82rem);
  letter-spacing: 0.5px;
  font-weight: 700;
}

body.lang-en .invitation-card .name-emphasis {
  font-family: var(--font-en-royal);
}

body.lang-hi .invitation-card .name-emphasis {
  font-family: var(--font-hi);
  letter-spacing: 0.2px;
}

.invitation-card .invitation-chunk:nth-child(2) .en,
.invitation-card .invitation-chunk:nth-child(3) .en {
  text-wrap: pretty;
}

.invitation-card .invitation-chunk:first-child::before,
.invitation-card .invitation-chunk:first-child::after {
  content: "❦";
  display: inline-block;
  color: rgba(242, 220, 168, 0.75);
  font-size: clamp(1.2rem, 1.2vw, 1.8rem);
  line-height: 1;
  text-shadow: 0 0 10px rgba(216, 186, 114, 0.2);
  margin: 0 10px;
  transform: translateY(-2px);
}

.invitation-chunk + .invitation-chunk {
  margin-top: 1.22rem;
}

.invitation-chunk.dimmed {
  opacity: 1;
}

.parinay-section {
  background:
    radial-gradient(circle at 24% 42%, rgba(179, 69, 90, 0.23), transparent 54%),
    radial-gradient(circle at 78% 52%, rgba(216, 186, 114, 0.15), transparent 52%),
    linear-gradient(180deg, #12080a 0%, #090506 100%);
}

.couple-grid {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
}

.person-card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.8vw, 38px);
}

.person-name {
  color: var(--gold-420);
  font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 14px rgba(216, 186, 114, 0.22);
}

.person-name-en {
  font-family: var(--font-en-display);
  font-size: clamp(1.45rem, 1.2vw + 1.05rem, 1.92rem);
  font-weight: 700;
  color: var(--gold-350);
  letter-spacing: 0.7px;
  margin-bottom: 0.42rem;
}

.residence {
  color: var(--gold-350);
  margin-top: 0.75rem;
}

.sang {
  border: 1px dashed rgba(216, 186, 114, 0.46);
  border-radius: 999px;
  min-width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.sang .hi,
.sang .en {
  font-size: 1.2rem;
  color: var(--gold-420);
}

.program-section {
  background:
    radial-gradient(circle at 50% 10%, rgba(179, 69, 90, 0.22), transparent 56%),
    linear-gradient(180deg, #14090b 0%, #0c0607 100%);
}

.program-card {
  margin: 1.7rem auto 0;
  max-width: 880px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 36px);
  text-align: left;
}

.program-card h3 {
  margin: 0;
  color: var(--gold-420);
  font-size: clamp(1.35rem, 1vw + 1rem, 1.76rem);
}

.event-item {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.event-icon {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 420ms var(--ease-smooth), transform 420ms var(--ease-smooth);
}

.event-item.icon-visible .event-icon {
  opacity: 1;
  transform: scale(1);
}

.event-item .hi {
  font-size: clamp(1.12rem, 0.7vw + 0.95rem, 1.42rem);
}

.event-item .en {
  font-size: clamp(1rem, 0.6vw + 0.88rem, 1.24rem);
}

.venue-section {
  background:
    radial-gradient(circle at 50% 38%, rgba(216, 186, 114, 0.16), transparent 56%),
    linear-gradient(180deg, #12080a 0%, #090506 100%);
}

.venue-card {
  max-width: 760px;
  margin: 1.5rem auto 0;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4.3vw, 38px);
}

.maps-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold-350);
  text-decoration: none;
  font-family: var(--font-en-body);
  font-size: 0.92rem;
  letter-spacing: 1.2px;
  border: 1px solid rgba(216, 186, 114, 0.56);
  padding: 10px 18px;
  transition: border-color 230ms var(--ease-smooth), background-color 230ms var(--ease-smooth), color 230ms var(--ease-smooth);
}

.maps-link:hover,
.maps-link:focus-visible {
  border-color: var(--gold-420);
  color: var(--ink-20);
  background-color: rgba(216, 186, 114, 0.12);
}

.family-section {
  background:
    radial-gradient(circle at 15% 24%, rgba(179, 69, 90, 0.2), transparent 45%),
    linear-gradient(180deg, #12080a 0%, #090506 100%);
}

.kids-note {
  margin: 1.6rem auto 0;
  max-width: 760px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 34px);
}

.kids-note footer {
  margin-top: 0.7rem;
  color: var(--gold-350);
}

.contact-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 186, 114, 0.16), transparent 44%),
    radial-gradient(circle at 80% 86%, rgba(179, 69, 90, 0.23), transparent 42%),
    linear-gradient(180deg, #11080a 0%, #080304 100%);
}

.contact-numbers {
  font-family: var(--font-en-body);
  font-size: clamp(1.24rem, 0.9vw + 1rem, 1.62rem);
  line-height: 1.7;
  letter-spacing: 0.35px;
  word-break: break-word;
}

.contact-numbers a {
  color: var(--gold-350);
  text-decoration: none;
}

.contact-numbers a:hover,
.contact-numbers a:focus-visible {
  color: var(--ink-20);
  text-decoration: underline;
}

.special-request {
  margin-top: 1.35rem;
  border: 1px solid rgba(216, 186, 114, 0.32);
  background: rgba(14, 7, 8, 0.78);
  padding: clamp(20px, 3.4vw, 28px);
}

.person-card .hi,
.program-card .hi,
.venue-card .hi,
.kids-note .hi,
.special-request .hi {
  color: #fff9ef;
  font-weight: 600;
}

.person-card .en,
.program-card .en,
.venue-card .en,
.kids-note .en,
.special-request .en {
  color: #f1dbb2;
  font-weight: 600;
}

.final-mark {
  margin-top: 1.9rem;
  color: var(--gold-420);
  font-size: clamp(1.65rem, 1.4vw + 1.2rem, 2.3rem);
  letter-spacing: 2px;
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 500ms var(--ease-smooth);
}

.petal-layer.active {
  opacity: 1;
}

.petal {
  position: absolute;
  top: -12vh;
  opacity: 0;
  will-change: transform, opacity;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes petalFallA {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.68;
  }

  100% {
    transform: translate3d(42px, 112vh, 0) rotate(180deg);
    opacity: 0;
  }
}

@keyframes petalFallB {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(20deg);
    opacity: 0;
  }

  10% {
    opacity: 0.62;
  }

  100% {
    transform: translate3d(-35px, 112vh, 0) rotate(-170deg);
    opacity: 0;
  }
}

@keyframes petalFallC {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(-12deg);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(60px, 112vh, 0) rotate(230deg);
    opacity: 0;
  }
}

@keyframes spotlightSweep {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(10deg);
  }
}

@keyframes ganeshFloat {
  0% {
    opacity: 0;
    transform: scale(0.93);
  }

  30% {
    opacity: 1;
    transform: scale(1);
  }

  65% {
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ganeshPetalDrop {
  0% {
    transform: translate(-50%, -8px) rotate(0deg) scale(0.84);
    opacity: 0;
  }

  14% {
    opacity: 0.95;
  }

  100% {
    transform: translate(calc(-50% + var(--x-shift, 0px)), 108px) rotate(var(--end-rot, 70deg)) scale(1);
    opacity: 0;
  }
}

@keyframes posterDrift {
  from {
    transform: scale(1.04) translateY(0);
  }

  to {
    transform: scale(1.1) translateY(-8px);
  }
}

@keyframes arrowPulse {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-4px, -4px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(4px, 4px);
  }
}

@keyframes transparentDrift {
  0% {
    background-position: 0% 0%, 0 0;
  }

  100% {
    background-position: 100% 100%, 220px 220px;
  }
}

@keyframes heritagePulse {
  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .section.text-section .section-inner::before,
  .section.text-section .section-inner::after {
    width: clamp(66px, 10vw, 96px);
    opacity: 0.34;
  }

  .heritage-border {
    height: 108px;
    opacity: 0.52;
  }

  .heritage-structure {
    width: clamp(140px, 24vw, 240px);
    bottom: 54px;
    opacity: 0.54;
  }

  .couple-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sang {
    margin: 0 auto;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: y proximity;
  }

  .section.text-section .section-inner::before,
  .section.text-section .section-inner::after {
    display: none;
  }

  .heritage-border {
    height: 86px;
    opacity: 0.42;
  }

  .heritage-structure {
    display: none;
  }

  body {
    font-size: 18px;
    line-height: 1.83;
  }

  .lang-toggle {
    top: 10px;
    right: 10px;
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .section {
    min-height: 100dvh;
    padding: 84px 14px 78px;
    opacity: 0.74;
  }

  .section::before {
    opacity: 0.62;
  }

  .section::after {
    top: 16px;
    bottom: 16px;
    left: 6px;
    right: 6px;
    opacity: 0.32;
  }

  .section.text-section .section-inner {
    opacity: 0.82;
    transform: none;
  }

  .heading {
    font-size: clamp(1.64rem, 8vw, 2.2rem);
  }

  .heading-en {
    font-size: clamp(1.34rem, 6.6vw, 1.86rem);
  }

  .text-section .hi {
    font-size: clamp(1.13rem, 5.1vw, 1.4rem);
    line-height: 1.8;
  }

  .text-section .en {
    font-size: clamp(1.02rem, 4.4vw, 1.25rem);
    line-height: 1.72;
  }

  .poster-title {
    gap: 6px;
  }

  .poster-title .name-primary {
    font-size: clamp(3.2rem, 13vw, 5rem);
    letter-spacing: 1.2px;
  }

  .poster-title .weds-word {
    font-size: clamp(1rem, 4.4vw, 1.35rem);
    letter-spacing: 1.2px;
    transform: translateY(-2px);
  }

  .poster-date {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    letter-spacing: 1px;
  }

  .poster-kicker {
    font-size: clamp(0.76rem, 3.4vw, 0.94rem);
    letter-spacing: 1px;
  }

  .poster-inner {
    padding: 24px 16px 28px;
    border-radius: 18px;
  }

  .poster-inner::before {
    inset: 7px;
    border-radius: 12px;
  }

  .poster-inner::after {
    top: -24px;
    height: 54px;
    width: min(84%, 420px);
  }

  .program-card,
  .venue-card,
  .person-card,
  .kids-note,
  .invitation-card,
  .special-request {
    padding: 18px;
    border-radius: 14px;
  }

  .invitation-card .heading {
    font-size: clamp(1.82rem, 8.8vw, 2.55rem);
  }

  .invitation-card .invitation-greeting {
    font-size: clamp(1.68rem, 8.2vw, 2.3rem);
  }

  .invitation-card .invitation-chunk:first-child::before,
  .invitation-card .invitation-chunk:first-child::after {
    font-size: 1rem;
    margin: 0 6px;
  }

  .invitation-card .hi {
    font-size: clamp(1.16rem, 5vw, 1.45rem);
  }

  .invitation-card .en {
    font-size: clamp(1.02rem, 4.3vw, 1.28rem);
    line-height: 1.78;
  }

  .invitation-card .name-emphasis {
    font-size: clamp(1.48rem, 6vw, 2.08rem);
  }

  .program-card::before,
  .venue-card::before,
  .person-card::before,
  .kids-note::before,
  .invitation-card::before,
  .special-request::before {
    inset: 8px;
    opacity: 0.42;
  }

  .program-card::after,
  .venue-card::after,
  .person-card::after,
  .kids-note::after,
  .invitation-card::after,
  .special-request::after {
    inset: 7px;
    border-radius: 9px;
    background-size: auto, auto, auto, auto, 44px 44px, 44px 44px, 44px 44px, 44px 44px;
  }

  .event-item {
    grid-template-columns: 24px 1fr;
    gap: 9px;
  }

  .contact-numbers {
    font-size: clamp(1.12rem, 5vw, 1.34rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .ganesh-section,
  .petal-layer,
  .scroll-hint {
    display: none !important;
  }

  .section,
  .reveal,
  .section.text-section .section-inner {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    overflow: auto !important;
  }
}
