/* =====================================================================
   Rupesh & Aayushi — Wedding PWA
   Festive editorial system · warm cream · sindoor maroon · marigold · gold
   ===================================================================== */

:root {
  --bg: #fdf6ec;
  --tint: #f9ecd8;
  --surface: #fffcf6;
  --field: #fffaf2;
  --ink: #2b2622;
  --ink-2: #4c433c;
  --muted: #6f655b;
  --line: #eddcc4;
  --line-strong: #e0c8a4;
  --gold: #a9844c;
  --gold-soft: #f3eadb;
  --maroon: #7b1830;
  --maroon-2: #9a2340;
  --marigold: #e8871e;
  --danger: #a24b3c;
  --ok: #4f7a5a;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(43, 38, 34, .04), 0 12px 32px -16px rgba(43, 38, 34, .18);
  --shadow-lg: 0 2px 4px rgba(43, 38, 34, .03), 0 40px 80px -40px rgba(123, 24, 48, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 48px);
  --sindoor: #8e1b2c;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --toran-cell: clamp(36px, min(4.2vw, 7vh), 62px); /* limited by height too, for wide-but-short laptop screens */

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--maroon-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.center { text-align: center; }
.note { font-size: .88rem; color: var(--muted); margin: 1.25rem 0 0; }

.eyebrow {
  font-size: .74rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 .9rem;
}
.amp, .hero__amp { font-family: var(--serif); font-style: italic; color: var(--gold); font-weight: 400; }
.script-lg { font-family: var(--script); font-size: 3rem; line-height: 1.1; color: var(--gold); margin: 0 0 .4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 24px -14px rgba(123, 24, 48, .9); }
.btn--primary:hover { background: var(--maroon-2); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 1.1rem; font-size: .68rem; letter-spacing: .14em; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 1.25rem; color: var(--muted); font-size: .85rem; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* =====================================================================
   NAV — floating frosted pill (legible over the artwork)
   ===================================================================== */
.nav {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: calc(14px + env(safe-area-inset-top));
  display: flex; justify-content: center; padding: 0 12px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px);
  padding: 6px 6px 6px 20px;
  background: rgba(250, 247, 242, .78);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(169, 132, 76, .2);
  border-radius: 999px;
  box-shadow: 0 8px 30px -14px rgba(123, 24, 48, .35);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.nav.is-scrolled .nav__pill { background: rgba(255, 253, 249, .92); }
.nav__brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500; letter-spacing: .06em;
  color: var(--ink); text-decoration: none;
}
.nav__brand span { font-family: var(--script); color: var(--gold); margin: 0 .1em; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 26px); }
.nav__links a {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  color: var(--ink-2); text-decoration: none; transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta, .nav__install {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 1.1rem;
  border-radius: 999px; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.nav__cta { background: var(--maroon); color: #fff; }
.nav__cta:hover { background: var(--maroon-2); }
.nav__install { background: none; border: 1px solid var(--line-strong); color: var(--ink); }
body.is-admin .nav__links, body.is-admin .nav__cta, body.is-admin .nav__install { display: none; }
body.is-admin .nav__pill { padding-right: 20px; }

/* =====================================================================
   HERO — marble artwork; an ivory veil keeps the copy crisp
   ===================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--toran-cell) * 1.9 + clamp(8px, 3vh, 36px)) var(--gutter) clamp(28px, 6vh, 56px);
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #fffaf0 0%, #fcefdc 55%, #f5dcb9 100%);
}
.hero__bg { /* the marble artwork, faded and warmed so it reads as texture */
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/marble-wide-960.webp") center / cover no-repeat;
  background-image: image-set(url("assets/marble-wide-960.webp") 1x, url("assets/marble-wide.webp") 2x);
  opacity: .3;
  filter: sepia(.6) saturate(1.6) hue-rotate(-10deg) brightness(1.06);
}
.hero::before { /* warm veil keeps the copy crisp */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 40% 60% at 50% 54%, rgba(255, 250, 240, .9) 0%, rgba(255, 250, 240, .7) 55%, rgba(255, 250, 240, 0) 100%);
}
.hero__mandala {
  position: absolute; left: 50%; top: 52%; z-index: -1;
  width: min(125%, 680px); aspect-ratio: 1; translate: -50% -50%;
  color: var(--gold); opacity: .11; pointer-events: none;
  animation: spin 160s linear infinite;
}
.hero__names { cursor: pointer; }
.hero__inner::before { /* soft cream glow so the copy never fights the artwork */
  content: ""; position: absolute; inset: -4% -12%; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 251, 243, .92) 0%, rgba(255, 251, 243, .78) 55%, rgba(255, 251, 243, 0) 100%);
}
/* a faint halo around every line keeps letters crisp over petals & mandala lines */
.hero__inner p, .hero__inner h1, .hero__date span { text-shadow: 0 0 10px rgba(255, 251, 243, .95), 0 0 3px rgba(255, 251, 243, .95); }
.hero__elephant {
  position: absolute; bottom: 3%; z-index: 1;
  width: clamp(104px, 14vw, 230px); aspect-ratio: 130 / 104;
  filter: drop-shadow(0 8px 10px rgba(91, 45, 20, .22));
  animation: bob 3.6s ease-in-out infinite alternate;
}
.hero__elephant--l { left: clamp(10px, 4vw, 64px); }
.hero__elephant--r { right: clamp(10px, 4vw, 64px); scale: -1 1; animation-delay: -1.8s; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -6px; } }
@keyframes spin { to { rotate: 360deg; } }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 560px; }
.hero__bless { margin: 0 0 clamp(.6rem, 2vh, 1.4rem); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink); }
.hero__presence { margin: clamp(.9rem, 2.4vh, 1.4rem) auto 0; max-width: 30em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.04rem, 1.3vw, 1.18rem); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.hero__names {
  display: flex; flex-direction: column; align-items: center;
  font-weight: 400; font-size: clamp(2rem, min(5.2vw, 6.9vh), 5.4rem);
  letter-spacing: .1em; text-transform: uppercase; line-height: 1;
}
.hero__amp {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: .62em; text-transform: none; letter-spacing: 0; line-height: 1;
  margin: .12em 0 .16em;
}
.hero__invite {
  margin: clamp(.9rem, 2.6vh, 1.6rem) auto 0; max-width: 24em;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.06rem, min(1.4vw, 2.4vh), 1.32rem);
  color: var(--ink); line-height: 1.5; text-wrap: balance;
}
.hero__date {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin: clamp(1rem, 3vh, 1.8rem) auto 0; max-width: 360px;
}
.hero__date-side {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2);
  padding: .55rem 0; border-block: 1px solid var(--line-strong);
}
.hero__date-day {
  font-family: var(--serif); font-size: clamp(2.2rem, min(4vw, 6.4vh), 3.4rem); line-height: 1; color: var(--gold);
  padding: 0 1.1rem;
}
.hero__venue {
  margin: clamp(.7rem, 1.8vh, 1.1rem) 0 0;
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(1.2rem, 3.6vh, 2.2rem); }

/* =====================================================================
   COUNTDOWN STRIP — deep teal band
   ===================================================================== */
.strip {
  position: relative; isolation: isolate; color: #fbf6ee;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, #a3304a 0%, var(--maroon) 60%, #5e1023 100%);
  box-shadow: inset 0 3px 0 #c9a25a, inset 0 -3px 0 #c9a25a;
}
.strip::before { /* gold buti pattern */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(226, 184, 98, .28) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__cell { padding: clamp(26px, 4vw, 44px) 8px; text-align: center; }
.strip__cell + .strip__cell { border-left: 1px solid rgba(255, 255, 255, .12); }
.strip__cell span {
  display: block; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: #fbf6ee;
}
.strip__cell small { display: block; margin-top: .6rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: #d9c19a; }
.strip__done { grid-column: 1 / -1; padding: 32px 0; text-align: center; font-family: var(--script); font-size: 2.6rem; color: #d9c19a; }

/* =====================================================================
   SECTIONS — numbered editorial layout
   ===================================================================== */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section--tint { background: var(--tint); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.label { position: sticky; top: 110px; }
.label__num {
  display: flex; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 500; letter-spacing: .3em; color: var(--gold); margin-bottom: 1rem;
}
.label__num::after { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: .6; }
.label h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: .01em; text-wrap: balance; }
.label__meta { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.label--inline { position: static; margin-bottom: 2rem; }

/* Section backdrops — artwork softened by a veil so content stays legible */
.section--festive, .section--marble { position: relative; isolation: isolate; overflow: hidden; }
.section--festive {
  background-color: #fcf0de;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 20c5 7 5 12 0 17-5-5-5-10 0-17z' fill='none' stroke='%23c9a25a' stroke-opacity='.35'/%3E%3Ccircle cx='36' cy='42' r='1.6' fill='%23c9a25a' fill-opacity='.4'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%23e8871e' fill-opacity='.3'/%3E%3Ccircle cx='72' cy='0' r='2' fill='%23e8871e' fill-opacity='.3'/%3E%3Ccircle cx='0' cy='72' r='2' fill='%23e8871e' fill-opacity='.3'/%3E%3Ccircle cx='72' cy='72' r='2' fill='%23e8871e' fill-opacity='.3'/%3E%3C/svg%3E");
}
.section--marble { background-color: #fdf4e6; }
.section--marble::before { /* marble artwork faded right down and warmed */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/marble-wide-960.webp") center / cover no-repeat;
  opacity: .16; filter: sepia(.6) saturate(1.5) hue-rotate(-10deg);
}

/* Rangoli blooming from section corners */
.rangoli {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(170px, 22vw, 320px); aspect-ratio: 1;
  opacity: .92; filter: drop-shadow(0 6px 14px rgba(123, 24, 48, .15));
  animation: spin 120s linear infinite;
}
.rangoli--tl { top: 0; left: 0; translate: -42% -42%; }
.rangoli--br { bottom: 0; right: 0; translate: 42% 42%; animation-direction: reverse; }
.rangoli--tr { top: 0; right: 0; translate: 42% -42%; }
.label__kalash { display: block; width: 58px; height: 66px; margin: 0 auto 12px; filter: drop-shadow(0 4px 6px rgba(91, 45, 20, .2)); }

.section--dark {
  color: #efe8dc;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(169, 132, 76, .12), transparent 60%),
    var(--maroon);
}
.section--dark h2, .section--dark h3 { color: #fbf6ee; }
.section--dark .label__num { color: #d9c19a; }
.section--dark .label__num::after { background: #d9c19a; }
.section--dark .muted, .section--dark .label__meta { color: rgba(239, 232, 220, .66); }
.section--dark .btn--primary { background: #f3eadb; color: var(--maroon); box-shadow: none; }
.section--dark .btn--primary:hover { background: #fff; }

.label--center { text-align: center; position: static; margin-bottom: clamp(40px, 6vw, 64px); }
.label--center .label__num { justify-content: center; }
.label--center .label__num::before { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: .6; }
.label--center .label__meta { justify-content: center; }

/* Story — arch-framed artwork beside the text */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.story__art {
  position: relative; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(169, 132, 76, .45); outline-offset: 12px;
}
.story__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 12%; filter: sepia(.4) saturate(1.35) hue-rotate(-8deg); }
.story__text { max-width: 560px; }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.25; margin-bottom: 1.4rem; }
.story__text p:not(.lead):not(.signature) { color: var(--ink-2); }
.dropcap::first-letter {
  float: left; font-family: var(--serif); font-size: 4.4em; line-height: .78; color: var(--gold);
  padding: .08em .1em 0 0;
}
.signature { font-family: var(--script); font-size: 2.3rem; color: var(--gold); margin: .8rem 0 0; }
.story__invite { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--maroon) !important; }

/* Timeline — a gold thread down the middle, events alternating left & right */
.timeline { list-style: none; margin: 0 auto; padding: 0; counter-reset: step; position: relative; max-width: 980px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0;
  background: linear-gradient(180deg, transparent, var(--gold) 5%, var(--gold) 95%, transparent); opacity: .6;
}
.timeline li {
  counter-increment: step; position: relative;
  width: calc(50% - 46px);
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px;
  background: rgba(255, 253, 249, .92);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline li + li { margin-top: -34px; }
.timeline li:nth-child(odd) { margin-right: auto; }
.timeline li:nth-child(even) { margin-left: auto; }
.timeline li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 24px;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--maroon); color: #fbf6ee; font-size: .7rem; font-weight: 500; letter-spacing: .06em;
  box-shadow: 0 0 0 5px #fcf0de;
}
.timeline li:nth-child(odd)::before { right: -64px; }
.timeline li:nth-child(even)::before { left: -64px; }
.timeline__body { min-width: 0; }
.timeline time { display: flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #9a6f2a; }
.timeline__day { padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--maroon); font-size: .64rem; letter-spacing: .08em; }
.timeline h3 { font-family: var(--deva); font-weight: 400; font-size: 1.45rem; line-height: 1.35; color: var(--maroon); margin: .3rem 0 .35rem; }
.timeline p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }

/* Venue */
.venue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.venue__info { display: flex; flex-direction: column; }
.venue__info h3 { font-size: 2rem; margin-bottom: .5rem; }
.facts { margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts div { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.section--dark .facts div { border-color: rgba(255, 255, 255, .18); }
.section--dark .facts dt { color: rgba(239, 232, 220, .55); }
.facts dt { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.25rem; }
.venue__info .btn { align-self: flex-start; margin-top: auto; }
.venue__map {
  min-height: 360px; border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(217, 193, 154, .35); background: var(--tint);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.venue__map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.35) sepia(.12) contrast(.95); }

/* Live updates */
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #c0574a; animation: pulse 1.8s ease-out infinite; flex: none; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed__empty {
  margin: 0; padding: 40px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--r); background: rgba(255, 253, 249, .7);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
}
.feed__item {
  position: relative; display: grid; gap: 6px;
  background: rgba(255, 253, 249, .9); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.feed__item time { order: -1; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.feed__item p { margin: 0; font-size: 1.05rem; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.feed__item:first-child { border-color: rgba(169, 132, 76, .45); }
.feed__item:first-child::after {
  content: "Latest"; position: absolute; top: 16px; right: 18px;
  padding: 2px 10px; border-radius: 999px; background: var(--gold-soft);
  font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.feed__item.is-new { animation: highlight 1.8s ease; }

/* RSVP */
.rsvp {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.rsvp__art {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100%;
  background: radial-gradient(ellipse 90% 70% at 50% 38%, #a3304a 0%, var(--maroon) 55%, #5a0f22 100%);
}
.rsvp__art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(226, 184, 98, .25) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}
.rsvp__art::after { /* gold inner frame */
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(226, 184, 98, .55); border-radius: 12px; pointer-events: none;
}
.rsvp__mandala {
  position: absolute; left: 50%; top: 40%; z-index: -1;
  width: 135%; aspect-ratio: 1; translate: -50% -50%;
  color: #e2b862; opacity: .3; animation: spin 180s linear infinite;
}
.rsvp__caption {
  position: absolute; inset: 0 0 34% 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; pointer-events: none;
}
.rsvp__mono { font-family: var(--serif); font-size: clamp(2.8rem, 4.4vw, 3.8rem); letter-spacing: .06em; color: #fdf3e3; line-height: 1; }
.rsvp__mono em { font-style: italic; color: #f2c46d; margin: 0 .08em; }
.rsvp__cap-date { font-size: .7rem; letter-spacing: .3em; color: #f3dcb0; padding: 6px 0; border-block: 1px solid rgba(226, 184, 98, .5); }
.rsvp__cap-venue { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(253, 243, 227, .7); }
.rsvp__elephants {
  position: absolute; left: 0; right: 0; bottom: 7%;
  display: flex; justify-content: center; align-items: flex-end; gap: 0;
}
.rsvp__elephant {
  width: 36%; aspect-ratio: 130 / 104; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
  animation: bob 3.6s ease-in-out infinite alternate;
  transition: transform 2.6s cubic-bezier(.3, .7, .3, 1);
}
/* waiting apart at the edges until the card scrolls into view (the right one is mirrored, so the same offset moves it outward) */
.js .rsvp__art:not(.elephants-in) .rsvp__elephant { transform: translateX(-62%); }
.rsvp__art.elephants-walking .rsvp__elephant { animation-duration: .45s; }
.rsvp__elephant--r { scale: -1 1; animation-delay: -1.8s; }
.rsvp__kalash { width: 16%; aspect-ratio: 64 / 72; margin-bottom: 3%; }
.rsvp__form { padding: clamp(28px, 5vw, 64px); }

.field { display: block; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.field > span, .field legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.field input:not([type="radio"]), .field textarea, .panel select, .panel input[type="search"] {
  width: 100%; min-height: 48px; padding: .7rem 1rem;
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:not([type="radio"]):focus, .field textarea:focus, .panel select:focus, .panel input[type="search"]:focus {
  outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169, 132, 76, .14);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.segmented span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--field);
  font-size: .92rem; font-weight: 400; color: var(--ink-2);
  transition: all .2s ease;
}
.segmented label:hover span { border-color: var(--ink-2); }
.segmented input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.attending-only { animation: fade-in .35s ease; }
.rsvp__required {
  margin: -0.6rem 0 1.4rem; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--gold-soft); color: var(--maroon); font-size: .88rem; font-weight: 400;
}
.field > span small, .field__label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: .78rem; }
.field__label { display: block; margin-bottom: 8px; font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.field__hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.stepper { display: inline-grid; grid-template-columns: 48px 72px 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--field); }
.stepper__btn { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--maroon); cursor: pointer; }
.stepper__btn:hover { background: var(--gold-soft); }
.stepper__btn:disabled { color: var(--line-strong); cursor: default; background: none; }
.stepper input {
  width: 100%; min-height: 48px; border: 0; border-inline: 1px solid var(--line-strong); border-radius: 0;
  text-align: center; font: inherit; font-size: 1.1rem; font-weight: 500; color: var(--ink); background: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.guest-names:empty { display: none; }
.guest-names { margin: -6px 0 20px; padding: 14px 14px 0; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: rgba(255, 250, 242, .6); }
.guest-names .field { margin-bottom: 14px; }
.guest-names__title { margin: 0 0 10px; font-size: .82rem; color: var(--ink-2); }
.form-error { color: var(--danger); font-size: .88rem; min-height: 1.3em; margin: 0 0 10px; }
.rsvp__thanks { padding: 24px 0; }
.rsvp__thanks p { color: var(--ink-2); }

/* Footer */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); padding-top: calc(var(--toran-cell) * 2.3); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 36px 18px; }
.footer__mark { margin: 0; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; }
.footer__mark span { font-family: var(--script); color: var(--gold); margin: 0 .1em; }
.footer__version { margin: 0; padding: 0 0 calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: .66rem; letter-spacing: .14em; color: var(--muted); opacity: .7; font-variant-numeric: tabular-nums; }
.footer__credit { margin: 0; padding: 0 0 calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: .62rem; letter-spacing: .12em; color: var(--muted); opacity: .45; }
.footer__credit a { color: inherit; text-decoration: none; }
.footer__credit a:hover { color: var(--gold); }
.footer__tag { margin: 0; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.lock-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.lock-btn svg { width: 15px; height: 15px; }
.lock-btn:hover { color: var(--ink); border-color: var(--line-strong); }
body.is-admin .footer { display: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  translate: -50% 16px; opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: .8rem 1.2rem; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .9rem; box-shadow: var(--shadow-lg);
  transition: opacity .3s ease, translate .3s ease;
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast.is-error { background: var(--danger); }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin { min-height: 100vh; min-height: 100svh; background: var(--tint); padding: 96px var(--gutter) 48px; }

.login { min-height: calc(100svh - 160px); display: grid; place-items: center; }
.login__card {
  width: min(100%, 880px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.login__art { position: relative; min-height: 520px; }
.login__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login__body { padding: clamp(28px, 5vw, 56px); align-self: center; }
.login__body h2 { font-size: 2.4rem; margin-bottom: .4rem; }
.login__body form { margin-top: 28px; }

.dash { max-width: 1240px; margin: 0 auto; }
.dash__bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.dash__bar .eyebrow { margin-bottom: .4rem; }
.dash__bar h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.dash__actions { display: flex; gap: 8px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px 20px; box-shadow: var(--shadow);
}
.kpi small { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.kpi span { display: block; margin-top: 6px; font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.meter { height: 4px; margin-top: 14px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); background: var(--gold); border-radius: inherit; transition: width .6s var(--ease); }
.meter--muted i { background: var(--line-strong); }

.dash__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; } /* guest table gets the full width */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.panel__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.panel__head h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 8px; }
.panel__head h3 svg { width: 18px; height: 18px; color: var(--gold); }
.panel__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.panel__tools input[type="search"] { width: 200px; min-height: 38px; padding: .4rem .9rem; }
.panel__tools select { width: auto; min-height: 38px; padding: .4rem .9rem; }
.panel__foot { display: flex; justify-content: space-between; align-items: center; }
.panel__sub { margin: 22px 0 4px; font-family: var(--sans); font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.panel .field { margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--field); color: var(--ink-2);
  border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }

.mini-feed { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; }
.mini-feed li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-feed li:last-child { border-bottom: 0; }
.mini-feed p { margin: 0 0 2px; font-size: .92rem; overflow-wrap: anywhere; }
.mini-feed time { font-size: .72rem; color: var(--muted); }

.icon-btn {
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover { color: var(--danger); border-color: rgba(162, 75, 60, .25); background: rgba(162, 75, 60, .05); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px -20px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  position: sticky; top: 0; background: var(--surface);
  text-align: left; font-weight: 500; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 12px 20px; border-block: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 400; white-space: normal; min-width: 150px; }
.table tbody tr:hover { background: var(--field); }
.table tr.is-new { animation: highlight 1.8s ease; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: .18rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 400; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--yes { background: rgba(79, 122, 90, .1); color: var(--ok); }
.pill--no { background: rgba(162, 75, 60, .08); color: var(--danger); }
.pill--veg, .pill--jain { background: var(--gold-soft); color: var(--gold); }
.pill--squad-bride { background: rgba(214, 51, 108, .1); color: #b02a5b; }
.pill--squad-groom { background: rgba(31, 61, 76, .1); color: #1f3d4c; }
.table__sub { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); white-space: normal; }
.table td.num { font-variant-numeric: tabular-nums; font-weight: 500; }
.table__tel { color: var(--ink); text-decoration: none; white-space: nowrap; }
.table__tel:hover { color: var(--maroon); text-decoration: underline; }
.pill--veg::before, .pill--jain::before { display: none; }

/* =====================================================================
   Motion
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--i, 0) * 80ms + 150ms); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 87, 74, .5); } 100% { box-shadow: 0 0 0 9px rgba(192, 87, 74, 0); } }
@keyframes highlight { 0% { background: var(--gold-soft); } 100% { background: var(--surface); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   INDIAN WEDDING ORNAMENTS — toran, shehnai, petals, diyas
   ===================================================================== */

/* Toran: marigold & mango-leaf garland */
.toran {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center;
  height: calc(var(--toran-cell) * 2.5);
  overflow: hidden; pointer-events: none;
}
.toran__cell { position: relative; flex: none; width: var(--toran-cell); }
.toran__rope { position: relative; z-index: 1; display: block; width: 100%; height: calc(var(--toran-cell) * .667); }
.toran__strand {
  position: absolute; top: calc(var(--toran-cell) * .12); left: 33.33%;
  width: 33.34%; height: calc(var(--toran-cell) / 3 * 6.8);
  transform-origin: 50% 0;
  animation: sway 3.4s ease-in-out var(--d, 0s) infinite alternate;
}
.toran__strand--short { height: calc(var(--toran-cell) / 3 * 5.1); }
@keyframes sway { from { rotate: -3.5deg; } to { rotate: 3.5deg; } }

/* Shubh Vivah + twin shehnais */
.shubh { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 16px); margin-bottom: clamp(.5rem, 1.6vh, 1.3rem); }
.shubh__text { font-family: var(--deva); font-size: clamp(1.25rem, 2.1vw, 1.85rem); color: var(--sindoor); white-space: nowrap; line-height: 1.2; padding-top: .15em; }
.shehnai { position: relative; flex: none; width: clamp(72px, 8.4vw, 128px); }
.shehnai--l { scale: -1 1; }
.shehnai svg {
  display: block; width: 100%; aspect-ratio: 200 / 60;
  transform-origin: 0 50%;
  animation: shehnai-play 2.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 3px rgba(43, 38, 34, .2));
}
@keyframes shehnai-play { from { rotate: -4deg; } to { rotate: 3deg; } }
.note {
  position: absolute; right: -4px; top: -6px;
  font-style: normal; font-size: 1.3rem; line-height: 1; color: var(--gold);
  opacity: 0; animation: note-float 3.2s ease-out infinite;
}
.shehnai--l .note { scale: -1 1; }
.note:nth-of-type(2) { top: 2px; font-size: .8rem; animation-delay: 1.05s; color: var(--sindoor); }
.note:nth-of-type(3) { top: -12px; font-size: .9rem; animation-delay: 2.1s; }
@keyframes note-float {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(22px, -38px) scale(1.15) rotate(14deg); }
}

/* Falling rose & marigold petals */
.petals { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute; top: -8%; left: var(--x);
  width: var(--s); height: calc(var(--s) * 1.35);
  border-radius: 80% 0 80% 0;
  background: var(--c); opacity: .88;
  box-shadow: inset -1px -2px 3px rgba(0, 0, 0, .12);
  animation: petal-fall var(--t) linear var(--delay) infinite;
  will-change: transform;
}
.petal--rose { --c: linear-gradient(135deg, #ec6f82, #a8243b); }
.petal--marigold { --c: linear-gradient(135deg, #fbc84a, #e07012); }
.petal--jasmine { --c: linear-gradient(135deg, #ffffff, #efe6d6); }
@keyframes petal-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  30% { transform: translate3d(var(--drift), 28vh, 0) rotate(140deg); }
  60% { transform: translate3d(calc(var(--drift) * -.6), 62vh, 0) rotate(260deg); }
  100% { transform: translate3d(var(--drift), 112vh, 0) rotate(420deg); }
}

/* Diyas with flickering flames */
.diya { position: relative; display: inline-block; width: 44px; vertical-align: middle; }
.diya__bowl { display: block; width: 100%; aspect-ratio: 64 / 30; }
.diya__flame {
  position: absolute; left: 48%; bottom: 70%;
  width: 10px; height: 19px; margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fffbe6 0%, #ffd84d 34%, #f5891f 72%, rgba(245, 137, 31, 0) 100%);
  box-shadow: 0 0 14px 6px rgba(255, 190, 80, .45), 0 0 36px 16px rgba(255, 170, 60, .18);
  transform-origin: 50% 100%;
  animation: flicker 1.5s ease-in-out infinite alternate;
}
.diya:nth-child(2n) .diya__flame { animation-duration: 1.9s; animation-delay: -.6s; }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0); opacity: .95; }
  25% { transform: scale(.9, 1.1) skewX(2deg); }
  50% { transform: scale(1.05, .93) skewX(-2deg); opacity: 1; }
  75% { transform: scale(.95, 1.06) skewX(1deg); }
  100% { transform: scale(1.02, .97) skewX(-1deg); opacity: .9; }
}

.strip__head {
  display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  margin: 0; padding: 30px 16px 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); color: #f3eadb;
}
.strip__head span:not([class]) { padding-bottom: 2px; }
.strip__cell { padding-top: clamp(18px, 3vw, 30px); }

/* Ceremony illustrations */
.timeline__icon { display: block; width: 56px; height: 56px; margin: 0; }

.rsvp__shubh { font-family: var(--deva); font-size: 1.25rem; color: #f2c46d; }

/* Footer blessing */
.footer__bless { text-align: center; max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
.footer__diyas .diya { width: 40px; margin: 0 8px; }
.footer__eyebrow { margin: 26px 0 6px; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: #9a6f2a; }
.footer__names { font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: .02em; }
.footer__names span { font-style: italic; color: var(--gold); }
.footer__poem { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.7; color: var(--ink-2); }
.footer__wait { margin: 18px 0 0; font-size: 1rem; color: var(--ink-2); text-wrap: balance; }
.footer__sign { margin: 26px 0 0; font-family: var(--script); font-size: 2.3rem; line-height: 1.25; color: var(--maroon); }
.footer__sign span { display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.footer__sign small { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }

/* Shagun burst — petals & confetti thrown on celebrations */
.burst {
  position: fixed; z-index: 90; pointer-events: none;
  width: var(--s); height: calc(var(--s) * 1.35);
  border-radius: 80% 0 80% 0;
  will-change: transform, opacity;
}
.burst--rose { background: linear-gradient(135deg, #ec6f82, #a8243b); }
.burst--marigold { background: linear-gradient(135deg, #fbc84a, #e07012); }
.burst--jasmine { background: linear-gradient(135deg, #fff, #efe6d6); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.burst--gold { border-radius: 2px; height: calc(var(--s) * .55); background: linear-gradient(90deg, #f5e3ad, #c9a25a); }

/* =====================================================================
   OPENING COVER — ivory & gold; the music loads before it can be opened
   ===================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; isolation: isolate;
  padding: 24px; text-align: center; color: var(--ink);
  background: radial-gradient(ellipse 75% 65% at 50% 48%, #fffdf7 0%, #fcf1de 55%, #f3dcb5 100%);
  transition: opacity .8s ease, visibility .8s ease;
}
.gate::before { /* faint warm marble + gold buti dots */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/marble-wide-960.webp") center / cover no-repeat;
  opacity: .22; filter: sepia(.6) saturate(1.5) hue-rotate(-10deg);
}
.gate::after { /* double gold frame */
  content: ""; position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid rgba(169, 132, 76, .55); border-radius: 18px;
  box-shadow: inset 0 0 0 5px rgba(255, 250, 240, .6), inset 0 0 0 6px rgba(169, 132, 76, .35);
}
.gate.is-open { opacity: 0; visibility: hidden; }
.gate .toran { z-index: 2; }
.gate__mandala { /* fixed: decorative, must never add scroll space */
  position: fixed; left: 50%; top: 50%; z-index: -1;
  width: min(130vw, 860px); aspect-ratio: 1; translate: -50% -50%;
  color: var(--gold); opacity: .18; animation: spin 160s linear infinite;
}
.gate__inner { position: relative; z-index: 1; width: 100%; max-width: 680px; margin: auto; padding: calc(var(--toran-cell) * 1.3) 0 clamp(20px, 7vh, 90px); }
.gate__ganesh { font-family: var(--deva); font-size: clamp(1.15rem, min(3.6vw, 3.6vh), 1.75rem); color: var(--maroon); margin: 0 0 min(.7rem, 1.2vh); }
.gate__shloka {
  font-family: var(--deva); font-size: clamp(.92rem, min(2.8vw, 2.5vh), 1.18rem); line-height: 1.75; color: var(--ink-2);
  margin: 0 auto min(1.1rem, 2vh); padding-bottom: min(1rem, 1.8vh); position: relative;
}
.gate__shloka span { display: block; }
.gate__shloka::after { content: "❀"; position: absolute; left: 50%; bottom: -.55rem; translate: -50% 0; color: var(--gold); font-size: .9rem; }
.gate__shubh { font-family: var(--deva); font-size: clamp(1.4rem, min(5vw, 4.6vh), 2.3rem); color: #9a6f2a; margin: min(.4rem, 1vh) 0 min(.5rem, 1vh); }
.gate__eyebrow { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .8rem; }
.gate__names { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, min(8vw, 8.4vh), 4.6rem); text-wrap: balance; line-height: 1.05; color: var(--ink); letter-spacing: .02em; }
.gate__names span { font-style: italic; color: var(--gold); }
.gate__date {
  display: table; margin: min(1rem, 1.8vh) auto min(1.6rem, 3vh); padding: 6px 4px;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  border-block: 1px solid rgba(169, 132, 76, .45);
}
.gate__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: clamp(44px, 6.4vh, 54px); padding: 0 2rem; border-radius: 999px; cursor: pointer;
  border: 1px solid #b8893f;
  background: linear-gradient(135deg, #f7e7bd, #e2bd6e 55%, #c9a25a);
  color: var(--maroon); font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 14px 30px -14px rgba(123, 24, 48, .45);
  transition: opacity .3s ease, filter .3s ease;
}
.gate__btn span { font-size: 1.2rem; letter-spacing: 0; }
.gate__btn:disabled { opacity: .55; filter: grayscale(.4); cursor: progress; }
.gate.is-ready .gate__btn:not(:disabled) { animation: gate-pulse 2.4s ease-out infinite; }
@keyframes gate-pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 90, .5), 0 14px 30px -14px rgba(123, 24, 48, .45); } 100% { box-shadow: 0 0 0 16px rgba(201, 162, 90, 0), 0 14px 30px -14px rgba(123, 24, 48, .45); } }
.gate__loader {
  width: min(220px, 60vw); height: 2px; margin: 1.1rem auto 0; overflow: hidden;
  border-radius: 2px; background: rgba(169, 132, 76, .2);
  transition: opacity .4s ease;
}
.gate__loader span { display: block; height: 100%; background: var(--gold); transform: scaleX(.08); transform-origin: left; transition: transform .4s ease; }
.gate.is-ready .gate__loader { opacity: 0; }
.gate__status { margin: .6rem 0 0; min-height: 1.4em; font-size: .78rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.gate__skip { display: block; margin: .6rem auto 0; background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gate__skip:hover { color: var(--ink); }
.gate__elephant { position: fixed; bottom: 4%; z-index: 0; width: clamp(100px, 15vw, 210px); aspect-ratio: 130 / 104; filter: drop-shadow(0 8px 10px rgba(91, 45, 20, .2)); }
.gate__elephant--l { left: 5%; }
.gate__elephant--r { right: 5%; scale: -1 1; }
body.gate-active { overflow: hidden; }
/* nothing behind the cover animates until it opens */
body.gate-active main *, body.gate-active main *::before, body.gate-active main *::after { animation-play-state: paused !important; }

/* =====================================================================
   BARAAT — dulha on ghodi & dulhan in doli
   ===================================================================== */
.procession {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 96px) 0 0;
  background: linear-gradient(180deg, #fdf6ec 0%, #fbe9cf 100%);
}
.procession__head { text-align: center; padding: 0 var(--gutter); }
.procession__hi { font-family: var(--deva); font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--sindoor); margin: 0 0 .3rem; }
.procession__head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.procession__hint { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.procession__stage {
  position: relative; z-index: 1; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 2vw, 28px);
  max-width: 1000px; margin: clamp(16px, 3vw, 32px) auto 0; padding: 0 var(--gutter);
}
.procession__rider { width: min(36vw, 340px); }
.procession__doli { width: min(40vw, 380px); }
.ghodi, .doli { display: block; width: 100%; height: auto; overflow: visible; }
.procession__heart { width: clamp(26px, 4vw, 44px); margin-bottom: 18%; animation: heart-beat 1.4s ease-in-out infinite; opacity: 0; transition: opacity .6s ease 4.6s; }
.procession.has-arrived .procession__heart { opacity: 1; }
@keyframes heart-beat { 0%, 100% { scale: 1; } 15% { scale: 1.25; } 30% { scale: 1; } 45% { scale: 1.15; } }
.procession__ground {
  height: 26px; margin-top: -8px;
  background:
    radial-gradient(circle at 10px 6px, #e07012 3px, transparent 3.6px) 0 0 / 40px 12px repeat-x,
    radial-gradient(circle at 30px 6px, #f2a516 3px, transparent 3.6px) 0 0 / 40px 12px repeat-x,
    linear-gradient(#e9cfa3, #dcbb87);
  background-position: 0 2px, 0 2px, 0 0;
  border-top: 2px solid #c9a25a;
}

/* Arrival: rider from the left, doli from the right, legs walking until they meet */
.procession.is-arriving .procession__rider { animation: ride-in-left 4.6s cubic-bezier(.25, .7, .3, 1) both; }
.procession.is-arriving .procession__doli { animation: ride-in-right 4.6s cubic-bezier(.25, .7, .3, 1) both; }
/* waiting off-stage until the scene scrolls into view */
.js .procession:not(.has-arrived) .procession__rider { translate: -80vw 0; }
.js .procession:not(.has-arrived) .procession__doli { translate: 80vw 0; }
@keyframes ride-in-left { from { translate: -80vw 0; } to { translate: 0 0; } }
@keyframes ride-in-right { from { translate: 80vw 0; } to { translate: 0 0; } }
.leg { transform-box: fill-box; transform-origin: 50% 0; }
.procession.is-walking .leg--f { animation: trot .5s ease-in-out infinite alternate; }
.procession.is-walking .leg--b { animation: trot .5s ease-in-out -.25s infinite alternate; }
@keyframes trot { from { rotate: -14deg; } to { rotate: 14deg; } }
.rider-bob, .doli-bob { transform-box: fill-box; animation: ride-bob 1s ease-in-out infinite alternate; }
.procession:not(.is-walking) .rider-bob, .procession:not(.is-walking) .doli-bob { animation-duration: 2.4s; }
@keyframes ride-bob { from { translate: 0 0; } to { translate: 0 -3px; } }
.doli-sway { transform-box: view-box; transform-origin: 130px 44px; animation: doli-sway 1.6s ease-in-out infinite alternate; }
@keyframes doli-sway { from { rotate: -2deg; } to { rotate: 2deg; } }

/* =====================================================================
   MUSIC-DRIVEN PETAL RAIN
   ===================================================================== */
.drop {
  position: fixed; top: -30px; z-index: 80; pointer-events: none;
  width: var(--s); height: calc(var(--s) * 1.35);
  border-radius: 80% 0 80% 0; will-change: transform, opacity;
}
.drop--rose { background: linear-gradient(135deg, #ec6f82, #a8243b); }
.drop--marigold { background: linear-gradient(135deg, #fbc84a, #e07012); }
.drop--jasmine { background: linear-gradient(135deg, #fff, #efe6d6); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
/* the hero mandala's scale/opacity are set directly from the audio analyser (see paintLevel in app.js) */
.drop { contain: layout paint; }

/* Instagram */
.insta-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: .9rem;
  font-size: .86rem; font-weight: 400; color: var(--maroon); text-decoration: none;
  border-bottom: 1px solid rgba(123, 24, 48, .3); padding-bottom: 2px;
}
.insta-link svg { width: 16px; height: 16px; }
.insta-link:hover { border-color: var(--maroon); }
.footer__follow { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer__follow p { margin: 0 0 14px; font-size: .95rem; color: var(--ink-2); text-wrap: balance; }
.btn--insta {
  color: #fff; border: 0;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
  box-shadow: 0 12px 26px -12px rgba(221, 42, 123, .6);
  text-transform: none; letter-spacing: .04em; font-size: .9rem;
}
.btn--insta svg { width: 18px; height: 18px; }
.btn--insta:hover { filter: brightness(1.06); }

/* Optional shehnai music toggle */
.music-btn {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(169, 132, 76, .45); background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg); color: var(--sindoor); font-size: 1.35rem; cursor: pointer;
}
.music-btn__bars { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.music-btn__bars i { width: 3px; height: 6px; background: var(--sindoor); border-radius: 2px; transition: height .1s linear; }
.music-btn__bars i:nth-child(2) { animation-delay: -.3s; }
.music-btn__bars i:nth-child(3) { animation-delay: -.6s; }
.music-btn[aria-pressed="true"] .music-btn__icon { display: none; }
.music-btn[aria-pressed="true"] .music-btn__bars { display: flex; }
@keyframes eq { from { height: 4px; } to { height: 18px; } }
body.is-admin .music-btn { display: none; }

@media (max-width: 480px) {
  .procession__rider { width: 38vw; }
  .procession__doli { width: 46vw; }
  .procession__heart { width: 22px; }
  .procession__stage { gap: 0; padding: 0 8px; }
  .gate__elephant { width: 26vw; bottom: 3%; }
  .shehnai { width: 17vw; }
  .shubh { gap: 6px; }
  .shubh__text { font-size: 1.1rem; }
  .note { font-size: 1rem; }
}

@media (max-width: 900px) {
  .timeline__icon { width: 44px; height: 44px; }
}

/* In-between widths (small windows, tablets in landscape): keep the corner elephants clear of the
   buttons — smaller, lower, and a reserved strip at the bottom of the opening screen. */
@media (max-width: 1100px) and (min-aspect-ratio: 4/5) {
  .hero__elephant { width: clamp(76px, 11vw, 140px); bottom: 8px; }
  .hero { padding-bottom: calc(clamp(76px, 11vw, 140px) * .8 + 22px); }
}

/* Wide but short screens (e.g. laptops with 125–150% Windows scaling): tighter vertical rhythm */
@media (max-height: 820px) and (min-aspect-ratio: 1/1) {
  .hero { padding-top: calc(var(--toran-cell) * 2.05 + 6px); padding-bottom: 20px; }
  .shubh { margin-bottom: .4rem; }
  .hero__bless { margin-bottom: .5rem; line-height: 1.4; }
  .hero__invite { margin-top: .7rem; line-height: 1.4; }
  .hero__date { margin-top: .8rem; }
  .hero__date-day { font-size: min(4vw, 6vh); }
  .hero__venue { margin-top: .5rem; }
  .hero__presence { margin-top: .7rem; line-height: 1.4; }
  .hero__actions { margin-top: 1rem; }
  .hero__actions .btn { min-height: 44px; }
}

@media (max-height: 700px) {
  .gate__elephant { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  .js .rsvp__art .rsvp__elephant { transform: none !important; }
  .procession__heart { opacity: 1; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .dash__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .label { position: static; }
  .venue { grid-template-columns: 1fr; }
  .venue__info .btn { margin-top: 0; }

  .rsvp { grid-template-columns: 1fr; }
  .rsvp__art { aspect-ratio: 4 / 3; min-height: 0; }
  .rsvp__caption { inset: 0 0 34% 0; gap: 6px; } /* monogram & date sit above the elephants */
  .rsvp__mono { font-size: clamp(2rem, 8vw, 2.8rem); }
  .rsvp__cap-venue { display: none; }
  .rsvp__elephants { bottom: 7%; gap: 1%; }
  .rsvp__elephant { width: 24%; }
  .rsvp__kalash { width: 10%; }
  .js .rsvp__art:not(.elephants-in) .rsvp__elephant { transform: translateX(-95%); }

  .story { grid-template-columns: 1fr; }
  .story__art { max-width: 300px; }
  .story__text { max-width: none; }

  .timeline::before { left: 18px; translate: none; }
  .timeline li { width: auto; margin: 0 0 12px 46px !important; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .timeline li:nth-child(n)::before { left: -46px; right: auto; top: 18px; width: 32px; height: 32px; font-size: .64rem; }
  .timeline h3 { font-size: 1.3rem; }
  .section--marble::before { background-image: url("assets/marble-tall-720.webp"); }
  .rangoli { width: 150px; }

  .login__card { grid-template-columns: 1fr; max-width: 480px; }
  .login__art { min-height: 0; aspect-ratio: 16 / 6; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__pill { gap: 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .segmented span { padding: .5rem .35rem; font-size: .86rem; white-space: nowrap; }
  .footer__inner { flex-direction: column; text-align: center; gap: 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel__tools { width: 100%; }
  .panel__tools input[type="search"] { flex: 1 1 100%; width: 100%; }
}

/* Portrait screens: switch to the 9:16 artwork and narrow the copy to its open centre */
@media (max-aspect-ratio: 4/5) {
  .hero__bg {
    background-image: url("assets/marble-tall-720.webp");
    background-image: image-set(url("assets/marble-tall-720.webp") 1x, url("assets/marble-tall.webp") 2x);
  }
  .hero::before {
    background: radial-gradient(ellipse 75% 48% at 50% 50%, rgba(255, 250, 240, .92) 0%, rgba(255, 250, 240, .75) 60%, rgba(255, 250, 240, .2) 100%);
  }
  .hero__elephant { width: 22vw; bottom: 1%; }
  .hero { padding-bottom: calc(18vw + 20px); }
  .hero__inner { max-width: 82vw; }
  .hero .eyebrow { font-size: .6rem; letter-spacing: .24em; margin-bottom: 1.1rem; }
  .hero__names { font-size: min(11vw, 3.4rem); letter-spacing: .06em; }
  .hero__invite { font-size: min(3.9vw, 1.15rem); margin-top: 1.1rem; }
  .hero__date { margin-top: 1.3rem; }
  .hero__date-side { font-size: min(2.3vw, .66rem); letter-spacing: .1em; }
  .hero__date-day { font-size: min(9vw, 3.2rem); padding: 0 .5rem; }
  .hero__venue { font-size: min(3.2vw, .76rem); letter-spacing: .12em; }
  .hero__bless, .hero__presence { font-size: min(3.9vw, 1.05rem); }
  .hero__actions { flex-direction: column; align-items: stretch; margin: 1.5rem auto 0; max-width: 260px; }
  .hero__actions .btn { min-height: 44px; padding: 0 .8rem; font-size: .66rem; letter-spacing: .12em; }
}

@media (display-mode: standalone) {
  .nav__install { display: none !important; }
}
