/* Shiv Shakti — watercolor storybook wedding invite (layout = shivshakti). Original Shyam Invitation styles. */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;background:#EFE3D0}
body{font-family:'Cormorant Garamond',serif;color:#5B4632;-webkit-font-smoothing:antialiased;overflow:hidden}
body.hi{font-family:'Tiro Devanagari Hindi',serif}
/* phone-shaped column; on desktop the painting sits centred over a blurred copy */
.pages{position:relative;height:100%;width:min(100vw,calc(100svh*.5625));margin:0 auto;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;container-type:inline-size;box-shadow:0 0 60px rgba(90,60,30,.25)}
.pages::-webkit-scrollbar{display:none}.pages.free{scroll-snap-type:none}
.pg{position:relative;height:100svh;min-height:100%;overflow:hidden;scroll-snap-align:start;background:#F7EEDF}
.bg{position:absolute;inset:0;overflow:hidden}
.bg img{width:100%;height:100%;object-fit:cover;object-position:50% 100%;transform:scale(1.1);transform-origin:50% 80%;transition:transform 14s cubic-bezier(.2,.6,.3,1)}
.pg.in .bg img{transform:scale(1)}
.wash{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,250,240,.55) 0,rgba(255,250,240,.3) 38%,rgba(255,250,240,0) 58%)}
.wash.strong{background:linear-gradient(180deg,rgba(255,250,240,.82) 0,rgba(255,250,240,.7) 52%,rgba(255,250,240,0) 74%)}
.wash.full{background:linear-gradient(180deg,rgba(255,250,240,.86) 0,rgba(255,250,240,.78) 70%,rgba(255,250,240,.35) 100%)}
.glow{position:absolute;left:-20%;right:-20%;top:-10%;height:60%;pointer-events:none;background:radial-gradient(ellipse 50% 45% at 60% 30%,rgba(255,236,200,.65),transparent 70%);animation:gl 7s ease-in-out infinite alternate}
.glow.sun{top:auto;bottom:22%;height:40%;background:radial-gradient(ellipse 40% 40% at 50% 60%,rgba(255,214,150,.55),transparent 70%)}
@keyframes gl{from{opacity:.55;transform:translateY(0)}to{opacity:1;transform:translateY(8px)}}
.tx{position:relative;z-index:2;padding:13cqw 9cqw 0;text-align:center}
#fx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:30}

/* type-on text: chars/words fade in one by one */
.tw .w{display:inline-block;white-space:nowrap}
.tw .c{opacity:0;display:inline-block;transform:translateY(.25em);filter:blur(3px);white-space:pre}
.pg.in .tw .c{animation:ch .55s ease forwards;animation-delay:var(--d,0ms)}
@keyframes ch{to{opacity:1;transform:none;filter:none}}
.rv{opacity:0;transform:translateY(14px);transition:opacity .9s ease,transform .9s ease}
.pg.in .rv{opacity:1;transform:none}

/* monogram */
.mono{display:block;width:44cqw;margin:0 auto 1cqw;overflow:visible}
.mono text{font-family:'Great Vibes',cursive;font-size:150px;fill:url(#mg)}
.mono .i2{font-size:130px}
.mono .vine{stroke-dasharray:260;stroke-dashoffset:260}
.mono .lf,.mono .bird{opacity:0;transform-box:fill-box;transform-origin:center}
.mono text{clip-path:inset(0 100% 0 0)}
.pg.in .mono .vine{animation:dr 2.2s .2s ease forwards}
.pg.in .mono text{animation:wipe 1.6s .3s cubic-bezier(.5,0,.3,1) forwards}.pg.in .mono .i2{animation-delay:.9s}
.pg.in .mono .lf{animation:pop .5s ease forwards}
.pg.in .mono .lf:nth-child(1){animation-delay:.6s}.pg.in .mono .lf:nth-child(2){animation-delay:.85s}.pg.in .mono .lf:nth-child(3){animation-delay:1.1s}
.pg.in .mono .lf:nth-child(4){animation-delay:1.35s}.pg.in .mono .lf:nth-child(5){animation-delay:1.6s}.pg.in .mono .lf:nth-child(6){animation-delay:1.85s}
.pg.in .mono .bird{animation:fly 1.2s 2s ease forwards}
@keyframes dr{to{stroke-dashoffset:0}}@keyframes wipe{to{clip-path:inset(0 0 0 0)}}
@keyframes pop{from{opacity:0;scale:.2}to{opacity:1;scale:1}}@keyframes fly{from{opacity:0;translate:-30px 20px}to{opacity:1;translate:0 0}}
.mono.sm{width:26cqw}

/* hero */
.dear{font:italic 600 4.6cqw 'Cormorant Garamond',serif;color:#8A5A3A;margin-bottom:2cqw}
.hero .tx{padding-top:16cqw}
.nm.g{font:700 8.4cqw/1.15 'Playfair Display',serif;color:#6E8B2E;letter-spacing:.01em;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.wd{font:italic 600 4.6cqw 'Cormorant Garamond',serif;color:#7C8F45;margin:.6cqw 0}
.hi .nm.g{font-family:'Tiro Devanagari Hindi',serif;font-weight:400;font-size:9cqw}
.tap{position:absolute;left:50%;bottom:8%;transform:translateX(-50%);z-index:4;padding:3cqw 6cqw;border-radius:999px;border:1px solid rgba(201,151,58,.8);background:rgba(255,250,240,.86);color:#8A3A6E;font:600 4.2cqw 'Mukta',sans-serif;letter-spacing:.06em;cursor:pointer;box-shadow:0 6px 20px rgba(120,70,30,.2);animation:bob 2.2s ease-in-out infinite;white-space:nowrap}
.tap span{color:#C9973A}.tap.gone{opacity:0;pointer-events:none;transition:opacity .5s}
@keyframes bob{50%{transform:translate(-50%,-6px)}}

/* families */
.fam .tx{padding-top:9cqw}
.ganesh{width:13cqw;height:13cqw}
.inv{font:500 3.8cqw 'Tiro Devanagari Hindi',serif;color:#9A6A1E;margin:.5cqw 0 3cqw}
.lead{font:italic 500 4.3cqw/1.4 'Cormorant Garamond',serif;color:#5B4632;max-width:76cqw;margin:0 auto}
.hi .lead,.hi .msg,.hi .par,.hi .cl,.hi .rs,.hi .vn,.hi .tm,.hi .of{font-family:'Tiro Devanagari Hindi',serif;font-style:normal}
.hd.m{font:600 6cqw/1.2 'Cormorant Garamond',serif;color:#A3287A;margin-top:1.2cqw}
.hi .hd.m{font-family:'Tiro Devanagari Hindi',serif;font-size:6.6cqw}
.msg{font:italic 500 3.9cqw/1.4 'Cormorant Garamond',serif;margin-top:1.5cqw}
.of{font:italic 500 3.6cqw 'Cormorant Garamond',serif;color:#7A6450;margin-top:.6cqw}
.nm.s{font:400 9.6cqw/1.1 'Great Vibes',cursive;color:#A3287A;margin-top:2.2cqw}
.hi .nm.s{font:400 7.6cqw/1.2 'Tiro Devanagari Hindi',serif}
.par{font:600 3.7cqw/1.35 'Cormorant Garamond',serif;color:#6B5541;margin-top:.6cqw}
.amp{font:400 7cqw 'Great Vibes',cursive;color:#C9973A;margin-top:.8cqw}

/* events */
.ev .tx{padding-top:11cqw}
.et{font:400 13cqw/1 'Great Vibes',cursive;color:#A3287A;text-shadow:0 2px 0 rgba(255,255,255,.55)}
.hi .et{font:400 10cqw/1.2 'Tiro Devanagari Hindi',serif}
.dt{display:flex;align-items:flex-end;justify-content:center;gap:2cqw;margin-top:3cqw;color:#2F5D3A}
.dt b{display:inline-flex;align-items:flex-start;font:600 12cqw/1 'Cormorant Garamond',serif}.dt sup{font-size:.36em;line-height:1;vertical-align:baseline;margin:.12em 0 0 .06em}
.dt span{font:italic 600 4.4cqw 'Cormorant Garamond',serif;letter-spacing:.06em;padding-bottom:1.4cqw}
.hi .dt span{font-family:'Tiro Devanagari Hindi',serif;font-style:normal}
.tm{font:600 4.4cqw 'Cormorant Garamond',serif;color:#3E4F36;margin-top:3cqw}
.vn{font:600 4.3cqw/1.35 'Cormorant Garamond',serif;color:#3E4F36;margin:3cqw auto 0;max-width:74cqw}
.nt{font:italic 500 3.8cqw 'Cormorant Garamond',serif;color:#6B5541;margin-top:1.5cqw}
.ev-wedding .et{color:#A3287A}

/* thanks */
.ty .tx{padding-top:12cqw}
.cl{font:italic 600 5.4cqw/1.4 'Cormorant Garamond',serif;color:#3F6B33;max-width:78cqw;margin:2cqw auto 0}
.rs{font:600 4.4cqw 'Cormorant Garamond',serif;color:#3F6B33;margin-top:6cqw}
.cph{width:30cqw;height:30cqw;margin:1cqw auto 2cqw;border-radius:50%;padding:1.2cqw;background:conic-gradient(from 30deg,#E3C27A,#F6E6B8,#C9973A,#E3C27A)}
.cph img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}

/* final page */
.fin .tx{padding-top:16cqw;display:flex;flex-direction:column;gap:3.4cqw;height:100%}
.lbl{font:600 4.2cqw 'Mukta',sans-serif;letter-spacing:.04em;color:#8A3A6E}
.cd{display:flex;justify-content:center;gap:2.4cqw}
.cd div{width:17cqw;padding:2.4cqw 0;border-radius:3cqw;background:rgba(255,255,255,.8);border:1px solid #E3C27A;box-shadow:0 4px 14px rgba(150,100,40,.12)}
.cd b{display:block;font:600 7.4cqw 'Cormorant Garamond',serif;color:#A3287A}.cd small{font:600 2.9cqw 'Mukta',sans-serif;color:#7A6450;letter-spacing:.06em}
.btns{display:flex;flex-wrap:wrap;justify-content:center;gap:2.4cqw}
.pill{display:inline-block;padding:2.8cqw 4.6cqw;border-radius:999px;background:linear-gradient(180deg,#C2358A,#8E2670);color:#fff;text-decoration:none;font:600 3.8cqw 'Mukta',sans-serif}
.pill.ghost{background:rgba(255,255,255,.85);color:#8E2670;border:1px solid #E0A9CC}
.rform{display:flex;flex-direction:column;gap:2.6cqw;margin-top:1cqw;text-align:left;background:rgba(255,255,255,.62);padding:4cqw;border-radius:4cqw;border:1px solid #EBD3A8}
.rform .lbl{text-align:center}
.rform input[name=name]{width:100%;padding:3.2cqw 3.6cqw;border-radius:3cqw;border:1.5px solid #E3C27A;background:#fff;font:4.2cqw 'Mukta',sans-serif;color:#5B4632}
.att{display:flex;gap:2cqw}.att label{flex:1}.att input{position:absolute;opacity:0}
.att span{display:block;text-align:center;padding:3cqw 1cqw;border-radius:3cqw;border:1.5px solid #E3C27A;background:#fff;font:600 3.7cqw 'Mukta',sans-serif;color:#8E2670;cursor:pointer}
.att input:checked+span{background:#A3287A;color:#fff;border-color:#A3287A}
.gc{display:flex;align-items:center;gap:2.4cqw;font:600 4cqw 'Mukta',sans-serif;color:#8E2670}.gc span{flex:1}
.gc button{width:9cqw;height:9cqw;border-radius:50%;border:1.5px solid #E3C27A;background:#fff;color:#8E2670;font-size:5cqw;cursor:pointer}
.gc input{width:10cqw;text-align:center;background:transparent;border:0;color:#8E2670;font:700 5cqw 'Mukta',sans-serif}
.rform .go{padding:3.4cqw;border-radius:999px;border:0;background:linear-gradient(180deg,#C2358A,#8E2670);color:#fff;font:700 4.2cqw 'Mukta',sans-serif;cursor:pointer}
.fmsg{min-height:4cqw;text-align:center;color:#8E2670;font:4cqw 'Mukta',sans-serif}.rform.sent .go{opacity:.6}.hp{position:absolute;left:-9999px}
.credit{margin-top:auto;margin-bottom:22cqw;font:500 3.3cqw 'Mukta',sans-serif;color:#7A6450;text-decoration:none}

.mbtn{position:fixed;right:14px;top:14px;z-index:40;width:42px;height:42px;border-radius:50%;border:1px solid rgba(201,151,58,.8);background:rgba(255,250,242,.9);color:#A3287A;display:grid;place-items:center;cursor:pointer}
.mbtn svg{width:20px;height:20px}.mbtn.on svg{animation:spin 4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
body.reel .mbtn{display:none}
.demo-bar{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:45;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 16px;border-radius:999px;background:rgba(110,42,120,.92);color:#FBEAF4;font:14px 'Mukta',sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.3);white-space:nowrap}
.demo-bar .go{padding:9px 16px;border-radius:999px;background:linear-gradient(180deg,#F6DC92,#C9973A);color:#4A1220;text-decoration:none;font-weight:700}
body.reel .pages{width:100vw;box-shadow:none}
@media (prefers-reduced-motion:reduce){.bg img{transition:none;transform:none}.tw .c{animation:none!important;opacity:1;transform:none;filter:none}.glow{animation:none}}
