/* One opening for every design. Markup and behaviour are in js/openings.js. Loaded after invite.css. */

.cover { position: fixed; inset: 0; margin: 0 auto; max-width: var(--col); height: 100%; z-index: 40; overflow: hidden; background: var(--i-bg); container-type: inline-size; }
.cover.op { --op-name: #ffe3a0; --op-soft: #ffd9e2; --op-halo: rgba(20, 4, 30, .85); isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; text-align: center; color: #fff; transition: opacity .8s ease; }
.cover.op.gone { opacity: 0; pointer-events: none; }
.op button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.op button:focus-visible { outline: 3px solid #ffd36a; outline-offset: 4px; }
.op svg { display: block; }

/* the words */
.op-words { position: absolute; left: 0; right: 0; z-index: 5; padding: 0 14px; pointer-events: none; text-shadow: 0 2px 14px var(--op-halo), 0 0 4px var(--op-halo); }
.op-words-top, .op-words-none { top: 5.5svh; }
.op-words-bottom, .op-words-low { bottom: 98px; }
.inv .cover.op .guest { margin: 0 0 4px; padding: 0 8cqw; color: var(--op-soft); font: 600 3.4cqw 'Mukta', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.inv .cover.op .to { margin: 2px 0; color: var(--op-soft); font: italic 500 4.4cqw 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; }
.inv .cover.op .when { margin: 6px 0 0; color: var(--op-soft); font-size: 4cqw; }
.inv .cover.op .names span { color: var(--op-name); font-size: 13.5cqw; line-height: 1.04; }
.inv .cover.op .names em { color: var(--op-soft); font-size: 4.8cqw; line-height: 1.25; }
.inv.lettering-royal .cover.op .names span { font-size: 9.6cqw; }
.inv.lettering-classic .cover.op .names span { font-size: 11.6cqw; }

/* what to do, and the way round it */
.op-hint { position: absolute; z-index: 6; left: 50%; bottom: 52px; translate: -50% 0; width: max-content; max-width: 92cqw; margin: 0 !important; padding: 6px 16px; border-radius: 99px; background: rgba(15, 4, 24, .55); color: #fff; font: 600 14.5px/1.4 'Mukta', sans-serif; pointer-events: none; animation: op-breathe 2.4s ease-in-out infinite; transition: opacity .3s; }
.op-hint:empty { display: none; }
.op .op-skip { position: absolute; z-index: 7; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; white-space: nowrap; padding: 3px 10px; border-radius: 99px; background: rgba(15, 4, 24, .38); color: #fff; font: 500 12px 'Mukta', sans-serif; text-decoration: underline; text-underline-offset: 3px; transition: opacity .3s; }
.op.playing .op-hint, .op.playing .op-skip { opacity: 0; animation: none; pointer-events: none; }

.op-night, .op-stars, .op-glow, .op-desk, .op-velvet, .op-airsky, .op-table, .op-deep, .op-leaf, .op-sand, .op-garden, .op-wall, .op-floor, .op-phulkari, .op-before, .op-after { position: absolute; inset: 0; }
.op-stars { pointer-events: none; }
.op-stars i { position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.op .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.1s ease-in-out infinite; }

/* ---------- Kashi: hold the lamp ---------- */
.op-diya { --p: 0; --op-halo: rgba(14, 6, 40, .9); background: #12082c; }
.op-diya .op-night { background: linear-gradient(#0c0726 0%, #2a1250 52%, #7b2b52 70%, #12082c 71%); }
.op-ghat { position: absolute; left: 0; width: 100%; color: #14081f; }
.op-diya .op-ghat { bottom: 29%; height: 21%; }
.op-water { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(transparent 0 13px, rgba(255, 190, 110, .13) 14px 15px), linear-gradient(#1d1148, #0a0620); }
.op-diya .op-water { height: 29.5%; }
.op-diya .op-glow { top: auto; left: 50%; right: auto; bottom: 168px; width: 240px; height: 240px; margin: 0 0 -120px -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 170, .95), rgba(255, 158, 40, .45) 38%, transparent 68%); scale: calc(.45 + var(--p) * 6.4); opacity: calc(.45 + var(--p) * .55); mix-blend-mode: screen; pointer-events: none; }
.op .op-flame { position: absolute; left: 50%; bottom: 102px; width: 132px; height: 132px; margin-left: -66px; border-radius: 50%; touch-action: none; }
.op-flame svg { position: absolute; }
.op-flame > svg:last-child { left: 22px; top: 18px; width: 88px; height: 88px; filter: drop-shadow(0 0 14px #ffb637); }
.op-ring { inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.op-ring circle { fill: rgba(255, 190, 90, .08); stroke: #ffd36a; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); stroke-linecap: round; }
.op-diya .op-flame::after { content: ''; position: absolute; inset: 4px; border: 1.5px dashed rgba(255, 220, 140, .65); border-radius: 50%; animation: op-ripple 2s ease-out infinite; }

/* ---------- Ayodhya: light the steps ---------- */
.op-deepotsav { --op-halo: rgba(30, 6, 26, .9); background: #1a0620; }
.op-deepotsav .op-night { background: linear-gradient(#150a30, #4a1238 46%, #8c2a2a 54%, #2a0a1c 55%); }
.op-deepotsav .op-ghat { bottom: 47%; height: 16%; color: #1f0716; }
.op-steps { position: absolute; left: 0; right: 0; top: 53%; bottom: 96px; touch-action: none; background: repeating-linear-gradient(#4b1c22 0 3px, #34121c 4px 22%, #1c0812 calc(22% + 2px) 25%); }
.op .op-lamp { position: absolute; width: calc(11.5cqw * var(--k)); max-width: calc(54px * var(--k)); translate: -50% -50%; opacity: .62; transition: opacity .25s, filter .25s, scale .25s; }
.op-lamp svg { width: 100%; height: auto; }
.op-lamp .fl { opacity: 0; transition: opacity .2s; }
.op .op-lamp.on { opacity: 1; scale: 1.1; filter: drop-shadow(0 0 12px #ffae2e) drop-shadow(0 0 4px #ffd36a); }
.op-lamp.on .fl { opacity: 1; }
.op-count { position: absolute; left: 0; right: 0; top: calc(53% - 28px); margin: 0 !important; z-index: 4; color: #ffd36a; font: 600 13px 'Mukta', sans-serif; }
.op-deepotsav .op-glow { background: radial-gradient(circle at 50% 75%, #fff2c2, #ff9d1f 45%, rgba(255, 120, 20, 0) 80%); opacity: 0; pointer-events: none; z-index: 4; transition: opacity .8s ease; }
.op-deepotsav.flood .op-glow { opacity: .95; }

/* ---------- Vaishno Devi: lift the chunri ---------- */
.cover.op-chunri { --op-name: #fff0b8; --op-soft: #ffe3c4; --op-halo: rgba(90, 0, 18, .9); background: transparent; }
.op .op-cloth { position: absolute; left: -2px; right: -2px; top: 0; height: 84%; touch-action: none; cursor: grab; box-shadow: 0 18px 36px rgba(0, 0, 0, .4);
  background:
    radial-gradient(circle, #ffe08a 0 2px, transparent 3px) 0 0 / 34px 34px,
    radial-gradient(circle, rgba(255, 255, 255, .55) 0 1.5px, transparent 2.5px) 17px 17px / 34px 34px,
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 18px, rgba(255, 255, 255, .07) 30px 44px, rgba(0, 0, 0, .16) 66px),
    linear-gradient(#c30f2f, #9d0724); }
.op-gota { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background:
    linear-gradient(135deg, transparent 33%, #ffd36a 34% 50%, transparent 51%) 0 0 / 22px 22px,
    linear-gradient(225deg, transparent 33%, #ffd36a 34% 50%, transparent 51%) 0 0 / 22px 22px,
    linear-gradient(#f6c453, #b97d14 18%, #8e0820 19% 80%, #f6c453 81%); }
.op-tassels { position: absolute; left: 0; right: 0; top: 100%; display: flex; justify-content: space-around; }
.op-tassels b { width: 12px; height: 36px; transform-origin: 50% 0; background: radial-gradient(circle at 50% 10px, #ffd36a 0 6px, transparent 7px), linear-gradient(#ffd36a, #ffd36a) 50% 0 / 2px 10px no-repeat, linear-gradient(transparent 14px, #ffb81f 15px); clip-path: polygon(25% 0, 75% 0, 75% 34%, 100% 100%, 0 100%, 25% 34%); animation: sway 2.6s ease-in-out infinite; }
.op-words-cloth { top: 13svh; }
.op-chunri .op-hint { bottom: calc(16% + 60px); animation: op-swipe-up 1.6s ease-in-out infinite; }

/* ---------- Udaipur: row to the palace ---------- */
.cover.op-boat { --p: 0; --op-halo: rgba(8, 14, 52, .9); --op-soft: #cfe6ff; background: #0a1240; }
.cover.op-boat .op-night { background: linear-gradient(#080d34, #233a7d 54%, #c8748a 64%, #0a1240 65%); }
.op-moon { position: absolute; right: 9%; top: 41%; width: 44px; height: 44px; border-radius: 50%; background: #fff4d6; box-shadow: 0 0 36px 8px rgba(255, 240, 200, .45); }
.op-palace { position: absolute; left: 0; width: 100%; height: auto; bottom: calc(35% - 2px); scale: calc(1 + var(--p) * .12); transform-origin: 50% 100%; }
.op-windows { opacity: calc(.12 + var(--p) * .88); filter: drop-shadow(0 0 4px #ffb637); }
.cover.op-boat .op-water { height: 35%; background: repeating-linear-gradient(transparent 0 12px, rgba(190, 220, 255, .13) 13px 14px), linear-gradient(#1c2c6c, #070c30); }
.op-route { position: absolute; left: 24%; right: 12%; bottom: 190px; border-top: 2px dashed rgba(255, 255, 255, .42); rotate: -12deg; opacity: calc(1 - var(--p)); }
.op .op-skiff { position: absolute; left: 14px; bottom: 100px; width: 122px; touch-action: none; cursor: grab; animation: op-bob 2.8s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.op-skiff svg { width: 100%; height: auto; }

/* ---------- Taj Mahal: brush the petals ---------- */
.cover.op-petals { --op-name: #8a0c2e; --op-soft: #8c4a5a; --op-halo: transparent; background: transparent; }
.op-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.op-words-card { top: 19svh; left: 10cqw; right: 10cqw; padding: 30px 10px 18px; border-radius: 170px 170px 18px 18px; background: rgba(255, 249, 242, .96); box-shadow: 0 0 0 5px rgba(255, 249, 242, .35), 0 18px 40px rgba(60, 0, 20, .45); text-shadow: none; transition: opacity .5s, scale .6s; }
.inv .op-words-card .guest { padding: 0 6cqw; }
.inv .cover.op .op-words-card .names span { font-size: 12cqw; }
.op-petals.flood .op-words { opacity: 0; scale: 1.12; }

/* ---------- Nikah: the lattice unfolds ---------- */
.cover.op-jaali { --op-name: #f8e2a4; --op-soft: #cdeee0; --op-halo: transparent; background: transparent; }
.op-lattice { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; }
.op-lattice i { display: block; min-height: 0; background: #063a30; box-shadow: 0 0 0 .5px #063a30; transition: transform .7s ease var(--d), opacity .7s ease var(--d); }
.op-lattice svg { width: 100%; height: 100%; }
.op-words-arch { top: 9svh; left: 8cqw; right: 8cqw; padding: 38px 8px 20px; border-radius: 200px 200px 18px 18px; border: 2px solid #e9cb72; background: rgba(3, 38, 31, .97); box-shadow: 0 0 0 5px rgba(3, 38, 31, .8), 0 0 0 6px #c9a54a, 0 20px 40px rgba(0, 0, 0, .45); transition: opacity .5s; }
.inv .op-words-arch .guest { padding: 0 6cqw; }
.inv .cover.op .op-words-arch .names span { font-size: 12cqw; }
.op .op-crescent { position: absolute; left: 50%; bottom: 98px; width: 108px; height: 108px; translate: -50% 0; border-radius: 50%; filter: drop-shadow(0 0 18px rgba(255, 224, 150, .55)); animation: op-beckon 2.2s ease-in-out infinite; transition: opacity .5s; }
.op-crescent svg { width: 100%; height: 100%; }
.op-jaali.unfold .op-lattice i { transform: perspective(700px) rotateY(90deg); opacity: 0; }
.op-jaali.unfold .op-words, .op-jaali.unfold .op-crescent { opacity: 0; transition-delay: .35s; }

/* ---------- Chapel: the rose window ---------- */
.cover.op-rosewindow { --op-name: #fff3d6; --op-soft: #e9dcf2; --op-halo: rgba(24, 18, 34, .95); background: transparent; }
.op-wall { background: radial-gradient(circle at 50% 30%, rgba(255, 214, 140, .22), transparent 55%), repeating-linear-gradient(0deg, transparent 0 46px, rgba(0, 0, 0, .22) 47px 48px), linear-gradient(#3d3350, #1d1829); transition: opacity .9s ease; }
.op .op-rose { position: absolute; left: 50%; top: 6svh; width: min(80cqw, 38svh); translate: -50% 0; border-radius: 50%; filter: drop-shadow(0 0 22px rgba(255, 215, 140, .35)); transition: filter 1s ease; animation: op-beckon 3s ease-in-out infinite; }
.op-rose svg { width: 100%; height: auto; overflow: visible; }
.op-pane { stroke: #2a2236; stroke-width: 3; opacity: .82; transform-box: fill-box; transform-origin: center; transition: opacity .5s ease calc(var(--i) * 70ms), transform .9s cubic-bezier(.5, 0, .9, .5) calc(var(--i) * 25ms); }
.op-rosewindow.shine .op-rose { filter: brightness(1.35) drop-shadow(0 0 60px #ffd98a); animation: none; }
.op-rosewindow.shine .op-pane { opacity: 1; }
.op-rosewindow.shatter .op-pane { transform: translate(var(--x), var(--y)) rotate(50deg) scale(.5); opacity: 0; }
.op-rosewindow.shatter .op-wall, .op-rosewindow.shatter .op-words { opacity: 0; transition: opacity .9s ease; }
.op-rosewindow.shatter .op-rose { opacity: 0; transition: opacity 1s ease .2s; }

/* ---------- Gurdwara: a quiet morning ---------- */
.cover.op-dawn { --op-halo: rgba(14, 24, 62, .85); --op-soft: #ffe6c8; background: #0d1740; }
.op-before { background: linear-gradient(#08103a, #1f3470 70%, #36508c); }
.op-after { background: linear-gradient(#274a8e 0%, #7a77b0 34%, #f3a15f 62%, #ffd98e 72%); opacity: 0; transition: opacity 2.3s ease; }
.op-dawn .op-stars { transition: opacity 1.6s ease; }
.op-sun { position: absolute; left: 50%; bottom: calc(30% - 96px); width: 124px; height: 124px; margin-left: -62px; border-radius: 50%; background: radial-gradient(circle, #fffbe6, #ffd35a 60%, #ffab2e); box-shadow: 0 0 70px 26px rgba(255, 196, 90, .55); transition: translate 2.4s cubic-bezier(.3, .6, .3, 1); }
.op-lake { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(transparent 0 11px, rgba(255, 220, 170, .16) 12px 13px), linear-gradient(#2c447e, #0b1334); }
.op-mist { position: absolute; left: -30%; width: 160%; height: 74px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(230, 236, 255, .3), transparent 70%); animation: op-drift 11s ease-in-out infinite alternate; pointer-events: none; }
.op-mist.m1 { bottom: 25%; }
.op-mist.m2 { bottom: 17%; animation-duration: 15s; animation-direction: alternate-reverse; }
.op .op-morning { position: absolute; left: 50%; bottom: 100px; width: 78px; height: 78px; translate: -50% 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #ffd98e; background: rgba(255, 220, 160, .14); color: #ffe7b0; animation: op-beckon 2.6s ease-in-out infinite; transition: opacity .8s; }
.op-morning svg { width: 42px; height: 42px; }
.op-dawn.rise .op-after { opacity: 1; }
.op-dawn.rise .op-stars, .op-dawn.rise .op-morning { opacity: 0; }
.op-dawn.rise .op-sun { translate: 0 -132px; }

/* ---------- Punjab: beat the dhol ---------- */
.cover.op-dhol { --op-name: #ffe45a; --op-soft: #c4fff1; --op-halo: rgba(60, 0, 44, .95); background: #6b0c4b; }
.op-phulkari { background:
    radial-gradient(ellipse 90% 52% at 50% 26%, rgba(80, 6, 56, .96) 40%, rgba(80, 6, 56, .55) 70%, transparent),
    linear-gradient(135deg, #ff2f86 25%, transparent 25%) -22px 0 / 44px 44px,
    linear-gradient(225deg, #ffd21e 25%, transparent 25%) -22px 0 / 44px 44px,
    linear-gradient(315deg, #ff7a12 25%, transparent 25%) 0 0 / 44px 44px,
    linear-gradient(45deg, #1fb98c 25%, transparent 25%) 0 0 / 44px 44px,
    #7a0f55; }
.op .op-drum { position: absolute; left: 50%; bottom: 122px; width: min(74cqw, 34svh); translate: -50% 0; z-index: 2; filter: drop-shadow(0 16px 18px rgba(30, 0, 20, .65)); animation: op-beckon 1.4s ease-in-out infinite; }
.op-drum svg { width: 100%; height: auto; overflow: visible; }
.op-drum .stick { transform-box: fill-box; }
.op-drum .s1 { transform-origin: 0 0; }
.op-drum .s2 { transform-origin: 100% 0; }
.op-drum.hit { animation: op-thud .3s ease-out; }
.op-drum.hit .s1 { animation: op-stick-l .28s ease-out; }
.op-drum.hit .s2 { animation: op-stick-r .28s ease-out; }
.op-boomring { position: absolute; left: 50%; bottom: 122px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; border: 5px solid #ffd21e; opacity: 0; pointer-events: none; }
.op-boomring.hit { animation: op-boom .6s ease-out; }
.op-beats { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; gap: 12px; }
.op-beats i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; transition: background .15s, scale .2s; }
.op-beats i.on { background: #ffd21e; border-color: #ffd21e; scale: 1.25; }

/* ---------- South: the kolam draws itself ---------- */
.cover.op-kolam { --op-name: #ffe9b0; --op-soft: #e5f6c8; --op-halo: rgba(46, 8, 6, .95); background: #4a140f; }
.op-floor { background:
    radial-gradient(circle, rgba(255, 255, 255, .06) 0 1px, transparent 2px) 0 0 / 13px 13px,
    radial-gradient(ellipse at 50% 66%, #7a2a1a, #3c0f0c 72%); }
.op-floor::before, .op-floor::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: linear-gradient(135deg, #e8a62c 25%, transparent 25%) 0 0 / 18px 18px, linear-gradient(225deg, #e8a62c 25%, transparent 25%) 0 0 / 18px 18px, #1f6b3a; }
.op-floor::before { top: 0; }
.op-floor::after { bottom: 0; }
.op .op-pulli { position: absolute; left: 50%; bottom: 100px; width: min(84cqw, 42svh); aspect-ratio: 1; translate: -50% 0; }
.op-pulli svg { width: 100%; height: 100%; overflow: visible; }
.op-pulli::after { content: ''; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border: 2px solid #fff8e8; border-radius: 50%; background: rgba(255, 248, 232, .18); animation: op-ripple 1.7s ease-out infinite; }
.op-dots circle { fill: #fff8e8; opacity: .62; }
.op-lines { opacity: 0; }
.op-lines path { fill: none; stroke: #fffdf4; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s ease calc(var(--i) * .22s); }
.op-heart { scale: 0; transform-origin: 150px 150px; transition: scale .8s cubic-bezier(.2, 1.7, .4, 1); }
.op-heart path { fill: #ff9f1c; stroke: #fff3c4; stroke-width: 1.5; }
.op-heart circle { fill: #d81436; stroke: #fff3c4; stroke-width: 2; }
.op-kolam.draw .op-lines { opacity: 1; }
.op-kolam.draw .op-lines path { stroke-dashoffset: 0; }
.op-kolam.draw .op-pulli::after { display: none; }
.op-kolam.flower .op-heart { scale: 1.25; }

/* ---------- sealed letter ---------- */
.cover.op-seal { --op-name: #4a2030; --op-soft: #7a4a56; --op-halo: transparent; background: #cdbfa8; }
.op-desk { background: repeating-linear-gradient(90deg, rgba(120, 90, 50, .09) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 5px), radial-gradient(circle at 50% 38%, #e9dfcc, #bcab8e); }
.op-envelope { position: absolute; left: 50%; bottom: 116px; width: min(86cqw, 380px); aspect-ratio: 10 / 7.2; translate: -50% 0; perspective: 900px; z-index: 6; transition: translate 1s cubic-bezier(.4, 0, .2, 1); }
.op-back, .op-front { position: absolute; inset: 0; border-radius: 8px; }
.op-back { background: color-mix(in srgb, var(--i-deep) 78%, #000); box-shadow: 0 24px 40px rgba(60, 40, 20, .4); }
.op-sheet { position: absolute; z-index: 1; left: 6%; right: 6%; top: 8%; bottom: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; border-radius: 4px; background: #fffaf0; border: 1px solid var(--i-gold); outline: 1px solid var(--i-gold); outline-offset: -6px; color: var(--i-deep); transition: translate .8s cubic-bezier(.3, .7, .2, 1), scale .8s ease; }
.op-sheet span { font: 400 8.4cqw/1.15 'Great Vibes', 'Tiro Devanagari Hindi', cursive; max-width: 100%; overflow-wrap: anywhere; }
.op-sheet em { font: italic 500 4.4cqw 'Cormorant Garamond', serif; color: var(--i-gold); }
.op-front { z-index: 2; background: linear-gradient(160deg, color-mix(in srgb, var(--i-deep) 88%, #fff), var(--i-deep)); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.op-address { position: absolute; z-index: 3; left: 8%; right: 8%; bottom: 9%; margin: 0 !important; color: #ffeec2; font: 400 6cqw/1.2 'Great Vibes', 'Tiro Devanagari Hindi', cursive; }
.op-flap { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 56%; background: linear-gradient(color-mix(in srgb, var(--i-deep) 92%, #fff), color-mix(in srgb, var(--i-deep) 86%, #000)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .7s ease; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.op .op-wax { position: absolute; z-index: 5; left: 50%; top: 52%; width: 82px; height: 82px; translate: -50% -50%; border-radius: 46% 54% 52% 48% / 52% 48% 52% 48%; background: radial-gradient(circle at 36% 30%, #e9566a, #b0122e 55%, #7c0b20); box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 0 0 7px rgba(90, 0, 14, .35); color: #ffd9a8; animation: op-beckon 1.9s ease-in-out infinite; }
.op-wax b { font: 700 21px 'Cinzel', 'Yatra One', serif; letter-spacing: .04em; }
.op-seal.broken .op-wax { animation: op-crack .45s ease forwards; pointer-events: none; }
.op-seal.broken .op-flap { transform: rotateX(178deg); }
.op-seal.lifted .op-flap { z-index: 0; }
.op-seal.lifted .op-sheet { translate: 0 -62%; }
.op-seal.lifted .op-envelope { translate: -50% 22px; }
.op-seal.drawn .op-sheet { translate: 0 -70%; scale: 1.14; z-index: 8; }
.op-seal.lifted .op-words { opacity: 0; transition: opacity .5s; }

/* ---------- royal scroll ---------- */
.cover.op-unroll { --op-name: #6b1426; --op-soft: #ffe0a8; --op-halo: rgba(40, 0, 14, .9); background: #5a0f24; }
.op-velvet { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 6px, rgba(255, 255, 255, .05) 22px 30px, rgba(0, 0, 0, .25) 52px), radial-gradient(circle at 50% 46%, #8c1c38, #3a0616); }
.op-scroll { position: absolute; left: 7cqw; right: 7cqw; top: 53%; translate: 0 -50%; }
.op-rod { position: relative; z-index: 2; display: block; height: 20px; margin: 0 -8px; border-radius: 10px; background: linear-gradient(#f4d58a, #a9742a 45%, #6a4210); box-shadow: 0 6px 12px rgba(0, 0, 0, .45); }
.op-rod::before, .op-rod::after { content: ''; position: absolute; top: -4px; width: 16px; height: 28px; border-radius: 8px; background: radial-gradient(circle at 40% 30%, #ffe9a8, #b8862b 60%, #6a4210); }
.op-rod::before { left: -10px; }
.op-rod::after { right: -10px; }
.op-parch { height: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #fff4d8, #ecd6a4); box-shadow: inset 0 0 24px rgba(130, 80, 20, .35); transition: height 2.1s cubic-bezier(.45, .05, .25, 1); }
.op-parch-in { height: min(56svh, 480px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 14px; color: #6b1426; }
.op-parch-in > p { margin: 0; font: italic 600 4.8cqw 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; }
.op-parch-in .fmark { width: 52px; height: 52px; color: #a9742a; }
.inv .cover.op .op-parch .names span { font-size: 12cqw; }
.inv .cover.op .op-parch .names em, .inv .cover.op .op-parch .when { color: #8a5a1e; }
.op .op-ribbon { position: absolute; z-index: 3; left: 50%; top: 24px; width: 82px; transform: translate(-50%, 0); touch-action: none; cursor: grab; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); transition: opacity .4s; }
.op-ribbon svg { width: 100%; height: auto; animation: op-tug 1.6s ease-in-out infinite; }
.op-unroll.open .op-parch { height: min(56svh, 480px); }
.op .op-ribbon { opacity: 1; }
.op-unroll.open .op-ribbon { opacity: 0 !important; pointer-events: none; }

/* ---------- story ring ---------- */
.cover.op-story { --op-name: #fff; --op-soft: #ffe3f0; --op-halo: rgba(60, 0, 40, .55); background: linear-gradient(160deg, var(--i-deep), var(--i-accent) 60%, var(--i-gold)); }
.op-blobs { position: absolute; inset: 0; overflow: hidden; }
.op-blobs i { position: absolute; width: 74cqw; height: 74cqw; border-radius: 50%; filter: blur(38px); opacity: .55; animation: op-float 9s ease-in-out infinite alternate; }
.op-blobs i:nth-child(1) { left: -22cqw; top: 6%; background: #ff6fb1; }
.op-blobs i:nth-child(2) { right: -26cqw; top: 36%; background: #ffc62e; animation-delay: -3s; }
.op-blobs i:nth-child(3) { left: 8cqw; bottom: -12%; background: #36c9d6; animation-delay: -6s; }
.op-bars { position: absolute; z-index: 3; left: 12px; right: 12px; top: 12px; display: flex; gap: 5px; }
.op-bars i { flex: 1; height: 3.5px; border-radius: 4px; background: rgba(255, 255, 255, .38); }
.op .op-ringbtn { position: absolute; left: 50%; top: 34%; width: min(52cqw, 27svh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; transition: scale .8s cubic-bezier(.6, 0, .9, .5), opacity .8s; animation: op-beckon 1.8s ease-in-out infinite; }
.op-ringbtn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffd36a, #ff2f86, #8a3ffc, #36c9d6, #ffd36a); animation: spin 4s linear infinite; }
.op-ringbtn > span { position: absolute; inset: 7px; display: grid; place-items: center; border-radius: 50%; border: 5px solid #fff; background: radial-gradient(circle at 40% 30%, var(--i-accent), var(--i-deep)); }
.op-ringbtn b { font: 400 12cqw 'Italiana', 'Cormorant Garamond', serif; color: #fff; }
.op-story.zoom .op-ringbtn { scale: 7; opacity: 0; animation: none; }
.op-story.zoom .op-words { opacity: 0; transition: opacity .3s; }

/* ---------- boarding pass ---------- */
.cover.op-tear { --op-name: #14243c; --op-soft: #fff; --op-halo: rgba(10, 50, 90, .6); background: #4aa8d8; }
.op-airsky { background: radial-gradient(ellipse 120px 34px at 20% 18%, rgba(255, 255, 255, .85), transparent 70%), radial-gradient(ellipse 150px 40px at 82% 80%, rgba(255, 255, 255, .8), transparent 70%), radial-gradient(ellipse 90px 24px at 74% 24%, rgba(255, 255, 255, .6), transparent 70%), linear-gradient(#1c6ea8, #6fc2e6 60%, #ffd9b8); }
.op-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.op-path path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-dasharray: 7 9; vector-effect: non-scaling-stroke; }
.op-pass { position: absolute; left: 50%; top: 52%; width: min(92cqw, 420px); translate: -50% -50%; display: flex; align-items: stretch; text-align: left; filter: drop-shadow(0 20px 28px rgba(8, 40, 70, .4)); }
.op-main { flex: 1; min-width: 0; padding: 0 16px 18px; border-radius: 16px 0 0 16px; background: #fffdf8; color: #14243c; }
.op-passhead { display: flex; justify-content: space-between; align-items: center; margin: 0 -16px 12px; padding: 11px 16px; border-radius: 16px 0 0 0; background: var(--i-deep); color: #fff; font: 700 13px 'Mukta', sans-serif; }
.op-passhead .fmark { width: 24px; height: 24px; color: #ffd36a; }
.inv .op-pass p { margin: 0; text-shadow: none; }
.inv .op-label { font: 600 11px 'Mukta', sans-serif; color: #70809a; }
.inv .op-small { font: 600 12px 'Mukta', sans-serif; color: var(--i-accent); margin-bottom: 6px !important; }
.inv .cover.op .op-pass .names { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0 8px; margin: 0 0 10px; text-align: left; }
.inv .cover.op .op-pass .names span { font-size: 8.4cqw; }
.inv .cover.op .op-pass .names em { color: var(--i-accent); font-size: 5cqw; align-self: center; }
.op-route2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.op-route2 b { font: 700 4.6cqw 'Mukta', sans-serif; overflow-wrap: anywhere; }
.op-route2 i { font-style: normal; color: var(--i-accent); font-size: 20px; }
.inv .cover.op .op-pass .when { margin: 0; color: #14243c; font: 700 14px 'Mukta', sans-serif; letter-spacing: 0; }
.op .op-stub { width: 82px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 0 16px 16px 0; border-left: 3px dashed #9aa8bd; background: #fff3da; color: #14243c; transform-origin: 0 100%; touch-action: none; cursor: grab; transition: opacity .6s; }
.op-stub small { font: 700 11px 'Mukta', sans-serif; }
.op-barcode { width: 44px; height: 132px; background: repeating-linear-gradient(#14243c 0 2px, transparent 2px 5px, #14243c 5px 9px, transparent 9px 11px, #14243c 11px 12px, transparent 12px 16px); animation: op-nudge 1.8s ease-in-out infinite; }
.op-plane { position: absolute; z-index: 4; left: -70px; top: 76%; width: 66px; height: 66px; color: #fff; rotate: 6deg; filter: drop-shadow(0 8px 8px rgba(8, 40, 70, .35)); pointer-events: none; }
.op-tear.torn .op-stub { transform: translate(180px, 90px) rotate(28deg) !important; opacity: 0; transition: transform .8s cubic-bezier(.4, 0, .8, .6), opacity .8s; }
.op-tear.torn .op-plane { left: 112%; top: 4%; scale: 1.9; transition: left 1.7s cubic-bezier(.5, 0, .6, 1), top 1.7s cubic-bezier(.3, 0, .7, 1), scale 1.7s ease; }

/* ---------- storybook ---------- */
.cover.op-book { --op-name: #ffeec2; --op-soft: #fff0d8; --op-halo: rgba(40, 18, 6, .85); background: #6b4226; }
.op-table { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 58px), repeating-linear-gradient(88deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px), radial-gradient(circle at 50% 40%, #9a6236, #4a2a16); }
.op-tome { position: absolute; left: 50%; top: 52%; width: min(76cqw, 46svh); aspect-ratio: 3 / 4.1; translate: -50% -50%; perspective: 1500px; transition: scale .9s cubic-bezier(.6, 0, .8, .6), opacity .9s; }
.op-pages { position: absolute; inset: 6px 4px 6px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; border-radius: 3px 10px 10px 3px; background: linear-gradient(90deg, #e3d6bc, #fffaf0 14%); box-shadow: 3px 0 0 #efe5cf, 6px 0 0 #d8cbac, 0 22px 36px rgba(0, 0, 0, .5); color: var(--i-deep); }
.op-pages .fmark { width: 46px; height: 46px; color: var(--i-gold); }
.inv .op-pages p { margin: 0; text-shadow: none; font: italic 500 5cqw 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; }
.inv .cover.op .op-pages .when { color: var(--i-deep); }
.op .op-boards { position: absolute; inset: 0; padding: 14px; border-radius: 4px 14px 14px 4px; background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0 14px, rgba(255, 255, 255, .16) 15px 17px, transparent 18px), linear-gradient(150deg, var(--i-deep), color-mix(in srgb, var(--i-deep) 66%, #000)); transform-origin: left center; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.55, .05, .25, 1); box-shadow: 4px 8px 18px rgba(0, 0, 0, .4); backface-visibility: hidden; animation: op-lift 2.6s ease-in-out infinite; }
.op-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; margin-left: 8px; border: 2px solid var(--i-gold); outline: 1px solid var(--i-gold); outline-offset: 5px; padding: 8px; }
.op-frame small { font: italic 500 4.6cqw 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; color: #ffe2ac; }
.op-frame .fmark { width: 38px; height: 38px; color: #ffd36a; }
.inv .cover.op .op-frame .names span { font-size: 10.5cqw; text-shadow: none; }
.op-book.open .op-boards { transform: rotateY(-158deg); animation: none; }
.cover.op-book.open .op-tome { translate: -38% -50%; transition: translate 1.5s ease, scale .9s ease, opacity .9s; }
.cover.op-book.enter .op-tome { scale: 3.2; opacity: 0; }
.cover.op-book .op-words { transition: opacity .5s; }
.cover.op-book.open .op-words { opacity: 0; }

/* ---------- painted ghats: touch the water ---------- */
.cover.op-ripple { --op-halo: rgba(8, 30, 50, .85); --op-soft: #cdeff5; background: #0d2c44; }
.op-deep { background: linear-gradient(#10224a, #2f6a7c 52%, #e79a5f 61%, #14506a 62%, #07202f); }
.op-ripple .op-ghat { bottom: 38%; height: 17%; color: #0b1c30; }
.op .op-pool { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; overflow: hidden; }
.op-pool i { position: absolute; left: 50%; top: 40%; width: 220px; height: 64px; margin: -32px 0 0 -110px; border: 2px solid rgba(220, 248, 255, .75); border-radius: 50%; animation: op-ring-out 2.4s ease-out infinite both; }
.op-splash { position: absolute; z-index: 8; width: 60px; height: 24px; margin: -12px 0 0 -30px; border: 2px solid #fff; border-radius: 50%; animation: op-splash 1.2s ease-out both; pointer-events: none; }

/* ---------- painted palace: through the jharokha ---------- */
.cover.op-window { --op-halo: rgba(80, 24, 46, .95); --op-name: #fff0c8; background: transparent; }
.op-stone { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 61%; overflow: visible; transition: transform 1.5s cubic-bezier(.6, 0, .85, .55); }
.op .op-portal { position: absolute; left: 27%; right: 27%; top: 40%; height: 40%; border-radius: 50% 50% 4px 4px / 34% 34% 2px 2px; box-shadow: 0 0 0 0 rgba(255, 230, 170, .8); animation: op-glowring 2s ease-out infinite; }
.op-window.through .op-stone { transform: scale(4.6); }
.op-window.through .op-words { opacity: 0; transition: opacity .5s; }
.op-window.through .op-portal { display: none; }

/* ---------- South mandapam: part the jasmine ---------- */
.cover.op-jasmine { --p: 0; --op-halo: rgba(10, 48, 24, .95); --op-name: #fff3c0; --op-soft: #e6ffd8; background: transparent; }
.op-leaf { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 24px), linear-gradient(#1d6b34, #0b3419); opacity: calc(1 - var(--p) * 1.1); }
.op .op-strings { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.op-strings i { position: absolute; top: -8px; width: 7%; height: 106%; transform-origin: 50% 0; }
.op-strings b { display: block; width: 100%; height: 100%; animation: sway 5s ease-in-out infinite; transform-origin: 50% 0; background:
    radial-gradient(ellipse 4.5px 7px at 50% 50%, #fffef4 96%, transparent) 20% 0 / 70% 15px repeat-y,
    radial-gradient(ellipse 4.5px 7px at 50% 50%, #eefbe0 96%, transparent) 80% 7px / 70% 15px repeat-y,
    radial-gradient(circle at 50% 50%, #ff9f1c 0 7px, transparent 8px) 50% 12px / 100% 190px repeat-y,
    linear-gradient(#6fae52, #6fae52) 50% 0 / 1.5px 100% no-repeat; }
.op-strings i:nth-child(even) b { animation-delay: -2.4s; background-position: 20% 8px, 80% 15px, 50% 108px, 50% 0; }
.op-jasmine .op-words { top: 12svh; left: 9cqw; right: 9cqw; padding: 18px 8px; border-radius: 22px; background: rgba(9, 46, 22, .92); border: 1.5px solid #e8c25a; opacity: calc(1 - var(--p)); }
.inv .cover.op.op-jasmine .names span { font-size: 12cqw; }

/* ---------- beach: names in the sand ---------- */
.cover.op-wave { --op-name: #6d4a1f; --op-soft: #8a6633; --op-halo: rgba(255, 244, 220, .9); background: transparent; }
.op-wave .op-sand { background: radial-gradient(circle, rgba(130, 90, 40, .2) 0 1px, transparent 2px) 0 0 / 9px 11px, radial-gradient(circle, rgba(255, 255, 255, .45) 0 1px, transparent 2px) 4px 6px / 13px 17px, linear-gradient(#f4dfb4, #dcbb82); transition: opacity .2s; }
.op-words-sand { top: 12svh; text-shadow: 1px 1px 0 rgba(255, 248, 226, .9), -1px -1px 0 rgba(120, 80, 30, .28); transition: opacity .2s; }
.op .op-tide { position: absolute; inset: 0; width: 100%; transform: translateY(86%); touch-action: none; cursor: grab; }
.op-tide svg { width: 100%; height: 112%; animation: op-lap 3s ease-in-out infinite; }
.op-wave.washed .op-sand, .op-wave.washed .op-words { opacity: 0; }

/* ---------- painted nikah card: pull the lantern ---------- */
.cover.op-lantern { --p: 0; --op-name: #f8e2a4; --op-soft: #cdeee0; --op-halo: rgba(3, 26, 28, .95); background: #04201f; }
.cover.op-lantern .op-night { background: linear-gradient(#031718, #0a3d38 60%, #04201f); }
.op-lantern .op-glow { inset: auto; left: 50%; top: 120px; width: 300px; height: 300px; margin: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 232, 150, .9), rgba(255, 196, 70, .28) 40%, transparent 68%); opacity: calc(.18 + var(--p) * .82); scale: calc(.6 + var(--p) * 1.2); transition: scale .9s ease, opacity .9s ease; pointer-events: none; }
.op-hanger { position: absolute; left: 50%; top: 0; width: min(36cqw, 21svh); translate: -50% 0; animation: sway 5.4s ease-in-out infinite; transform-origin: 50% 0; }
.op-hanger > svg { width: 100%; height: auto; }
.op-glass { opacity: calc(.28 + var(--p) * .72); filter: drop-shadow(0 0 8px #ffd96a); }
.op .op-tassel { --drop: 0px; position: absolute; left: 50%; top: 80%; width: 56px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; touch-action: none; cursor: grab; }
.op-tassel i { display: block; width: 2px; height: calc(18px + var(--drop)); background: #e9cb72; }
.op-tassel svg { width: 30px; height: 50px; animation: op-tug 1.6s ease-in-out infinite; }
.op-lantern.flood .op-glow { scale: 7; opacity: 1; }
.op-lantern.flood .op-words, .op-lantern.flood .op-hanger { opacity: 0; transition: opacity .8s; }

/* ---------- garden card: the bud opens ---------- */
.cover.op-bloom { --op-name: #2f5a42; --op-soft: #8a4a62; --op-halo: rgba(255, 250, 244, .95); background: #f3efe2; }
.op-garden { background: radial-gradient(ellipse 60px 24px at 12% 82%, rgba(110, 150, 96, .5), transparent 72%), radial-gradient(ellipse 70px 28px at 88% 74%, rgba(110, 150, 96, .45), transparent 72%), radial-gradient(circle at 50% 66%, #fffaf2, #e5ead6 75%); }
.op .op-bud { position: absolute; left: 50%; bottom: 112px; width: min(70cqw, 36svh); aspect-ratio: 1; translate: -50% 0; transition: scale .8s ease, opacity .8s ease; }
.op-bud i { position: absolute; left: 37%; top: 6%; width: 26%; height: 44%; transform-origin: 50% 100%; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; background: linear-gradient(#ffd3df, #e8678d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 2px 6px rgba(150, 50, 80, .2); transform: rotate(calc((var(--a) - 180deg) * .14)) scale(.78); transition: transform 1.1s cubic-bezier(.2, .9, .3, 1.2) var(--d); }
.op-bud i.p2 { top: 14%; height: 36%; background: linear-gradient(#ffe2e9, #f08aa8); }
.op-bud i.p3 { top: 23%; height: 27%; background: linear-gradient(#fff0f3, #f6a8bd); }
.op-bud b { position: absolute; left: 43%; top: 43%; width: 14%; height: 14%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff0a8, #e0a21e); scale: 0; transition: scale .6s ease .5s; }
.op-bud::after { content: ''; position: absolute; left: 49%; top: 50%; width: 2%; height: 40%; background: #5f8a54; z-index: -1; border-radius: 4px; }
.op-bloom.open .op-bud i { transform: rotate(var(--a)) scale(1); }
.op-bloom.open .op-bud b { scale: 1; }
.op-bloom.open .op-bud::after { opacity: 0; }
.op-bloom.burst .op-bud { scale: 4; opacity: 0; }
.op-bloom.burst .op-words { opacity: 0; transition: opacity .5s; }

/* short phones */
@media (max-height: 660px) {
  .inv .cover.op .names span { font-size: 11cqw; }
  .inv .cover.op .when { font-size: 3.6cqw; }
  .op-words-top, .op-words-none { top: 3svh; }
}

@keyframes op-breathe { 50% { opacity: .66; } }
@keyframes op-beckon { 50% { scale: 1.055; } }
@keyframes op-ripple { from { scale: .75; opacity: 1; } to { scale: 1.45; opacity: 0; } }
@keyframes op-swipe-up { 50% { margin-bottom: 10px; } }
@keyframes op-bob { 50% { translate: 0 -7px; } }
@keyframes op-drift { to { translate: 18% 0; } }
@keyframes op-thud { 35% { scale: 1.1 .9; } }
@keyframes op-stick-l { 40% { rotate: 22deg; } }
@keyframes op-stick-r { 40% { rotate: -22deg; } }
@keyframes op-boom { from { scale: .5; opacity: 1; } to { scale: 2.2; opacity: 0; } }
@keyframes op-crack { 30% { scale: 1.2; rotate: -8deg; } to { scale: .4; rotate: 30deg; opacity: 0; translate: -50% 60px; } }
@keyframes op-tug { 50% { translate: 0 9px; } }
@keyframes op-float { to { translate: 12cqw 9cqw; scale: 1.18; } }
@keyframes op-nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 5px 0; } }
@keyframes op-lift { 50% { transform: rotateY(-9deg); } }
@keyframes op-ring-out { from { scale: .2; opacity: 1; } to { scale: 1.5; opacity: 0; } }
@keyframes op-splash { from { scale: .3; opacity: 1; } to { scale: 9; opacity: 0; } }
@keyframes op-glowring { to { box-shadow: 0 0 0 18px rgba(255, 230, 170, 0); } }
@keyframes op-lap { 50% { translate: 0 8px; } }

@media (prefers-reduced-motion: reduce) {
  .cover.op, .cover.op * { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
