:root {
  --ivory: #f8f4ec;
  --plum: #563b50;
  --plum-dark: #302331;
  --gold: #ad8952;
  --sage: #87988a;
  --sage-deep: #4f5f55;
  --blush: #ead5cf;
  --ink: #342c30;
  --muted: #81777a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --pad-x: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
  --content: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

html.scroll-locked,
html.scroll-locked body {
  overflow: hidden;
  height: 100%;
}
html.scroll-locked body {
  position: fixed;
  width: 100%;
  top: 0;
}
html.scroll-locked .side-nav {
  pointer-events: none;
  opacity: 0;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  padding-top: env(safe-area-inset-top);
}

.progress span {
  display: block;
  width: 0;
  height: 3px;
  background: var(--gold);
}


.side-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #f8f4ece8;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px #30233114;
}

.side-nav a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 50%;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: var(--plum);
  color: #fff;
  outline: none;
}

/* Shared type */
.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}

.gold-text {
  color: #c9a46a;
}

.gujarati {
  font-family: "Noto Sans Gujarati", sans-serif;
  letter-spacing: 0.04em;
}

.section-kicker {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
}

.divider-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0 auto 18px;
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 1px;
  background: #c7ae85;
  margin: 0 10px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  margin: 0 auto 22px;
}

.ornament i {
  height: 1px;
  width: 48px;
  background: #b99a68;
}

.section h2,
.welcome-section h2,
.details-countdown h2,
.details-venue h2 {
  font: 500 clamp(2.4rem, 8vw, 4.2rem) / 1.02 var(--serif);
  color: var(--plum);
  margin: 10px 0 20px;
}

.body-copy {
  max-width: 560px;
  margin: 0 auto;
  color: #71686a;
  font-size: 0.92rem;
  line-height: 1.85;
}

.names-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 18px;
  font: 500 clamp(2rem, 7vw, 3.4rem) var(--serif);
  color: var(--plum);
}

.names-lockup small {
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
}

.section {
  padding: 72px var(--pad-x) 72px var(--pad-r);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.section-heading {
  margin: 0 auto 40px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible,
.event-block.visible {
  opacity: 1;
  transform: none;
}

/* ===== DATETIME SYSTEM ===== */
.datetime {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8f6d3a;
}

.datetime-whisper {
  font: 500 1.05rem / 1.4 var(--serif);
  letter-spacing: 0.28em;
  color: #9a7a45;
  margin-top: 18px;
}

.datetime-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 28px auto 8px;
}

.datetime-hero .datetime-day {
  font: 500 clamp(2.2rem, 8vw, 3.2rem) / 1 var(--sans);
  color: var(--plum-dark);
  letter-spacing: 0.2em;
}

.datetime-hero .datetime-month {
  font: 600 0.78rem var(--sans);
  letter-spacing: 0.32em;
  color: #8f6d3a;
}

.datetime-stamp,
.datetime-section {
  font: 600 clamp(0.78rem, 2.4vw, 0.92rem) var(--sans);
  letter-spacing: 0.18em;
  color: #8a6834;
  margin-top: 8px;
}

.datetime-event {
  font: 600 1rem / 1.3 var(--sans);
  letter-spacing: 0.1em;
  color: #8a6834;
  margin: 4px 0 14px;
}

.datetime-on-dark {
  font: 600 clamp(0.85rem, 2.5vw, 1.05rem) var(--sans);
  letter-spacing: 0.16em;
  color: #e8c98a;
}

.datetime-ceremony {
  font: 600 0.85rem var(--sans);
  letter-spacing: 0.2em;
  color: #8a6834;
  margin: 10px 0 0;
  position: relative;
  z-index: 2;
}

.datetime-sangeet {
  font: 600 1rem / 1.3 var(--sans);
  letter-spacing: 0.1em;
  color: #8a6834;
  margin-top: 18px;
}

/* ===== SECTION FLORALS — Option B lotus + gold vine ===== */
.section-florals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floral-side {
  position: absolute;
  top: 0;
  height: 100%;
  width: min(36vw, 280px);
  object-fit: cover;
  opacity: 0.92;
  animation: floralDrift 14s ease-in-out infinite;
}

.floral-side-left {
  left: 0;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 88%);
  mask-image: linear-gradient(to right, #000 38%, transparent 88%);
}

.floral-side-right {
  right: 0;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to left, #000 38%, transparent 88%);
  mask-image: linear-gradient(to left, #000 38%, transparent 88%);
  animation-delay: -5s;
}

@keyframes floralDrift {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== TEASER — sealed envelope ===== */
.teaser-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding:
    max(72px, calc(env(safe-area-inset-top) + 56px))
    var(--pad-x)
    64px
    var(--pad-r);
  background:
    radial-gradient(ellipse at 50% 42%, #fff8ee, transparent 55%),
    radial-gradient(ellipse at 12% 85%, #ead5cf66, transparent 42%),
    radial-gradient(ellipse at 88% 15%, #dfe4da55, transparent 40%),
    linear-gradient(180deg, #faf6ef, var(--ivory));
  overflow: hidden;
}

.teaser-section .section-florals {
  z-index: 1;
}

.teaser-watermark {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
}

.teaser-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Left bias + a bit lower so full faces (incl. chin) show; fill page */
  object-position: 42% 16%;
  opacity: 0.3;
  filter: saturate(0.92) contrast(0.98);
  /* Gentler side fade so florals blend without eating faces */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.teaser-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.envelope {
  position: relative;
  width: min(92vw, 400px);
  height: 280px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1100px;
}

.envelope-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  height: 28px;
  background: radial-gradient(ellipse at center, #30233133, transparent 70%);
  filter: blur(4px);
}

.envelope-pocket {
  position: absolute;
  inset: 62px 0 0;
  background:
    linear-gradient(145deg, #f0e2cd 0%, #ddc9ab 42%, #cbb289 100%);
  border-radius: 0 0 14px 14px;
  box-shadow:
    inset 0 1px 0 #fff6e855,
    0 22px 48px #30233124;
  border: 1px solid #c4ad8a88;
  border-top: 0;
}

.envelope-pocket::before,
.envelope-pocket::after {
  content: "";
  position: absolute;
  top: 0;
  width: 54%;
  height: 100%;
}

.envelope-pocket::before {
  left: 0;
  background: linear-gradient(135deg, #e6d5bb, #d0ba98);
  clip-path: polygon(0 0, 100% 40%, 0 100%);
  opacity: 0.7;
}

.envelope-pocket::after {
  right: 0;
  background: linear-gradient(225deg, #e6d5bb, #d0ba98);
  clip-path: polygon(100% 0, 0 40%, 100% 100%);
  opacity: 0.7;
}

.envelope-card {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 70px;
  height: 156px;
  background: linear-gradient(180deg, #fffdf9, #f7f0e4);
  border-radius: 6px;
  box-shadow: 0 10px 22px #30233118;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  transform: translateY(48px);
  opacity: 0.25;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  z-index: 1;
}

.envelope-card-ornament {
  color: #c9a46a;
  font-size: 1.15rem;
  opacity: 0.75;
  line-height: 1;
  transition: opacity 0.35s ease;
}

.envelope-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 148px;
  background: linear-gradient(180deg, #f6ead6, #e0cbaa 70%, #d4bd99);
  clip-path: polygon(0 0, 50% 82%, 100% 0);
  transform-origin: top center;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  filter: drop-shadow(0 8px 14px #30233122);
}

.envelope-seal {
  position: absolute;
  left: 50%;
  top: 112px;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #e2b56a, #a56b2e 62%, #7a4c1f);
  color: #fff6e8;
  box-shadow:
    0 0 0 4px #c9a46a55,
    0 10px 22px #5a3a1828;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.envelope-seal i {
  font-style: normal;
  font-size: 1.55rem;
}

/* Pulsing glow on seal to invite clicking */
@keyframes sealGlow {
  0%, 100% {
    box-shadow: 0 0 0 4px #c9a46a55, 0 10px 22px #5a3a1828;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px #c9a46a1a, 0 10px 32px #5a3a1838, 0 0 42px #c9a46a30;
    transform: translate(-50%, -50%) scale(1.09);
  }
}

.envelope-seal {
  animation: sealGlow 2.4s ease-in-out infinite;
}

.envelope.is-open .envelope-seal {
  animation: none;
}

/* Subtle float on envelope to show it's interactive */
@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.envelope:not(.is-open) {
  animation: envelopeFloat 3.5s ease-in-out infinite;
}

.envelope:hover:not(.is-open) {
  animation: none;
  transform: translateY(-8px) scale(1.03);
  transition: transform 0.3s ease;
}

.envelope-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 5;
  font: italic 500 clamp(1.55rem, 5.2vw, 2.05rem) / 1.1 var(--serif);
  color: #6b3f55;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff8eeaa;
}

.envelope.is-open .envelope-flap {
  transform: rotateX(180deg);
}

.envelope.is-open .envelope-card {
  transform: translateY(-96px);
  opacity: 1;
  z-index: 6;
}

.envelope.is-open .envelope-card-ornament {
  opacity: 0.55;
}

.envelope.is-open .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  pointer-events: none;
}

.envelope.is-open .envelope-label {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.envelope-hint {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #8a5c2e;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-6px); opacity: 1; }
}

body:not(.envelope-open) .envelope-hint::before {
  content: "↑";
  display: block;
  font-size: 1.5rem;
  letter-spacing: 0;
  font-weight: 700;
  color: #8a5c2e;
  animation: hintBounce 1.6s ease-in-out infinite;
}

.next-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 44px auto 0;
  min-height: 48px;
  padding: 10px 8px;
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: #8a6834;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
}

.next-page span {
  display: inline-block;
  animation: bob 1.7s ease-in-out infinite;
  font-size: 1.1rem;
  font-weight: 300;
}

@keyframes bob {
  50% { transform: translateY(6px); }
}

/* ===== WELCOME ===== */
.welcome-section {
  position: relative;
  text-align: center;
  padding: 72px var(--pad-x) 88px var(--pad-r);
  background:
    radial-gradient(ellipse at 20% 10%, #ead5cf44, transparent 40%),
    radial-gradient(ellipse at 80% 60%, #dfe4da33, transparent 40%),
    var(--ivory);
  overflow: hidden;
}

.welcome-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.invocation-stack {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.invocation-stack .gujarati {
  margin: 0;
  font-size: 0.95rem;
  color: #b08a4f;
}

.welcome-section h1 {
  font: 500 clamp(2.6rem, 10.5vw, 5.2rem) / 0.92 var(--serif);
  margin: 18px 0 0;
  color: var(--plum-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.welcome-section h1 em {
  font-size: 0.42em;
  color: var(--gold);
  font-weight: 400;
  margin: 0;
}

.hashtag {
  margin: 0;
  font: 600 1.36rem / 1.2 var(--serif);
  color: #5a3d48;
  letter-spacing: 0.08em;
}

.teaser-hashtag {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s ease 0.35s, transform 0.55s ease 0.35s;
  pointer-events: none;
  white-space: nowrap;
}

.teaser-hashtag.is-visible {
  opacity: 1;
  transform: none;
}

/* PPT-style zoom-in transition: content rockets toward viewer then fades */
.teaser-section.is-zooming .teaser-inner {
  transform: scale(4);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.6, 0, 1, 0.5), opacity 0.65s ease-in 0.45s;
}

.hero-subtitle {
  font: italic clamp(1rem, 3.5vw, 1.25rem) / 1.55 var(--serif);
  color: #6d6266;
  margin: 18px 0 8px;
}

.welcome-copy {
  margin-top: 28px;
}

.blessing-families {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin: 28px auto 8px;
  padding: 22px 8px 20px;
  border-top: 1px solid #d8c7aa66;
  border-bottom: 1px solid #d8c7aa66;
}

.family-line {
  text-align: center;
  width: 100%;
}

.family-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1;
  margin: 0;
  opacity: 0.85;
}

.family-of {
  font: 500 clamp(0.95rem, 2.8vw, 1.12rem) / 1.45 var(--serif);
  margin: 0;
  color: #4a3d42;
  white-space: nowrap;
}

.relation-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.relation-list li {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.relation-role,
.relation-name {
  font-size: 1.02rem;
  font-weight: 500;
  color: #4a3d42;
}

.relation-sep {
  color: var(--gold);
  font-size: 0.95rem;
}

/* ===== CELEBRATIONS ===== */
.celebrations {
  background: linear-gradient(165deg, #efe6d9, #f8f2e9 50%, #ebe2d5);
}

.meal-note {
  position: relative;
  z-index: 1;
  margin: 8px auto 36px;
  max-width: 920px;
  width: min(94%, 920px);
  padding: 14px 36px;
  font: 600 0.86rem / 1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b5330;
  border-top: 1px solid #c9b48a66;
  border-bottom: 1px solid #c9b48a66;
  text-align: center;
}

.timeline + .meal-note {
  margin-top: -8px;
  margin-bottom: 40px;
}

.sangeet-feature + .meal-note,
.wedding-caption + .meal-note {
  margin-top: 36px;
  margin-bottom: 8px;
}

.timeline {
  max-width: 920px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.event-block {
  padding: 16px 12px 28px;
  border-bottom: 1px solid #d8cbb855;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-block:last-child {
  border-bottom: 0;
}

.event-mark {
  display: block;
  font: 1.6rem var(--serif);
  color: var(--gold);
  margin-bottom: 6px;
}

.event-icon {
  display: block;
  width: min(72%, 190px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 14px;
  background: transparent;
}

.event-block h3 {
  font: 500 clamp(2.15rem, 5vw, 2.85rem) var(--serif);
  color: var(--plum);
  margin: 0 0 8px;
}

.event-block p:not(.datetime) {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #746a6c;
  margin: 0 auto;
  max-width: 420px;
}

/* Sangeet — redesigned feature */
.sangeet-feature {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 980px;
  margin: 8px auto 0;
  background:
    linear-gradient(145deg, #f4efe4 0%, #ebe3d4 48%, #e2d8c6 100%);
  overflow: hidden;
}

.sangeet-media {
  position: relative;
  min-height: 320px;
  max-height: 440px;
  overflow: hidden;
}

.sangeet-media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center 26%;
  filter: saturate(0.94);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.sangeet-note {
  position: absolute;
  color: #c9a46a;
  font-size: 1.8rem;
  opacity: 0.75;
  animation: noteDrift 5.5s ease-in-out infinite;
  text-shadow: 0 4px 12px #30233122;
}

.sangeet-note.n1 { top: 14%; left: 8%; animation-delay: 0s; }
.sangeet-note.n2 { top: 28%; right: 10%; font-size: 2.2rem; animation-delay: -1.5s; }
.sangeet-note.n3 { bottom: 22%; left: 14%; font-size: 1.5rem; animation-delay: -2.8s; }

@keyframes noteDrift {
  0%,
  100% { transform: translateY(0) rotate(-6deg); opacity: 0.55; }
  50% { transform: translateY(-12px) rotate(8deg); opacity: 0.9; }
}

.sangeet-panel {
  position: relative;
  text-align: left;
  padding: 28px 28px 36px;
  background:
    radial-gradient(ellipse at 100% 0%, #dfe4da66, transparent 45%),
    linear-gradient(180deg, #f7f2e8, #efe7da);
}

.sangeet-panel::before {
  content: "SANGEET";
  position: absolute;
  right: -4px;
  top: 10px;
  font: 600 clamp(3rem, 12vw, 5.5rem) / 0.85 var(--serif);
  color: #c9b89a33;
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: rotate(90deg);
  transform-origin: top right;
}

.sangeet-kicker {
  margin: 0 0 8px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: #8a6834;
  text-transform: uppercase;
}

.sangeet-panel h3 {
  font: 500 clamp(2.8rem, 8vw, 4rem) / 0.95 var(--serif);
  color: var(--plum-dark);
  margin: 0 0 14px;
}

.sangeet-lead {
  font: italic 1.15rem / 1.5 var(--serif);
  color: #5c5054;
  margin: 0 0 10px;
  max-width: 340px;
}

.sangeet-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #746a6c;
  margin: 0;
  max-width: 340px;
}

/* ===== WEDDING ===== */
.wedding-section {
  background:
    radial-gradient(ellipse at 50% 28%, #eadbd0aa, transparent 50%),
    radial-gradient(ellipse at 10% 80%, #f0d8c844, transparent 35%),
    radial-gradient(ellipse at 90% 70%, #e8d5b844, transparent 35%),
    var(--ivory);
}

.wedding-stage {
  position: relative;
  z-index: 1;
  max-width: min(620px, 94vw);
  margin: 0 auto 12px;
}

.wedding-motif {
  position: absolute;
  inset: -4% 8% auto;
  height: 42%;
  border: 1px solid #d7c5a744;
  border-radius: 50% 50% 46% 46%;
  pointer-events: none;
}

.wedding-motif::before,
.wedding-motif::after {
  content: "❧";
  position: absolute;
  top: 40%;
  color: #c7a875;
  font: 1.8rem var(--serif);
  opacity: 0.55;
}

.wedding-motif::before {
  left: -8%;
  transform: rotate(-30deg);
}

.wedding-motif::after {
  right: -8%;
  transform: rotate(150deg);
}

.wedding-art {
  position: relative;
  isolation: isolate;
}

.art-halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #e8d8ca 0%, #f3e9df 55%, transparent 72%);
  top: 8%;
  left: 11%;
  z-index: 0;
}

.wedding-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(68vh, 640px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  mask-image: radial-gradient(ellipse 70% 76% at 50% 46%, #000 52%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 70% 76% at 50% 46%, #000 52%, transparent 76%);
  filter: drop-shadow(0 18px 28px #59473922);
}

.wedding-caption {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 12px 8px 0;
  position: relative;
  z-index: 2;
}

.wedding-caption h3 {
  font: 500 clamp(2.1rem, 5vw, 2.9rem) / 1.05 var(--serif);
  color: var(--plum);
  margin: 10px 0 14px;
}

.wedding-caption p:not(.eyebrow):not(.datetime) {
  color: #786f70;
  line-height: 1.8;
  font-size: 0.92rem;
  margin: 0 auto 20px;
}

/* ===== DETAILS (countdown + venue) ===== */
.details-section {
  position: relative;
  overflow: hidden;
}

.details-countdown {
  text-align: center;
  padding: 80px var(--pad-x) 56px;
  background: var(--plum-dark);
  color: var(--ivory);
  position: relative;
  z-index: 1;
}

.details-countdown h2 {
  color: #f6eee2;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 1fr));
  justify-content: center;
  align-items: center;
  gap: 8px 6px;
  max-width: 420px;
  margin: 36px auto 16px;
}

.countdown i {
  display: none;
}

.countdown div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.countdown strong {
  font: 500 clamp(1.8rem, 8vw, 3.4rem) var(--serif);
  color: #e5c991;
}

.countdown span {
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: #d6c9b7;
}

.countdown-until {
  margin-top: 8px;
}

.details-venue {
  text-align: center;
  padding: 72px var(--pad-x) 88px;
  background: #f0e9df;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 420px;
}

.details-venue .section-florals {
  z-index: 0;
}

.details-venue .floral-side {
  width: min(38vw, 260px);
  opacity: 0.95;
}

.details-venue .section-kicker,
.details-venue .eyebrow,
.details-venue h2,
.details-venue .venue-block,
.details-venue .next-page {
  position: relative;
  z-index: 1;
}

.theme-venue {
  --flower: #c9a46a;
}

.venue-block {
  max-width: 480px;
  margin: 28px auto 0;
  padding: 12px 8px 0;
}

.venue-mark {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 0 8px;
}

.venue-block h3 {
  font: 500 clamp(1.8rem, 5vw, 2.2rem) var(--serif);
  color: var(--plum);
  margin: 0 0 8px;
}

.venue-block p:not(.datetime) {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.venue-block .datetime {
  margin: 22px 0 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--plum);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
  outline: none;
}

/* ===== RSVP ===== */
.rsvp-section {
  background: linear-gradient(160deg, #f1e9de, #faf6ee);
}

.rsvp-label {
  color: var(--gold);
  font: 500 clamp(2.4rem, 8vw, 3.8rem) / 1 var(--serif);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.contact-list {
  max-width: 560px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.contact-block {
  padding: 10px 4px;
}

.contact-block strong {
  display: block;
  font: 500 1.45rem var(--serif);
  color: var(--plum);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 72px var(--pad-x) max(56px, calc(env(safe-area-inset-bottom) + 72px)) var(--pad-r);
  background: var(--plum-dark);
  color: var(--ivory);
}

.footer-flower {
  font-size: 1.8rem;
  color: #c6a66e;
  margin-bottom: 16px;
}

.footer .eyebrow {
  font-size: 0.55rem;
}

.footer h2 {
  font: 500 clamp(2.6rem, 10vw, 5rem) var(--serif);
  margin: 14px 0 0;
  color: #f8f0e5;
}

.footer h2 em {
  color: #c9a976;
  font-weight: 400;
}

.footer-hashtag {
  margin: 12px 0;
  color: #e4c998;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.footer .datetime {
  margin: 0;
}

.footer-rule {
  height: 1px;
  background: #b99a6855;
  max-width: 160px;
  margin: 22px auto;
}

.footer-gujarati {
  font-size: 0.9rem;
  color: #d6bb8d;
}

/* ===== TABLET+ ===== */
@media (min-width: 640px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 40px 52px;
  }

  .event-block {
    border-bottom: 0;
    padding: 18px 16px 24px;
  }

  .event-icon {
    width: min(78%, 210px);
    margin: 0 auto 16px;
  }

  .countdown {
    max-width: 560px;
    gap: 12px 20px;
    grid-template-columns: auto auto auto auto auto auto auto;
  }

  .countdown i {
    display: block;
    color: #a98c60;
    font-style: normal;
    font-size: 1.4rem;
  }

  .countdown div:nth-child(1) { grid-column: 1; }
  .countdown i:nth-child(2) { grid-column: 2; }
  .countdown div:nth-child(3) { grid-column: 3; }
  .countdown i:nth-child(4) { grid-column: 4; }
  .countdown div:nth-child(5) { grid-column: 5; }
  .countdown i:nth-child(6) { grid-column: 6; }
  .countdown div:nth-child(7) { grid-column: 7; }

  .contact-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }

  .contact-block {
    border-bottom: 0;
  }
}

@media (min-width: 768px) {
  .section,
  .welcome-section,
  .details-venue {
    padding-left: max(28px, calc((100vw - var(--content)) / 2));
    padding-right: max(28px, calc((100vw - var(--content)) / 2));
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .blessing-families {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
    padding: 26px 16px 24px;
    max-width: 880px;
  }

  .family-line {
    flex: 1 1 0;
    min-width: 0;
  }

  .family-sep {
    flex: 0 0 auto;
    font-size: 0.95rem;
  }

  .family-of {
    font-size: 1.08rem;
  }

  .sangeet-feature {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    min-height: 440px;
  }

  .sangeet-media {
    min-height: 100%;
    max-height: none;
  }

  .sangeet-media img {
    max-height: none;
    height: 100%;
    min-height: 440px;
    mask-image: linear-gradient(to right, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%);
  }

  .sangeet-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
  }

  .sangeet-panel::before {
    transform: none;
    right: 18px;
    top: auto;
    bottom: 12px;
    font-size: clamp(3.5rem, 6vw, 5rem);
    opacity: 0.55;
  }

  .floral-side {
    width: min(28vw, 250px);
  }

  .side-nav {
    left: max(12px, env(safe-area-inset-left));
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    gap: 8px;
  }

  .side-nav a {
    width: 28px;
    height: 28px;
    background: #f8f4ecbb;
    border: 1px solid #b99a6844;
    font-size: 0.48rem;
  }
}

@media (max-width: 700px) {
  .floral-side {
    width: min(30vw, 130px);
    opacity: 0.75;
  }

  .welcome-inner,
  .section-heading,
  .wedding-caption,
  .sangeet-feature,
  .venue-block,
  .contact-list,
  .teaser-inner,
  .body-copy {
    position: relative;
    z-index: 1;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .teaser-section {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .envelope {
    height: 220px;
    width: min(70vw, 320px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .event-block {
    opacity: 1;
    transform: none;
  }
}
