:root {
  color-scheme: light;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--accent), transparent 55%) 0 9rem, transparent 9.1rem),
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--secondary), transparent 68%) 0 11rem, transparent 11.1rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

body.desi-pop-art {
  --bg: #fff0c9;
  --ink: #111111;
  --primary: #f20574;
  --secondary: #00bfd0;
  --accent: #ffd21c;
  --extra: #ff6b1a;
  --panel: #fff9df;
  --soft: #ffe1f0;
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Bungee", Impact, sans-serif;
  --font-accent: "Shrikhand", Georgia, serif;
  --radius: 7px;
  --border: 3px solid #111111;
  --shadow: 10px 10px 0 #00bfd0;
  --hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .12) 55%, rgba(242, 5, 116, .35));
}

body.tropical-coastal {
  --bg: #fff7ea;
  --ink: #073f45;
  --primary: #078c96;
  --secondary: #f47f6b;
  --accent: #ffd8a8;
  --extra: #2f7d59;
  --panel: rgba(255, 255, 255, .86);
  --soft: #d9f5f0;
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-accent: "Fraunces", Georgia, serif;
  --radius: 24px;
  --border: 1px solid rgba(7, 63, 69, .18);
  --shadow: 0 26px 65px rgba(7, 63, 69, .2);
  --hero-overlay: linear-gradient(100deg, rgba(3, 51, 57, .68), rgba(3, 88, 94, .22) 55%, rgba(244, 127, 107, .25));
}

body.rustic-boho {
  --bg: #f4e2c9;
  --ink: #332315;
  --primary: #a94f2d;
  --secondary: #6f7d46;
  --accent: #d9a441;
  --extra: #8b5a36;
  --panel: rgba(255, 247, 232, .9);
  --soft: #ead3b1;
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-accent: "Special Elite", "Courier New", monospace;
  --radius: 12px;
  --border: 1px solid rgba(51, 35, 21, .22);
  --shadow: 0 22px 55px rgba(80, 45, 22, .2);
  --hero-overlay: linear-gradient(100deg, rgba(42, 28, 17, .7), rgba(92, 56, 32, .24) 56%, rgba(169, 79, 45, .22));
}

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

button {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .45s ease, visibility .45s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.lang-switch {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 20;
  border: var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: .55rem .9rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: clamp(1rem, 4vw, 3rem);
  isolation: isolate;
  background-image: var(--hero-overlay), image-set(url("images/hero.avif") type("image/avif"), url("images/hero.avif") type("image/webp"));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5.5rem;
  background:
    linear-gradient(to bottom, transparent, var(--bg) 80%),
    radial-gradient(70% 100% at 50% 100%, var(--bg) 0 64%, transparent 66%);
  z-index: -1;
}

.decor-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background:
    repeating-linear-gradient(135deg, transparent 0 1.2rem, var(--accent) 1.25rem 1.45rem),
    radial-gradient(circle, var(--secondary) 0 .22rem, transparent .25rem);
  background-size: auto, 2.2rem 2.2rem;
  mix-blend-mode: screen;
}

.top-nav {
  position: absolute;
  top: 1rem;
  left: clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.top-nav a,
.chips span,
.primary-btn,
.secondary-btn,
.event-action,
.shagun-trigger-btn {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

.top-nav a {
  padding: .55rem .8rem;
}

.hero-copy {
  max-width: 760px;
  padding-top: 8rem;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-family: var(--font-accent);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: .98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 14vw, 10.5rem);
}

h1 em {
  color: var(--accent);
  font-family: var(--font-accent);
  font-style: normal;
}

h2 {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
}

h3 {
  font-size: clamp(1.45rem, 4vw, 2.3rem);
}

.hero-text {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.2rem 0;
}

.chips span {
  padding: .6rem .85rem;
  background: var(--accent);
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.primary-btn,
.secondary-btn,
.event-action,
.shagun-trigger-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .85rem 1.1rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.primary-btn,
.shagun-trigger-btn {
  background: var(--primary);
  color: #fff;
}

.secondary-btn,
.event-action {
  background: var(--accent);
}

.primary-btn:hover,
.secondary-btn:hover,
.event-action:hover,
.shagun-trigger-btn:hover,
.lang-switch:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.intro-strip {
  font-family: var(--font-accent);
  font-size: clamp(1.45rem, 4vw, 3.3rem);
  line-height: 1.18;
}

.section-heading {
  display: grid;
  gap: .3rem;
  margin-bottom: 2rem;
}

.event-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.event-card,
.shagun-panel,
.modal-card {
  border: var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel), white 8%), var(--panel)),
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--accent), transparent 60%), transparent 36%);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.event-card {
  position: relative;
  min-height: 25rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transform-style: preserve-3d;
}

.event-card:nth-child(2) {
  margin-top: 2.5rem;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: .7rem;
  border: 1px dashed color-mix(in srgb, var(--ink), transparent 55%);
  border-radius: calc(var(--radius) + 4px);
  pointer-events: none;
}

.event-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 3rem;
}

.event-card p {
  line-height: 1.55;
}

.event-action {
  width: fit-content;
}

.shagun-section {
  width: 100%;
  max-width: none;
  padding-inline: 1rem;
}

.shagun-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.shagun-panel p,
.rsvp-section p {
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.7;
}

.rsvp-section {
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: var(--border);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .58);
}

.modal.active {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(1.5rem, 5vw, 2.4rem);
}

.modal-close {
  position: absolute;
  right: .75rem;
  top: .75rem;
  width: 2.3rem;
  height: 2.3rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
}

.envelope {
  position: relative;
  display: block;
  width: min(340px, 82vw);
  aspect-ratio: 1.42;
  margin: 1.4rem auto;
  border: var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--accent), var(--soft));
  cursor: pointer;
  overflow: hidden;
}

.flap {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 58%, 100% 0);
  background: color-mix(in srgb, var(--primary), white 12%);
  transform-origin: top;
  transition: transform .45s ease;
}

.letter {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, .18);
  background: #fffdf4;
  transform: translateY(45%);
  transition: transform .45s ease;
}

.qr-code-image {
  width: min(120px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  padding: .35rem;
  border-radius: .45rem;
  background: rgba(255, 255, 255, .92);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .25s ease, transform .25s ease;
}

.envelope.open .flap {
  transform: rotateX(165deg);
}

.envelope.open .letter {
  transform: translateY(0);
}

.envelope.open .qr-code-image {
  opacity: 1;
  transform: scale(1);
}

.payment-details {
  display: none;
  padding: 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent), white 60%);
}

.payment-details.visible {
  display: block;
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-card.visible,
body.no-motion .reveal-card {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .hero {
    min-height: 88vh;
    background-position: center top;
  }

  .top-nav {
    right: 1rem;
    padding-right: 5.5rem;
  }

  .event-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .5rem 0 1.2rem;
  }

  .event-card {
    min-width: min(86vw, 340px);
    scroll-snap-align: center;
  }

  .event-card:nth-child(2) {
    margin-top: 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .lang-switch {
    right: .7rem;
    top: .7rem;
    box-shadow: none;
  }

  .top-nav {
    top: 3.9rem;
    left: 1rem;
    right: 1rem;
    padding-right: 0;
  }

  .top-nav a {
    flex: 1;
    text-align: center;
  }

  .hero-copy {
    padding-top: 10rem;
  }

  .hero-actions,
  .modal-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .event-action,
  .shagun-trigger-btn {
    width: 100%;
  }
}

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

/* Theme identity pass: these rules intentionally diverge the three Shagun pages. */
body.desi-pop-art {
  background:
    radial-gradient(circle at 8% 10%, #f20574 0 .5rem, transparent .55rem),
    radial-gradient(circle at 18% 12%, #00bfd0 0 .34rem, transparent .38rem),
    radial-gradient(circle at 92% 18%, #ff6b1a 0 .55rem, transparent .6rem),
    repeating-radial-gradient(circle at 18% 82%, rgba(17, 17, 17, .13) 0 .08rem, transparent .1rem .58rem),
    linear-gradient(135deg, #fff0c9 0 48%, #ffe0ef 48% 52%, #fff0c9 52%);
}

body.tropical-coastal {
  background:
    radial-gradient(80rem 22rem at 50% -8rem, rgba(7, 140, 150, .2), transparent 62%),
    radial-gradient(36rem 20rem at 100% 22%, rgba(244, 127, 107, .18), transparent 64%),
    linear-gradient(180deg, #fff8ed, #e9faf6 42%, #fff6e8);
}

body.rustic-boho {
  background:
    linear-gradient(90deg, rgba(92, 56, 32, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(92, 56, 32, .045) 1px, transparent 1px),
    radial-gradient(circle at 12% 28%, rgba(169, 79, 45, .16), transparent 18rem),
    radial-gradient(circle at 84% 58%, rgba(111, 125, 70, .14), transparent 22rem),
    #f4e2c9;
  background-size: auto, 26px 26px, auto, auto, auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(.8rem, 2vw, 1.4rem);
  z-index: -1;
  pointer-events: none;
}

body.desi-pop-art .hero::before {
  border: 4px solid #111;
  box-shadow: 12px 12px 0 var(--accent), -10px -10px 0 var(--secondary);
  background:
    radial-gradient(circle, rgba(255, 210, 28, .9) 0 .18rem, transparent .2rem) 0 0 / 1.25rem 1.25rem;
  mix-blend-mode: screen;
  opacity: .5;
}

body.tropical-coastal .hero::before {
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 2.2rem;
  box-shadow: inset 0 0 0 1rem rgba(255, 255, 255, .06);
  background:
    radial-gradient(14rem 8rem at 92% 16%, rgba(255, 216, 168, .38), transparent 72%),
    radial-gradient(18rem 11rem at 9% 82%, rgba(217, 245, 240, .34), transparent 70%);
}

body.rustic-boho .hero::before {
  border: 1px dashed rgba(244, 226, 201, .65);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 .55rem rgba(255, 247, 232, .08);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(217, 164, 65, .2) 47% 53%, transparent 54%),
    radial-gradient(circle at 8% 18%, rgba(255, 247, 232, .28), transparent 5rem);
}

body.desi-pop-art .hero-copy {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(1.1rem, 4vw, 2rem);
  color: #111;
  background: rgba(255, 249, 223, .9);
  border: 4px solid #111;
  box-shadow: 14px 14px 0 var(--secondary);
  transform: rotate(-1.2deg);
}

body.desi-pop-art .hero-copy::before {
  content: "SHAADI!";
  position: absolute;
  right: clamp(.5rem, 2vw, 1.4rem);
  top: -1.5rem;
  padding: .45rem .85rem;
  border: 3px solid #111;
  background: var(--accent);
  font-family: var(--font-display);
  transform: rotate(8deg);
}

body.tropical-coastal .hero-copy {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(7, 140, 150, .12));
  backdrop-filter: blur(8px);
}

body.tropical-coastal .hero-copy::before {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: 1rem;
  top: -3rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 1.1rem, rgba(255, 216, 168, .9) 1.15rem 1.5rem, transparent 1.55rem),
    conic-gradient(from 20deg, rgba(244, 127, 107, .8), rgba(255, 216, 168, .78), rgba(7, 140, 150, .72), rgba(244, 127, 107, .8));
  opacity: .82;
}

body.rustic-boho .hero-copy {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  color: #332315;
  background: rgba(255, 247, 232, .82);
  border-radius: .6rem;
  box-shadow: 0 24px 70px rgba(42, 28, 17, .32);
}

body.rustic-boho .hero-copy::before,
body.rustic-boho .hero-copy::after {
  content: "";
  position: absolute;
  width: 5.2rem;
  height: 1.3rem;
  background: rgba(217, 164, 65, .55);
  box-shadow: 0 1px 8px rgba(51, 35, 21, .12);
}

body.rustic-boho .hero-copy::before {
  left: 1.2rem;
  top: -.65rem;
  transform: rotate(-6deg);
}

body.rustic-boho .hero-copy::after {
  right: 1.2rem;
  bottom: -.65rem;
  transform: rotate(5deg);
}

.intro-strip {
  position: relative;
  width: min(980px, calc(100% - 2rem));
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(2rem, 5vw, 4rem);
}

body.desi-pop-art .intro-strip {
  border: 4px solid #111;
  border-radius: 46% 54% 47% 53% / 18% 21% 79% 82%;
  background: #fff9df;
  box-shadow: 12px 12px 0 var(--primary), -10px 10px 0 var(--accent);
}

body.desi-pop-art .intro-strip::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: -2rem;
  border-top: 2.2rem solid #111;
  border-right: 2rem solid transparent;
}

body.tropical-coastal .intro-strip {
  border-radius: 3rem;
  background:
    radial-gradient(10rem 5rem at 90% 20%, rgba(244, 127, 107, .2), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(217, 245, 240, .84));
  box-shadow: 0 24px 65px rgba(7, 63, 69, .12);
}

body.tropical-coastal .intro-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.8rem;
  height: 4rem;
  background:
    radial-gradient(50% 100% at 50% 0, rgba(7, 140, 150, .22) 0 48%, transparent 50%) 0 0 / 9rem 4rem repeat-x;
}

  body.rustic-boho .intro-strip {
    width: min(860px, calc(100% - 2rem));
    margin-left: max(1rem, calc((100% - 1120px) / 2));
    background: rgba(255, 247, 232, .82);
    border: 1px solid rgba(51, 35, 21, .2);
    box-shadow: 0 1.2rem 3rem rgba(80, 45, 22, .1);
    transform: rotate(-1deg);
    overflow: clip;
  }

  body.rustic-boho .intro-strip::before {
    content: "";
    position: absolute;
    inset: .45rem;
    border: 1px dashed rgba(51, 35, 21, .22);
    pointer-events: none;
  }

.events-section {
  position: relative;
  isolation: isolate;
}

.events-section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

body.desi-pop-art .events-section::before {
  inset: 7rem -3rem 3rem;
  background:
    linear-gradient(115deg, transparent 0 12%, rgba(0, 191, 208, .35) 12% 18%, transparent 18% 29%, rgba(255, 210, 28, .55) 29% 38%, transparent 38%),
    radial-gradient(circle at 85% 15%, #f20574 0 5rem, transparent 5.1rem);
  transform: skewY(-3deg);
}

body.tropical-coastal .events-section::before {
  left: 2rem;
  right: 2rem;
  top: 13rem;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(7, 140, 150, .45), transparent),
    repeating-linear-gradient(90deg, transparent 0 2.4rem, rgba(244, 127, 107, .55) 2.4rem 2.8rem);
}

body.rustic-boho .events-section::before {
  left: 4rem;
  right: 4rem;
  top: 14rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(111, 125, 70, .55) 0 .8rem, transparent .8rem 1.5rem);
}

body.desi-pop-art .event-track {
  gap: 1.4rem;
  transform: rotate(-1.2deg);
}

body.tropical-coastal .event-track {
  align-items: start;
  gap: 1.35rem;
}

body.rustic-boho .event-track {
  gap: 1.4rem;
}

body.desi-pop-art .event-card {
  min-height: 23rem;
  border-width: 4px;
  background:
    radial-gradient(circle at 90% 10%, var(--accent) 0 3.8rem, transparent 3.9rem),
    linear-gradient(145deg, #fff9df, #ffe1f0);
  clip-path: polygon(0 0, 93% 0, 100% 8%, 100% 100%, 7% 100%, 0 92%);
}

body.desi-pop-art .event-card:nth-child(2) {
  transform: rotate(2deg);
}

body.desi-pop-art .event-card:nth-child(3) {
  transform: rotate(-2deg);
}

body.desi-pop-art .event-number {
  text-shadow: 4px 4px 0 var(--accent);
}

body.tropical-coastal .event-card {
  min-height: 24rem;
  border-radius: 2rem 2rem 5rem 2rem;
  background:
    radial-gradient(8rem 5rem at 84% 12%, rgba(255, 216, 168, .78), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(217, 245, 240, .9));
}

body.tropical-coastal .event-card::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 .45rem, var(--secondary) .48rem .64rem, transparent .68rem),
    conic-gradient(var(--accent), var(--primary), var(--secondary), var(--accent));
  opacity: .8;
}

body.rustic-boho .event-card {
  min-height: 24rem;
  padding-top: 4rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, .96), rgba(250, 235, 211, .94));
  border-radius: .35rem;
  transform: rotate(-1.4deg);
}

body.rustic-boho .event-card:nth-child(2) {
  transform: rotate(1.5deg);
}

body.rustic-boho .event-card:nth-child(3) {
  transform: rotate(-.7deg);
}

body.rustic-boho .event-card::after {
  content: "";
  position: absolute;
  top: .9rem;
  left: 50%;
  width: 5rem;
  height: 1.2rem;
  background: rgba(217, 164, 65, .48);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 .2rem .8rem rgba(51, 35, 21, .1);
}

.event-card:hover {
  z-index: 2;
}

.event-card.is-tilting {
  box-shadow: 0 28px 70px rgba(0, 0, 0, .2), var(--shadow);
}

.shagun-section {
  position: relative;
  overflow: hidden;
}

.shagun-section::before,
.shagun-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.desi-pop-art .shagun-section::before {
  width: 18rem;
  height: 18rem;
  left: 4vw;
  top: 16%;
  background: repeating-radial-gradient(circle, var(--accent) 0 .45rem, #111 .5rem .72rem, transparent .78rem 1.1rem);
  clip-path: polygon(50% 0, 61% 31%, 95% 15%, 74% 48%, 100% 65%, 62% 66%, 50% 100%, 38% 66%, 0 65%, 26% 48%, 5% 15%, 39% 31%);
  opacity: .28;
}

body.desi-pop-art .shagun-section::after {
  content: "OPEN ME";
  right: 8vw;
  top: 24%;
  padding: .6rem .9rem;
  border: 3px solid #111;
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  transform: rotate(12deg);
}

body.tropical-coastal .shagun-section {
  background:
    radial-gradient(14rem 8rem at 12% 18%, rgba(244, 127, 107, .16), transparent 72%),
    linear-gradient(180deg, transparent, rgba(217, 245, 240, .7), transparent);
}

body.tropical-coastal .shagun-section::before {
  left: -8rem;
  right: -8rem;
  bottom: -3rem;
  height: 10rem;
  background:
    radial-gradient(60% 120% at 50% 0, rgba(7, 140, 150, .22) 0 52%, transparent 54%) 0 0 / 14rem 7rem repeat-x;
}

body.rustic-boho .shagun-section::before {
  inset: 10% 8%;
  border: 1px dashed rgba(51, 35, 21, .22);
  background:
    radial-gradient(circle at 15% 20%, rgba(169, 79, 45, .12) 0 .35rem, transparent .38rem),
    radial-gradient(circle at 83% 66%, rgba(111, 125, 70, .14) 0 .32rem, transparent .35rem);
}

body.rustic-boho .shagun-section::after {
  right: 10vw;
  bottom: 18%;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 1px solid rgba(169, 79, 45, .45);
  box-shadow: inset 0 0 0 .35rem rgba(169, 79, 45, .08);
  transform: rotate(-12deg);
}

body.desi-pop-art .shagun-panel {
  transform: rotate(1deg);
  border-width: 4px;
  background:
    radial-gradient(circle at 12% 25%, var(--secondary) 0 .45rem, transparent .5rem),
    radial-gradient(circle at 88% 75%, var(--primary) 0 .55rem, transparent .6rem),
    linear-gradient(135deg, #fff9df, #fff0c9);
}

body.tropical-coastal .shagun-panel {
  border-radius: 4rem;
  background:
    radial-gradient(12rem 6rem at 12% 10%, rgba(255, 216, 168, .68), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(217, 245, 240, .88));
}

body.rustic-boho .shagun-panel {
  border-radius: .4rem;
  background:
    linear-gradient(90deg, rgba(51, 35, 21, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(51, 35, 21, .04) 1px, transparent 1px),
    rgba(255, 247, 232, .92);
  background-size: 22px 22px;
  transform: rotate(.6deg);
}

.rsvp-section {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - 920px) / 2));
  margin-top: 1rem;
}

body.desi-pop-art .rsvp-section {
  background:
    linear-gradient(135deg, var(--primary) 0 18%, transparent 18% 22%, var(--secondary) 22% 38%, transparent 38%),
    #fff0c9;
  border-block: 4px solid #111;
}

body.tropical-coastal .rsvp-section {
  background:
    radial-gradient(16rem 9rem at 15% 30%, rgba(244, 127, 107, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 216, 168, .18), rgba(7, 140, 150, .16));
}

body.rustic-boho .rsvp-section {
  background:
    linear-gradient(135deg, rgba(111, 125, 70, .14), transparent 34%),
    rgba(255, 247, 232, .42);
  border-block: 1px solid rgba(51, 35, 21, .14);
}

.primary-btn,
.secondary-btn,
.event-action,
.shagun-trigger-btn,
.top-nav a,
.lang-switch {
  position: relative;
  overflow: hidden;
}

.lang-switch {
  position: fixed;
}

.primary-btn::after,
.secondary-btn::after,
.event-action::after,
.shagun-trigger-btn::after,
.top-nav a::after,
.lang-switch::after {
  content: "";
  position: absolute;
  inset: auto auto 50% 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  transform: translate(-50%, 50%);
  transition: width .34s ease, height .34s ease;
}

.primary-btn:hover::after,
.secondary-btn:hover::after,
.event-action:hover::after,
.shagun-trigger-btn:hover::after,
.top-nav a:hover::after,
.lang-switch:hover::after {
  width: 14rem;
  height: 14rem;
}

.is-pressed {
  transform: translateY(2px) scale(.98) !important;
}

.shagun-panel {
  position: relative;
  overflow: hidden;
}

.shagun-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, .34), transparent 11rem);
  opacity: 0;
  transition: opacity .25s ease;
}

.shagun-panel:hover::after {
  opacity: 1;
}

.envelope {
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .18);
  transition: transform .35s ease, box-shadow .35s ease;
}

.envelope:hover {
  transform: translateY(-6px) rotate(-1.5deg);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .22);
}

.payment-details.visible {
  animation: shagunReveal .36s ease both;
}

@keyframes shagunReveal {
  from {
    opacity: 0;
    transform: translateY(.75rem) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  body.desi-pop-art .hero-copy,
  body.rustic-boho .hero-copy,
  body.rustic-boho .intro-strip,
  body.rustic-boho .shagun-panel {
    transform: none;
  }

  body.desi-pop-art .event-track,
  body.desi-pop-art .event-card,
  body.rustic-boho .event-card,
  body.rustic-boho .event-card:nth-child(2),
  body.rustic-boho .event-card:nth-child(3) {
    transform: none;
  }

  .events-section::before {
    display: none;
  }

  .intro-strip {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 520px) {
  body.desi-pop-art .hero-copy::before,
  body.tropical-coastal .hero-copy::before,
  body.desi-pop-art .shagun-section::after {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 19vw, 5rem);
  }

  h2 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .event-card {
    min-height: 21rem;
  }
}

/* Transform pass for stronger theme distinction and guided mobile event flow. */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero {
  min-height: 100svh;
  width: 100%;
  margin: 0;
  padding-top: max(1rem, env(safe-area-inset-top));
  background-position: center top;
}

body > .hero:first-of-type {
  margin-top: calc(-1 * min(0px, 0px));
}

.hero::after {
  z-index: 0;
}

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

body.desi-pop-art .hero {
  background-position: center top;
}

body.tropical-coastal .hero {
  background-position: center top;
}

body.rustic-boho .hero {
  background-position: center top;
}

body.desi-pop-art .hero-copy {
  display: grid;
  gap: .65rem;
  transform-origin: center;
}

body.desi-pop-art .hero-copy::before {
  top: .85rem;
  right: 1rem;
  max-width: 8.5rem;
  font-size: clamp(.72rem, 1.5vw, 1rem);
  text-align: center;
}

body.desi-pop-art h1 {
  max-width: 8.5ch;
  text-wrap: balance;
}

body.desi-pop-art h1 em {
  display: inline-grid;
  place-items: center;
  width: .84em;
  height: .84em;
  margin-inline: .03em;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: .58em;
  transform: rotate(-8deg) translateY(-.08em);
}

body.desi-pop-art .hero-text {
  max-width: 31rem;
}

body.desi-pop-art .intro-strip {
  display: grid;
  place-items: center;
}

body.desi-pop-art .intro-strip p {
  max-width: 24rem;
  margin: 0;
  text-align: center;
}

body.desi-pop-art .intro-strip::before {
  content: "!";
  position: absolute;
  right: 2rem;
  bottom: 1.1rem;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border: 3px solid #111;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 2.2rem;
}

body.rustic-boho main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.rustic-boho main::before,
body.rustic-boho main::after {
  content: "";
  position: fixed;
  top: 18%;
  z-index: -1;
  width: clamp(5rem, 12vw, 10rem);
  height: clamp(20rem, 46vw, 34rem);
  opacity: .24;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(139, 90, 54, .62) 0 1.5rem, transparent 1.6rem),
    radial-gradient(ellipse at 42% 84%, rgba(169, 79, 45, .44) 0 1.1rem, transparent 1.2rem),
    radial-gradient(ellipse at 58% 88%, rgba(111, 125, 70, .46) 0 1rem, transparent 1.1rem),
    radial-gradient(ellipse at 35% 16%, rgba(111, 125, 70, .6) 0 1.2rem, transparent 1.25rem),
    radial-gradient(ellipse at 62% 28%, rgba(111, 125, 70, .55) 0 1.4rem, transparent 1.45rem),
    linear-gradient(90deg, transparent 48%, rgba(80, 45, 22, .5) 49% 51%, transparent 52%);
  background-size: 100% 100%;
  filter: blur(.1px);
}

body.rustic-boho main::before {
  left: .6rem;
  transform: rotate(-10deg);
}

body.rustic-boho main::after {
  right: .6rem;
  transform: rotate(10deg) scaleX(-1);
}

body.rustic-boho .events-section::after {
  content: "";
  position: absolute;
  right: min(5vw, 3rem);
  top: 3.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  opacity: .2;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 1.2rem, rgba(169, 79, 45, .8) 1.25rem 1.42rem, transparent 1.48rem),
    repeating-conic-gradient(from 8deg, rgba(111, 125, 70, .72) 0 10deg, transparent 10deg 20deg);
}

footer {
  position: relative;
  overflow: hidden;
  min-height: 9rem;
  align-items: center;
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

footer > * {
  position: relative;
  z-index: 1;
}

body.desi-pop-art footer {
  border-width: 4px;
  background:
    radial-gradient(circle at 12% 50%, var(--accent) 0 3.3rem, transparent 3.4rem),
    radial-gradient(circle at 84% 10%, var(--secondary) 0 4.2rem, transparent 4.3rem),
    repeating-linear-gradient(-20deg, transparent 0 .55rem, rgba(17, 17, 17, .08) .58rem .7rem),
    #fff9df;
  box-shadow: inset 0 8px 0 var(--primary);
}

body.desi-pop-art footer::after {
  content: "THANK YOU!";
  right: 2rem;
  bottom: 1.2rem;
  padding: .35rem .65rem;
  border: 3px solid #111;
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  transform: rotate(-5deg);
}

body.tropical-coastal footer {
  border-top: 0;
  background:
    radial-gradient(13rem 6rem at 12% 35%, rgba(244, 127, 107, .2), transparent 72%),
    radial-gradient(16rem 8rem at 92% 0%, rgba(7, 140, 150, .22), transparent 72%),
    linear-gradient(180deg, rgba(255, 216, 168, .22), rgba(217, 245, 240, .86));
}

body.tropical-coastal footer::before {
  left: -4rem;
  right: -4rem;
  top: -2rem;
  height: 5rem;
  background: radial-gradient(55% 100% at 50% 100%, rgba(7, 140, 150, .24) 0 48%, transparent 50%) 0 0 / 10rem 5rem repeat-x;
}

body.tropical-coastal footer::after {
  right: 2rem;
  bottom: 1rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 .7rem, rgba(244, 127, 107, .78) .75rem .95rem, transparent 1rem),
    conic-gradient(var(--accent), var(--primary), var(--secondary), var(--accent));
  opacity: .5;
}

body.rustic-boho footer {
  border-top: 1px solid rgba(51, 35, 21, .22);
  background:
    linear-gradient(90deg, rgba(51, 35, 21, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(51, 35, 21, .05) 1px, transparent 1px),
    radial-gradient(circle at 92% 30%, rgba(111, 125, 70, .16), transparent 9rem),
    rgba(255, 247, 232, .86);
  background-size: 22px 22px, 22px 22px, auto, auto;
}

body.rustic-boho footer::after {
  right: 1.8rem;
  bottom: 1rem;
  width: 7rem;
  height: 2.4rem;
  background: rgba(217, 164, 65, .42);
  transform: rotate(-7deg);
  box-shadow: 0 .3rem 1rem rgba(51, 35, 21, .1);
}

@media (max-width: 820px) {
  .hero {
    min-height: 100svh;
    padding: max(.55rem, env(safe-area-inset-top)) .65rem 1rem;
  }

  .top-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    order: 1;
    width: calc(100% - 4.7rem);
    padding-right: 0;
    margin-top: 3.4rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .8rem;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  body.desi-pop-art .hero-copy {
    padding: 1rem;
    box-shadow: 8px 8px 0 var(--secondary);
  }

  body.desi-pop-art .hero-copy::before {
    display: none;
  }

  body.desi-pop-art h1 {
    max-width: 7ch;
    font-size: clamp(3.15rem, 17vw, 5.4rem);
  }

  body.desi-pop-art .intro-strip {
    border-radius: 34% 66% 54% 46% / 13% 18% 82% 87%;
  }

  body.desi-pop-art .intro-strip p {
    max-width: 18rem;
    font-size: clamp(1.18rem, 6vw, 1.65rem);
    line-height: 1.12;
  }

  body.desi-pop-art .intro-strip::before {
    right: 1rem;
    bottom: .45rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
  }

  body.mobile-event-rail .events-section {
    width: 100%;
    max-width: none;
    height: calc(100svh + var(--rail-distance, 720px));
    padding: 0;
    margin: 0;
    overflow: hidden;
    contain: paint;
  }

  body.mobile-event-rail .events-section .section-heading {
    position: sticky;
    top: 0;
    z-index: 4;
    width: min(100%, 38rem);
    padding: 1.15rem 1rem .4rem;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--bg) 72%, transparent);
  }

  body.mobile-event-rail .events-section h2 {
    font-size: clamp(2.1rem, 13vw, 3.35rem);
  }

  body.mobile-event-rail .event-track {
    position: sticky;
    top: 8.6rem;
    display: flex;
    width: 100%;
    gap: 1rem;
    overflow: visible;
    padding: .7rem 1rem 1rem;
    scroll-snap-type: none;
    transform: translate3d(var(--rail-x, 0px), 0, 0);
    transition: transform .08s linear;
    will-change: transform;
  }

  body.mobile-event-rail .event-card {
    flex: 0 0 min(82vw, 335px);
    min-width: 0;
    min-height: min(58svh, 30rem);
  }

  body.mobile-event-rail .events-section::after {
    content: "Scroll to follow the cards";
    position: sticky;
    top: calc(100svh - 3.2rem);
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: .45rem .75rem;
    border: var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 800;
    box-shadow: var(--shadow);
    opacity: .9;
  }

  body.mobile-event-rail.rail-complete .events-section::after {
    opacity: 0;
  }

  body.rustic-boho main::before,
  body.rustic-boho main::after {
    position: absolute;
    top: 12rem;
    opacity: .18;
  }

  footer {
    min-height: 12rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .lang-switch {
    z-index: 30;
  }

  .top-nav {
    margin-top: 2.9rem;
    width: 100%;
  }

  .hero-text {
    font-size: .95rem;
    line-height: 1.45;
  }

  .chips {
    gap: .5rem;
  }

  .chips span {
    width: 100%;
    text-align: center;
  }

  body.mobile-event-rail .event-track {
    top: 8rem;
  }

  body.mobile-event-rail .event-card {
    flex-basis: 84vw;
  }

  footer::after {
    display: none;
  }
}

/* Final mobile simplification: no scroll-jacked rail, quieter hero controls, richer footer. */
.hero-actions .secondary-btn {
  display: none;
}

.hero-actions {
  margin-top: .4rem;
}

.hero-actions .primary-btn {
  min-width: min(18rem, 100%);
}

body.desi-pop-art .top-nav a {
  box-shadow: 4px 4px 0 rgba(0, 191, 208, .65);
}

body.tropical-coastal .top-nav a {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .24);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

body.rustic-boho .top-nav a {
  border-color: rgba(255, 247, 232, .28);
  background: rgba(51, 35, 21, .26);
  color: #fff7e8;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

footer {
  min-height: clamp(13rem, 24vw, 18rem);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .6rem 1rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 800;
  box-shadow: var(--shadow);
}

footer p {
  max-width: 20rem;
  font-weight: 800;
}

body.desi-pop-art footer {
  background:
    radial-gradient(circle at 16% 38%, var(--accent) 0 3.9rem, transparent 4rem),
    radial-gradient(circle at 88% 18%, var(--primary) 0 3.2rem, transparent 3.3rem),
    radial-gradient(circle at 78% 82%, var(--secondary) 0 5rem, transparent 5.1rem),
    repeating-radial-gradient(circle at 20% 80%, rgba(17, 17, 17, .16) 0 .08rem, transparent .1rem .5rem),
    linear-gradient(135deg, #fff9df, #ffe1f0);
}

body.desi-pop-art footer::before {
  content: "BLESSINGS SENT";
  left: clamp(1rem, 7vw, 5rem);
  top: 1rem;
  padding: .45rem .8rem;
  border: 3px solid #111;
  background: var(--accent);
  color: #111;
  font-family: var(--font-display);
  transform: rotate(-4deg);
}

body.desi-pop-art footer::after {
  display: block;
  right: clamp(1rem, 6vw, 4rem);
  bottom: clamp(1rem, 4vw, 2.2rem);
}

body.tropical-coastal footer {
  color: #073f45;
  background:
    radial-gradient(14rem 8rem at 15% 46%, rgba(244, 127, 107, .28), transparent 70%),
    radial-gradient(18rem 9rem at 86% 15%, rgba(7, 140, 150, .26), transparent 72%),
    radial-gradient(4rem 4rem at 72% 74%, rgba(255, 216, 168, .72), transparent 74%),
    linear-gradient(180deg, #fff7ea, #d9f5f0);
}

body.tropical-coastal footer a {
  border-color: rgba(7, 63, 69, .18);
  background: rgba(255, 255, 255, .74);
}

body.rustic-boho footer {
  min-height: clamp(16rem, 34vw, 24rem);
  color: #332315;
  border-top: 1px solid rgba(51, 35, 21, .2);
  background:
    radial-gradient(ellipse at 8% 45%, rgba(111, 125, 70, .28) 0 2.4rem, transparent 2.5rem),
    radial-gradient(ellipse at 16% 52%, rgba(169, 79, 45, .22) 0 1.6rem, transparent 1.7rem),
    radial-gradient(ellipse at 88% 42%, rgba(111, 125, 70, .24) 0 2.8rem, transparent 2.9rem),
    radial-gradient(ellipse at 78% 58%, rgba(139, 90, 54, .2) 0 1.7rem, transparent 1.8rem),
    linear-gradient(90deg, rgba(51, 35, 21, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(51, 35, 21, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 247, 232, .82), rgba(234, 211, 177, .9));
  background-size: auto, auto, auto, auto, 24px 24px, 24px 24px, auto;
}

body.rustic-boho footer::before {
  content: "";
  left: 50%;
  top: 1.2rem;
  width: min(24rem, 78vw);
  height: 2rem;
  background:
    radial-gradient(circle at 10% 50%, rgba(111, 125, 70, .75) 0 .35rem, transparent .38rem),
    radial-gradient(circle at 24% 50%, rgba(217, 164, 65, .72) 0 .3rem, transparent .33rem),
    radial-gradient(circle at 38% 50%, rgba(169, 79, 45, .65) 0 .34rem, transparent .37rem),
    linear-gradient(90deg, transparent, rgba(80, 45, 22, .42), transparent);
  transform: translateX(-50%);
}

body.rustic-boho footer::after {
  display: block;
  right: clamp(1rem, 8vw, 5rem);
  bottom: 1.2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 1px solid rgba(169, 79, 45, .35);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 1.6rem, rgba(169, 79, 45, .18) 1.7rem 2rem, transparent 2.1rem),
    repeating-conic-gradient(from 4deg, rgba(111, 125, 70, .32) 0 7deg, transparent 7deg 17deg);
  transform: rotate(-12deg);
}

@media (max-width: 820px) {
  .hero {
    justify-content: end;
  }

  .top-nav {
    position: absolute;
    top: max(.75rem, env(safe-area-inset-top));
    left: .75rem;
    right: 4.9rem;
    width: auto;
    margin-top: 0;
    order: initial;
  }

  .top-nav a {
    min-height: 2.35rem;
    padding: .48rem .7rem;
    font-size: .76rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
  }

  .hero-actions .primary-btn {
    width: auto;
    min-width: 10.5rem;
    min-height: 2.8rem;
    padding-inline: 1rem;
  }

  .events-section {
    padding-top: clamp(2.5rem, 10vw, 4rem);
    overflow: hidden;
  }

  .event-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: .7rem 1rem 1.6rem;
    margin-inline: -1rem;
    scrollbar-width: none;
    transform: none !important;
  }

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

  .event-card {
    flex: 0 0 min(82vw, 340px);
    min-width: 0;
    min-height: 24rem;
    scroll-snap-align: center;
  }

  .events-section::after {
    content: "Swipe for all three events";
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: .48rem .8rem;
    border: var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    font-size: .76rem;
    font-weight: 800;
    box-shadow: var(--shadow);
  }

  footer {
    padding: 4.5rem 1rem 3rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .top-nav {
    right: 4.7rem;
  }

  .hero-actions .primary-btn {
    width: 100%;
  }

  body.desi-pop-art footer::after,
  body.tropical-coastal footer::after,
  body.rustic-boho footer::after {
    display: block;
    opacity: .36;
  }
}

/* Refinement pass: remove odd Rustic blobs and repetitive Tropical scallops. */
body.mobile-event-rail .events-section,
body.mobile-event-rail .events-section .section-heading,
body.mobile-event-rail .event-track,
body.mobile-event-rail .events-section::after {
  all: revert-layer;
}

body.tropical-coastal .intro-strip::after,
body.tropical-coastal .shagun-section::before,
body.tropical-coastal footer::before {
  background: none;
}

body.tropical-coastal .intro-strip::before {
  content: "";
  position: absolute;
  right: 2rem;
  bottom: -1.2rem;
  width: 8rem;
  height: 4rem;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 216, 168, .85) 0 .8rem, transparent .85rem),
    radial-gradient(ellipse at 35% 40%, rgba(244, 127, 107, .55) 0 .38rem, transparent .42rem),
    linear-gradient(120deg, transparent 0 44%, rgba(7, 140, 150, .32) 45% 48%, transparent 49%);
  opacity: .8;
  transform: rotate(-7deg);
}

body.tropical-coastal .events-section {
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 216, 168, .18) 58% 62%, transparent 62%),
    radial-gradient(12rem 8rem at 8% 18%, rgba(244, 127, 107, .14), transparent 70%);
}

body.tropical-coastal .events-section::before {
  left: 1rem;
  right: 1rem;
  top: 12rem;
  height: 7rem;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(7, 140, 150, .42), rgba(244, 127, 107, .34), rgba(255, 216, 168, .58)),
    repeating-linear-gradient(105deg, transparent 0 1.4rem, rgba(255, 255, 255, .55) 1.45rem 1.52rem);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  opacity: .34;
  transform: rotate(-1deg);
}

body.tropical-coastal .event-card {
  background:
    radial-gradient(6rem 4rem at 88% 14%, rgba(255, 216, 168, .72), transparent 72%),
    linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(234, 250, 247, .9) 58%, rgba(255, 246, 232, .94));
}

body.tropical-coastal .event-card::after {
  border-radius: 38% 62% 46% 54% / 45% 42% 58% 55%;
  background:
    radial-gradient(circle at 50% 50%, #fff7ea 0 .45rem, transparent .48rem),
    conic-gradient(from 18deg, rgba(244, 127, 107, .8), rgba(255, 216, 168, .88), rgba(7, 140, 150, .62), rgba(244, 127, 107, .8));
}

body.tropical-coastal .shagun-section {
  background:
    radial-gradient(10rem 6rem at 18% 26%, rgba(244, 127, 107, .12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(217, 245, 240, .44) 44%, rgba(255, 247, 234, .7));
}

body.tropical-coastal .rsvp-section {
  background:
    linear-gradient(180deg, rgba(255, 247, 234, .1), rgba(217, 245, 240, .74)),
    radial-gradient(20rem 9rem at 50% 100%, rgba(7, 140, 150, .18), transparent 70%);
}

body.tropical-coastal .rsvp-section::before {
  content: "";
  position: absolute;
  inset: 1.2rem clamp(1rem, 8vw, 6rem);
  border: 1px solid rgba(7, 140, 150, .12);
  border-radius: 45% 55% 48% 52% / 8% 10% 90% 92%;
  pointer-events: none;
}

body.tropical-coastal footer {
  background:
    linear-gradient(180deg, #fff7ea 0%, #e8faf6 55%, #fff2df 100%),
    radial-gradient(8rem 4rem at 15% 55%, rgba(244, 127, 107, .2), transparent 70%);
}

body.tropical-coastal footer::before {
  content: "";
  left: clamp(1rem, 8vw, 5rem);
  top: 1.4rem;
  width: min(18rem, 70vw);
  height: 4.2rem;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(7, 140, 150, .38) 0 1rem, transparent 1.05rem),
    radial-gradient(ellipse at 30% 48%, rgba(244, 127, 107, .35) 0 .7rem, transparent .75rem),
    radial-gradient(ellipse at 50% 54%, rgba(255, 216, 168, .65) 0 .95rem, transparent 1rem),
    linear-gradient(90deg, rgba(7, 140, 150, .26), transparent);
  border-radius: 999px;
  transform: rotate(-3deg);
}

body.tropical-coastal footer::after {
  width: 7rem;
  height: 7rem;
  right: clamp(1rem, 9vw, 5rem);
  bottom: .8rem;
  border-radius: 46% 54% 49% 51% / 44% 40% 60% 56%;
  background:
    radial-gradient(circle at 50% 52%, #fff7ea 0 .7rem, transparent .75rem),
    conic-gradient(from 26deg, rgba(244, 127, 107, .34), rgba(255, 216, 168, .75), rgba(7, 140, 150, .32), rgba(244, 127, 107, .34));
  opacity: .75;
}

body.rustic-boho main::before,
body.rustic-boho main::after,
body.rustic-boho .events-section::after,
body.rustic-boho footer::after {
  background: none;
}

body.rustic-boho .events-section::after {
  content: "Swipe the field notes";
  position: relative;
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(51, 35, 21, .22);
  border-radius: .2rem;
  background:
    linear-gradient(90deg, rgba(217, 164, 65, .38), rgba(255, 247, 232, .92) 22% 78%, rgba(217, 164, 65, .38)),
    rgba(255, 247, 232, .92);
  color: #5f3923;
  font-family: var(--font-accent);
  font-size: .88rem;
  box-shadow: 0 .8rem 1.8rem rgba(80, 45, 22, .12);
  transform: rotate(-1deg);
}

body.rustic-boho .events-section::before {
  background:
    repeating-linear-gradient(90deg, rgba(111, 125, 70, .36) 0 .7rem, transparent .7rem 1.3rem),
    linear-gradient(90deg, transparent, rgba(169, 79, 45, .26), transparent);
}

body.rustic-boho footer {
  min-height: clamp(8.5rem, 18vw, 12rem);
  padding-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-bottom: clamp(1.8rem, 4vw, 2.5rem);
  background:
    linear-gradient(90deg, rgba(51, 35, 21, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(51, 35, 21, .045) 1px, transparent 1px),
    radial-gradient(18rem 8rem at 50% 118%, rgba(139, 90, 54, .14), transparent 72%),
    linear-gradient(180deg, rgba(255, 247, 232, .94), rgba(234, 211, 177, .9));
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body.rustic-boho footer::before {
  content: "";
  left: 50%;
  top: .8rem;
  width: min(18rem, 62vw);
  height: 2.5rem;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(80, 45, 22, .38) 6% 7%, transparent 7% 15%, rgba(80, 45, 22, .34) 15% 16%, transparent 16% 24%, rgba(80, 45, 22, .34) 24% 25%, transparent 25% 34%, rgba(80, 45, 22, .32) 34% 35%, transparent 35%),
    radial-gradient(ellipse at 16% 78%, rgba(217, 164, 65, .6) 0 .42rem, transparent .46rem),
    radial-gradient(ellipse at 28% 78%, rgba(111, 125, 70, .58) 0 .35rem, transparent .4rem),
    radial-gradient(ellipse at 40% 78%, rgba(169, 79, 45, .5) 0 .38rem, transparent .42rem);
  border-top: 1px solid rgba(80, 45, 22, .24);
  transform: translateX(-50%);
}

body.rustic-boho footer::after {
  content: "";
  display: block;
  left: clamp(1rem, 7vw, 5rem);
  bottom: .65rem;
  width: 5.5rem;
  height: 2.35rem;
  background:
    linear-gradient(90deg, rgba(111, 125, 70, .32), transparent),
    radial-gradient(ellipse at 20% 50%, rgba(111, 125, 70, .46) 0 .9rem, transparent .96rem),
    radial-gradient(ellipse at 46% 48%, rgba(217, 164, 65, .44) 0 .7rem, transparent .76rem),
    radial-gradient(ellipse at 72% 52%, rgba(169, 79, 45, .36) 0 .62rem, transparent .68rem);
  border-radius: 999px;
  opacity: .68;
  transform: rotate(-5deg);
}

@media (max-width: 820px) {
  body.tropical-coastal .events-section::after {
    content: "Swipe the shoreline";
    border-color: rgba(7, 63, 69, .18);
    background: rgba(255, 255, 255, .76);
    color: #073f45;
    box-shadow: 0 .9rem 2rem rgba(7, 63, 69, .12);
  }

  body.rustic-boho .events-section::after {
    content: "Swipe the field notes";
    position: relative;
  }
}

@media (max-width: 520px) {
  body.tropical-coastal footer::after,
  body.rustic-boho footer::after {
    opacity: .64;
  }
}
