/* ============================================================
   WowWishes film invitations — Rose Palace, Storybook Vivah,
   Storybook Anand Karaj. Every section runs the full width; the
   9:16 film plays in a full-height frame over a blurred copy of
   itself on a wide screen.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
body { margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-tap-highlight-color: transparent; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

/* ---------- the look of each design ---------- */
.film {
    --frame-w: min(100vw, calc(100svh * 9 / 16));
    --paper: #fbf3ea; --paper-2: #f6e7d8; --ink: #5b3c2d; --soft: #8a6a58;
    --accent: #b5476b; --gold: #b98a4a; --gold-soft: #e4c99b;
    --cover-a: #eeb7c2; --cover-b: #d98a9d;
    --display: 'Cormorant Garamond', Georgia, serif;
    --caps: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
    --script: 'Pinyon Script', 'Great Vibes', cursive;
    --body: 'Cormorant Garamond', Georgia, serif;
    --deva: 'Tiro Devanagari Hindi', serif;
}
.look-vivah, .look-karaj {
    --paper: #f8eedd; --paper-2: #f2e2c8; --ink: #4a2b1e; --soft: #7b5a44;
    --accent: #9c2f4f; --gold: #b88a3e; --gold-soft: #e2c48c;
    --display: 'Cinzel', Georgia, serif;
    --caps: 'Cinzel', Georgia, serif;
    --script: 'Great Vibes', cursive;
}
.look-karaj { --accent: #a3284f; --gold: #bf8f2c; --deva: 'Noto Serif Gurmukhi', serif; --cover-a: #f6d07a; --cover-b: #e98aa0; }

.sample-bar, .film-banner-note { position: fixed; top: 0; left: 0; right: 0; z-index: 60; font: 600 10px/1.4 system-ui, sans-serif; letter-spacing: .08em; }
.sample-bar { display: flex; justify-content: space-between; gap: 8px; padding: 8px 16px; background: rgba(255, 249, 240, .9); backdrop-filter: blur(10px); color: #705b42; }
.sample-bar a { text-decoration: none; }
.film-banner-note { padding: 5px 10px; background: rgba(20, 20, 20, .78); color: #fff; text-align: center; text-transform: uppercase; pointer-events: none; }

/* ============================================================
   1 · The film
   ============================================================ */
.intro { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #2b1c14; }
.intro__backdrop { position: absolute; inset: -50px; }
.intro__backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.15) brightness(.82); transform: scale(1.06); }
.intro__backdrop-hero { opacity: 0; transition: opacity 1.4s ease; }
.intro.is-done .intro__backdrop-hero, .intro.is-blooming .intro__backdrop-hero { opacity: 1; }
.intro__frame { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2; width: var(--frame-w); transform: translateX(-50%); }
.intro__zoom { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% var(--banner-top, 10%); transition: transform 7s cubic-bezier(.22, 1, .36, 1); translate: 0 var(--drift, 0px); }
/* Wider than the film: feather its sides into the blurred copy behind it. */
@media (min-aspect-ratio: 10/16) {
    .intro__zoom { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
}
.intro__poster, .intro__video, .intro__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro__video, .intro__still { opacity: 0; }
.intro__still { transition: opacity .5s ease; }
.intro__flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff 0, rgba(255, 246, 225, .85) 35%, rgba(255, 240, 210, 0) 75%); opacity: 0; pointer-events: none; }
.intro.is-playing .intro__video { opacity: 1; }
.intro.is-playing .intro__poster { visibility: hidden; transition: visibility 0s .15s; }
.intro.is-blooming .intro__flash { animation: bloom 2.4s ease-in-out forwards; }
@keyframes bloom { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(1.6); } }
.intro.is-blooming .intro__still { opacity: 1; transition: opacity .8s ease 1.2s; }
.intro.is-done .intro__still { opacity: 1; }
.intro.is-done .intro__video { opacity: 0; transition: opacity .3s .25s; }
.opening-book .intro.is-done .intro__zoom { transform: scale(1.06); }

/* the tap */
.intro__tap { position: absolute; inset: 0; z-index: 5; display: block; width: 100%; }
.intro__pill { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); padding: 12px 26px; border-radius: 999px; background: linear-gradient(180deg, #c2486c, #9a2b4c); color: #fff4e8; font: 600 12px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 2px rgba(255, 225, 190, .6), 0 10px 26px rgba(70, 20, 30, .45); animation: beckon 2.2s ease-in-out infinite; }
@keyframes beckon { 0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 2px rgba(255, 225, 190, .6), 0 10px 26px rgba(70, 20, 30, .45), 0 0 0 0 rgba(255, 210, 160, .55); } 50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 0 2px rgba(255, 225, 190, .8), 0 12px 30px rgba(70, 20, 30, .5), 0 0 0 14px rgba(255, 210, 160, 0); } }
.intro__glow { position: absolute; left: var(--x); top: var(--y); width: 92px; height: 92px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 180, .85), rgba(255, 210, 120, .25) 45%, transparent 70%); animation: seal 2s ease-in-out infinite; }
@keyframes seal { 0%, 100% { transform: translate(-50%, -50%) scale(.85); opacity: .65; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } }
.intro__caption { position: absolute; left: 0; right: 0; bottom: 15%; color: #7a5a3a; font: 400 12px/1 var(--caps); letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(255, 245, 230, .9); }
.intro.is-playing .intro__tap, .intro.is-blooming .intro__tap, .intro.is-done .intro__tap { pointer-events: none; opacity: 0; transition: opacity .3s; }
.film-skip { position: absolute; right: 14px; bottom: 22px; z-index: 6; padding: 7px 14px; border-radius: 999px; background: rgba(255, 250, 242, .8); color: #6b4a33; font: 600 10px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; backdrop-filter: blur(6px); }
html:not(.is-locked) .film-skip { display: none; }

/* the names, once the film has played */
.intro__banner { position: absolute; left: 50%; top: var(--banner-top); z-index: 3; width: 84%; transform: translateX(-50%); text-align: center; }
.intro__banner.is-drawn { aspect-ratio: 400 / 110; display: grid; place-items: center; opacity: 0; transition: opacity 1s ease .2s; }
.intro.is-done .intro__banner.is-drawn { opacity: 1; }
.intro__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(60, 30, 10, .3)); }
.intro__names { position: relative; display: block; padding: 6% 0 8%; font: 400 clamp(26px, 8.4vw, 36px)/1 var(--script); color: var(--accent); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.intro__names > * { display: inline-block; opacity: 0; transform: translateY(8px); }
.intro__names i { font-size: .62em; font-style: normal; color: var(--gold); }
.intro.is-done .intro__names > * { animation: name-in 1s cubic-bezier(.22, 1, .36, 1) forwards; }
.intro.is-done .intro__names > :nth-child(1) { animation-delay: .5s; }
.intro.is-done .intro__names > :nth-child(2) { animation-delay: .8s; }
.intro.is-done .intro__names > :nth-child(3) { animation-delay: 1.1s; }
@keyframes name-in { to { opacity: 1; transform: none; } }

.intro__hero-text { position: absolute; left: 0; right: 0; top: 12%; z-index: 3; padding: 0 28px; text-align: center; }
.intro__hero-text > * { opacity: 0; transform: translateY(14px); }
.intro.is-done .intro__hero-text > * { animation: name-in 1.2s cubic-bezier(.22, 1, .36, 1) forwards; }
.intro.is-done .intro__hero-text > :nth-child(2) { animation-delay: .35s; } .intro.is-done .intro__hero-text > :nth-child(3) { animation-delay: .55s; }
.intro.is-done .intro__hero-text > :nth-child(4) { animation-delay: .8s; } .intro.is-done .intro__hero-text > :nth-child(5) { animation-delay: 1s; }
.intro.is-done .intro__hero-text > :nth-child(6) { animation-delay: 1.2s; } .intro.is-done .intro__hero-text > :nth-child(7) { animation-delay: 1.4s; }
.intro__couple { display: flex; flex-direction: column; align-items: center; margin-top: 14px; font: 400 clamp(40px, 12vw, 54px)/1.02 var(--caps); color: #6b4433; text-shadow: 0 2px 18px rgba(255, 240, 225, .9); }
.intro__couple i { margin: 4px 0; font: 400 .62em/1 var(--script); font-style: normal; color: var(--accent); }
.intro__date { margin-top: 10px; font: 600 12px/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: #6b4433; }
.intro__hero-text .rule { display: block; width: 120px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.intro__hero-text .pill { margin-top: 22px; }
.bloom { position: absolute; top: -12vh; width: 46%; pointer-events: none; animation: sway 6s ease-in-out infinite alternate; }
.bloom--l { left: -20px; transform-origin: top left; } .bloom--r { right: -20px; transform: scaleX(-1); transform-origin: top right; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 18px; transform: translateX(-50%); border-radius: 999px; background: rgba(255, 250, 242, .78); color: #6b4a33; font: 600 10px/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .8s 1.4s; backdrop-filter: blur(6px); }
.scroll-cue i { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px) rotate(45deg); } }
.intro.is-done .scroll-cue { opacity: 1; pointer-events: auto; }

/* petals over everything, lanterns over the palace */
.petals { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.petals i { position: absolute; top: -20px; left: calc(var(--n, 1) * 11%); width: 9px; height: 12px; border-radius: 80% 0 80% 20%; background: #e98da4; opacity: .8; animation: fall 12s linear infinite; }
.petals i:nth-child(1) { --n: 0.5; animation-delay: -1s; } .petals i:nth-child(2) { --n: 1.5; animation-delay: -6s; background: #f5b3c2; }
.petals i:nth-child(3) { --n: 2.6; animation-delay: -3s; } .petals i:nth-child(4) { --n: 3.7; animation-delay: -9s; background: #f7c873; }
.petals i:nth-child(5) { --n: 4.6; animation-delay: -4.5s; } .petals i:nth-child(6) { --n: 5.6; animation-delay: -11s; background: #f5b3c2; }
.petals i:nth-child(7) { --n: 6.7; animation-delay: -7.5s; } .petals i:nth-child(8) { --n: 7.6; animation-delay: -2s; background: #f7c873; }
.petals i:nth-child(9) { --n: 8.5; animation-delay: -10s; }
@keyframes fall { to { transform: translate(40px, 110svh) rotate(600deg); } }
.lanterns { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 2s 1s; }
.intro.is-done .lanterns { opacity: 1; }
.lantern { position: absolute; bottom: -60px; width: var(--w); height: calc(var(--w) * 1.35); border-radius: 40% 40% 30% 30%; background: var(--lantern-img, radial-gradient(ellipse at 50% 70%, #fff3c4, #ffc35c 45%, #e8822b 100%)) center / contain no-repeat; box-shadow: 0 0 calc(var(--w) * 1.2) rgba(255, 190, 90, .55); animation: rise var(--dur) linear infinite; animation-delay: var(--delay); }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: .95; } 90% { opacity: .85; } 100% { transform: translate(var(--drift), -115svh); opacity: 0; } }

/* ============================================================
   Shared section furniture
   ============================================================ */
main > section { position: relative; padding: 84px 20px; text-align: center; overflow: hidden; }
.heading { position: relative; z-index: 1; }
.heading h2 { font: 400 clamp(38px, 10vw, 54px)/1.05 var(--script); color: var(--accent); }
.heading p { margin-top: 6px; font: italic 400 18px/1.4 var(--body); color: var(--soft); }
.over { font: 600 11px/1.6 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.flourish { width: 150px; margin: 14px auto 0; color: var(--gold); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--gold-soft); background: rgba(255, 251, 244, .85); color: #6b4a33; font: 600 11px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; }
.map { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border: 1px solid var(--gold-soft); border-radius: 999px; font: 600 10px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); text-decoration: none; background: rgba(255, 255, 255, .55); }
.pin { width: 13px; height: 13px; }
.button { display: inline-block; width: 100%; padding: 15px 22px; border-radius: 999px; background: linear-gradient(180deg, #b23f63, #8d2746); color: #fff6ec; font: 600 12px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; text-align: center; box-shadow: 0 10px 24px -10px rgba(120, 30, 60, .7); }
.look-rose .button { background: linear-gradient(180deg, #7a4a3a, #5b3427); }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -6px); } }

/* ============================================================
   2 · The invitation card
   ============================================================ */
.invitation { padding: 110px 20px 80px; background: radial-gradient(ellipse 70% 60% at 50% 35%, #fffaf2, transparent 70%), linear-gradient(180deg, var(--paper), var(--paper-2)); }
.invitation__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invitation__stage { position: relative; max-width: 560px; margin: 0 auto; }
.jhumars { position: absolute; top: -110px; left: 0; right: 0; z-index: 2; height: 0; pointer-events: none; }
.jhumar { position: absolute; top: 0; width: 52px; transform-origin: 50% 0; animation: sway 4.6s ease-in-out infinite alternate; }
.jhumar img, .jhumar svg { width: 100%; height: auto; }
.jhumar--l { left: 2%; } .jhumar--r { right: 2%; animation-delay: -2s; }
.jhumar--c { left: 50%; width: 44px; margin-left: -22px; top: -60px; animation-delay: -1s; }
@media (min-width: 640px) { .jhumar { width: 70px; } .jhumar--l { left: -4%; } .jhumar--r { right: -4%; } }
.arch { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 380px; margin: 0 auto; padding: 46px 26px 34px;
    border-radius: 190px 190px 18px 18px; background: rgba(255, 252, 246, .94); border: 1px solid rgba(185, 138, 74, .55);
    box-shadow: inset 0 0 0 6px rgba(255, 252, 246, .94), inset 0 0 0 7px rgba(185, 138, 74, .35), 0 24px 50px -24px rgba(90, 50, 20, .45); }
/* the card writes itself in, line by line */
.arch > * { opacity: 0; transform: translateY(12px); }
.arch.is-in > * { animation: name-in .8s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--i, 0) * 85ms + 100ms); }
.arch .lotus { width: 74px; margin-bottom: 8px; }
.invocation { font: 400 17px/1.4 var(--deva); color: var(--accent); }
.verse { display: flex; flex-direction: column; margin-top: 4px; font: 400 13px/1.7 var(--deva); color: var(--soft); }
.blessing { margin-top: 12px; font: italic 400 17px/1.4 var(--body); color: var(--ink); }
.kicker { margin-top: 6px; font: 400 14px/1.5 var(--body); color: var(--soft); }
.arch .name { margin-top: 14px; font: 600 clamp(28px, 8vw, 34px)/1.05 var(--display); letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.look-rose .arch .name { font: 400 clamp(36px, 10vw, 44px)/1 var(--script); text-transform: none; letter-spacing: 0; }
.arch .parents { margin-top: 2px; font: italic 400 14px/1.4 var(--body); color: var(--soft); }
.arch .amp { margin-top: 8px; font: 400 26px/1 var(--script); color: var(--gold); }
.arch .flourish-wrap .flourish { margin: 16px auto 6px; }
.arch .when { font: 600 13px/1.5 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.arch .ceremony { font: 600 11px/1.6 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.arch .where { font: italic 400 15px/1.4 var(--body); color: var(--ink); }

/* ============================================================
   3 · Events
   ============================================================ */
.events { background: linear-gradient(180deg, var(--paper-2), var(--paper) 25%, var(--paper-2)); }
.events .heading { margin-bottom: 46px; }
.events__list { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }

/* floating decor around the Rose Palace events */
.events__decor { position: absolute; inset: 0; pointer-events: none; }
.decor { position: absolute; width: 60px; opacity: .55; }
.decor svg { width: 100%; height: auto; }
.decor--jhoomer-l, .decor--jhoomer-r, .decor--chandelier-1, .decor--chandelier-2 { transform-origin: 50% 0; animation: sway 5s ease-in-out infinite alternate; }
.decor--jhoomer-l { top: 0; left: 3%; width: 58px; } .decor--jhoomer-r { top: 0; right: 3%; width: 58px; animation-delay: -2.2s; }
.decor--chandelier-1 { top: 28%; left: 4%; width: 48px; animation-delay: -1s; } .decor--chandelier-2 { top: 58%; right: 4%; width: 48px; animation-delay: -3s; }
.decor--nazar-1 { top: 16%; right: 7%; width: 30px; animation: drift 7s ease-in-out infinite; }
.decor--nazar-2 { top: 44%; left: 5%; width: 30px; animation: drift 8s ease-in-out infinite reverse; }
.decor--nazar-3 { top: 80%; right: 6%; width: 30px; animation: drift 6s ease-in-out infinite; }
.decor--peacock { top: 36%; right: 1%; width: 90px; animation: drift 9s ease-in-out infinite; }
.decor--camel { top: 66%; left: 1%; width: 96px; animation: drift 10s ease-in-out infinite reverse; }
.decor--horse { bottom: 4%; right: 2%; width: 90px; animation: drift 9s ease-in-out infinite; }
@media (min-width: 900px) {
    .decor { opacity: .9; }
    .decor--jhoomer-l, .decor--jhoomer-r { width: 90px; } .decor--chandelier-1, .decor--chandelier-2 { width: 76px; }
    .decor--peacock { width: 150px; right: 6%; } .decor--camel { width: 160px; left: 6%; } .decor--horse { width: 150px; right: 8%; }
    .decor--nazar-1, .decor--nazar-2, .decor--nazar-3 { width: 44px; }
}

/* Rose Palace: arched fans that swing open, hinged on alternate sides */
.fan { position: relative; width: min(330px, 88vw); margin: 0 auto 100px; perspective: 1500px; }
.fan--left { perspective-origin: left center; } .fan--right { perspective-origin: right center; }
.fan__panel { opacity: 0; backface-visibility: hidden; transition: transform 1.25s cubic-bezier(.2, .9, .25, 1), opacity .55s ease; container-type: inline-size; }
.fan--left .fan__panel { transform-origin: left center; transform: rotateY(-92deg) scale(.98); }
.fan--right .fan__panel { transform-origin: right center; transform: rotateY(92deg) scale(.98); }
.fan.is-open .fan__panel { transform: rotateY(0) scale(1); opacity: 1; }
.frame { position: relative; padding: 18px 20px 28px; border-radius: 150px 150px 22px 22px; background: #fffaf3; border: 2px solid #d7a28c;
    box-shadow: inset 0 0 0 6px #fffaf3, inset 0 0 0 8px rgba(215, 162, 140, .55), 0 18px 34px -20px rgba(110, 60, 40, .55); }
.frame__body { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.fan.is-open .frame__body { opacity: 1; transform: none; transition-delay: .35s; }
.frame__window { width: 100%; aspect-ratio: 4 / 3.3; margin-bottom: 12px; border-radius: 130px 130px 12px 12px; overflow: hidden; background: #fbeee4; }
.frame__art { width: 100%; height: 100%; object-fit: cover; }
.frame__art.is-icon { object-fit: contain; padding: 10px; animation: bob 3.8s ease-in-out infinite; }
/* the reference's painted fan frames, stretched through their plain middle */
.frame--art { aspect-ratio: 1024 / 1760; padding: 0; border-radius: 0; background: none; box-shadow: none;
    border-style: solid; border-width: calc(460 / 1024 * 100cqw) 0 calc(775 / 1024 * 100cqw); border-image-slice: 460 0 775 0 fill; border-image-repeat: stretch;
    filter: drop-shadow(0 18px 30px rgba(120, 70, 30, .3)); }
.fan--left .frame--art { border-image-source: var(--frame-left); } .fan--right .frame--art { border-image-source: var(--frame-right, var(--frame-left)); }
.frame--art .frame__body { position: absolute; inset: calc(107 / 1024 * 100cqw) 13% calc(384 / 1024 * 100cqw); justify-content: center; }
.frame--art .frame__window { width: 46%; aspect-ratio: 1; margin: -6% 0 6px; border-radius: 0; background: none; overflow: visible; }
.frame h3, .ebook h3 { font: 400 34px/1.1 var(--script); color: var(--accent); }
.frame .meta { font: 600 13px/1.5 var(--caps); letter-spacing: .12em; color: var(--ink); }
.frame .time { font: 600 12px/1.4 var(--caps); letter-spacing: .16em; color: var(--accent); }
.frame .venue, .ebook .venue { font: italic 600 16px/1.4 var(--body); color: var(--ink); }
.frame .note, .ebook .note { font: 400 14px/1.4 var(--body); color: var(--soft); }
.frame__tassels { position: absolute; left: 12%; right: 12%; bottom: -46px; display: flex; justify-content: space-between; pointer-events: none; }
.frame__tassels i { position: relative; display: block; width: 2px; height: 30px; background: #c99a52; transform-origin: top; animation: sway 3s ease-in-out infinite alternate; }
.frame__tassels i:nth-child(odd) { height: 40px; animation-delay: -1.4s; }
.frame__tassels i::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 9px; height: 12px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: linear-gradient(#e4b55a, #b8862f); }
@media (min-width: 900px) {
    .fan { width: 360px; }
    .fan--left { margin-left: calc(50% - 400px); }
    .fan--right { margin-left: calc(50% + 40px); }
    .fan + .fan { margin-top: -260px; }
}

/* Storybook: a vine down to each chapter, and a book whose cover turns open */
.card-page { position: relative; z-index: 1; max-width: 330px; margin: 0 auto; padding: 14px 14px 18px; background: var(--leaf-img, none) center / cover, #fffaf0; border-radius: 4px; box-shadow: 0 18px 40px -22px rgba(90, 50, 20, .6); }
.card-page img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 3px; }
.card-page--end figcaption { margin-top: 12px; font: italic 400 26px/1.2 var(--script); color: var(--accent); }
.card-page .outro-ornament { position: absolute; aspect-ratio: auto; height: auto; object-fit: contain; pointer-events: none; animation: bob 5s ease-in-out infinite; }
.card-page .outro-ornament--dove { top: -40px; left: -24px; width: 64px; } .card-page .outro-ornament--lotus { bottom: -18px; left: -34px; width: 74px; animation-delay: -2s; } .card-page .outro-ornament--vase { bottom: -14px; right: -26px; width: 56px; animation-delay: -1s; }
.vine { position: relative; z-index: 1; width: 40px; height: 150px; margin: 0 auto; }
.vine svg { width: 100%; height: 100%; overflow: visible; }
.vine__guide { fill: none; stroke: rgba(138, 168, 107, .22); stroke-width: 2; stroke-dasharray: 3 5; }
.vine__line { fill: none; stroke: #7f9f5f; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--grow-off, 1); }
.vine__leaf { fill: #8aa86b; opacity: var(--grow, 0); transition: opacity .3s; }
.vine__medal { position: absolute; left: 50%; bottom: -20px; display: grid; place-items: center; width: 38px; height: 38px; transform: translateX(-50%) scale(0); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f7dc93, #c2913a 60%, #8e6420); color: #fffbe8; font: 700 15px/1 var(--display); box-shadow: 0 4px 10px rgba(80, 50, 10, .4); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.vine.is-grown .vine__medal { transform: translateX(-50%) scale(1); }
.vine--last { height: 110px; margin-bottom: 4px; }

.ebook { position: relative; z-index: 1; width: min(330px, 84vw); margin: 34px auto 0; perspective: 1800px; }
.ebook__book { position: relative; aspect-ratio: 3 / 4.8; }
.ebook__page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 14px 16px; background: var(--leaf-img, none) center / cover, #fffaf0; border-radius: 4px 12px 12px 4px; box-shadow: 0 18px 40px -22px rgba(90, 50, 20, .6), inset 10px 0 18px -14px rgba(90, 50, 20, .4); }
.ebook--right .ebook__page { border-radius: 12px 4px 4px 12px; box-shadow: 0 18px 40px -22px rgba(90, 50, 20, .6), inset -10px 0 18px -14px rgba(90, 50, 20, .4); }
.ebook__art { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: cover; border-radius: 3px; }
.ebook__text { padding-top: 8px; }
.ebook .meta { font: 600 12.5px/1.5 var(--caps); letter-spacing: .1em; color: var(--accent); }
.ebook .map { margin-top: 8px; }
.ebook__cover { position: absolute; inset: 0; z-index: 2; transform-style: preserve-3d; transform-origin: left center; transform: rotateY(calc(var(--turn, 0) * -1deg)); }
.ebook--right .ebook__cover { transform-origin: right center; transform: rotateY(calc(var(--turn, 0) * 1deg)); }
.ebook__face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; backface-visibility: hidden; border-radius: 4px 12px 12px 4px; }
.ebook--right .ebook__face { border-radius: 12px 4px 4px 12px; }
.ebook__face--front { background: var(--cover-img, none) center / cover,
    repeating-linear-gradient(45deg, rgba(201, 154, 82, .4) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(-45deg, rgba(201, 154, 82, .4) 0 2px, transparent 2px 24px),
    linear-gradient(160deg, var(--cover-a), var(--cover-b));
    box-shadow: inset 0 0 0 8px rgba(255, 240, 220, .35), inset 0 0 0 10px rgba(201, 154, 82, .7), 0 18px 34px -18px rgba(70, 30, 20, .6); }
.ebook__face--back { transform: rotateY(180deg); background: var(--lining-img, none) center / cover, radial-gradient(circle, #fffaf0, #f3e4c8); box-shadow: inset 0 0 0 10px #f6ead3, inset 0 0 0 11px rgba(185, 138, 74, .5); }
.ebook__plate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 64%; aspect-ratio: 3 / 4; padding: 12px; border-radius: 999px 999px 12px 12px; background: rgba(255, 250, 242, .96); border: 2px solid #d9b26a; box-shadow: 0 8px 20px rgba(70, 30, 20, .25); }
.ebook__plate p:first-child { font: 600 11px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ebook__name { font: 400 32px/1 var(--script); color: var(--accent); }
.ebook__plate--lining { background: transparent; border: 0; box-shadow: none; }
.ebook__plate--lining .flourish { margin: 4px auto; width: 110px; }
.ebook__shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: calc(110% - var(--p, 0) * 140%) 0; opacity: calc(var(--p, 0) * (1 - var(--p, 0)) * 3); pointer-events: none; }
.ebook__petals { position: absolute; inset: -20% -10% 0; z-index: 3; overflow: visible; pointer-events: none; }
.book-petal { position: absolute; top: 0; width: 9px; height: 12px; border-radius: 80% 0 80% 20%; background: #e98da4; }
.book-petal--marigold { background: #f3a524; border-radius: 50%; width: 8px; height: 8px; }
@media (min-width: 900px) {
    /* the open book lies as a spread across the middle of the page */
    .ebook--left .ebook__book { translate: 50% 0; }
    .ebook--right .ebook__book { translate: -50% 0; }
    .ebook { width: 340px; }
}

/* lanterns and jhumkas hanging beside the chapters (wide screens) */
.hangers { display: none; }
@media (min-width: 900px) {
    .hangers { position: absolute; inset: 0; display: block; pointer-events: none; }
    .hanger { position: absolute; top: -40px; width: 54px; transform-origin: 50% 0; animation: sway var(--bob, 5s) ease-in-out infinite alternate; }
    .hangers--edge .hanger--l { left: -260px; } .hangers--edge .hanger--r { right: -260px; top: 120px; }
    .hangers--head .hanger--l { left: -120px; top: -150px; } .hangers--head .hanger--r { right: -120px; top: -150px; }
    .hanger img { width: 100%; height: auto; }
    .hanger i { display: block; position: relative; width: 2px; height: 90px; margin: 0 auto; background: #b88a3e; }
    .hanger i::after { content: ''; position: absolute; left: 50%; top: 90px; width: 40px; height: 54px; transform: translateX(-50%); border-radius: 40% 40% 30% 30%; background: radial-gradient(ellipse at 50% 70%, #fff3c4, #ffc35c 45%, #e8822b); box-shadow: 0 0 30px rgba(255, 190, 90, .6); }
    .hanger--jhumka i::after { width: 34px; height: 40px; border-radius: 50% 50% 46% 46% / 30% 30% 70% 70%; background: radial-gradient(circle at 50% 30%, #f7dc93, #c99a52 70%); box-shadow: none; }
}

/* ============================================================
   4 · Gallery
   ============================================================ */
.gallery { background: var(--paper); }
.album { position: relative; max-width: 360px; margin: 34px auto 0; }
.album__frame { position: relative; aspect-ratio: 4 / 5; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #f3dcc0, #d8b07a 30%, #f6e2c4 55%, #c99a52 85%); box-shadow: 0 22px 44px -22px rgba(90, 50, 20, .65); }
.album__photo { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; border-radius: 8px; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.6s cubic-bezier(.22, 1, .36, 1); }
.album__photo.is-on { opacity: 1; transform: none; }
.album__frame--art { padding: 0; background: none; box-shadow: none; aspect-ratio: 3 / 4; }
.album__frame--art .album__photo { inset: 12% 13%; width: 74%; height: 76%; border-radius: 4px; }
.album__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.album__nav { position: absolute; top: 42%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 250, 242, .92); color: #6b4a33; font-size: 22px; line-height: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.album__nav.prev { left: -12px; } .album__nav.next { right: -12px; }
.album__thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.album__thumbs button { width: 54px; height: 64px; padding: 3px; border-radius: 28px 28px 6px 6px; background: #e8d2b2; opacity: .6; transition: opacity .3s, transform .3s; }
.album__thumbs button.is-on { opacity: 1; transform: translateY(-3px); background: #c99a52; }
.album__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px 25px 4px 4px; }

/* ============================================================
   5 · RSVP
   ============================================================ */
.rsvp { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.card { max-width: 380px; margin: 30px auto 0; padding: 26px 22px; border-radius: 18px; background: rgba(255, 252, 246, .95); border: 1px solid rgba(185, 138, 74, .35); text-align: left; box-shadow: 0 18px 40px -24px rgba(90, 50, 20, .5); }
.card .hint { margin-bottom: 18px; font: italic 400 16px/1.5 var(--body); color: var(--soft); text-align: center; }
.card form { display: flex; flex-direction: column; gap: 16px; }
.card label, .card legend { display: flex; flex-direction: column; gap: 7px; font: 600 10px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card input:not([type]), .card input[type=text], .card input[type=number] { padding: 12px 14px; border: 1px solid #e4d2b8; border-radius: 10px; background: #fffdf8; font: 400 16px/1.3 var(--body); color: var(--ink); }
.card fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.card legend { width: 100%; margin-bottom: 8px; }
.card .choice { flex: 1; flex-direction: row; letter-spacing: .12em; }
.card .choice input { position: absolute; opacity: 0; }
.card .choice span { flex: 1; padding: 11px 8px; border: 1px solid #e4d2b8; border-radius: 999px; text-align: center; color: var(--soft); }
.card .choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff6ec; }
.card .choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   6 · Finale
   ============================================================ */
.finale { padding-bottom: 120px; background: var(--finale, none) center top / cover no-repeat, linear-gradient(180deg, var(--paper-2) 0%, #f6d8cf 45%, #f4c9b9 70%, #f9e3cf 100%); }
.look-vivah .finale, .look-karaj .finale { background: var(--finale, none) center top / cover no-repeat, linear-gradient(180deg, var(--paper-2), var(--paper) 40%, #f7e0c6); }
.finale .script { font: 400 clamp(46px, 13vw, 66px)/1 var(--script); color: var(--accent); }
.finale__garland { max-width: 520px; margin: 0 auto; }
.toran { position: relative; display: flex; justify-content: space-between; height: 46px; margin: 26px 0 0; padding: 0 6px; }
.toran::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 14px; background: radial-gradient(circle, #f6a723 0 5px, #e07b10 5.5px 6.5px, transparent 7px) 0 0 / 14px 14px repeat-x; }
.toran i { position: relative; width: 2px; height: 30px; margin-top: 16px; background: #2f8a45; transform-origin: top; animation: sway 3.4s ease-in-out infinite alternate; }
.toran i:nth-child(even) { height: 22px; animation-delay: -1.7s; }
.toran i::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; transform: translateX(-50%); border-radius: 50%; background: #f6a723; box-shadow: 0 0 0 2px #e07b10 inset; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 400px; margin: 6px auto 0; }
.jharokha { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 3 / 4.2; border-radius: 40px 40px 8px 8px; background: #fffaf2; border: 2px solid var(--gold); box-shadow: inset 0 0 0 4px #fffaf2, inset 0 0 0 5px rgba(185, 138, 74, .4), 0 10px 20px -12px rgba(90, 50, 20, .6); transform-origin: 50% 0; animation: sway 4s ease-in-out infinite alternate; }
.jharokha:nth-child(2) { animation-delay: -1s; } .jharokha:nth-child(3) { animation-delay: -2s; } .jharokha:nth-child(4) { animation-delay: -3s; }
.jharokha strong { font: 600 24px/1 var(--display); color: var(--accent); }
.jharokha span { margin-top: 6px; font: 600 8px/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.jharokha .tassel { position: absolute; left: 50%; bottom: -26px; width: 2px; height: 18px; background: #c99a52; transform: translateX(-50%); }
.jharokha .tassel::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 9px; height: 12px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #d88aa0; }
.finale .line { margin-top: 56px; font: italic 400 22px/1.35 var(--body); color: var(--ink); }
.pill--glow { margin-top: 22px; background: rgba(255, 251, 244, .92); animation: halo 2.6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 120, .6); } 50% { box-shadow: 0 0 0 10px rgba(255, 200, 120, 0); } }
.signoff { margin-top: 56px; }
.signoff .script { margin-top: 6px; font-size: clamp(40px, 11vw, 54px); }
.signoff .families { font: italic 400 17px/1.4 var(--body); color: var(--soft); }
.signoff .when { margin-top: 14px; font: 600 12px/1.6 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.signoff .where { font: italic 400 16px/1.4 var(--body); color: var(--soft); }
.made { display: inline-block; margin-top: 30px; font: 600 9px/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--soft); text-decoration: none; opacity: .8; }
.wish { position: fixed; z-index: 70; width: 34px; height: 46px; pointer-events: none; animation: wish 5.5s cubic-bezier(.3, .1, .3, 1) forwards; }
.wish--lantern { border-radius: 40% 40% 30% 30%; background: var(--lantern-img, radial-gradient(ellipse at 50% 70%, #fff3c4, #ffc35c 45%, #e8822b)) center / contain no-repeat; box-shadow: 0 0 40px rgba(255, 190, 90, .8); }
.wish--dove { width: 44px; height: 32px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M6 30c10 2 18-2 24-10 4-6 10-12 20-14-6 6-8 12-6 18 6-2 12 0 16 4-8 0-12 4-16 10-6 8-18 8-28 4-4-2-8-6-10-12z' fill='%23fffdf7' stroke='%23c9a46a' stroke-width='1.5'/%3E%3C/svg%3E"); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
@keyframes wish { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--drift)), -95svh) scale(1.1); opacity: 0; } }

/* ---------- sound and share ---------- */
.music { position: fixed; right: 18px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 250, 242, .9); color: #6b4a33; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s; backdrop-filter: blur(6px); }
.music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.music[aria-pressed="true"] .slash { display: none; }
html:not(.is-locked) .music { opacity: 1; transform: none; }
.share { position: fixed; left: 18px; bottom: 22px; z-index: 40; padding: 10px 16px; border-radius: 999px; background: rgba(255, 250, 242, .92); color: #7a5a24; font: 600 10px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }

@media (prefers-reduced-motion: reduce) {
    .petals, .lanterns { display: none; }
    .fan__panel, .frame__body, .arch > *, .intro__names > *, .intro__hero-text > * { opacity: 1 !important; transform: none !important; animation: none !important; }
    .ebook__cover { display: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
