:root {
  --gate-red: #f70917;
  --red-1: #d01826;
  --red-2: #a50d1c;
  --red-3: #6c0512;
  --deep: #3d0209;
  --cream: #fff1d6;
  --cream-hi: #fff6e0;
  --gold-line: #e9c46a;
  --gold: linear-gradient(100deg, #a8741f 0%, #e9be5c 18%, #fff2bf 30%, #e2b04e 42%, #b07a22 55%, #f3d27c 70%, #fff6d2 80%, #c99234 100%);
  --serif: "Tiro Devanagari Hindi", "Kohinoor Devanagari", serif;
  --vh: 1vh;
}
@supports (height: 1svh) { :root { --vh: 1svh; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--red-3); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* the sideways day cards and sliding bands must never widen the page, or phones zoom out */
html, body { overflow-x: clip; }
main { overflow-x: clip; }
body {
  font-family: var(--serif); color: var(--cream); background: transparent;
  overflow-x: hidden; line-height: 1.5; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100%; }
a { color: inherit; }
ul { list-style: none; }

.rozha { font-family: "Rozha One", var(--serif); font-weight: 400; }
.yatra { font-family: "Yatra One", var(--serif); font-weight: 400; }
.gold {
  background: var(--gold); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
.glow { filter: drop-shadow(0 0 16px rgba(255, 200, 90, .32)) drop-shadow(0 3px 2px rgba(60, 0, 8, .45)); }
@keyframes shimmer { to { background-position: 300% 0; } }
.muted { opacity: .85; font-size: clamp(16px, 4vw, 20px); }

/* masked artwork (white PNG with alpha → any fill) */
.mask-gold, .mask-white { -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }
.mask-gold { background: var(--gold); background-size: 300% 100%; animation: shimmer 9s linear infinite; }
.mask-white { background: #fff; }
.m-mandala { -webkit-mask-image: url(../assets/mandala.png); mask-image: url(../assets/mandala.png); }
.m-border-top { -webkit-mask-image: url(../assets/border_top.png); mask-image: url(../assets/border_top.png); }
.m-border-bottom { -webkit-mask-image: url(../assets/border_bottom.png); mask-image: url(../assets/border_bottom.png); }

/* ---------- fixed atmosphere ---------- */
.bg { position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% 45%, var(--red-1) 0%, var(--red-2) 45%, var(--red-3) 100%); }
.bg-mandala { position: absolute; width: 190vmax; height: 190vmax; left: 50%; top: 50%;
  translate: -50% -50%; opacity: .06; }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 50%, rgba(30, 0, 4, .6) 100%); }
#dust, #petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#dust { z-index: -2; }
#petals { z-index: 0; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; }
.progress i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(255, 210, 120, .7); }

/* ---------- gate ---------- */
#gate { position: fixed; inset: 0; z-index: 60; background: var(--gate-red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 4vh, 40px);
  padding: 12vh 20px 10vh; overflow: hidden; }
.gate-band { position: absolute; left: 0; right: 0; height: clamp(54px, 7.3vh, 110px);
  -webkit-mask-size: auto 100%; mask-size: auto 100%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; }
.gate-band.top { top: 0; } .gate-band.bottom { bottom: 0; }
.gate-mandala { position: relative; width: min(86vw, 52vh, 560px); aspect-ratio: 1; flex: none; transform-origin: 50% 50%; }
.gate-mandala video, .gate-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%); mask-image: radial-gradient(circle, #000 62%, transparent 71%); }
.gate-fallback { opacity: 0; }
.gate-gold { position: absolute; inset: 4.76%; opacity: 0; }
.gate-flare { position: absolute; inset: -20%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 240, 190, .9) 0%, rgba(255, 200, 90, .35) 35%, transparent 65%); }
.gate-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(16px); }
.gate-kicker { font-size: clamp(18px, 4.6vw, 24px); color: #fff; opacity: .95; }
.gate-names { font-size: clamp(30px, 8.4vw, 46px); color: #fff; line-height: 1.2; }
.gate-names span { font-size: .6em; opacity: .9; padding: 0 .2em; }
.gate-hint { font-size: 14px; color: #fff; opacity: .8; }
#gate .btn-gold { margin-top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0;
  font-family: "Yatra One", var(--serif); font-size: clamp(18px, 4.6vw, 22px); text-decoration: none;
  padding: 14px 34px 12px; border-radius: 999px; transition: transform .3s ease, box-shadow .3s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-gold { color: #5a1306; background: var(--gold); background-size: 300% 100%; animation: shimmer 6s linear infinite;
  box-shadow: 0 6px 24px rgba(255, 190, 80, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover { box-shadow: 0 8px 34px rgba(255, 200, 100, .55), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-line { color: var(--cream-hi); border: 1.5px solid var(--gold-line); background: rgba(60, 0, 10, .25); font-size: clamp(16px, 4vw, 19px); padding: 11px 26px 9px; }
.btn-line:hover { background: rgba(233, 196, 106, .15); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

/* music toggle */
.music { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold-line); cursor: pointer;
  background: rgba(70, 0, 12, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; opacity: 0; visibility: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.music .bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.music .bars i { width: 3px; height: 30%; background: #f3d27c; border-radius: 2px; }
.music[aria-pressed="true"] .bars i { 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; } .music .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* auto-scroll pill, beside the music button */
.tour { position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 64px); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  height: 52px; padding: 0 18px 0 14px; border-radius: 26px; border: 1.5px solid var(--gold-line); cursor: pointer;
  background: rgba(70, 0, 12, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f3d27c;
  display: flex; align-items: center; gap: 10px; font: 600 15px/1 "Tiro Devanagari Hindi", serif;
  opacity: 0; visibility: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.tour .ic { width: 14px; height: 16px; background: #f3d27c; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tour[aria-pressed="true"] .ic { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.tour[aria-pressed="false"].nudge { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, .3), 0 0 0 0 rgba(243, 210, 124, .55); }
  50% { box-shadow: 0 4px 18px rgba(0, 0, 0, .3), 0 0 0 9px rgba(243, 210, 124, 0); } }

/* ---------- sections ---------- */
main { position: relative; z-index: 1; }
.panel { position: relative; min-height: calc(var(--vh) * 100); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 22px; }
.heading { font-size: clamp(30px, 8vw, 54px); line-height: 1.3; margin-bottom: 28px; }
.heading-sm { font-size: clamp(28px, 7vw, 44px); }
.band { height: clamp(48px, 9vw, 96px); width: 140%; margin-left: -20%;
  -webkit-mask-size: auto 100%; mask-size: auto 100%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; opacity: .9; }
.divider { display: flex; align-items: center; gap: 18px; width: min(560px, 82vw); margin: 34px auto 16px; }
.divider i { flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, #f0c96a, transparent); }
.divider b { width: 44px; height: 44px; flex: none; }
.divider span { font-size: clamp(22px, 5.4vw, 30px); }

/* hero */
#hero { padding-top: 70px; overflow: hidden; }
.rays { position: absolute; width: 170vmax; height: 170vmax; left: 50%; top: 32%; translate: -50% -50%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .5) 0deg 3deg, rgba(255, 214, 120, 0) 3deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 52%); mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 52%); }
.hero-mandala-wrap { width: min(72vw, 40vh, 440px); aspect-ratio: 1; margin-bottom: 26px; }
.hero-mandala { width: 100%; height: 100%; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.invocation { font-size: clamp(22px, 5.6vw, 34px); }
.shloka { font-style: italic; font-size: clamp(15px, 3.9vw, 21px); line-height: 1.6; opacity: .92; }
.title { font-size: clamp(64px, 19vw, 150px); line-height: 1.15; padding: 0 .15em; margin-top: 10px; }
.subtitle { font-size: clamp(28px, 7.4vw, 48px); margin-top: -6px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--gold-line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f3d27c; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* couple */
.pin-panel { position: relative; height: calc(var(--vh) * 100); overflow: hidden; }
#couple { display: flex; align-items: center; justify-content: center; padding: 70px 18px; text-align: center; }
.couple-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.name { font-size: clamp(64px, 17vw, 132px); line-height: 1.25; padding: 0 .12em; white-space: nowrap; }
.pre { font-size: .5em; margin-right: .4em; }
.parents { font-size: clamp(16px, 4.2vw, 22px); line-height: 1.55; opacity: .95; }
.sang { display: flex; align-items: center; gap: 16px; width: min(560px, 84vw); margin: 22px 0 14px; }
.sang i { flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, #f0c96a, transparent); transform-origin: 50% 50%; }
.sang span { font-size: clamp(30px, 8vw, 50px); }
.sang-mandala { display: none; }

/* date */
.frame { position: relative; width: min(640px, 100%); padding: 46px 22px 40px; border: 1.5px solid var(--gold-line); border-radius: 8px;
  outline: 1px solid rgba(233, 196, 106, .45); outline-offset: 8px; background: linear-gradient(180deg, rgba(90, 0, 14, .45), rgba(60, 0, 10, .35)); }
.kicker { font-size: clamp(24px, 6vw, 34px); }
.date-big { font-size: clamp(32px, 8.6vw, 58px); color: var(--cream-hi); line-height: 1.25; margin: 6px 0 2px; }
.date-big .gold { font-size: 1.5em; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.countdown div { display: flex; flex-direction: column; align-items: center; padding: 14px 4px 10px; border-radius: 8px;
  background: rgba(40, 0, 6, .35); border: 1px solid rgba(233, 196, 106, .35); }
.countdown b { font-family: "Rozha One", var(--serif); font-weight: 400; font-size: clamp(30px, 9vw, 54px); line-height: 1.1;
  background: var(--gold); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.countdown span { font-size: clamp(13px, 3.4vw, 16px); opacity: .85; }

/* message */
#message { max-width: 980px; margin: 0 auto; }
.scrub-text { font-size: clamp(24px, 6.4vw, 44px); line-height: 1.6; max-width: 900px; }
.scrub-text .w { opacity: .14; transition: none; }
.scrub-text em { font-style: normal; font-size: 1.35em; padding: 0 .08em; }
.small-kicker { font-size: clamp(18px, 4.6vw, 24px); }
.host { font-size: clamp(28px, 7.2vw, 46px); color: var(--cream-hi); line-height: 1.35; margin: 4px 0; }

/* programme (horizontal) */
#program { overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 60px 0 30px; }
.program-head { text-align: center; padding: 0 20px; }
.program-head .heading { margin-bottom: 4px; }
.swipe-hint { font-size: 14px; letter-spacing: .02em; margin-bottom: 18px; }
.track { display: flex; gap: 7vw; padding: 18px 7.5vw; width: max-content; will-change: transform; }
.day { position: relative; flex: none; width: 85vw; max-width: 520px; min-height: min(calc(var(--vh) * 66), 640px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 44px 22px; text-align: center;
  border: 1.5px solid var(--gold-line); border-radius: 10px; outline: 1px solid rgba(233, 196, 106, .45); outline-offset: 9px;
  background: linear-gradient(180deg, rgba(90, 0, 14, .6), rgba(55, 0, 9, .5)); box-shadow: 0 30px 60px rgba(30, 0, 5, .35); }
.corner { position: absolute; width: 46px; height: 46px; }
.corner.tl { left: -22px; top: -22px; } .corner.tr { right: -22px; top: -22px; }
.corner.bl { left: -22px; bottom: -22px; } .corner.br { right: -22px; bottom: -22px; }
.day-index { font-size: 18px; opacity: .8; }
.day-name { font-size: clamp(54px, 14vw, 84px); line-height: 1.2; }
.day-date { font-size: clamp(24px, 6.4vw, 34px); color: var(--cream-hi); }
.tag { font-size: 18px; padding: 4px 22px 2px; border: 1.5px solid var(--gold-line); border-radius: 30px; margin-bottom: 4px; }
.events { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 6px; }
.events li { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 10px; }
.events .diya { width: 30px; height: 30px; grid-row: span 2; }
.events .ev { font-size: clamp(21px, 5.6vw, 28px); text-align: left; }
.events .tm { grid-column: 2; font-size: clamp(17px, 4.4vw, 22px); text-align: left; }
.note { font-style: italic; font-size: clamp(15px, 3.9vw, 18px); line-height: 1.5; opacity: .92; margin: 8px 0 16px; }
.flame { transform-origin: 24px 22px; animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(.92, 1.08); } 70% { transform: scale(1.05, .95); } }

/* invite */
.lead { font-size: clamp(22px, 5.8vw, 34px); }
.invite-big { font-size: clamp(54px, 14.5vw, 120px); line-height: 1.22; margin: 10px 0; padding: 0 .1em; }
.plea { font-style: italic; font-size: clamp(19px, 4.9vw, 28px); line-height: 1.65; max-width: 720px; margin-top: 22px; opacity: .95; }

/* family */
.family { display: flex; flex-direction: column; gap: 6px; }
.family li { font-size: clamp(18px, 4.7vw, 26px); line-height: 1.55; }
.family li span { color: #f6d98b; }
.kids { font-size: clamp(28px, 7.4vw, 44px); color: var(--cream-hi); }
.manuhar { font-size: clamp(26px, 6.6vw, 40px); margin-top: 8px; }

/* venue */
.venues { display: grid; gap: 26px; width: min(900px, 100%); }
.venue { padding: 34px 20px 30px; border: 1.5px solid var(--gold-line); border-radius: 10px; background: rgba(60, 0, 10, .35);
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.venue-name { font-size: clamp(30px, 8vw, 44px); color: var(--cream-hi); line-height: 1.3; }
.venue .btn { margin-top: 14px; }

/* finale */
#finale { min-height: calc(var(--vh) * 120); justify-content: flex-start; padding-top: 14vh; overflow: hidden; }
.rays-finale { top: 34%; opacity: 0; }
.finale-mandala-wrap { width: min(78vw, 46vh, 520px); aspect-ratio: 1; }
.finale-mandala { width: 100%; height: 100%; }
.finale-names { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.fn { display: block; }
.finale-names .rozha { font-size: clamp(54px, 14vw, 110px); line-height: 1.25; padding: 0 .12em; white-space: nowrap; }
.sang-sm { font-size: clamp(26px, 6.4vw, 40px); }
.awaiting { font-style: italic; font-size: clamp(20px, 5vw, 28px); margin-top: 14px; }
footer { margin-top: 70px; font-size: clamp(20px, 5vw, 26px); padding-bottom: 40px; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .panel { padding: 120px 48px; }
  .couple-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 40px; max-width: 1400px; }
  .sang { flex-direction: column; width: auto; height: 62vh; margin: 0; gap: 18px; }
  .sang i { width: 1.5px; height: auto; flex: 1; background: linear-gradient(180deg, transparent, #f0c96a, transparent); }
  .sang-mandala { display: block; width: 120px; height: 120px; }
  .sang-mandala > div { width: 100%; height: 100%; }
  .name { font-size: clamp(90px, 8.6vw, 150px); }
  .person .parents { font-size: 22px; }
  .day { width: 520px; }
  .track { gap: 90px; padding: 24px calc(50vw - 260px); }
  .venues { grid-template-columns: 1fr 1fr; }
  .hero-mandala-wrap { width: min(34vh, 360px); margin-bottom: 18px; }
  .title { font-size: clamp(90px, 13vh, 140px); }
  #hero { padding-top: 60px; padding-bottom: 80px; }
  .music { width: 58px; height: 58px; }
  .tour { height: 58px; border-radius: 29px; right: calc(max(16px, env(safe-area-inset-right)) + 70px); font-size: 16px; }
}

/* short screens (phones held sideways, small laptop windows) */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  #gate { flex-direction: row; gap: 6vw; padding: 60px 5vw 50px; }
  .gate-mandala { width: min(64vh, 42vw); }
  .gate-band { height: 44px; }
  .gate-names { font-size: clamp(26px, 4.4vw, 40px); }
  .gate-hint { font-size: 12px; }
  .name, .finale-names .rozha { font-size: 17vh; }
  .title { font-size: 20vh; }
  .hero-mandala-wrap { width: 32vh; }
  .finale-mandala-wrap { width: 42vh; }
  .day { min-height: 0; padding: 28px 20px; }
  .day-name { font-size: 12vh; }
}

@media (prefers-reduced-motion: reduce) {
  .gold, .mask-gold, .btn-gold { animation: none; }
  .scrub-text .w { opacity: 1; }
}
