/* Akshay & Anagha — engagement invite.
   Indo-western: the reel's watercolor roses and type, with marigold torans, mandalas,
   jharokha arches and block-print / brocade backgrounds. */
:root {
  --paper: #f8f1e6;
  --card: #fffaf1;
  --maroon: #8f2c35;
  --wine: #6b1f29;
  --gold: #b5852f;
  --gold-soft: #d9bd85;
  --gold-light: #e9c987;
  --cream-on-dark: #fbf1df;
  --blush: #f5e2dd;
  --ink: #4b3328;
  --muted: #94604f;

  --script: "Parisienne", cursive;
  --display: "Playfair Display", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Marcellus", "Cormorant Garamond", serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.2rem/1.55 var(--serif);
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
a { color: inherit; }

section, .hero, .footer { position: relative; padding: 0 20px; text-align: center; }
section { padding-top: 48px; padding-bottom: 56px; }

/* ---------- backgrounds ---------- */
.pattern-cream {
  background:
    url(/assets/decor/pattern-cream.svg) 0 0 / 56px,
    radial-gradient(40rem 26rem at 0% 0%, rgba(240, 197, 196, .3), transparent 70%),
    radial-gradient(40rem 26rem at 100% 100%, rgba(233, 201, 135, .22), transparent 70%),
    var(--paper);
}
.dark {
  color: var(--cream-on-dark);
  background:
    url(/assets/decor/pattern-maroon.svg) 0 0 / 56px,
    radial-gradient(ellipse 120% 70% at 50% 0%, #8a2b36, #5a1922 75%);
}
.dark .kicker, .dark .eyebrow { color: var(--gold-light); }
.dark .script-title { color: #f7e4c4; }

/* ---------- shared type ---------- */
.kicker, .eyebrow {
  font: 400 .82rem/1.4 var(--caps);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  text-wrap: balance;
}
.script-title {
  font: 400 clamp(3rem, 13vw, 4.2rem)/1.1 var(--script);
  color: var(--maroon);
  margin: 2px 0 22px;
}
.script-title.small { font-size: clamp(2.4rem, 10vw, 3.2rem); }
.divider { width: min(300px, 80vw); margin: 0 auto 14px; }

/* ---------- toran (door garland) and ladis ---------- */
.toran {
  filter: drop-shadow(0 1px 1px rgba(75, 51, 40, .18));
  position: absolute; left: 0; right: 0; top: 0;
  height: 92px;
  background: url(/assets/decor/toran.svg) 50% 0 / auto 100% repeat-x;
  pointer-events: none;
  z-index: 2;
}
.toran-sm { height: 66px; }
.ladi { filter: drop-shadow(0 1px 1px rgba(75, 51, 40, .18)); position: absolute; top: 4px; width: 20px; pointer-events: none; z-index: 1; animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
.ladi-l1 { left: 4px; }
.ladi-r1 { right: 4px; animation-delay: -3s; }
.ladi-l2, .ladi-r2 { display: none; }
@keyframes sway { 50% { transform: rotate(1.6deg); } }

/* ---------- monogram ---------- */
.mono { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.mono img { width: 100%; height: 100%; }
.mono span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  font: 400 38px/1 var(--caps);
  color: var(--gold);
  padding-top: 4px;
}
.mono svg { width: 17px; height: 15px; fill: var(--maroon); margin: 0 1px 8px; }
.mono.small { width: 96px; height: 96px; }
.mono.small span { font-size: 27px; }
.mono.small svg { width: 12px; height: 11px; margin-bottom: 6px; }

/* ---------- hero: a jharokha arch under a toran ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 104px 30px 64px;
  background:
    url(/assets/decor/pattern-cream.svg) 0 0 / 56px,
    radial-gradient(30rem 24rem at 0% 100%, rgba(240, 197, 196, .45), transparent 70%),
    radial-gradient(30rem 24rem at 100% 100%, rgba(240, 197, 196, .45), transparent 70%),
    var(--paper);
}
.jharokha {
  position: relative;
  width: min(100%, 540px);
  padding: 92px 18px 92px;
}
.jharokha::before { /* the lit window inside the arch */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(#fffaf1, #fdf3e6);
  -webkit-mask: url(/assets/decor/arch-mask.svg) 0 0 / 100% 100%;
  mask: url(/assets/decor/arch-mask.svg) 0 0 / 100% 100%;
}
.jharokha::after { /* a second, inner arch line */
  content: "";
  position: absolute; inset: 7px;
  background: url(/assets/decor/arch-line.svg) 0 0 / 100% 100%;
  opacity: .55;
  pointer-events: none;
}
.jharokha > .arch-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.mandala {
  position: absolute; left: 50%; top: 34px;
  width: 300px; margin-left: -150px;
  opacity: .42;
  animation: spin 160s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-rose { position: absolute; bottom: -26px; width: 140px; pointer-events: none; z-index: 1; }
.hero-rose-l { left: -34px; transform: rotate(8deg); }
.hero-rose-r { right: -34px; transform: scaleX(-1) rotate(8deg); }
.hero-inner { position: relative; }
.hero .mono { margin-bottom: 14px; }

.dear {
  display: none;
  font: 400 clamp(1.9rem, 8vw, 2.5rem)/1.2 var(--script);
  color: var(--wine);
  margin-bottom: 8px;
}
.has-guest .dear { display: block; }

.names {
  margin: 10px 0 4px;
  font: 400 clamp(3.6rem, 17vw, 5.8rem)/1 var(--script);
  color: var(--maroon);
}
.names span { display: block; }
.names .amp { font-size: .55em; line-height: 1.1; color: var(--gold); }
.lede { margin-top: 14px; font: italic 500 clamp(1.3rem, 5.4vw, 1.65rem)/1.3 var(--display); color: var(--muted); }

.date-short {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font: 500 1.7rem/1 var(--display); letter-spacing: .08em; color: var(--maroon);
}
.date-short i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.to-go {
  display: inline-block; margin-top: 14px; padding: 7px 16px;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  font: 400 .78rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.to-go:empty { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  font: 400 .7rem/1 var(--caps); letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- story ---------- */
.polaroid {
  position: relative;
  margin: 0;
  padding: 9px 9px 0;
  background: #fbfaf4;
  box-shadow: 0 0 0 1px #e3dccb, 0 10px 24px rgba(75, 51, 40, .14);
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.polaroid figcaption { padding: 9px 4px 12px; font: 600 .92rem/1.2 var(--display); letter-spacing: .03em; color: var(--muted); }
.tape {
  position: absolute; top: -12px; left: 50%; width: 70px; height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(236, 224, 192, .9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.tilt-l { --tilt: -3deg; transform: rotate(var(--tilt)); }
.tilt-r { --tilt: 3deg; transform: rotate(var(--tilt)); }

.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: 560px; margin: 0 auto; }
.meets { font: 400 2.1rem/1 var(--script); color: var(--gold); }

.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 560px; margin: 34px auto 0; }
.arch-photo { position: relative; margin: 0; }
.arch-img {
  aspect-ratio: 100 / 130;
  -webkit-mask: url(/assets/decor/arch-mask.svg) 0 0 / 100% 100%;
  mask: url(/assets/decor/arch-mask.svg) 0 0 / 100% 100%;
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-photo .arch-line { position: absolute; left: -6px; top: -6px; width: calc(100% + 12px); max-width: none; aspect-ratio: 100 / 130; pointer-events: none; }
.arch-photo figcaption { margin-top: 12px; font: 400 2rem/1 var(--script); color: var(--maroon); }


.story-text { max-width: 440px; margin: 30px auto 0; font: italic 500 1.28rem/1.55 var(--serif); color: var(--ink); }
.story-text p + p { margin-top: 10px; }
.story-text .baat-pakki { margin-top: 14px; font: 400 2.6rem/1.1 var(--script); font-style: normal; color: var(--maroon); }

/* ---------- reel ---------- */
.reel-frame {
  position: relative;
  width: min(76vw, 330px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  padding: 8px;
  background: linear-gradient(135deg, #f3d996, #b5852f 50%, #f3d996);
  border-radius: 170px 170px 18px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 162px 162px 12px 12px; background: #f3f0ea; }
.reel-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(143, 44, 53, .92);
  box-shadow: 0 0 0 6px rgba(243, 217, 150, .55);
  display: grid; place-items: center;
  transition: opacity .3s;
}
.reel-play svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }
.reel-frame.playing .reel-play { opacity: 0; pointer-events: none; }

/* ---------- formal invitation card (domed, like a temple door) ---------- */
.card {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 120px 24px 44px;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 250px 250px 14px 14px / 150px 150px 14px 14px;
  outline: 1px solid var(--gold-soft);
  outline-offset: -10px;
  box-shadow: 0 18px 40px rgba(107, 31, 41, .12);
}
.card-mandala { position: absolute; left: 50%; top: 14px; width: 210px; margin-left: -105px; opacity: .45; pointer-events: none; }
.card-rose { position: absolute; bottom: -26px; width: 140px; pointer-events: none; }
.card-rose-l { left: -32px; transform: rotate(6deg); }
.card-rose-r { right: -32px; transform: scaleX(-1) rotate(6deg); }
.card > *:not(img) { position: relative; }
.card .eyebrow:not(.small) { margin-top: -52px; }
.card .person { margin-top: 16px; font: 400 3.2rem/1.05 var(--script); color: var(--maroon); }
.card .parents { margin-top: 2px; font: 500 1.12rem/1.45 var(--serif); color: var(--ink); }
.card .amp-sm { margin: 8px 0 -6px; font: 400 2.2rem/1 var(--script); color: var(--gold); }
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0; }
.rule span { width: 64px; height: 1px; background: var(--gold-soft); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.invite-text { font: italic 500 1.22rem/1.45 var(--serif); color: var(--muted); }
.ceremony { margin-top: 6px; font: 500 1.6rem/1.2 var(--display); color: var(--wine); letter-spacing: .02em; }
.eyebrow.small { font-size: .74rem; }
.sisters { margin-top: 6px; font: 500 1.28rem/1.4 var(--serif); }

/* ---------- the ceremony (maroon) ---------- */
.when { padding-top: 92px; }
.when-line { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.when-line span { font: 400 .95rem/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.when-line b { font: 500 clamp(1.8rem, 8vw, 2.3rem)/1.1 var(--display); color: var(--cream-on-dark); }

.schedule { list-style: none; max-width: 400px; margin: 30px auto 0; padding: 0; text-align: left; position: relative; }
.schedule::before { content: ""; position: absolute; left: 92px; top: 10px; bottom: 10px; width: 1px; background: rgba(233, 201, 135, .5); }
.schedule li { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start; padding: 10px 0; position: relative; }
.schedule li::before { content: ""; position: absolute; left: 88px; top: 18px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold-light); }
.schedule time { font: 500 .95rem/1.6 var(--caps); letter-spacing: .06em; color: var(--gold-light); text-align: right; white-space: nowrap; }
.schedule b { display: block; font: 500 1.35rem/1.3 var(--display); color: var(--cream-on-dark); }
.schedule span { display: block; font: italic 500 1.08rem/1.4 var(--serif); color: #ecd3cb; }

/* ---------- buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font: 400 .84rem/1 var(--caps);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--maroon);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--wine); }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--blush); }
.btn.big { min-height: 58px; padding: 16px 30px; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.dark .btn { background: linear-gradient(135deg, #f3d996, #c9973d); border-color: #e9c987; color: var(--wine); }
.dark .btn.ghost { background: transparent; color: var(--gold-light); }
.dark .btn.ghost:hover { background: rgba(233, 201, 135, .12); }

/* ---------- venue ---------- */
.venue-name { font: 500 clamp(2rem, 9vw, 2.6rem)/1.15 var(--display); color: var(--maroon); margin-top: 4px; }
.address { margin-top: 8px; font: 500 1.18rem/1.45 var(--serif); }
.map {
  position: relative;
  max-width: 560px;
  height: 250px;
  margin: 22px auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 4px solid var(--card);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 10px 24px rgba(75, 51, 40, .1);
}
.map iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.map-load {
  position: absolute; inset: 0; margin: auto; width: max-content; height: 44px;
  padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold-soft);
  background: var(--card); color: var(--maroon); cursor: pointer;
  font: 400 .8rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase;
}

.tips { list-style: none; max-width: 420px; margin: 22px auto 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.tips li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid #ecdfc6; border-radius: 12px; }
.tips svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blush); fill: var(--maroon); }
.tips b { display: block; font: 400 .74rem/1.3 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tips span { display: block; font: 500 1.12rem/1.35 var(--serif); }
.help-title { margin: 40px 0 14px; font: 400 clamp(2rem, 9vw, 2.6rem)/1.15 var(--script); color: var(--maroon); }

/* ---------- call buttons ---------- */
.people { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; }
.person-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  padding: 16px 18px;
  text-align: left; text-decoration: none;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-left: 4px solid var(--maroon);
  border-radius: 12px;
}
.person-card .who { font: 600 1.25rem/1.2 var(--serif); color: var(--ink); }
.person-card .num { grid-row: 2; font: 500 1.1rem/1.4 var(--serif); color: var(--muted); }
.person-card .call {
  grid-row: 1 / 3; grid-column: 2;
  padding: 10px 18px; border-radius: 999px;
  background: var(--maroon); color: #fff;
  font: 400 .8rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- footer (maroon, under a toran) ---------- */
.footer { padding-top: 116px; padding-bottom: 110px; }
.footer .mono { margin-bottom: 12px; }
.closing { font: italic 500 1.3rem/1.4 var(--serif); color: #f0d7cf; }
.sign { margin-top: 6px; font: 400 clamp(2.2rem, 10vw, 3rem)/1.1 var(--script); color: #f7e4c4; white-space: nowrap; }
.tag { margin-top: 8px; font: 400 .9rem/1 var(--caps); letter-spacing: .2em; color: var(--gold-light); }

/* ---------- music button ---------- */
.music {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px 0 16px;
  border: 1px solid var(--gold-light); border-radius: 999px;
  background: var(--maroon); color: #fff;
  box-shadow: 0 8px 22px rgba(107, 31, 41, .3);
  font: 400 .78rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}
.music[hidden] { display: none; }
.music svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; }
.music .bars { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.music .bars i { width: 3px; background: var(--gold-light); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.music .bars i:nth-child(2) { animation-delay: -.3s; }
.music .bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.music[aria-pressed="true"] .i-play { display: none; }
.music[aria-pressed="true"] .bars { display: inline-flex; }
.music.compact .music-label { display: none; }
.music.compact { padding: 0; width: 52px; justify-content: center; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px) rotate(var(--tilt, 0deg)); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
.js .hero-inner > * { opacity: 0; transform: translateY(10px); animation: rise .9s ease forwards; }
.js .hero-inner > :nth-child(2) { animation-delay: .1s; }
.js .hero-inner > :nth-child(3) { animation-delay: .2s; }
.js .hero-inner > :nth-child(4) { animation-delay: .35s; }
.js .hero-inner > :nth-child(5) { animation-delay: .5s; }
.js .hero-inner > :nth-child(6) { animation-delay: .65s; }
.js .hero-inner > :nth-child(7) { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-inner > * { opacity: 1; transform: rotate(var(--tilt, 0deg)); animation: none; transition: none; }
  .scroll-cue svg, .music .bars i, .mandala, .ladi { animation: none; }
}

@media (min-width: 640px) {
  .toran { height: 120px; }
  .toran-sm { height: 84px; }
  .hero { padding-top: 140px; }
  .ladi { width: 26px; }
  .ladi-l1 { left: 6%; }
  .ladi-r1 { right: 6%; }
  .ladi-l2, .ladi-r2 { display: block; width: 22px; }
  .ladi-l2 { left: calc(6% + 40px); animation-delay: -1.5s; }
  .ladi-r2 { right: calc(6% + 40px); animation-delay: -4.5s; }
  .mandala { width: 380px; margin-left: -190px; top: -6px; }
  .jharokha { padding-top: 110px; }
  .hero-rose { width: 200px; }
  section { padding-top: 64px; padding-bottom: 72px; }
  .when { padding-top: 120px; }
}
@media (max-width: 380px) {
  .kicker, .eyebrow { letter-spacing: .2em; }
  .hero { padding-left: 26px; padding-right: 26px; }
  .meets { font-size: 1.7rem; }
}
