
.jr, .jr * { box-sizing: border-box; }
html, body { margin: 0; background: #2A0B12; scrollbar-width: none; -webkit-text-size-adjust: 100%; }
body::-webkit-scrollbar { display: none; }
html.jr-locked, html.jr-locked body { overflow: hidden; }
:where(.jr) :where(p, h1, h2, h3) { margin: 0; }
.jr {
  --wine: #2A0B12; --pink: #B95F57; --blush: #F4E1D6; --ivory: #FBF5EE;
  --gold: #C8A35E; --gold-l: #EED7A1; --gold-d: #8C6A2E; --line: rgba(200,163,94,.4);
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif; --hindi: 'Rozha One', serif; --sans: 'Jost', system-ui, sans-serif;
  --pad: clamp(120px, 26vw, 220px);
  position: relative; color: var(--ivory); background: var(--wine); overflow-x: clip;
  font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.jr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.jr-sfx { display: none; }
.jr [data-key-uid] { overflow-wrap: anywhere; }
.jr-eyebrow { font: 400 10.5px/1.6 var(--sans); letter-spacing: .48em; padding-left: .48em; text-transform: uppercase; color: var(--gold); }
.jr-h2 { font: 400 clamp(30px, 7.4vw, 58px)/1.18 var(--display); letter-spacing: -.005em; padding-bottom: .06em; }
.jr-div { display: block; width: 150px; height: 16px; margin: 48px auto 0; overflow: visible; }
.jr-div path { fill: none; stroke: var(--gold); stroke-width: 1; }

/* palace roofline along a section's top edge */
.jr-arcade { position: relative; }
.jr-arcade::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: var(--top, var(--wine)); pointer-events: none; z-index: 2;
  -webkit-mask: url(../assets/arcade.svg) 50% 0 / 40px 26px repeat-x; mask: url(../assets/arcade.svg) 50% 0 / 40px 26px repeat-x; }

/* ---------- opening: a closed jharokha ---------- */
.jr-intro { position: fixed; inset: 0; z-index: 50; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; overflow: hidden; background: #2A0B12; }
.jr-intro.gone { display: none; }
/* the window stays closed while the script loads; if it never runs, it opens by itself after a few seconds */
.jr:not(.js) .jr-intro { animation: jrNoScript .8s ease 6s forwards; }
@keyframes jrNoScript { to { opacity: 0; visibility: hidden; } }
.jr-wall { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.jr-wall-line { fill: none; stroke: url(#jrGold); stroke-width: 1.6; }
.jr-wall-line-2 { stroke-width: 1; opacity: .75; }
.jr-key { position: absolute; left: 0; top: 0; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 14px;
  border: 1px solid rgba(238,215,161,.75); box-shadow: 0 0 0 6px rgba(42,11,18,.35), 0 0 0 7px rgba(238,215,161,.25); background: rgba(42,11,18,.55);
  opacity: 0; transition: opacity .8s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.jr-key.ready { opacity: 1; }
.jr-key span { font: 400 30px/1 var(--display); color: var(--gold-l); letter-spacing: .02em; }
.jr-key i { width: 1px; height: 30px; background: rgba(238,215,161,.6); }
.jr-intro-cta { position: absolute; left: 0; right: 0; bottom: max(7svh, 28px); text-align: center; pointer-events: none; }
.jr-intro-cta span { font: 400 10.5px/1 var(--sans); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--gold-l); animation: jrPulse 2.8s ease-in-out infinite; }

/* petals */
.jr-petals { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.jr-petal { position: absolute; top: -6vh; left: var(--x); width: var(--s); height: calc(var(--s) * 1.25); border-radius: 80% 0 80% 0; background: var(--c); opacity: 0;
  animation: jrFall var(--dur) cubic-bezier(.3,.2,.5,1) var(--delay) forwards; }

/* ---------- hero ---------- */
.jr-hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 45%, #4A1621 0%, #2A0B12 72%); padding: 72px 24px 110px; }
.jr-facade-wrap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: -1; pointer-events: none; }
.jr-facade { display: block; overflow: visible; }
.jr-facade path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jr-facade-hero { height: min(34svh, 62vw); width: auto; }
.jr-facade-hero path { stroke: var(--gold); stroke-width: 1; opacity: .26; }
.jr-hero-copy { width: min(100%, 860px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.jr-blessing { font: 400 clamp(15px, 3.8vw, 19px)/1.6 var(--hindi); color: var(--gold-l); letter-spacing: .03em; }
.jr-names { margin: clamp(30px, 6svh, 56px) 0 0; width: 100%; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.jr-name { display: block; width: 100%; line-height: 1; }
.jr-fit { display: inline-block; white-space: nowrap; font: 400 clamp(46px, min(14vw, 10.5svh), 116px)/1.08 var(--display); letter-spacing: -.01em; padding: 0 .08em .1em; color: #F7EAD3; }
.jr-amp { display: block; margin: .2em 0 .3em; font: italic 400 clamp(22px, min(6vw, 4.6svh), 44px)/1 var(--display); color: var(--gold); }
.jr-rule { display: block; width: 56px; height: 1px; margin: clamp(30px, 5svh, 48px) 0 clamp(22px, 4svh, 34px); background: var(--gold); opacity: .8; }
.jr-hdate { display: flex; align-items: center; gap: 16px; font: 400 clamp(11px, 2.9vw, 13px)/1.4 var(--sans); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--gold-l); }
.jr-hdate i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); flex: none; }
.jr-city { margin-top: 14px; font: 400 clamp(10px, 2.6vw, 11.5px)/1.4 var(--sans); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: rgba(238,215,161,.55); }
.jr-cue { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; }
.jr-cue i { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: jrLine 2.4s cubic-bezier(.6,0,.2,1) infinite; }

/* ---------- invitation ---------- */
.jr-invite-sec { --top: var(--ivory); background: var(--ivory); color: var(--wine); text-align: center; padding: var(--pad) 28px; z-index: 2; }
.jr-invite-sec .jr-eyebrow { color: var(--pink); }
.jr-invite { max-width: 20ch; margin: 30px auto 0; font: 400 clamp(26px, 6.6vw, 48px)/1.25 var(--display); color: var(--wine); }
.jr-ask { max-width: 30ch; margin: 22px auto 0; font: 300 clamp(15px, 3.8vw, 18px)/1.75 var(--sans); color: rgba(42,11,18,.7); }

/* ---------- welcome ---------- */
.jr-story { --top: var(--pink); background: var(--pink); text-align: center; padding: var(--pad) 28px; z-index: 3; }
.jr-story .jr-eyebrow { color: #F8DDB4; }
.jr-story-text { max-width: 24ch; margin: 34px auto 0; font: 400 clamp(23px, 5.4vw, 42px)/1.42 var(--display); color: var(--ivory); }
.jr-story-text .w { opacity: .3; transition: opacity .4s ease; }
.jr-story-text .w.on { opacity: 1; }
.jr:not(.anim) .jr-story-text .w { opacity: 1; }
.jr-story .jr-div path { stroke: #F8DDB4; }

/* ---------- muhurat ---------- */
.jr-muhurat { --top: var(--ivory); background: var(--ivory); color: var(--wine); z-index: 4; }
.jr-mu-pin { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 3.4svh, 34px); padding: 60px 24px; overflow: hidden; }
.jr-muhurat .jr-eyebrow { color: var(--pink); }
.jr-mu-sun { position: relative; width: min(84vw, 58svh, 520px); aspect-ratio: 1; container-type: inline-size; }
.jr-mu-sun .jr-sun-rot { position: absolute; inset: 0; }
.jr-sun-rot > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.jr-sun path { fill: none; stroke: var(--gold-d); stroke-width: 1; }
.jr-sun circle { fill: var(--gold); }
.jr-mu-in { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: 38cqi; height: 38cqi; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqi; }
.jr-mu-day, .jr-mu-my { font: 400 11px/1.4 var(--sans); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--wine); }
.jr-mu-my { display: inline-flex; align-items: center; gap: 14px; }
.jr-mu-my i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.jr-mu-date { font: 400 17cqi/1 var(--display); color: var(--wine); padding-bottom: .04em; }
.jr-mu-time { font: 400 11px/1.4 var(--sans); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: rgba(42,11,18,.7); }
.jr-mu-t { color: var(--wine); }

/* ---------- gates ---------- */
.jr-gates { position: relative; z-index: 5; overflow: hidden; background: var(--wine); }
.jr-track { display: flex; width: max-content; height: 100svh; will-change: transform; }
.jr-panel { position: relative; flex: 0 0 100vw; width: 100vw; height: 100svh; overflow: hidden; }
.jr-gates-intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px; }
.jr-gates-intro .jr-h2 { margin-top: 26px; }
.jr-note { max-width: 30ch; margin-top: 22px; font-size: clamp(13px, 3.4vw, 15px); color: rgba(251,245,238,.6); }
.jr-hint { margin-top: 56px; }
.jr-hint i { display: block; width: 46px; height: 1px; background: var(--gold); position: relative; animation: jrNudge 2s ease-in-out infinite; }
.jr-hint i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); rotate: 45deg; }
.jr-gate { --bg: #123A2C; --bg2: #0B2419; --acc: #E8D39A; background: radial-gradient(75% 60% at 50% 40%, var(--bg) 0%, var(--bg2) 100%); }
.jr-g2 { --bg: #6E420D; --bg2: #3A2207; --acc: #F6DFA0; }
.jr-g3 { --bg: #0F3F4B; --bg2: #08242B; --acc: #E9D7A2; }
.jr-g4 { --bg: #651426; --bg2: #350811; --acc: #F2D5A4; }
.jr-gate-art { --gh: min(50svh, 96vw); position: absolute; left: calc(50% - var(--gh) * .3125); top: max(11svh, 48px); height: var(--gh); width: calc(var(--gh) * .625); }
.jr-gate-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.jr-gate-svg path { fill: none; stroke: var(--acc); stroke-width: 1.1; opacity: .9; }
.jr-gate-svg .jr-lattice path { stroke-width: .6; opacity: .5; }
.jr-gate-motif { position: absolute; left: 20%; right: 20%; top: 30%; }
.jr-motif { display: block; width: 100%; height: auto; overflow: visible; }
.jr-motif path { fill: none; stroke: var(--acc); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.jr-motif circle { fill: var(--acc); }
.jr-gate-copy { position: absolute; left: 0; right: 0; bottom: max(10svh, 44px); padding: 0 28px; text-align: center; }
.jr-gate-num { font: 400 13px/1 var(--display); letter-spacing: .2em; color: var(--acc); opacity: .8; }
.jr-gate-pol { margin-top: 14px; font: 400 10px/1.5 var(--sans); letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; color: var(--acc); }
.jr-gate-name { margin: 12px 0 14px; font: 400 clamp(36px, 9.4vw, 76px)/1.1 var(--display); color: var(--ivory); padding-bottom: .06em; }
.jr-gate-when { font: 400 clamp(10.5px, 2.8vw, 12px)/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(251,245,238,.85); }
.jr-gate-where { margin-top: 6px; font: 400 clamp(16px, 4vw, 20px)/1.5 var(--display); color: var(--acc); }
.jr-progress { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 18px; width: min(140px, 36vw); height: 1px; background: rgba(232,211,154,.18); z-index: 5; }
.jr-progress i { position: absolute; inset: 0; background: var(--gold-l); transform-origin: left; transform: scaleX(0); }
.jr:not(.anim) .jr-track { flex-direction: column; width: 100%; height: auto; }
.jr:not(.anim) .jr-panel { flex: none; width: 100%; height: auto; min-height: 100svh; }
.jr:not(.anim) .jr-progress { display: none; }

/* ---------- venue ---------- */
.jr-venue { --top: var(--blush); position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--wine);
  background: linear-gradient(180deg, var(--blush) 0%, #F0CDBE 55%, #DFA090 100%); padding-top: var(--pad); }
.jr-venue-copy { padding: 0 28px; }
.jr-venue .jr-eyebrow { color: var(--pink); }
.jr-addr { max-width: 22ch; margin: 30px auto 0; font: 400 clamp(24px, 6vw, 42px)/1.3 var(--display); color: var(--wine); }
.jr-venue-art { position: relative; width: 100%; display: flex; justify-content: center; padding-top: clamp(80px, 14svh, 140px); overflow: hidden; }
.jr-facade-venue { height: min(40svh, 84vw * .72); width: auto; position: relative; z-index: 1; }
.jr-facade-venue path { stroke: #7A2A35; stroke-width: 1.1; opacity: .8; }
.jr-kite { position: absolute; width: clamp(26px, 5vw, 44px); height: auto; z-index: 2; overflow: visible; }
.jr-kite path { fill: none; stroke: #8A3B44; stroke-width: 1.3; stroke-linejoin: round; }
.jr-kite-1 { left: 16%; top: 12%; animation: jrBob 5s ease-in-out infinite; }
.jr-kite-2 { right: 18%; top: 22%; width: clamp(20px, 4vw, 34px); animation: jrBob 6s ease-in-out -2s infinite; }

/* ---------- finale ---------- */
.jr-finale { --top: #2A0B12; position: relative; z-index: 7; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--pad) 28px; background: radial-gradient(70% 55% at 50% 45%, #43131D 0%, #2A0B12 75%); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jr-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jr-finale-in { position: relative; z-index: 1; }
.jr-bless { max-width: 32ch; margin: 22px auto 0; font: 400 clamp(17px, 4.2vw, 22px)/1.7 var(--display); color: rgba(251,245,238,.85); }
.jr-shubh { margin: clamp(64px, 12svh, 110px) 0 clamp(26px, 5svh, 40px); font: 400 clamp(52px, 15vw, 128px)/1.3 var(--hindi); color: var(--gold-l); padding: 0 .1em; }
.jr-await { font: 400 10.5px/1.6 var(--sans); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--gold); }
.jr-family { margin-top: 18px; font: 400 clamp(24px, 6.4vw, 44px)/1.3 var(--display); color: var(--ivory); }
.jr-foot { margin-top: clamp(64px, 12svh, 110px); font: 400 10.5px/1 var(--sans); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: rgba(238,215,161,.55); }

/* ---------- wide screens ---------- */
@media (min-aspect-ratio: 5/4) {
  .jr-gate-art { --gh: min(70svh, 600px); left: calc(32% - var(--gh) * .3125); top: calc(50% - var(--gh) / 2); }
  .jr-gate-copy { left: 56%; right: 6vw; bottom: auto; top: 50%; translate: 0 -50%; text-align: left; padding: 0; }
  .jr-gate-pol { padding-left: 0; }
  .jr-gate-name { font-size: clamp(40px, 6vw, 84px); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .jr { --pad: 90px; }
  .jr-hero { padding: 40px 24px 60px; }
  .jr-names { margin-top: 14px; flex-direction: row; justify-content: center; align-items: baseline; gap: .5em; }
  .jr-name { width: auto; }
  .jr-fit { font-size: clamp(38px, 7vw, 72px); }
  .jr-amp { margin: 0; }
  .jr-rule { margin: 18px 0 14px; }
  .jr-cue { display: none; }
  .jr-key { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .jr-key span { font-size: 22px; }
  .jr-intro-cta { bottom: 14px; }
  .jr-mu-sun { width: min(56svh, 50vw); }
  .jr-mu-pin { gap: 8px; padding: 20px; }
}

@keyframes jrLine { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes jrPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes jrNudge { 0%, 100% { translate: 0 0; } 50% { translate: 8px 0; } }
@keyframes jrBob { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 5px -8px; rotate: 4deg; } }
@keyframes jrFall { 0% { opacity: 0; transform: translate3d(0,0,0) rotate(var(--r)); } 10% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--dx), 112vh, 0) rotate(calc(var(--r) + 540deg)); } }

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